Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[run]
branch = True
source = js.smoke

[report]
precision = 2

[html]
directory = coverage-report

[paths]
source =
js/smoke
.tox/*/lib/python*/site-packages/js/smoke
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: python
dist: xenial
python:
- 2.7
- 3.8
install: pip install tox-travis coveralls
script: tox
after_success:
- coverage combine
- coveralls
cache:
pip: true
directories:
- eggs/
notifications:
webhooks:
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.
2 changes: 0 additions & 2 deletions js/jquery_datatables_plugins/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from fanstatic import Library, Resource
from js.jquery import jquery
from js.jquery_datatables import jquery_datatables_js

library = Library('jquery_datatables_plugins', 'resources')
Expand All @@ -8,4 +7,3 @@
library, 'columnfilter/media/js/jquery.dataTables.columnFilter.js',
depends=[jquery_datatables_js],
minified='columnfilter/media/js/jquery.dataTables.columnFilter.min.js')

23 changes: 14 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,20 @@

version = '1.9.4-1.dev0'


def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
"""Read file content."""
with open(os.path.join(os.path.dirname(__file__), *rnames))as f:
return f.read()


long_description = (
read('README.txt')
read('README.rst')
+ '\n' +
read('js', 'jquery_datatables_plugins',
'test_jquery_datatables_plugins.txt')
'test_jquery_datatables_plugins.rst')
+ '\n' +
read('CHANGES.txt'))
read('CHANGES.rst'))

setup(
name='js.jquery_datatables_plugins',
Expand All @@ -31,18 +35,19 @@ def read(*rnames):
author='Danie. Havlik',
author_email='dh@gocept.com',
license='BSD',
packages=find_packages(),namespace_packages=['js'],
packages=find_packages(),
namespace_packages=['js'],
include_package_data=True,
zip_safe=False,
install_requires=[
'fanstatic',
'setuptools',
'js.jquery',
'js.jquery_datatables'
],
],
entry_points={
'fanstatic.libraries': [
'jquery_datatables_plugins = js.jquery_datatables_plugins:library',
],
},
)
],
},
)
12 changes: 12 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[tox]
envlist =
py27,
py38,

[testenv]
deps =
py27: pytest < 5.0
!py27: pytest
pytest-cov
commands = py.test --doctest-glob='*.rst' --cov js {posargs}
usedevelop = True