-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
84 lines (65 loc) · 1.6 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
80
81
82
83
84
"""
Setup script.
:author: xarbulu
:organization: SUSE Linux GmbH
:contact: xarbulu@suse.de
:since: 2018-11-13
"""
import os
from setuptools import find_packages
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import myproject
def read(fname):
"""
Utility function to read the README file. README file is used to create
the long description.
"""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
VERSION = myproject.__version__
NAME = "myproject"
DESCRIPTION = "Project template"
AUTHOR = "xarbulu"
AUTHOR_EMAIL = "xarbulu@suse.de"
URL = ""
LICENSE = read('LICENSE')
CLASSIFIERS = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: Other/Proprietary License",
"Natural Language :: English",
"Operating System :: Unix",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 2 :: Only",
]
SCRIPTS = []
DEPENDENCIES = read('requirements.txt').split()
PACKAGE_DATA = {}
DATA_FILES = []
SETUP_PARAMS = dict(
name=NAME,
version=VERSION,
description=DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
long_description=read('README.md'),
packages=find_packages(),
package_data=PACKAGE_DATA,
license=LICENSE,
scripts=SCRIPTS,
data_files=DATA_FILES,
install_requires=DEPENDENCIES,
classifiers=CLASSIFIERS,
)
def main():
"""
Setup.py main.
"""
setup(**SETUP_PARAMS)
if __name__ == "__main__":
main()