From e82eef8560e2cc58a32250d1883d2393b78feac6 Mon Sep 17 00:00:00 2001 From: quillcraftsman Date: Sat, 11 Nov 2023 13:02:20 +0400 Subject: [PATCH 1/3] add pull request template --- .github/PULL_REQUEST_TEMPLATE.md | 22 ++++++++++++++++++++++ CHECKLIST.md | 11 ++++++++--- 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..f5c4756 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,22 @@ + + +#### Reference issue + + +#### What does this implement/fix? + + +#### Additional information + \ No newline at end of file diff --git a/CHECKLIST.md b/CHECKLIST.md index e5ff650..89ae254 100644 --- a/CHECKLIST.md +++ b/CHECKLIST.md @@ -22,8 +22,12 @@ - [x] [FAQ](https://github.com/quillcraftsman/open-source-checklist#faq) - [x] [Examples Output and Screenshots](https://github.com/quillcraftsman/open-source-checklist#examples-output-and-screenshots) - [x] [License](https://github.com/quillcraftsman/open-source-checklist#license) -- [x] [Code of Conduct](https://github.com/quillcraftsman/open-source-checklist#code-of-conduct) -- [x] [Security Policy](https://github.com/quillcraftsman/open-source-checklist#security-policy) +- [x] [Code of Conduct](https://github.com/libresource/open-source-checklist#code-of-conduct) +- [x] [Security Policy](https://github.com/libresource/open-source-checklist#security-policy) +- [x] [Governance](https://github.com/libresource/open-source-checklist#governance) +- [x] [Issue templates](https://github.com/libresource/open-source-checklist#issue-templates) +- [x] [Pull Request Template](https://github.com/libresource/open-source-checklist#pull-request-template) +- [x] [Support](https://github.com/libresource/open-source-checklist#support) [CI and CD](https://github.com/quillcraftsman/open-source-checklist#ci-and-cd) - [X] Tests @@ -31,4 +35,5 @@ - [ ] Test Coverage 100% - [X] Linters - [X] Build -- [X] Deploy \ No newline at end of file +- [X] Deploy +- [ ] [New User Greetings](https://github.com/libresource/open-source-checklist#new-user-greetings) \ No newline at end of file From 5b07d07fb4fd12729b7a7785497e1bcec1e378cd Mon Sep 17 00:00:00 2001 From: quillcraftsman Date: Sun, 12 Nov 2023 12:14:42 +0400 Subject: [PATCH 2/3] add conda package --- .github/workflows/publish_conda.yml | 19 +++++++++++++ Makefile | 1 - conda/meta.yaml | 44 +++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish_conda.yml create mode 100644 conda/meta.yaml diff --git a/.github/workflows/publish_conda.yml b/.github/workflows/publish_conda.yml new file mode 100644 index 0000000..b15a485 --- /dev/null +++ b/.github/workflows/publish_conda.yml @@ -0,0 +1,19 @@ +name: publish_conda + +on: + release: + types: [published] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: publish-to-conda + uses: maxibor/conda-package-publish-action@v1.1 + with: + subDir: 'conda' + AnacondaToken: ${{ secrets.ANACONDA_TOKEN }} diff --git a/Makefile b/Makefile index 2c94bbd..21cb794 100755 --- a/Makefile +++ b/Makefile @@ -26,7 +26,6 @@ pylint: pylint $(shell git ls-files '*.py') lint: - make yamllint make pylint sphinx-help: diff --git a/conda/meta.yaml b/conda/meta.yaml new file mode 100644 index 0000000..211773e --- /dev/null +++ b/conda/meta.yaml @@ -0,0 +1,44 @@ +{% set name = "find-similar" %} +{% set version = "2.0.0" %} + +package: + name: "{{ name|lower }}" + version: "{{ version }}" + +source: + url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz" + sha256: 4e0996e530ad0f6156d5d731d278e286710edefb2c059daec9be87c48e15462d + +build: + number: 0 + noarch: python + script: "{{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation" + +requirements: + host: + - pip + - python >=3.10 + run: + - nltk ==3.8.1 + - pydantic ==2.4.2 + - pymorphy3 ==1.2.1 + - python >=3.10 + - pyyaml ==6.0.1 + - setuptools + +test: + imports: + - find_similar + +about: + home: "https://github.com/findsimilar/find-similar" + license: MIT + license_family: MIT + license_file: LICENSE + summary: "User-friendly library to find similar objects" + doc_url: "https://docs.findsimilar.org" + dev_url: "https://github.com/findsimilar/find-similar" + +extra: + recipe-maintainers: + - findsimilar From 6213ad372d00ae03400647bf0bfed396a4667a7d Mon Sep 17 00:00:00 2001 From: quillcraftsman Date: Sun, 12 Nov 2023 12:18:11 +0400 Subject: [PATCH 3/3] rename conda action --- .github/workflows/{publish_conda.yml => publish-conda.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{publish_conda.yml => publish-conda.yml} (95%) diff --git a/.github/workflows/publish_conda.yml b/.github/workflows/publish-conda.yml similarity index 95% rename from .github/workflows/publish_conda.yml rename to .github/workflows/publish-conda.yml index b15a485..b3ee6f9 100644 --- a/.github/workflows/publish_conda.yml +++ b/.github/workflows/publish-conda.yml @@ -1,4 +1,4 @@ -name: publish_conda +name: Publish Conde on: release: