python package sketch
This commit is contained in:
9
.gitignore
vendored
9
.gitignore
vendored
@@ -1,2 +1,9 @@
|
||||
/README
|
||||
/README.html
|
||||
|
||||
# NPM README
|
||||
/README
|
||||
|
||||
# Python distribution/packaging.
|
||||
/*.egg-info/
|
||||
/build/
|
||||
/dist/
|
||||
|
||||
1
MANIFEST.in
Normal file
1
MANIFEST.in
Normal file
@@ -0,0 +1 @@
|
||||
include README.adoc
|
||||
11
README.adoc
11
README.adoc
@@ -4909,7 +4909,16 @@ npm i -g china-dictatorship
|
||||
china-dictatorship > README.html
|
||||
....
|
||||
|
||||
This would force China to also block package managers to block this repo. TODO: create Ubuntu PPA and Python PyPi versions as well.
|
||||
This would force China to also block package managers to block this repo.
|
||||
|
||||
We managed to upload a Python PyPi package at: https://pypi.org/project/china-dictatorship/ but TODO needs implementing now. Usage will be as:
|
||||
|
||||
....
|
||||
python -m pip install china-dictatorship
|
||||
china-dictatorship.py > README.html
|
||||
....
|
||||
|
||||
TODO: create an Ubuntu PPA as well.
|
||||
|
||||
Update all mirrors with: link:push-mirrors[]
|
||||
|
||||
|
||||
1
china-dictatorship.py
Executable file
1
china-dictatorship.py
Executable file
@@ -0,0 +1 @@
|
||||
#!/usr/bin/env python
|
||||
0
china_dictatorship/__init__.py
Normal file
0
china_dictatorship/__init__.py
Normal file
15
push-mirrors
15
push-mirrors
@@ -1,8 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# https://github.com/cirosantilli/china-dictatorship#mirrors
|
||||
|
||||
set -eux
|
||||
|
||||
# NPM package.
|
||||
./push-mirrors-bump-package-json-version
|
||||
git add package.json
|
||||
git commit -m 'bump package.json'
|
||||
git push
|
||||
npm publish
|
||||
|
||||
## Python package.
|
||||
## Initial one time setup.
|
||||
##python -m pip install --user setuptools wheel twine
|
||||
#python setup.py sdist bdist_wheel
|
||||
## Asks for password every time.
|
||||
#twine upload dist/*
|
||||
#rm -rf build dist *.egg-info
|
||||
|
||||
git push git@gitlab.com:cirosantilli/china-dictatorship.git
|
||||
git push git@bitbucket.org:cirosantilli/china-dictatorship.git
|
||||
|
||||
17
setup.py
Normal file
17
setup.py
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
setup(
|
||||
name='china-dictatorship',
|
||||
version='0.0.1',
|
||||
description='2018新疆改造中心,1989六四事件,1999法轮功 ,2019 996.ICU, 2018包子露宪,2015 710律师劫,2015巴拿马文件 邓家贵,2017低端人口,2008西藏骚乱',
|
||||
long_description='2018新疆改造中心,1989六四事件,1999法轮功 ,2019 996.ICU, 2018包子露宪,2015 710律师劫,2015巴拿马文件 邓家贵,2017低端人口,2008西藏骚乱',
|
||||
url='https://github.com/cirosantilli/china-dictatorship',
|
||||
author='Ciro Santilli',
|
||||
author_email='ciro.santilli.contact@gmail.com',
|
||||
packages=find_packages(),
|
||||
include_package_data=True,
|
||||
scripts=['china-dictatorship.py'],
|
||||
)
|
||||
Reference in New Issue
Block a user