-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathsetup.py
executable file
·68 lines (55 loc) · 1.86 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as fp:
README = fp.read()
with open(os.path.join(here, 'CHANGES.txt')) as fp:
CHANGES = fp.read()
requires = ['pyramid>=1.4', 'webassets>=0.8', 'zope.interface', 'six>=1.4.1']
extras_require = {
'bundles-yaml': 'PyYAML>=3.10',
}
class PyTest(TestCommand):
user_options = [
('cov', None, "measure coverage")
]
def initialize_options(self):
TestCommand.initialize_options(self)
self.cov = None
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['pyramid_webassets/tests']
if self.cov:
self.test_args += ['--cov', 'pyramid_webassets']
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(name='pyramid_webassets',
version='0.10',
description='pyramid_webassets',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
"Framework :: Pylons",
"License :: OSI Approved :: MIT License",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='John Anderson',
author_email='[email protected]',
url='http://github.com/sontek/pyramid_webassets',
keywords='web wsgi bfg pylons pyramid',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
test_suite='pyramid_webassets',
install_requires=requires,
extras_require=extras_require,
tests_require=['pytest', 'pytest-cov'],
cmdclass={'test': PyTest},
)