-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·89 lines (76 loc) · 2.63 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
85
86
87
88
89
#!/usr/bin/env python
# setup
# Setup script for ormbad
#
# Author: Benjamin Bengfort <[email protected]>
# Created: Thu Aug 13 12:27:19 2015 -0400
#
# Copyright (C) 2015 Tipsy Bear Studios
# For license information, see LICENSE.txt
#
# ID: setup.py [] [email protected] $
"""
Setup script for ormbad
"""
##########################################################################
## Imports
##########################################################################
try:
from setuptools import setup
from setuptools import find_packages
except ImportError:
raise ImportError("Could not import \"setuptools\"."
"Please install the setuptools package.")
##########################################################################
## Package Information
##########################################################################
version = __import__('ormbad').__version__
## Discover the packages
packages = find_packages(where=".", exclude=("tests", "bin", "docs", "fixtures", "register",))
## Load the requirements
requires = []
with open('requirements.txt', 'r') as reqfile:
for line in reqfile:
requires.append(line.strip())
## Define the classifiers
classifiers = (
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: SQL',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Database :: Front-Ends',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
)
## Define the keywords
keywords = ('noorm', 'sql', 'databases', 'postgres')
## Define the description
long_description = ""
## Define the configuration
config = {
"name": "ormbad",
"version": version,
"description": "Why use an ORM when you can just use straight up SQL in Python?",
"long_description": long_description,
"license": "Apache 2.0",
"author": "Benjamin Bengfort",
"author_email": "[email protected]",
"url": "https://github.com/tipsybear/ormbad",
"download_url": 'https://github.com/tipsybear/ormbad/tarball/v%s' % version,
"packages": packages,
"install_requires": requires,
"classifiers": classifiers,
"keywords": keywords,
"zip_safe": True,
"scripts": [],
}
##########################################################################
## Run setup script
##########################################################################
if __name__ == '__main__':
setup(**config)