From 8eed879741e365b31c990b386434c8e0f4a4ab08 Mon Sep 17 00:00:00 2001 From: mayabrandi Date: Fri, 16 Oct 2020 08:31:21 +0200 Subject: [PATCH] setting up pypi --- .github/workflows/build_and_publish.yml | 38 +++++++++++++++++++++++++ setup.py | 19 ++++++++++--- 2 files changed, 53 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/build_and_publish.yml diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml new file mode 100644 index 00000000..4cb02704 --- /dev/null +++ b/.github/workflows/build_and_publish.yml @@ -0,0 +1,38 @@ +name: Publish to PyPI + +on: + push: + tags: + - '*' + +jobs: + build-n-publish: + name: Build and publish Python distribution to PyPI + runs-on: ubuntu-18.04 + steps: + - name: Check out git repository + uses: actions/checkout@v2 + + - name: Set up Python 3.7 + uses: actions/setup-python@v2 + with: + python-version: 3.7 + + - name: Install build tools + run: >- + python -m + pip install + wheel + twine + --user + - name: Build a binary wheel and a source tarball + run: >- + python + setup.py + sdist + bdist_wheel + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.pypi_password }} \ No newline at end of file diff --git a/setup.py b/setup.py index ad84b7d4..b888797e 100644 --- a/setup.py +++ b/setup.py @@ -7,17 +7,28 @@ except IOError: install_requires = [] + +with open("README.md", "r") as fh: + long_description = fh.read() + setup( name="NIPTool", version=version, + description="NIPT data storage and visualisation", + long_description=long_description, + long_description_content_type="text/markdown", url="https://github.com/Clinical-Genomics/NIPTool", author="Maya Brandi", - author_email='maya.brandi@scilifelab.se', + author_email="maya.brandi@scilifelab.se", install_requires=install_requires, packages=find_packages(), include_package_data=True, zip_safe=False, - entry_points={ - 'console_scripts': ['nipt=NIPTool.commands:cli'], - }, + entry_points={"console_scripts": ["nipt=NIPTool.commands:cli"],}, + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + ], + python_requires=">=3.6", )