Skip to content

Commit

Permalink
Merge branch 'master' into cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwoerer authored Nov 1, 2021
2 parents d6f0868 + 4f419fc commit 94f9dfe
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 8 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/python_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Upload Python Package

on:
# Only run when a release is created
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/*
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,6 @@ venv.bak/

# mypy
.mypy_cache/

# SCM versioning
_version.py
12 changes: 5 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,10 @@
with open("README.md", "r") as f:
long_description = f.read()

version_dict = {}
with open("zoidberg/_version.py") as f:
exec(f.read(), version_dict)

name = "zoidberg"
version = version_dict["__version__"]
release = version

setuptools.setup(
name=name,
version=version,
url="https://github.com/boutproject/zoidberg",
author="Peter Hill",
author_email="[email protected]",
Expand All @@ -39,6 +32,9 @@
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Visualization",
],
packages=setuptools.find_packages(),
Expand All @@ -47,4 +43,6 @@
"Documentation": "https://bout-dev.readthedocs.io/en/latest/",
"Source Code": "https://github.com/boutproject/zoidberg/",
},
use_scm_version=True,
setup_requires=["setuptools_scm"],
)
1 change: 0 additions & 1 deletion zoidberg/_version.py

This file was deleted.

0 comments on commit 94f9dfe

Please sign in to comment.