Skip to content

Commit

Permalink
Version 1.0.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
szczepanskiNicolas committed Oct 12, 2023
1 parent e9121d5 commit 685c3e4
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 493 deletions.
11 changes: 0 additions & 11 deletions publish_pypi.py

This file was deleted.

42 changes: 16 additions & 26 deletions pypi/publish_pypi.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,22 @@
import os

versionFile = os.getcwd() + os.sep + "pyxai" + os.sep + "version.txt"
__version__ = open(versionFile, encoding='utf-8').read()

print("Type on the keyboard the new version number (current " + str(__version__) + ") ?")

new_version = input()
if new_version != "":
print("Write the new version ...")
with open(versionFile, "r+") as f:
data = f.read()
f.seek(0)
f.write(new_version)
f.truncate()

# print("sudo rm -rf build/ dist/ wheelhouse/ rm -rf dist/ build/ pyxai-experimental.egg-info/ pyxai.egg-info/")

os.system("sudo rm -rf build/ dist/ wheelhouse/ rm -rf dist/ build/ pyxai-experimental.egg-info/ pyxai.egg-info/")

# print("Type Enter to execute python3 setup.py sdist bdist_wheel")
# input()
# os.system("python3 setup.py sdist bdist_wheel")

print("Type Enter to execute the docker that build whells:")
# How to build, test and publish on pypi a new version:
# - Put the good version in the pyxai/version.txt file
# - Push on the public github of pyxai
# - Two github actions are launch: Build and Tests
# - The github action Build create the wheels for pypi
# - The github action Build create the wheels for pypi
# - This script get the last wheels and publish them on pypi.

print("Please use the 'gh auth login' command to connect the github API.")
print("Type 'enter' to execute: 'gh run download'")
input()

os.system("sudo docker run --rm -e PLAT=manylinux2014_x86_64 -v `pwd`:/io quay.io/pypa/manylinux2014_x86_64 /io/travis/build-wheels.sh")
os.system("gh run download")

print("Type Enter to execute the publish on pypi the wheels:")
print("Type 'enter' to publish the wheels on pypi:")
input()
os.system("python3 -m twine upload --skip-existing wheelhouse/*.whl")
os.system("python3 -m twine upload --skip-existing *.whl")

print("Type 'enter' to delete the whell:")
input("rm -rf *.whl")
2 changes: 1 addition & 1 deletion pyxai/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.6
1.0.7
32 changes: 0 additions & 32 deletions update_pypi_version-OSX.py

This file was deleted.

32 changes: 0 additions & 32 deletions update_pypi_version.py

This file was deleted.

Loading

0 comments on commit 685c3e4

Please sign in to comment.