-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤝 synchronize with latest pypi-mobans updates
- Loading branch information
Showing
11 changed files
with
116 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
{% extends 'README.rst.jj2' %} | ||
|
||
{% block documentation_link %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
all: test | ||
|
||
test: | ||
test: lint | ||
bash test.sh | ||
|
||
format: | ||
isort -rc . | ||
black -l 79 . | ||
install_test: | ||
pip install -r tests/requirements.txt | ||
|
||
git-diff-check: | ||
git diff --exit-code | ||
|
||
lint: | ||
make lint | ||
bash lint.sh | ||
|
||
format: | ||
bash format.sh | ||
|
||
git-diff-check: | ||
git diff --exit-code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
isort -y $(find snapshot_phantomjs -name "*.py"|xargs echo) $(find tests -name "*.py"|xargs echo) | ||
black -l 79 snapshot_phantomjs | ||
black -l 79 tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
flake8 . --exclude=.moban.d,docs --builtins=unicode,xrange,long | ||
pip install flake8 | ||
flake8 . --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long | ||
python setup.py checkdocs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
#!/usr/bin/env python3 | ||
|
||
# Template by pypi-mobans | ||
""" | ||
Template by pypi-mobans | ||
""" | ||
|
||
import os | ||
import sys | ||
import codecs | ||
import locale | ||
import os | ||
import platform | ||
import sys | ||
from shutil import rmtree | ||
|
||
from setuptools import Command, find_packages, setup | ||
from setuptools import Command, setup, find_packages | ||
|
||
|
||
# Work around mbcs bug in distutils. | ||
# http://bugs.python.org/issue10945 | ||
|
@@ -28,44 +32,48 @@ | |
VERSION = "0.0.2" | ||
EMAIL = "[email protected]" | ||
LICENSE = "MIT" | ||
DESCRIPTION = "Render pyecharts as image via phantomjs" | ||
DESCRIPTION = ( | ||
"Render pyecharts as image via phantomjs" | ||
) | ||
URL = "https://github.com/pyecharts/snapshot-phantomjs" | ||
DOWNLOAD_URL = "%s/archive/0.0.2.tar.gz" % URL | ||
FILES = ["README.rst", "CHANGELOG.rst"] | ||
KEYWORDS = ["python", "pyecharts", "chart"] | ||
KEYWORDS = [ | ||
"python", | ||
"pyecharts", | ||
"chart", | ||
] | ||
|
||
CLASSIFIERS = [ | ||
"Topic :: Software Development :: Libraries", | ||
"Programming Language :: Python", | ||
"Intended Audience :: Developers", | ||
|
||
"Programming Language :: Python :: 3 :: Only", | ||
|
||
|
||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
|
||
] | ||
|
||
INSTALL_REQUIRES = [] | ||
SETUP_COMMANDS = {} | ||
|
||
INSTALL_REQUIRES = [ | ||
] | ||
SETUP_COMMANDS = {} | ||
|
||
PACKAGES = find_packages(exclude=["ez_setup", "examples", "tests"]) | ||
PACKAGES = find_packages(exclude=["ez_setup", "examples", "tests", "tests.*"]) | ||
EXTRAS_REQUIRE = {} | ||
# You do not need to read beyond this line | ||
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format( | ||
sys.executable | ||
) | ||
GS_COMMAND = ( | ||
"gs snapshot-phantomjs v0.0.2 " | ||
+ "Find 0.0.2 in changelog for more details" | ||
) | ||
NO_GS_MESSAGE = ( | ||
"Automatic github release is disabled. " | ||
+ "Please install gease to enable it." | ||
) | ||
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(sys.executable) | ||
GS_COMMAND = ("gs snapshot-phantomjs v0.0.2 " + | ||
"Find 0.0.2 in changelog for more details") | ||
NO_GS_MESSAGE = ("Automatic github release is disabled. " + | ||
"Please install gease to enable it.") | ||
UPLOAD_FAILED_MSG = ( | ||
'Upload failed. please run "%s" yourself.' % PUBLISH_COMMAND | ||
) | ||
'Upload failed. please run "%s" yourself.' % PUBLISH_COMMAND) | ||
HERE = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
|
||
|
@@ -103,12 +111,14 @@ def run(self): | |
self.status(NO_GS_MESSAGE) | ||
if run_status: | ||
if os.system(PUBLISH_COMMAND) != 0: | ||
self.status(UPLOAD_FAILED_MSG % PUBLISH_COMMAND) | ||
self.status(UPLOAD_FAILED_MSG) | ||
|
||
sys.exit() | ||
|
||
|
||
SETUP_COMMANDS.update({"publish": PublishCommand}) | ||
SETUP_COMMANDS.update({ | ||
"publish": PublishCommand | ||
}) | ||
|
||
|
||
def has_gease(): | ||
|
@@ -119,7 +129,6 @@ def has_gease(): | |
""" | ||
try: | ||
import gease # noqa | ||
|
||
return True | ||
except ImportError: | ||
return False | ||
|
@@ -187,5 +196,5 @@ def filter_out_test_code(file_handle): | |
include_package_data=True, | ||
zip_safe=False, | ||
classifiers=CLASSIFIERS, | ||
cmdclass=SETUP_COMMANDS, | ||
cmdclass=SETUP_COMMANDS | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
nose | ||
mock | ||
mock;python_version<"3" | ||
codecov | ||
coverage | ||
flake8 | ||
black | ||
isort | ||
collective.checkdocs | ||
pygments | ||
moban | ||
black;python_version>="3.6" | ||
isort;python_version>="3.6" |