-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,3 +105,6 @@ venv.bak/ | |
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
# SCM versioning | ||
_version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]", | ||
|
@@ -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(), | ||
|
@@ -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"], | ||
) |
This file was deleted.
Oops, something went wrong.