-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
68 lines (62 loc) · 1.92 KB
/
setup.py
File metadata and controls
68 lines (62 loc) · 1.92 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
65
66
67
68
from setuptools import setup
import json
import os
def readme():
with open('./README.md') as readme_fp:
README = readme_fp.read()
return README
class SetupMeta:
def __init__(self):
self.__dict__.update(
json.loads(
open(
os.path.abspath(
os.path.join(
os.path.dirname(__file__),
'METADATA.json'
)
)
).read()
)
)
meta = SetupMeta()
if meta.development_status == 1:
status = 'Planning'
elif meta.development_status == 2:
status = 'Pre-Alpha'
elif meta.development_status == 3:
status = 'Alpha'
elif meta.development_status == 4:
status = 'Beta'
elif meta.development_status == 5:
status = 'Production/Stable'
elif meta.development_status == 6:
status = 'Mature'
else:
status = 'Inactive'
setup(
name=meta.module_name,
version=meta.version_info,
description='''
SharedCollections contains some commonly used data structured collections, which can be accessed among some multiple access manager.
'''.strip(),
long_description=readme(),
long_description_content_type='text/markdown',
url="https://github.com/antaripchatterjee/{0}".format(meta.module_name),
author="Antarip Chatterjee",
author_email="antarip.chatterjee22@gmail.com",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.5",
"Environment :: Console",
"Development Status :: %d - %s"%(meta.development_status, status),
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Topic :: Education",
"Topic :: Software Development"
],
packages=["sharedcollections"],
include_package_data=True
)