Skip to content

Commit

Permalink
publish package to pypi (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-m-dev authored Apr 26, 2023
1 parent 388ce58 commit 66d29b1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish to TestPyPI

on:
release:
types: [published]

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build package
run: python setup.py sdist bdist_wheel

- name: Upload to TestPyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/*
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def calculate_version():
version=package_version,
author='Pedro Ribeiro',
packages=find_packages(),
url='TODO', #TODO
url='https://github.com/EpistasisLab/tpot2',
license='GNU/LGPLv3', #TODO
entry_points={'console_scripts': ['tpot2=tpot2:main', ]},
description=('Tree-based Pipeline Optimization Tool'),
Expand Down

0 comments on commit 66d29b1

Please sign in to comment.