diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 0000000..1f705dd --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,23 @@ +name: Publish to PyPI +on: push +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v1 + with: + python-version: 3.9 + - run: pip install --upgrade setuptools wheel + - run: python setup.py sdist bdist_wheel + - name: Publish to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.TEST_PYPI_API_TOKEN }} + repository_url: https://test.pypi.org/legacy/ + skip_existing: true + - name: Publish to PyPI + if: startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/setup.py b/setup.py index 70cd70d..b433d0e 100644 --- a/setup.py +++ b/setup.py @@ -51,6 +51,7 @@ def run(self): url="https://github.com/OpenDataServices/flatten-tool", license="MIT", description="Tools for generating CSV and other flat versions of the structured data", + long_description="Tools for generating CSV and other flat versions of the structured data", install_requires=install_requires, extras_require={"HTTP": ["requests"]}, cmdclass={