forked from ponyorm/pony
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
95 lines (81 loc) · 2.57 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
90
91
92
93
94
95
from __future__ import print_function
from setuptools import setup
import sys
import unittest
def test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('foalorm.orm.tests', pattern='test_*.py')
return test_suite
name = "foalorm"
version = __import__('foalorm').__version__
description = "Foal Object-Relational Mapper"
long_description = """
About
=========
FoalORM is an advanced object-relational mapper forked from PonyORM.
Installation
=================
::
pip install foalorm
"""
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries',
'Topic :: Database'
]
author_email = "me@frodo821.me"
author = f'frodo821 <{author_email}>'
project_urls = {
"Source": "https://github.com/frodo821/foalorm",
}
license = "MIT License"
packages = [
"foalorm",
"foalorm.flask",
"foalorm.flask.example",
"foalorm.orm",
"foalorm.orm.dbproviders",
"foalorm.orm.examples",
"foalorm.orm.integration",
"foalorm.orm.tests",
"foalorm.thirdparty",
"foalorm.utils"
]
package_data = {
'foalorm.flask.example': ['templates/*.html'],
'foalorm.orm.tests': ['queries.txt']
}
download_url = "http://pypi.python.org/pypi/pony/"
if __name__ == "__main__":
pv = sys.version_info[:2]
if pv not in ((3, 6), (3, 7), (3, 8), (3, 9), (3, 10), (3, 11)):
s = "Sorry, but %s %s requires Python of one of the following versions: 3.6-3.11." \
" You have version %s"
print(s % (name, version, sys.version.split(' ', 1)[0]))
sys.exit(1)
setup(
name=name,
version=version,
description=description,
long_description=long_description,
classifiers=classifiers,
author=author,
author_email=author_email,
project_urls=project_urls,
license=license,
packages=packages,
package_data=package_data,
download_url=download_url,
test_suite='setup.test_suite'
)