testing new version ctrl

This commit is contained in:
ari committed 2018-10-28 23:50:51 -04:00
1 parent 0f50a0041f
commit e51618231d
4 files changed
+13 -3

No files matched your search

+1
View File
@@ -0,0 +1 @@
v1.1.1
+5 -1
View File
@@ -4,7 +4,11 @@ WK_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $WK_DIR
cd ..
sh bin/clean/sh
sh bin/clean.sh
python setup.py sdist bdist_wheel
git tag $(cat .version)
git push -u origin $(cat .version)
twine upload dist/*
+4
View File
@@ -27,3 +27,7 @@ def update_pdfmajor__init___(version: str, doc: str):
long_description=doc,
version_tuple=re.sub(r"\.", ", ", version, count=2)
))
def update_current_version_lock(version: str):
with open(".version", 'w') as file:
file.write("v"+version)
+3 -2
View File
@@ -10,7 +10,7 @@ import sys
with open('README.md') as readme_file:
SETUP = {
"name": "pdfmajor",
"version": "1.1.1",
"version": "1.1.2",
"packages": find_packages(include=['pdfmajor*']),
"install_requires": [
'pycryptodome',
@@ -46,8 +46,9 @@ with open('README.md') as readme_file:
# ==============
# Update __init__.py
# ==============
from bin.recreate_init import update_pdfmajor__init___
from bin.recreate_init import update_pdfmajor__init___, update_current_version_lock
update_pdfmajor__init___(SETUP["version"], SETUP["long_description"])
update_current_version_lock(SETUP["version"])
# ==============
# Run Setup