-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
74 lines (64 loc) · 2.22 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
#!/usr/bin/env python
# setup
# Setuptools installation script for Zerocycle project
#
# Author: Benjamin Bengfort <[email protected]>
# Created: Sun Jul 13 08:43:16 2014 -0400
#
# Copyright (C) 2014 Bengfort.com
# For license information, see LICENSE.txt
#
# ID: setup.py [] [email protected] $
"""
Setuptools installation script for Zerocycle project
"""
##########################################################################
## Imports
##########################################################################
try:
from setuptools import setup
from setuptools import find_packages
except ImportError:
raise ImportError("Could not import \"setuptools\". "
"Please install the setuptools package.")
##########################################################################
## Configuration Details
##########################################################################
## Set up project variables
project = "zerocycle"
packages = [p for p in find_packages(".") if p.startswith(project)]
requires = None
## Load requirements
with open('requirements.txt', 'r') as reqfile:
requires = [line.strip() for line in reqfile]
## Classify the project
classifiers = (
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Environment :: Console',
'Framework :: Flask',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
)
## Configure the PyPy index
config = {
"name": "Zerocycle",
"version": "0.1",
"description": "Zerocycle analysis toolkit",
"author": "Benjamin Bengfort",
"author_email": "[email protected]",
"url": "https://github.com/tipsybear/zerocycle",
"packages": packages,
"install_requires": requires,
"classifiers": classifiers,
"scripts": ["bin/zerocycle"],
"zip_safe": False,
}
##########################################################################
## Execute the installation script
##########################################################################
setup(**config)