-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add action for updating pypi package (#57)
* Add action for updating pypi package * Modifications for making the package pass twine's checks
- Loading branch information
Showing
3 changed files
with
29 additions
and
3 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,26 @@ | ||
name: 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.9 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine build | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
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
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 |
---|---|---|
|
@@ -26,7 +26,7 @@ name = shifthappens | |
version = attr: shifthappens.__version__ | ||
author = Julian Bitterwolf, Evgenia Rusak, Steffen Schneider, Roland S. Zimmermann | ||
author_email = [email protected] | ||
description = Helper code for submissions for the Shift Happens ICML 2022 workshop | ||
description = Benchmark for image classifiers created for the Shift Happens ICML 2022 workshop | ||
long_description = file: README.rst | ||
long_description_content_type = text/x-rst | ||
url = https://shift-happens-benchmark.github.io | ||
|
@@ -35,7 +35,7 @@ project_urls = | |
classifiers = | ||
Programming Language :: Python :: 3 | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: Apache License 2.0 | ||
License :: OSI Approved :: Apache Software License | ||
Topic :: Software Development :: Libraries | ||
Topic :: Utilities | ||
license_file = LICENSE | ||
|