bump package version

This commit is contained in:
Ciro Santilli
2020-03-18 00:00:17 +00:00
parent 9cb3f72538
commit e051013e9a
6 changed files with 15 additions and 14 deletions

View File

@@ -4911,7 +4911,7 @@ china-dictatorship > README.html
This would force China to also block package managers to block this repo. This would force China to also block package managers to block this repo.
We also managed to upload a Python PyPi package at: https://pypi.org/project/china-dictatorship/ Usage will be as: We also managed to upload a Python PyPi package at: https://pypi.org/project/china-dictatorship/ Is as:
.... ....
python3 -m pip install --user --upgrade china-dictatorship python3 -m pip install --user --upgrade china-dictatorship

View File

@@ -1,11 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/python3
try: import china_dictatorship
import importlib.resources as importlib_resources print(china_dictatorship.get_data(), end='')
except ImportError:
# In PY<3.7 fall-back to backported `importlib_resources`.
import importlib_resources
with importlib_resources.path('china_dictatorship', 'README.html') as readme_html_path:
with open(readme_html_path) as f:
print(f.read())

View File

@@ -0,0 +1,8 @@
try:
import importlib.resources as importlib_resources
except ImportError:
# In PY<3.7 fall-back to backported `importlib_resources`.
import importlib_resources
def get_data():
return importlib_resources.read_text(__name__, 'README.html')

View File

@@ -21,5 +21,5 @@
"scripts": { "scripts": {
"prepublishOnly": "cp README.adoc README;make" "prepublishOnly": "cp README.adoc README;make"
}, },
"version": "0.0.51" "version": "0.0.52"
} }

View File

@@ -13,9 +13,9 @@ npm publish
git add package.json git add package.json
# Python package. # Python package.
# Initial one time setup.
./push-mirrors-bump-setup-py-version ./push-mirrors-bump-setup-py-version
python -m pip install --user setuptools wheel twine # Initial one time setup.
#python3 -m pip install --user setuptools wheel twine
cp README.adoc README.html china_dictatorship cp README.adoc README.html china_dictatorship
python setup.py sdist bdist_wheel python setup.py sdist bdist_wheel
# Asks for username and password every time, unless you setup ~/.pypirc. # Asks for username and password every time, unless you setup ~/.pypirc.

View File

@@ -16,7 +16,7 @@ with open(path.join(this_directory, 'README.adoc')) as f:
setup( setup(
name='china-dictatorship', name='china-dictatorship',
version='0.0.51', version='0.0.52',
description='2018新疆改造中心1989六四事件1999法轮功 2019 996.ICU, 2018包子露宪2015 710律师劫2015巴拿马文件 邓家贵2017低端人口2008西藏骚乱', description='2018新疆改造中心1989六四事件1999法轮功 2019 996.ICU, 2018包子露宪2015 710律师劫2015巴拿马文件 邓家贵2017低端人口2008西藏骚乱',
long_description=long_description, long_description=long_description,
# Otherwise upload fails with: "The description failed to render in the default format of reStructuredText." # Otherwise upload fails with: "The description failed to render in the default format of reStructuredText."