From 5b0869fd16bcd2d19bd8501cf53acdf8e0b7bbd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Csosie-js=E2=80=9D?= <“sosie@sos-productions.com”> Date: Wed, 14 Aug 2024 22:16:08 +0200 Subject: [PATCH] Publish package in Pypi.org - egg no more supported, using wheel instead --- README.md | 6 +++++- package.sh | 2 +- publish.sh | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 publish.sh diff --git a/README.md b/README.md index 907f507..5e2382e 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,11 @@ $ ./package.sh ```shell $ python3 -m pip install --user --upgrade twine ``` -3. Upload the bundle +3. Build the wheel bundle (.egg no more recongnized) +```shell +$ sudo rm -rf dist/&sudo rm -rf build&sudo python3 setup.py bdist_wheel +``` +4. Upload the bundle ```shell $ python3 -m twine upload dist/* ``` diff --git a/package.sh b/package.sh index eb9aabf..782d052 100755 --- a/package.sh +++ b/package.sh @@ -1 +1 @@ -sudo rm -rf dist/&sudo rm -rf build&sudo python3 setup.py install +sudo rm -rf dist/&sudo rm -rf build&sudo python3 setup.py bdist_wheel diff --git a/publish.sh b/publish.sh new file mode 100644 index 0000000..209b7d7 --- /dev/null +++ b/publish.sh @@ -0,0 +1,2 @@ +#egg format is no more recognized +twine upload dist/*