Skip to content

Commit

Permalink
add conda package
Browse files Browse the repository at this point in the history
  • Loading branch information
quillcraftsman committed Nov 12, 2023
1 parent e82eef8 commit 5b07d07
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/publish_conda.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
subDir: 'conda'
AnacondaToken: ${{ secrets.ANACONDA_TOKEN }}
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ pylint:
pylint $(shell git ls-files '*.py')

lint:
make yamllint
make pylint

sphinx-help:
Expand Down
44 changes: 44 additions & 0 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5b07d07

Please sign in to comment.