bump package version
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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())
|
|
||||||
|
|||||||
@@ -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')
|
||||||
|
|||||||
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -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."
|
||||||
|
|||||||
Reference in New Issue
Block a user