Skip to content

Commit 0cf2679

Browse files
committed
cleaned up the setup.py file
1 parent 8261956 commit 0cf2679

File tree

1 file changed

+34
-30
lines changed

1 file changed

+34
-30
lines changed

example/setup.py

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,51 @@
11
import os
22
import sys
3+
34
try:
45
from setuptools import setup, find_packages
56
except ImportError:
67
from distutils.core import setup, find_packages
78

89
packages = find_packages()
910

11+
package_data = {
12+
package: [
13+
f
14+
for f in os.listdir(package.replace(".", os.path.sep))
15+
if os.path.splitext(f)[1] in (".so", ".pyd")
16+
]
17+
for package in packages
18+
}
19+
20+
dependencies = ["Cython>=0.25.2", "backports_abc>=0.5", "numpy>=1.12.0"]
21+
1022
setup(
11-
name='example',
12-
description='Simple example of wrapping projects with Python and GTSAM',
13-
url='https://gtsam.org/',
14-
version='1.0.0',
15-
author='Varun Agrawal',
16-
author_email='[email protected]',
17-
license='Simplified BSD license',
18-
keywords='wrapper tutorial example',
23+
name="gtsam_example",
24+
description="Simple example of wrapping projects with GTSAM",
25+
url="https://gtsam.org/",
26+
version="1.0.0",
27+
author="Varun Agrawal",
28+
author_email="[email protected]",
29+
license="Simplified BSD license",
30+
keywords="wrapper tutorial example",
1931
long_description="",
20-
long_description_content_type='text/markdown',
21-
python_requires='>=3.6',
32+
long_description_content_type="text/markdown",
33+
python_requires=">=3.6",
2234
# https://pypi.org/pypi?%3Aaction=list_classifiers
2335
classifiers=[
24-
'Development Status :: 5 - Production/Stable',
25-
'Intended Audience :: Education',
26-
'Intended Audience :: Developers',
27-
'Intended Audience :: Science/Research',
28-
'Operating System :: MacOS',
29-
'Operating System :: Microsoft :: Windows',
30-
'Operating System :: POSIX',
31-
'License :: OSI Approved :: BSD License',
32-
'Programming Language :: Python :: 2',
33-
'Programming Language :: Python :: 3',
36+
"Development Status :: 5 - Production/Stable",
37+
"Intended Audience :: Education",
38+
"Intended Audience :: Developers",
39+
"Intended Audience :: Science/Research",
40+
"Operating System :: MacOS",
41+
"Operating System :: Microsoft :: Windows",
42+
"Operating System :: POSIX",
43+
"License :: OSI Approved :: BSD License",
44+
"Programming Language :: Python :: 2",
45+
"Programming Language :: Python :: 3",
3446
],
35-
3647
packages=packages,
3748
# Load the built shared object files
38-
package_data={package:
39-
[f for f in os.listdir(package.replace('.', os.path.sep)) if os.path.splitext(f)[1] in ('.so', '.pyd')]
40-
for package in packages
41-
},
42-
install_requires=[line.strip() for line in '''
43-
Cython>=0.25.2
44-
backports_abc>=0.5
45-
numpy>=1.12.0
46-
'''.splitlines() if len(line.strip()) > 0 and not line.strip().startswith('#')]
49+
package_data=package_data,
50+
install_requires=dependencies,
4751
)

0 commit comments

Comments
 (0)