Skip to content

Commit

Permalink
Publish to pip workflow (#18)
Browse files Browse the repository at this point in the history
* Change package name since underscores are invalid chars

* Modify strict requirements to "equal or higher" requirements

* Add package name to setup.py

* Add publish workflow
  • Loading branch information
puhoshville authored Oct 20, 2019
1 parent cf5ffb8 commit 9ba2e6d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pippublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Upload Python Package to PyPi

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
version = "0.0.1"

install_requires = [
'pymemcache==2.2.2',
'numpy==1.17.0',
'pandas==0.25.0',
'pymemcache>=2.2.2',
'numpy>=1.17.0',
'pandas>=0.25.0',
]

setup(
name='keep_this',
name='keepthis',
version=version,
packages=[''],
packages=['keepthis'],
install_requires=install_requires,
url='github.com/puhoshville',
license='MIT',
Expand Down

0 comments on commit 9ba2e6d

Please sign in to comment.