/
setup.py
50 lines (40 loc) · 1.52 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
import io
import re
from setuptools import setup, find_packages
with open("rig_c_sa/version.py", "r") as f:
exec(f.read())
setup(
name="rig_c_sa",
version=__version__,
packages=find_packages(),
# Files required by CFFI wrapper
package_data = {'rig_c_sa': ['sa.c', 'sa.h',
'usort/defs.c',
'usort/u1_sort.c',
'usort/u1_sort.h']},
# Metadata for PyPi
url="https://github.com/project-rig/rig_c_sa",
author="The Rig Authors",
description="A C library (and CFFI Python Interface) for simulated annealing.",
license="GPLv2",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Topic :: Software Development :: Libraries",
],
keywords="spinnaker placement cffi simulated-annealing",
# Build CFFI Interface
cffi_modules=["rig_c_sa/cffi_compile.py:ffi"],
setup_requires=["cffi>=1.0.0"],
install_requires=["cffi>=1.0.0"],
)