-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f99dcf
commit e9121d5
Showing
3 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import os | ||
|
||
print("Please use the 'gh auth login' command to connect the github API.") | ||
print("Type 'enter' to execute: 'gh auth login'") | ||
input() | ||
|
||
os.system("gh run download") | ||
|
||
print("Type 'enter' to publish the wheels on pypi:") | ||
input() | ||
os.system("python3 -m twine upload --skip-existing *.whl") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
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:") | ||
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") | ||
|
||
print("Type Enter to execute the publish on pypi the wheels:") | ||
input() | ||
os.system("python3 -m twine upload --skip-existing wheelhouse/*.whl") |