-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
66 lines (56 loc) · 2.01 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
import subprocess
from setuptools import Command, setup
# -----------------------------------------------------------------------------
def system(command):
class SystemCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
subprocess.check_call(command, shell=True)
return SystemCommand
# -----------------------------------------------------------------------------
setup(
name="Flask-Annex",
version="2.0.0",
description="Efficient integration of external storage services for Flask",
url="https://github.com/4Catalyzer/flask-annex",
author="Jimmy Jia",
author_email="[email protected]",
license="MIT",
python_requires=">=3.10",
classifiers=[
"Framework :: Flask",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords="storage s3 flask",
packages=[
"flask_annex",
],
install_requires=("Flask >= 2.0", "packaging >= 17.0"),
extras_require={
"s3": ("boto3 >= 1.4.0",),
"tests": ("pytest", "pytest-cov"),
"tests-s3": ("moto", "requests"),
},
cmdclass={
"clean": system("rm -rf build dist *.egg-info"),
"package": system("python3 setup.py sdist bdist_wheel"),
"publish": system("twine upload dist/*"),
"release": system("python3 setup.py clean package publish"),
"test": system("tox"),
},
)