Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
china-dictatorship
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ciro DURAN SANTILLI
china-dictatorship
Commits
23d0ccb9
Commit
23d0ccb9
authored
4 years ago
by
Ciro Santilli
Browse files
Options
Downloads
Patches
Plain Diff
OK, Python package really working, omg
parent
f2349dcf
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
MANIFEST.in
+7
-0
7 additions, 0 deletions
MANIFEST.in
china-dictatorship.py
+8
-4
8 additions, 4 deletions
china-dictatorship.py
package.json
+1
-1
1 addition, 1 deletion
package.json
setup.py
+1
-3
1 addition, 3 deletions
setup.py
with
17 additions
and
8 deletions
MANIFEST.in
0 → 100644
+
7
−
0
View file @
23d0ccb9
# Or else pip install cannot find README.adoc on the setup.py
include README.adoc
include README.html
# These actually add the file.
include china_dictatorship/README.adoc
include china_dictatorship/README.html
This diff is collapsed.
Click to expand it.
china-dictatorship.py
+
8
−
4
View file @
23d0ccb9
#!/usr/bin/python3
import
pkg_resources
try
:
import
importlib.resources
as
importlib_resources
except
ImportError
:
# In PY<3.7 fall-back to backported `importlib_resources`.
import
importlib_resources
readme_html_path
=
pkg_resources
.
resource_filename
(
'
china_dictatorship
'
,
'
README.html
'
)
with
open
(
readme_html_path
)
as
f
:
print
(
f
.
read
())
with
importlib_resources
.
path
(
'
china_dictatorship
'
,
'
README.html
'
)
as
readme_html_path
:
with
open
(
readme_html_path
)
as
f
:
print
(
f
.
read
())
This diff is collapsed.
Click to expand it.
package.json
+
1
−
1
View file @
23d0ccb9
...
...
@@ -21,5 +21,5 @@
"scripts"
:
{
"prepublishOnly"
:
"cp README.adoc README;make"
},
"version"
:
"0.0.
34
"
"version"
:
"0.0.
50
"
}
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
3
View file @
23d0ccb9
...
...
@@ -16,17 +16,15 @@ with open(path.join(this_directory, 'README.adoc')) as f:
setup
(
name
=
'
china-dictatorship
'
,
version
=
'
0.0.
34
'
,
version
=
'
0.0.
50
'
,
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."
long_description_content_type
=
'
text/plain
'
,
# 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
'
],
package_data
=
{
'
china_dictatorship
'
:
[
'
README.adoc
'
,
'
README.html
'
]},
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment