forked from ossdev07/cmake-python-distributions
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·79 lines (55 loc) · 2 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
#!/usr/bin/env python
import sys
import versioneer
from distutils.text_file import TextFile
from skbuild import setup
with open('README.rst', 'r') as fp:
readme = fp.read()
with open('HISTORY.rst', 'r') as fp:
history = fp.read().replace('.. :changelog:', '')
def parse_requirements(filename):
with open(filename, 'r') as file:
return TextFile(filename, file).readlines()
requirements = []
dev_requirements = parse_requirements('requirements-dev.txt')
# Require pytest-runner only when running tests
pytest_runner = (['pytest-runner>=2.0,<3dev']
if any(arg in sys.argv for arg in ('pytest', 'test'))
else [])
setup_requires = pytest_runner
setup(
name='cmake_odidev',
version='3.17.3',
cmdclass=versioneer.get_cmdclass(),
author='Jean-Christophe Fillion-Robin',
author_email='[email protected]',
packages=['cmake'],
cmake_install_dir='cmake/data',
entry_points={
'console_scripts': [
'cmake=cmake:cmake', 'cpack=cmake:cpack', 'ctest=cmake:ctest'
]
},
url=r'http://cmake.org/',
download_url=r'https://cmake.org/download',
description=r'CMake-odidev is a test project and it is '
r'clone of CMake project',
long_description=readme + '\n\n' + history,
classifiers=[
'License :: OSI Approved :: Apache Software License',
'License :: OSI Approved :: BSD License',
'Programming Language :: C',
'Programming Language :: C++',
'Programming Language :: Fortran',
'Programming Language :: Python',
'Operating System :: OS Independent',
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools'
],
license='Apache 2.0',
keywords='CMake build c++ fortran cross-platform cross-compilation',
install_requires=requirements,
tests_require=dev_requirements,
setup_requires=setup_requires
)