diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml new file mode 100644 index 0000000..171f91b --- /dev/null +++ b/.github/workflows/publish-to-test-pypi.yml @@ -0,0 +1,22 @@ +name: Pub Python dist to TestPyPi + +on: push + +jobs: + build-n-publish: + name: Build/pub python to testpypi + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@master + - name: Setup Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - name: Build ChipWhisperer + run: >- + python setup.py sdist + - name: Publish to pypi + if: startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.py_pi_deploy }} diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..a462718 --- /dev/null +++ b/setup.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python + +from setuptools import setup, find_packages + +setup( + name='ballisticgel', + version='0.1.1', + description="CW521 Ballistic Gel Communication Library", + long_description=open('README.md').read(), + long_description_content_type='text/markdown', + author="Colin O'Flynn", + author_email='coflynn@newae.com', + license='GPLv2+', + url='https://github.com/newaetech/ChipSHOUTER-ballisticgel', + packages=find_packages("ballisticgel"), + install_requires=[ + 'chipwhisperer', + ], + project_urls={ + 'Source': 'https://github.com/newaetech/ChipSHOUTER-ballisticgel', + 'Issue Tracker': 'https://github.com/newaetech/ChipSHOUTER-ballisticgel/issues' + }, + python_requires='~=3.6', +)