Skip to content

Commit 743e9d1

Browse files
committed
Add support for #18 exporting diff files
+ Redo tests using tox + Redo docs + Apply my cookie cutter template
1 parent 8ed8685 commit 743e9d1

35 files changed

+1059
-380
lines changed

.editorconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
charset = utf-8
11+
end_of_line = lf
12+
13+
[*.bat]
14+
indent_style = tab
15+
end_of_line = crlf
16+
17+
[LICENSE]
18+
insert_final_newline = false
19+
20+
[Makefile]
21+
indent_style = tab
+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Python application
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- name: Set up Python 3.7
11+
uses: actions/setup-python@v1
12+
with:
13+
python-version: 3.8
14+
- name: Install dependencies
15+
run: |
16+
python -m pip install --upgrade pip
17+
pip install -r requirements_dev.txt
18+
pip install .
19+
- name: Check endpoint
20+
run: |
21+
which vro-diff
22+
23+
test:
24+
runs-on: ${{ matrix.os }}
25+
strategy:
26+
max-parallel: 4
27+
matrix:
28+
os:
29+
- ubuntu-latest
30+
- macos-latest
31+
- windows-2016
32+
- windows-latest
33+
python-version: [3.5, 3.6, 3.7, 3.8]
34+
steps:
35+
- uses: actions/checkout@v1
36+
- name: Set up Python ${{ matrix.python-version }}
37+
uses: actions/setup-python@v1
38+
with:
39+
python-version: ${{ matrix.python-version }}
40+
- name: Install dependencies
41+
run: |
42+
python -m pip install --upgrade pip
43+
pip install -r requirements_dev.txt
44+
pip install tox-gh-actions
45+
pip install .
46+
- name: Test with tox
47+
env:
48+
PYTHONIOENCODING: utf-8
49+
run: tox
50+
51+
documentation:
52+
runs-on: ubuntu-latest
53+
steps:
54+
- uses: actions/checkout@v1
55+
- name: Set up Python 3.8
56+
uses: actions/setup-python@v1
57+
with:
58+
python-version: 3.8
59+
- name: Install dependencies
60+
run: |
61+
python -m pip install --upgrade pip
62+
pip install -r requirements_dev.txt
63+
pip install .
64+
- name: Build sphinx documentation
65+
run: |
66+
make docs

.github/workflows/pythonapp.yml

-29
This file was deleted.

.gitignore

+101-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,105 @@
1+
# Byte-compiled / optimized / DLL files
12
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
214
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
324
*.egg-info/
4-
*.pyc
5-
.vscode
6-
build/
7-
docs/_build/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
.pytest_cache/
49+
50+
# Translations
51+
*.mo
52+
*.pot
53+
54+
# Django stuff:
855
*.log
56+
local_settings.py
57+
58+
# Flask stuff:
59+
instance/
60+
.webassets-cache
61+
62+
# Scrapy stuff:
63+
.scrapy
64+
65+
# Sphinx documentation
66+
docs/_build/
67+
68+
# PyBuilder
69+
target/
70+
71+
# Jupyter Notebook
72+
.ipynb_checkpoints
73+
74+
# pyenv
75+
.python-version
76+
77+
# celery beat schedule file
78+
celerybeat-schedule
79+
80+
# SageMath parsed files
81+
*.sage.py
82+
83+
# dotenv
84+
.env
85+
86+
# virtualenv
87+
.venv
88+
venv/
89+
ENV/
90+
91+
# Spyder project settings
92+
.spyderproject
93+
.spyproject
94+
95+
# Rope project settings
96+
.ropeproject
97+
98+
# mkdocs documentation
99+
/site
100+
101+
# mypy
102+
.mypy_cache/
103+
104+
# IDE
105+
.vscode/

.travis.yml

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
1-
sudo: false
2-
dist: xenial
1+
# Config file for automatic testing at travis-ci.org
32
language: python
43
cache: pip
5-
matrix:
6-
allow_failures:
7-
- name: Python 3.7 on Windows
8-
fast_finish: true
94

10-
install:
11-
- pip install .
5+
# Command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
6+
install: pip install -U tox-travis
127

13-
script:
14-
- vro-diff --help
15-
- vro-diff --legend ./tests/data/package_v1.0.package ./tests/data/package_v1.1.package
16-
- vro-diff --test ./tests/data/package_v1.0.package ./tests/data/package_v1.1.package || if [[ $? -eq 3 ]]; then true; else false; fi
17-
- vro-diff ./tests/data/package_v1.0.package ./tests/data/package_v1.1.package -a # ASCII only
18-
- vro-diff ./tests/data/package_v1.0.package ./tests/data/package_v1.1.package -b # Uncolorized
8+
# test script
9+
script: tox
1910

2011
jobs:
2112
include:
22-
- python: 3.4
2313
- python: 3.5
14+
env: TOXENV=py35
2415
- python: 3.6
16+
env: TOXENV=py36
2517
- python: 3.7
26-
dist: bionic
27-
- python: 3.8-dev
28-
dist: bionic
18+
env: TOXENV=py37
19+
- python: 3.8
20+
env: TOXENV=py38
21+
- python: 3.8
22+
env: TOXENV=flake8
23+
- python: 3.8
24+
env: TOXENV=build
25+
- python: 3.8
26+
env: TOXENV=readme
2927
- name: Python 3.x on Windows
3028
os: windows
3129
language: bash
@@ -34,6 +32,7 @@ jobs:
3432
- export PATH="/c/Python:/c/Python/Scripts:$PATH"
3533
env:
3634
- PYTHONIOENCODING=utf-8
35+
- TOXENV=py38
3736
- name: Python 3.7 on macOS
3837
os: osx
3938
osx_image: xcode10.2
@@ -46,10 +45,11 @@ jobs:
4645
python: 3.7
4746
install:
4847
- pip install Pygments mock sphinx sphinx-rtd-theme recommonmark
49-
- pip install -U -r docs/requirements.txt
48+
- pip install -U -r requirements_dev.txt
5049
- pip install .
5150
script:
52-
- cd docs/ && make html
51+
- make docs
52+
env: TOXENV=py37
5353
- stage: Release & Deploy
5454
python: 3.7
5555
script: true

AUTHORS.rst

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=======
2+
Credits
3+
=======
4+
5+
Development Lead
6+
----------------
7+
8+
* Ludovic Rivallain <[email protected]>
9+
10+
Contributors
11+
------------
12+
13+
* Timo Sugliani: @tsugliani
14+
15+
None yet. Why not be the first?

0 commit comments

Comments
 (0)