bump package version

This commit is contained in:
2020-03-18 00:00:17 +00:00
parent 9cb3f72538
commit e051013e9a
6 changed files with 15 additions and 14 deletions
+1 -1
View File
@@ -4911,7 +4911,7 @@ china-dictatorship > README.html
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
+2 -9
View File
@@ -1,11 +1,4 @@
#!/usr/bin/python3
try:
import importlib.resources as importlib_resources
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())
import china_dictatorship
print(china_dictatorship.get_data(), end='')
+8
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')
+1 -1
View File
@@ -21,5 +21,5 @@
"scripts": {
"prepublishOnly": "cp README.adoc README;make"
},
"version": "0.0.51"
"version": "0.0.52"
}
+2 -2
View File
@@ -13,9 +13,9 @@ npm publish
git add package.json
# Python package.
# Initial one time setup.
./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
python setup.py sdist bdist_wheel
# Asks for username and password every time, unless you setup ~/.pypirc.
+1 -1
View File
@@ -16,7 +16,7 @@ with open(path.join(this_directory, 'README.adoc')) as f:
setup(
name='china-dictatorship',
version='0.0.51',
version='0.0.52',
description='2018新疆改造中心,1989六四事件,1999法轮功 2019 996.ICU, 2018包子露宪,2015 710律师劫,2015巴拿马文件 邓家贵,2017低端人口,2008西藏骚乱',
long_description=long_description,
# Otherwise upload fails with: "The description failed to render in the default format of reStructuredText."