This repository has been archived by the owner on Nov 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
87 lines (70 loc) · 2.27 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
import os
from setuptools import setup
def rel(*xs):
return os.path.join(os.path.abspath(os.path.dirname(__file__)), *xs)
with open(rel("README.rst")) as f:
long_description = f.read()
with open(rel("pg_partitioning", "__init__.py"), "r") as f:
version_marker = "__version__ = "
for line in f:
if line.startswith(version_marker):
_, version = line.split(version_marker)
version = version.strip().strip('"')
break
else:
raise RuntimeError("Version marker not found.")
dependencies = [
"python-dateutil~=2.7",
]
extra_dependencies = {
"django": [
"Django>=2.0,<3.0"
],
}
extra_dependencies["all"] = list(set(sum(extra_dependencies.values(), [])))
extra_dependencies["dev"] = extra_dependencies["all"] + [
# Pinned due to https://bitbucket.org/ned/coveragepy/issues/578/incomplete-file-path-in-xml-report
"coverage>=4.0,<4.4",
# Docs
"alabaster==0.7.12",
"sphinx==1.8.3",
"sphinxcontrib-napoleon==0.7",
# Linting
"flake8~=3.6.0",
"isort~=4.3.4",
"black~=18.9b0",
"flake8-bugbear~=18.8.0",
"flake8-quotes~=1.0.0",
# Misc
"dj-database-url==0.5.0",
"psycopg2-binary==2.7.6.1",
"twine==1.12.1",
# Testing
"tox==3.9.0",
"tox-venv==0.4.0"
]
setup(
name="django-pg-partitioning",
version=version,
author="Boyce Li",
author_email="monobiao@gmail.com",
description="A Django extension that supports PostgreSQL 11 time ranges and list partitioning.",
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://github.com/chaitin/django-pg-partitioning",
packages=["pg_partitioning", "pg_partitioning.migrations", "pg_partitioning.patch"],
include_package_data=True,
install_requires=dependencies,
extras_require=extra_dependencies,
python_requires=">=3.6",
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Framework :: Django :: 2.0",
"Framework :: Django :: 2.1",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules"
],
)