Skip to content

Commit

Permalink
Utilize build package for creating sdist (.tar.gz) and wheel (.whl) r…
Browse files Browse the repository at this point in the history
…elease artifact.
  • Loading branch information
Kami committed Aug 3, 2023
1 parent 9d15c48 commit fe4772c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dist/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ fi

cd ..

python setup.py sdist --formats=bztar,zip,gztar
python setup.py bdist_wheel
python -m build

cd dist

./hash.py *.tar.bz2 *.tar.gz *.zip *.whl
./sign.sh -u ${user} *.tar.bz2 *.tar.gz *.zip *.whl
./hash.py *.tar.gz *.whl
./sign.sh -u ${user} *.tar.gz *.whl
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,16 @@ dynamic = ["version", "readme"]
[project.urls]
homepage = "https://libcloud.apache.org"
documentation = "https://libcloud.readthedocs.io"
security = "https://libcloud.apache.org/security.html"
source = "https://github.com/apache/libcloud"
issues = "https://github.com/apache/libcloud/issues"
changelog = "https://github.com/apache/libcloud/blob/trunk/CHANGES.rst"


[project.optional-dependencies]
build = [
"build==0.10.0"
]
test = [
"pytest",
"requests_mock",
Expand Down

0 comments on commit fe4772c

Please sign in to comment.