Skip to content

Commit

Permalink
Merge pull request #15 from Clinical-Genomics/pypi
Browse files Browse the repository at this point in the history
setting up pypi
  • Loading branch information
mayabrandi committed Oct 16, 2020
2 parents fbe4e43 + 8eed879 commit c308f36
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 4 deletions.
38 changes: 38 additions & 0 deletions .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 }}
19 changes: 15 additions & 4 deletions setup.py
Expand Up @@ -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",
)

0 comments on commit c308f36

Please sign in to comment.