testing new version ctrl
This commit is contained in:
1 parent
0f50a0041f
commit
e51618231d
4 files changed
+13
-3
No files matched your search
+5
-1
@@ -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/*
|
||||
@@ -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)
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user