diff --git a/.github/workflows/publish-conda.yml b/.github/workflows/publish-conda.yml index 6a1ad69..104abee 100644 --- a/.github/workflows/publish-conda.yml +++ b/.github/workflows/publish-conda.yml @@ -1,19 +1,35 @@ name: Publish Conda on: - release: - types: [published] - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: jobs: - publish: + build-linux: runs-on: ubuntu-latest + strategy: + max-parallel: 5 + steps: - - uses: actions/checkout@v1 - - name: publish-to-conda - uses: maxibor/conda-package-publish-action@v1.1 + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 with: - subDir: 'conda' - AnacondaToken: ${{ secrets.ANACONDA_TOKEN }} + python-version: '3.10' + - name: Add conda to system path + run: | + # $CONDA is an environment variable pointing to the root of the miniconda directory + echo $CONDA/bin >> $GITHUB_PATH + - name: Install dependencies + run: | + conda env update --file environment.yml --name base + - name: Install conda client + run: | + conda install anaconda-client conda-build + - name: Build Package + run: | + make build + - name: Upload Package + run: | + anaconda login --username quillcraftsman --password ${{ secrets.ANACONDA_PASSWORD }} + anaconda upload dist/*.tar.gz diff --git a/README.md b/README.md index 04ef9e0..7bd9017 100644 --- a/README.md +++ b/README.md @@ -12,24 +12,31 @@ First you can try our [DEMO WEBAPP](http://demo.findsimilar.org/) for a quick in [![Tests](https://github.com/findsimilar/find-similar/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/findsimilar/find-similar/actions/workflows/run-tests.yml) [![Pylint](https://github.com/findsimilar/find-similar/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/findsimilar/find-similar/actions/workflows/lint.yml) -#### Package +#### PyPi [![Version](https://img.shields.io/pypi/v/find-similar.svg)](https://pypi.python.org/pypi/find-similar/) [![Development Status](https://img.shields.io/pypi/status/find-similar.svg)](https://pypi.python.org/pypi/find-similar) [![Python version](https://img.shields.io/pypi/pyversions/find-similar.svg)](https://pypi.python.org/pypi/find-similar/) -[![License](https://img.shields.io/pypi/l/find-similar)](https://github.com/findsimilar/find-similar/blob/main/LICENSE) [![Wheel](https://img.shields.io/pypi/wheel/find-similar.svg)](https://pypi.python.org/pypi/find-similar/) +### Anaconda +[![Version](https://anaconda.org/quillcraftsman/find-similar/badges/version.svg)](https://anaconda.org/quillcraftsman/find-similar/) +[![Last Updated](https://anaconda.org/quillcraftsman/find-similar/badges/latest_release_date.svg)](https://anaconda.org/quillcraftsman/find-similar/) +[![Platforms](https://anaconda.org/quillcraftsman/find-similar/badges/platforms.svg)](https://anaconda.org/quillcraftsman/find-similar/) + +### License +[![License](https://img.shields.io/pypi/l/find-similar)](https://github.com/findsimilar/find-similar/blob/main/LICENSE) + #### Support [![Documentation](https://img.shields.io/badge/docs-0094FF.svg)][documentation_path] [![Discussions](https://img.shields.io/badge/discussions-ff0068.svg)](https://github.com/findsimilar/find-similar/discussions/) [![Issues](https://img.shields.io/badge/issues-11AE13.svg)](https://github.com/findsimilar/find-similar/issues/) -#### Downloads +#### PyPi Downloads [![Day Downloads](https://img.shields.io/pypi/dd/find-similar)](https://pepy.tech/project/find-similar) [![Week Downloads](https://img.shields.io/pypi/dw/find-similar)](https://pepy.tech/project/find-similar) [![Month Downloads](https://img.shields.io/pypi/dm/find-similar)](https://pepy.tech/project/find-similar) - -[//]: # ([![All Downloads](https://img.shields.io/pypi/dt/find-similar)](https://pepy.tech/project/find-similar)) +#### Anaconda Downloads +[![Anaconda](https://anaconda.org/quillcraftsman/find-similar/badges/downloads.svg)](https://anaconda.org/quillcraftsman/find-similar/) #### Languages [![Languages](https://img.shields.io/github/languages/count/findsimilar/find-similar)](https://github.com/findsimilar/find-similar) diff --git a/conda/meta.yaml b/conda/meta.yaml deleted file mode 100644 index 5a0ecaa..0000000 --- a/conda/meta.yaml +++ /dev/null @@ -1,44 +0,0 @@ -{% 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: - - python >=3.10 - - nltk ==3.8.1 - - pydantic ==2.4.2 - - pyyaml ==6.0.1 - - pymorphy3 - - -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 diff --git a/docs/install.rst b/docs/install.rst index f9a531a..3e9a656 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -20,3 +20,10 @@ Clone from GitHub git clone https://github.com/findsimilar/find-similar.git make install + +Using Anaconda +^^^^^^^^^^^^^^ + +.. code-block:: bash + + pip install -i https://pypi.anaconda.org/quillcraftsman/simple find-similar \ No newline at end of file diff --git a/find_similar/package.py b/find_similar/package.py index d4b0eed..c44d606 100644 --- a/find_similar/package.py +++ b/find_similar/package.py @@ -2,5 +2,5 @@ Package info """ name = 'find-similar' -version = '2.0.1' +version = '2.1.0' status = '4 - Beta'