Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e51618231d |
No files matched your search
+5
-1
@@ -4,7 +4,11 @@ WK_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||||||
cd $WK_DIR
|
cd $WK_DIR
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
sh bin/clean/sh
|
sh bin/clean.sh
|
||||||
|
|
||||||
python setup.py sdist bdist_wheel
|
python setup.py sdist bdist_wheel
|
||||||
|
|
||||||
|
git tag $(cat .version)
|
||||||
|
git push -u origin $(cat .version)
|
||||||
|
|
||||||
twine upload dist/*
|
twine upload dist/*
|
||||||
@@ -27,3 +27,7 @@ def update_pdfmajor__init___(version: str, doc: str):
|
|||||||
long_description=doc,
|
long_description=doc,
|
||||||
version_tuple=re.sub(r"\.", ", ", version, count=2)
|
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:
|
with open('README.md') as readme_file:
|
||||||
SETUP = {
|
SETUP = {
|
||||||
"name": "pdfmajor",
|
"name": "pdfmajor",
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"packages": find_packages(include=['pdfmajor*']),
|
"packages": find_packages(include=['pdfmajor*']),
|
||||||
"install_requires": [
|
"install_requires": [
|
||||||
'pycryptodome',
|
'pycryptodome',
|
||||||
@@ -46,8 +46,9 @@ with open('README.md') as readme_file:
|
|||||||
# ==============
|
# ==============
|
||||||
# Update __init__.py
|
# 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_pdfmajor__init___(SETUP["version"], SETUP["long_description"])
|
||||||
|
update_current_version_lock(SETUP["version"])
|
||||||
|
|
||||||
# ==============
|
# ==============
|
||||||
# Run Setup
|
# Run Setup
|
||||||
|
|||||||
Reference in new issue
Block a user