Skip to content

Commit ca5667f

Browse files
committed
🤝 sychronize with pypi-mobans
1 parent 31151ec commit ca5667f

File tree

8 files changed

+15
-9
lines changed

8 files changed

+15
-9
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -248,4 +248,7 @@ $RECYCLE.BIN/
248248
# Windows shortcuts
249249
*.lnk
250250

251+
# remove moban hash dictionary
252+
.moban.hashes
253+
251254
.idea

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ stages:
2929
env:
3030
- MINREQ=0
3131
stage: moban
32-
install: pip install moban>=0.0.4 gitfs2 pypifs
32+
install: pip install moban gitfs2 pypifs moban-jinja2-github moban-ansible
3333
script:
3434
- moban
3535
- git diff --exit-code

Makefile

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ test: lint
66
install_test:
77
pip install -r tests/requirements.txt
88

9-
git-diff-check:
10-
git diff --exit-code
11-
129
lint:
1310
bash lint.sh
1411

README.rst

+6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ snapshot-selenium
1616
.. image:: https://img.shields.io/github/stars/pyecharts/snapshot-selenium.svg?style=social&maxAge=3600&label=Star
1717
:target: https://github.com/pyecharts/snapshot-selenium/stargazers
1818

19+
.. image:: https://img.shields.io/static/v1?label=continuous%20templating&message=%E6%A8%A1%E7%89%88%E6%9B%B4%E6%96%B0&color=blue&style=flat-square
20+
:target: https://moban.readthedocs.io/en/latest/#at-scale-continous-templating-for-open-source-projects
21+
22+
.. image:: https://img.shields.io/static/v1?label=coding%20style&message=black&color=black&style=flat-square
23+
:target: https://github.com/psf/black
24+
1925

2026

2127
Installation

format.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
isort -y $(find snapshot_selenium -name "*.py"|xargs echo) $(find tests -name "*.py"|xargs echo)
1+
isort $(find snapshot_selenium -name "*.py"|xargs echo) $(find tests -name "*.py"|xargs echo)
22
black -l 79 snapshot_selenium
33
black -l 79 tests

lint.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
pip install flake8
2-
flake8 . --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long
3-
python setup.py checkdocs
2+
flake8 --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long . && python setup.py checkdocs

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,14 @@
7070
}
7171
# You do not need to read beyond this line
7272
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(sys.executable)
73+
HERE = os.path.abspath(os.path.dirname(__file__))
74+
7375
GS_COMMAND = ("gs snapshot-selenium v0.0.2 " +
7476
"Find 0.0.2 in changelog for more details")
7577
NO_GS_MESSAGE = ("Automatic github release is disabled. " +
7678
"Please install gease to enable it.")
7779
UPLOAD_FAILED_MSG = (
7880
'Upload failed. please run "%s" yourself.' % PUBLISH_COMMAND)
79-
HERE = os.path.abspath(os.path.dirname(__file__))
8081

8182

8283
class PublishCommand(Command):
@@ -122,7 +123,6 @@ def run(self):
122123
"publish": PublishCommand
123124
})
124125

125-
126126
def has_gease():
127127
"""
128128
test if github release command is installed

tests/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ isort
88
collective.checkdocs
99
pygments
1010
moban
11+
moban_jinja2_github

0 commit comments

Comments
 (0)