Browse Source

bump package version

pull/99/head
Ciro Santilli 1 year ago
parent
commit
e051013e9a
6 changed files with 15 additions and 14 deletions
  1. +1
    -1
      README.adoc
  2. +2
    -9
      china-dictatorship.py
  3. +8
    -0
      china_dictatorship/__init__.py
  4. +1
    -1
      package.json
  5. +2
    -2
      push-mirrors
  6. +1
    -1
      setup.py

+ 1
- 1
README.adoc 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
china-dictatorship.py 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
- 0
china_dictatorship/__init__.py 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
package.json View File

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

+ 2
- 2
push-mirrors 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
setup.py 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."


Loading…
Cancel
Save