forked from pankaj28843/xamcheck-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
60 lines (50 loc) · 1.53 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
import os
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
class NoseTestCommand(TestCommand):
# Inspired by the example at https://pytest.org/latest/goodpractises.html
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# Run nose ensuring that argv simulates running nosetests directly
import nose
nose.run_exit(argv=['nosetests'])
TESTS_REQUIRE = [
'coverage',
'nose',
]
setup(
name="xamcheck_utils",
version="0.0.6",
author="Pankaj Singh",
author_email="[email protected]",
description=("Utility functions used in python projects of Xamcheck."),
license = "BSD",
keywords = "xamcheck utility",
url = "https://github.com/psjinx/xamcheck-utils",
long_description=read('README.md'),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: OSI Approved :: BSD License",
],
packages=find_packages('src'),
package_dir={'': 'src'},
namespace_packages=['xamcheck_utils'],
extras_require=dict(
test=TESTS_REQUIRE,
),
install_requires=[
'Django',
'setuptools',
],
cmdclass={'test': NoseTestCommand},
tests_require=TESTS_REQUIRE,
test_suite = "nose.collector",
include_package_data=True,
zip_safe=False,
)