-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
45 lines (35 loc) · 1.24 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
import sys
from setuptools import setup, find_packages
package_name = "sqlalchemy_dict"
py_version = sys.version_info[:2]
def read_version(module_name):
from re import match, S
from os.path import join, dirname
f = open(join(dirname(__file__), module_name, "__init__.py"))
return match(r".*__version__ = (\"|')(.*?)('|\")", f.read(), S).group(2)
dependencies = ["sqlalchemy"]
if py_version < (3, 5):
dependencies.append("typing")
setup(
name=package_name,
version=read_version(package_name),
author="Mahdi Ghane.g",
description=(
"sqlalchemy extension for interacting models with python dictionary."
),
long_description=open("README.rst").read(),
url="https://github.com/meyt/sqlalchemy-dict",
packages=find_packages(),
install_requires=dependencies,
license="MIT License",
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
],
)