From a2709e38de85f566d6342dc8c66fd2a622d95139 Mon Sep 17 00:00:00 2001 From: josuemtzmo Date: Thu, 16 Mar 2023 19:06:01 +0100 Subject: [PATCH] fix: add long description for pypi --- .github/workflows/publish-to-test-pypi.yml | 2 +- setup.py | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index 3700a1e..b250818 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -30,7 +30,7 @@ jobs: --outdir dist/ . - name: Publish distribution 📦 to Test PyPI - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository_url: https://test.pypi.org/legacy/ diff --git a/setup.py b/setup.py index 1c506d5..e703535 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,9 @@ from setuptools import setup, find_packages +from pathlib import Path +this_directory = Path(__file__).parent +long_description = (this_directory / "README.md").read_text() + setup( name='xarrayMannKendall', version='1.4.3', @@ -11,4 +15,6 @@ packages=find_packages(), install_requires=[], zip_safe=False, -) \ No newline at end of file + long_description=long_description, + long_description_content_type='text/markdown' +)