Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add action for updating pypi package #57

Merged
merged 2 commits into from
Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding the classifier, we should update it as soon as pypa/trove-classifiers#17 gets merged.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good point.

Topic :: Software Development :: Libraries
Topic :: Utilities
license_file = LICENSE
Expand Down