-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
67 lines (59 loc) · 2.03 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
#!/usr/bin/env python
import io
import os
from setuptools import find_packages, setup
import binary_database_files
CURRENT_DIR = os.path.abspath(os.path.dirname(__file__))
DESCRIPTION = (
"A storage system for Django that stores uploaded files in both the "
"database and file system."
)
def get_reqs(*fns):
lst = []
for fn in fns:
for package in open(os.path.join(CURRENT_DIR, fn)).readlines():
package = package.strip()
if not package:
continue
lst.append(package.strip())
return lst
try:
with io.open(os.path.join(CURRENT_DIR, "README.md"), encoding="utf-8") as f:
long_description = "\n" + f.read()
except FileNotFoundError:
long_description = DESCRIPTION
setup(
name="django-binary-database-files",
version=binary_database_files.__version__,
description=DESCRIPTION,
long_description=long_description,
long_description_content_type="text/markdown",
author="Roger Hunwicks",
author_email="[email protected]",
url="https://github.com/kimetrica/django-binary-database-files/",
packages=find_packages(),
classifiers=[
"Development Status :: 6 - Mature",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 5.0",
],
install_requires=get_reqs(
"pip-requirements.txt",
),
tests_require=get_reqs("pip-requirements-test.txt"),
python_requires=">=3.6,<3.13",
)