Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit d113596

Browse files
authored
Merge pull request #1 from gocept/test-travis
Activate travis and coverage.
2 parents 12fa79e + 72194ec commit d113596

File tree

8 files changed

+57
-11
lines changed

8 files changed

+57
-11
lines changed

.coveragerc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[run]
2+
branch = True
3+
source = js.smoke
4+
5+
[report]
6+
precision = 2
7+
8+
[html]
9+
directory = coverage-report
10+
11+
[paths]
12+
source =
13+
js/smoke
14+
.tox/*/lib/python*/site-packages/js/smoke

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: python
2+
dist: xenial
3+
python:
4+
- 2.7
5+
- 3.8
6+
install: pip install tox-travis coveralls
7+
script: tox
8+
after_success:
9+
- coverage combine
10+
- coveralls
11+
cache:
12+
pip: true
13+
directories:
14+
- eggs/
15+
notifications:
16+
webhooks:
17+
secure: RitAJa3um97pEvDgpavZtqALpo1889LLDlZ0lWLGv7sUQ8mPVhPChoF5YOc7HohVxmoLa+wW9xAKS+04RNqBnc3BbnTHw7i1GG34EcBjm9uJl/E8NjHLUDN5bronS7jK37kggvX7TbCVferfXu+C2+ikmx/WX9Sq3sho7KRo2zQquSbfkK8EtIt2FVTlh31pcchqvWfL7PYk4BjzsdWlHRJQYAhNxpoDLvw5a7Se1gx9AbyrgdZ7JoEEIUv4+9EeJr3zB9WQyTBNiYF6/clq+k/Y2kaSmZeTZJlNI0/R/Y2Gz5BFiIU6nbMQQZ7P6Y4GSouzcEewAfvtX1SUEnyRdmebFIBBVUoAKZ6xaK5+pcsVELHYDMqGa+YCVf3lKyXbWUWauAeF6hsXmLsFv1qpyFuC+AKIxF7DEss7mUvZ0kuz2wvPWiUHhQAPvvIJv+LeoaMP09Do4fUdPtBjW3oWwDbXoNWnzfP2JLIK4AIZ1Tv2A687fooSMbi+c+bBXL1ZaawIUPSnuR2TqUrIs4fkyDkv/ZAw6Xf4DBVjLFwiu/y8TbooeGvpf5WZ9/3MRyjqsd9sdJskZWm3rqbzYBUUEltpXeMmf+YcjcIYdS2rlQk5IOTk/5N4Us3TOMpddW2xRiCdYLfoy8wCVXXTmxiTfGbydgtM+lT51InZcTAhhnw=
File renamed without changes.
File renamed without changes.
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from fanstatic import Library, Resource
2-
from js.jquery import jquery
32
from js.jquery_datatables import jquery_datatables_js
43

54
library = Library('jquery_datatables_plugins', 'resources')
@@ -8,4 +7,3 @@
87
library, 'columnfilter/media/js/jquery.dataTables.columnFilter.js',
98
depends=[jquery_datatables_js],
109
minified='columnfilter/media/js/jquery.dataTables.columnFilter.min.js')
11-
File renamed without changes.

setup.py

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,20 @@
1010

1111
version = '1.9.4-1.dev0'
1212

13+
1314
def read(*rnames):
14-
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
15+
"""Read file content."""
16+
with open(os.path.join(os.path.dirname(__file__), *rnames))as f:
17+
return f.read()
18+
1519

1620
long_description = (
17-
read('README.txt')
21+
read('README.rst')
1822
+ '\n' +
1923
read('js', 'jquery_datatables_plugins',
20-
'test_jquery_datatables_plugins.txt')
24+
'test_jquery_datatables_plugins.rst')
2125
+ '\n' +
22-
read('CHANGES.txt'))
26+
read('CHANGES.rst'))
2327

2428
setup(
2529
name='js.jquery_datatables_plugins',
@@ -31,18 +35,19 @@ def read(*rnames):
3135
author='Danie. Havlik',
3236
author_email='dh@gocept.com',
3337
license='BSD',
34-
packages=find_packages(),namespace_packages=['js'],
38+
packages=find_packages(),
39+
namespace_packages=['js'],
3540
include_package_data=True,
3641
zip_safe=False,
3742
install_requires=[
3843
'fanstatic',
3944
'setuptools',
4045
'js.jquery',
4146
'js.jquery_datatables'
42-
],
47+
],
4348
entry_points={
4449
'fanstatic.libraries': [
4550
'jquery_datatables_plugins = js.jquery_datatables_plugins:library',
46-
],
47-
},
48-
)
51+
],
52+
},
53+
)

tox.ini

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[tox]
2+
envlist =
3+
py27,
4+
py38,
5+
6+
[testenv]
7+
deps =
8+
py27: pytest < 5.0
9+
!py27: pytest
10+
pytest-cov
11+
commands = py.test --doctest-glob='*.rst' --cov js {posargs}
12+
usedevelop = True

0 commit comments

Comments
 (0)