-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
85 lines (73 loc) · 2.39 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import versioneer
from os.path import realpath, dirname, relpath, join
from setuptools import setup
ROOT = dirname(realpath(__file__))
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'pytest>=5.0.0',
'pyyaml',
]
test_requirements = [
'pytest>=5.0.0',
]
extras_require = {
'tests': test_requirements,
}
package_data = []
scripts = []
def package_path(path, filters=()):
if not os.path.exists(path):
raise RuntimeError("packaging non-existent path: %s" % path)
elif os.path.isfile(path):
package_data.append(relpath(path, 'pytest_ngsfixtures'))
else:
for path, dirs, files in os.walk(path):
path = relpath(path, 'pytest_ngsfixtures')
for f in files:
if not filters or f.endswith(filters):
package_data.append(join(path, f))
package_path(join(ROOT, "pytest_ngsfixtures", "data"))
setup(
name='pytest-ngsfixtures',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="pytest ngs fixtures",
long_description=readme + '\n\n' + history,
author="Per Unneberg",
author_email='per.unneberg@scilifelab.se',
url='https://github.com/percyfal/pytest-ngsfixtures',
packages=[
'pytest_ngsfixtures',
'pytest_ngsfixtures.wm',
'pytest_ngsfixtures.tests',
],
package_data={'pytest_ngsfixtures/data': package_data},
include_package_data=True,
license="GNU General Public License v3",
zip_safe=False,
keywords=['pytest', 'ngs'],
classifiers=[
'Framework :: Pytest',
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Utilities',
],
test_suite='tests',
install_requires=requirements,
setup_requires=['pytest-runner'],
tests_require=test_requirements,
entry_points={'pytest11': ['pytest_ngsfixtures = pytest_ngsfixtures.plugin']},
scripts=scripts,
)