diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f1bfef7..9a15179 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,3 +33,10 @@ jobs: run: | python setup.py sdist bdist_wheel twine upload dist/* + + - name: publish-to-conda + uses: fcakyon/conda-publish-action@v1.3 + with: + subdir: 'conda' + anacondatoken: ${{ secrets.ANACONDA_TOKEN }} + platforms: 'win osx linux' \ No newline at end of file diff --git a/README.md b/README.md index 61477c4..8eb8f20 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,12 @@ PyPI - Python Version + + Conda + + + Downloads + Release diff --git a/conda/conda_build_config.yaml b/conda/conda_build_config.yaml new file mode 100644 index 0000000..db6520c --- /dev/null +++ b/conda/conda_build_config.yaml @@ -0,0 +1,5 @@ +python: + - 3.6 + - 3.7 + - 3.8 + - 3.9 \ No newline at end of file diff --git a/conda/meta.yaml b/conda/meta.yaml new file mode 100644 index 0000000..a462ab3 --- /dev/null +++ b/conda/meta.yaml @@ -0,0 +1,42 @@ +{% set name = "app-store-reviews-reader" %} +{% set data = load_setup_py_data() %} + + +package: + name: "{{ name|lower }}" + version: "{{ data['version'] }}" + +source: + path: .. + +build: + number: 0 + script: "{{ PYTHON }} setup.py install --single-version-externally-managed --record=record.txt" + +requirements: + build: + - python + - feedparser + - requests + run: + - python + - feedparser + - requests + +test: + requires: + - pytest + +about: + home: "{{ data[ 'url' ] }}" + license: "{{ data[ 'license' ] }}" + license_file: LICENSE + summary: "{{ data[ 'description' ] }}" + description: "{{ data[ 'description' ] }}" + dev_url: "{{ data[ 'url' ] }}" + doc_url: "{{ data[ 'url' ] }}" + doc_source_url: https://github.com/lalitpagaria/app_store_reviews_reader/blob/master/README.md + +extra: + recipe-maintainers: + - lalitpagaria \ No newline at end of file diff --git a/setup.py b/setup.py index 2795170..85ff2d9 100644 --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ def get_dependency_links(filename): setup( name="app-store-reviews-reader", - version="1.0", + version="1.1", author="Lalit Pagaria", author_email="pagaria.lalit@gmail.com", description="To fetch app store reviews from publicly available RSS feeds",