Skip to content

Commit

Permalink
Fix PyPI Publish Issue and Improve Project Metadata (#224)
Browse files Browse the repository at this point in the history
* Update CD workflow to use the same versions of actions as CI.

* Fix description typo.

* Update project URLs.

* Remove id-token permission.
izzet authored Aug 28, 2024
1 parent 8cabad2 commit ec22aec
Showing 2 changed files with 10 additions and 20 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -9,43 +9,31 @@ permissions:

jobs:
release-build:
runs-on: ubuntu-latest

runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.x"

- name: Build release distributions
run: |
# NOTE: put your own distribution build steps here.
python -m pip install build
python -m build
- name: Upload distributions
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: release-dists
path: dist/

pypi-publish:
runs-on: ubuntu-latest

runs-on: ubuntu-22.04
needs:
- release-build

permissions:
id-token: write

steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: release-dists
path: dist/

- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@
setup(
name="dlio_benchmark",
version="2.0.0",
description="An I/O benchmark for deep Learning applications",
description="An I/O benchmark for deep learning applications",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/argonne-lcf/dlio_benchmark",
@@ -77,8 +77,10 @@
],
keywords="deep learning, I/O, benchmark, NPZ, pytorch benchmark, tensorflow benchmark",
project_urls={ # Optional
"Bug Reports": "https://github.com/argonne-lcf/dlio_benchmark/issues",
"Documentation": "https://dlio-benchmark.readthedocs.io",
"Source": "https://github.com/argonne-lcf/dlio_benchmark",
"Release Notes": "https://github.com/argonne-lcf/dlio_benchmark/releases",
"Bug Reports": "https://github.com/argonne-lcf/dlio_benchmark/issues",
},
# Main package definition
packages=find_namespace_packages(where="."),

0 comments on commit ec22aec

Please sign in to comment.