Browse Source

Merge branch 'master' into coding/typing_and_pep8

Bastien Sevajol 7 years ago
parent
commit
5fdf00255e
4 changed files with 34 additions and 0 deletions
  1. 3 0
      .coveragerc
  2. 18 0
      .travis.yml
  3. 7 0
      README.txt
  4. 6 0
      setup.py

+ 3 - 0
.coveragerc View File

1
 [run]
1
 [run]
2
 source = tracim
2
 source = tracim
3
 omit = tracim/test*
3
 omit = tracim/test*
4
+
5
+[report]
6
+omit = tests/*

+ 18 - 0
.travis.yml View File

1
+sudo: false
2
+language: python
3
+python:
4
+  - "3.4"
5
+  - "3.5"
6
+  - "3.6"
7
+
8
+install:
9
+  - pip install --upgrade pip setuptools
10
+  - pip install -e ".[testing]"
11
+  - pip install pytest-cov
12
+  - pip install python-coveralls
13
+
14
+script:
15
+ - py.test --cov tracim
16
+
17
+after_success:
18
+  - coveralls

+ 7 - 0
README.txt View File

43
 - Run pep8 checks
43
 - Run pep8 checks
44
 
44
 
45
     pep8 tracim
45
     pep8 tracim
46
+
47
+CI
48
+---
49
+
50
+* Code quality: https://scrutinizer-ci.com/g/tracim/tracim_backend/
51
+* Test validation: https://travis-ci.org/tracim/tracim_backend
52
+* Code coverage: https://coveralls.io/github/tracim/tracim_backend

+ 6 - 0
setup.py View File

1
 import os
1
 import os
2
 
2
 
3
+import sys
3
 from setuptools import setup, find_packages
4
 from setuptools import setup, find_packages
4
 
5
 
5
 here = os.path.abspath(os.path.dirname(__file__))
6
 here = os.path.abspath(os.path.dirname(__file__))
33
     'mypy',
34
     'mypy',
34
 ]
35
 ]
35
 
36
 
37
+# Python version adaptations
38
+if sys.version_info < (3, 5):
39
+    requires.append('typing')
40
+
41
+
36
 setup(
42
 setup(
37
     name='tracim',
43
     name='tracim',
38
     version='0.0',
44
     version='0.0',