Skip to content

Commit

Permalink
Add action for updating pypi package (#57)
Browse files Browse the repository at this point in the history
* Add action for updating pypi package

* Modifications for making the package pass twine's checks
  • Loading branch information
zimmerrol authored Jun 27, 2022
1 parent 5a567ba commit 03e4a66
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pypi.yaml
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/*
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ and datasets that are suitable for understanding the properties of ImageNet scal
computer vision models beyond the metrics that are typically reported.

How to use this benchmark
----------
-------------------------
For now, you can use the benchmark by installing it from this repository:

.. code::
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 03e4a66

Please sign in to comment.