python working?!?!

This commit is contained in:
Ciro Santilli
2020-03-18 00:00:13 +00:00
parent 790cf43fb6
commit 3db4f30b55
5 changed files with 3 additions and 7 deletions

View File

@@ -1,2 +0,0 @@
include README.adoc
include README.html

View File

@@ -4918,8 +4918,6 @@ python3 -m pip install --user --upgrade china-dictatorship
china-dictatorship.py > README.html
....
but TODO currently broken because the README.adoc/README.html don't get installed no matter what I try, fucking terrible Python distribution system.
We later found on Google by chance that libraries.io picked it up and rendered the README.adoc nicely as well: https://libraries.io/pypi/china-dictatorship (https://web.archive.org/web/20200318043050/https://libraries.io/pypi/china-dictatorship[archive]). This is why packaging is a good idea.
TODO: create an Ubuntu PPA and Ruby gem as well.

View File

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

View File

@@ -14,8 +14,8 @@ git add package.json
# Python package.
# Initial one time setup.
python -m pip install --user setuptools wheel twine
./push-mirrors-bump-setup-py-version
python -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.

View File

@@ -16,7 +16,7 @@ with open(path.join(this_directory, 'README.adoc')) as f:
setup(
name='china-dictatorship',
version='0.0.28',
version='0.0.33',
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."