-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathsetup.py
More file actions
64 lines (57 loc) · 2.27 KB
/
setup.py
File metadata and controls
64 lines (57 loc) · 2.27 KB
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
import os
kwds = {}
if int(os.getenv('USE_DISTUTILS', 0)) != 0:
from distutils.core import setup
def find_packages():
packages = []
basedir = os.getcwd()
for root, dirnames, filenames in os.walk(basedir):
for dirname in dirnames:
initfile = os.path.join(root, dirname, "__init__.py")
if os.path.exists(initfile):
# python 2.4+
packages.append(os.path.relpath(initfile, basedir))
packages = [ os.path.dirname(p).replace(os.path.sep, ".") for p in packages ]
return sorted(packages)
# To add the test data to the final package
if int(os.getenv('INCLUDE_PACKAGE_DATA', 0)) != 0:
kwds['package_data'] = { 'PyCIM.Test' : [ 'Data/*'], }
else:
from setuptools import setup, find_packages
kwds['include_package_data'] = False
kwds['test_suite'] = "PyCIM.Test"
kwds['zip_safe'] = True
# Read the long description from the README.
thisdir = os.path.abspath(os.path.dirname(__file__))
f = open(os.path.join(thisdir, "README.rst"))
kwds["long_description"] = f.read()
f.close()
setup(name="PyCIM",
version="15.15.0",
author="Richard Lincoln",
author_email="r.w.lincoln@gmail.com",
description="Python implementation of the Common Information Model.",
license="MIT",
url="https://github.com/rwl/PyCIM",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
packages=find_packages(),
extras_require={
'test': ['pytest'],
'build': ['twine'],
},
**kwds)
# python setup.py sdist bdist_egg bdist_wininst bdist_msi upload