Skip to content

Commit 839a51e

Browse files
chfwchenjiandongx
authored andcommitted
Mobanise + version pump (#2)
* 📚 update static information * ✨ get make format command so that all repos are in line * 🔥 remove testing documentation * 🔨 code reformatting * ✨ append more keywords * 🥚 🎡 release 0.0.2 * ✨ update gitignore * ✨ update global gitignore rule set * Update: setup.py still could be `black` * ✨ ignore JetBrians. No need to do upstreaming, moban has global git ignore settings and gitignore repo has gitignore per language and independently has gitignore per IDE so we can mix-n-match * 🐛 update formatter * 🔨 merge changelog.yml with snaoshot-selenium.yml * 📚 update setup meta * 🔥 just ignore JetBrains * ✨ 3.7 included * ✨ 3.8 included * Update: black code
1 parent 31b3c08 commit 839a51e

18 files changed

+243
-338
lines changed

.gitignore

Lines changed: 75 additions & 293 deletions
Large diffs are not rendered by default.

.moban.d/custom_gitignore.jj2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% extends 'gitignore.jj2' %}
2+
3+
{%block extra %}
4+
.idea
5+
{%endblock%}

.moban.d/custom_setup.py.jj2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
{% extends "setup.py.jj2" %}
2+
3+
{%block compat_block%}
4+
{%endblock%}

.moban.d/custom_travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% extends "travis.yml.jj2" %}
2+
3+
{%block custom_python_versions%}
4+
python:
5+
- 3.8-dev
6+
- 3.7
7+
- 3.6
8+
- 3.5
9+
{%endblock%}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{% extends "tests/requirements.txt.jj2" %}
22

33
{%block extras %}
4+
moban
5+
black;python_version>="3.6"
6+
isort;python_version>="3.6"
47
{%endblock%}

.moban.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
requires:
2-
- pypi-mobans-pkg==0.0.4
2+
- type: git
3+
url: https://github.com/moremoban/pypi-mobans
4+
submodule: true
35
configuration:
46
template_dir:
5-
- "pypi-mobans-pkg:templates"
7+
- "pypi-mobans:templates"
68
- ".moban.d"
79
configuration: snapshot-selenium.yml
810
targets:
911
- README.rst: CUSTOM_README.rst.jj2
1012
- setup.py: custom_setup.py.jj2
1113
- requirements.txt: requirements.txt.jj2
1214
- "tests/requirements.txt": "tests/custom_requirements.txt.jj2"
13-
- "docs/source/conf.py": "docs/conf.py_t"
1415
- test.sh: test.script.jj2
1516
- "snapshot_selenium/_version.py": "_version.py.jj2"
16-
- .gitignore: gitignore.jj2
17-
- .travis.yml: travis.yml.jj2
18-
- Pipfile: Pipfile.jj2
17+
- .gitignore: custom_gitignore.jj2
18+
- .travis.yml: custom_travis.yml
19+
- Pipfile: Pipfile.jj2
20+
- output: CHANGELOG.rst
21+
template: CHANGELOG.rst.jj2
22+
- lint.sh: lint.script.jj2

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
sudo: false
23
dist: xenial
34
language: python
@@ -8,6 +9,33 @@ python:
89
- 3.7
910
- 3.6
1011
- 3.5
12+
13+
stages:
14+
- test
15+
- lint
16+
17+
.disable_global: &disable_global
18+
before_install: false
19+
install: true
20+
before_script: false
21+
after_success: false
22+
after_failure: false
23+
24+
.lint: &lint
25+
<<: *disable_global
26+
python: 3.6
27+
stage: lint
28+
install: pip install flake8
29+
script: flake8
30+
31+
jobs:
32+
include:
33+
- *lint
34+
35+
stage: test
36+
37+
script: make test
38+
1139
before_install:
1240
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
1341
mv min_requirements.txt requirements.txt ;

CHANGELOG.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Change log
2+
================================================================================
3+
4+
0.0.2 - 01.04.2019
5+
--------------------------------------------------------------------------------
6+
7+
update
8+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9+
10+
#. it will take an external browser driver and render images
11+
12+
0.0.1 - 09.04.2019
13+
--------------------------------------------------------------------------------
14+
15+
first release
16+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17+
18+
#. use selenium driver for rendering pyecharts output as image

Makefile

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
all: test
2-
3-
test:
4-
bash test.sh
1+
all: test
2+
3+
test:
4+
bash test.sh
5+
6+
format:
7+
isort -rc .
8+
black -l 79 snapshot_selenium
9+
black -l 79 setup.py
10+
black -l 79 tests
11+
12+
13+
lint:
14+
make lint

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = 'pypi'
77
python_version= '3.6'
88

99
[packages]
10-
selenium = "*"
10+
selenium = "*"
1111

1212
[dev-packages]
1313
nose = "*"

0 commit comments

Comments
 (0)