Skip to content

Commit

Permalink
Use twine for package upload
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Oct 17, 2018
1 parent 27893df commit 4a246b6
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions scripts/create-release
Expand Up @@ -33,20 +33,16 @@ fi
# Compile po files
./scripts/generate-locales

if [ "x$1" = "x--tag" ] ; then
# PyPi archive
fakeroot ./setup.py sdist upload --sign --identity 63CB1DF1EF12CF2AC0EE5A329C27B31342B7511D
# Create Wheel
# Skipped for now as it tends to include even files not in dist
# fakeroot ./setup.py bdist_wheel --universal upload
else
# Create tarball
fakeroot ./setup.py sdist
fi

# Create tarballs
fakeroot ./setup.py sdist
# Build tarballs
zcat dist/$tarver.tar.gz | xz > dist/$tarver.tar.xz
zcat dist/$tarver.tar.gz | bzip2 > dist/$tarver.tar.bz2
if [ "x$1" = "x--tag" ] ; then
# PyPi archive upload
twine upload --sign --identity 63CB1DF1EF12CF2AC0EE5A329C27B31342B7511D dist/$tarver*
fi


if [ "x$1" = "x--tag" ] ; then
# Download server
Expand Down

0 comments on commit 4a246b6

Please sign in to comment.