forked from scikit-build/scikit-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·71 lines (62 loc) · 2.29 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import versioneer
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst', 'r') as fp:
readme = fp.read()
with open('HISTORY.rst', 'r') as fp:
history = fp.read().replace('.. :changelog:', '')
with open('requirements.txt', 'r') as fp:
requirements = list(filter(bool, (line.strip() for line in fp)))
with open('requirements-dev.txt', 'r') as fp:
dev_requirements = list(filter(bool, (line.strip() for line in fp)))
# Require pytest-runner only when running tests
pytest_runner = (['pytest-runner>=2.9']
if any(arg in sys.argv for arg in ('pytest', 'test'))
else [])
setup_requires = pytest_runner
setup(
name='scikit-build',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='Improved build system generator for Python C/C++/Fortran/Cython extensions',
long_description_content_type='text/x-rst; charset=UTF-8',
long_description=readme + '\n\n' + history,
author='The scikit-build team',
author_email='[email protected]',
url='https://github.com/scikit-build/scikit-build',
packages=[
'skbuild',
'skbuild.command',
'skbuild.platform_specifics',
'skbuild.utils'
],
package_dir={'skbuild': 'skbuild',
'skbuild.platform_specifics': 'skbuild/platform_specifics',
'skbuild.command': 'skbuild/command'},
package_data={'skbuild': ['resources/cmake/*.cmake']},
include_package_data=True,
install_requires=requirements,
license="MIT",
zip_safe=False,
keywords='scikit-build',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
tests_require=dev_requirements,
setup_requires=setup_requires
)