| 1 |
from setuptools import find_packages, setup |
| 2 |
|
| 3 |
with open("README.md") as fl: |
| 4 |
LONG_DESCRIPTION = fl.read() |
| 5 |
|
| 6 |
setup( |
| 7 |
name="Flask-Compress", |
| 8 |
use_scm_version=True, |
| 9 |
url="https://github.com/colour-science/flask-compress", |
| 10 |
license="MIT", |
| 11 |
author="Thomas Mansencal", |
| 12 |
author_email="[email protected]", |
| 13 |
description=( |
| 14 |
"Compress responses in your Flask app with gzip, deflate, brotli or zstandard." |
| 15 |
), |
| 16 |
long_description=LONG_DESCRIPTION, |
| 17 |
long_description_content_type="text/markdown", |
| 18 |
packages=find_packages(exclude=["tests"]), |
| 19 |
package_data={"flask_compress": ["py.typed"]}, |
| 20 |
include_package_data=True, |
| 21 |
platforms="any", |
| 22 |
python_requires=">=3.9", |
| 23 |
install_requires=[ |
| 24 |
"flask", |
| 25 |
"brotli; platform_python_implementation!='PyPy'", |
| 26 |
"brotlicffi; platform_python_implementation=='PyPy'", |
| 27 |
"backports.zstd; python_version<'3.14'", |
| 28 |
], |
| 29 |
setup_requires=[ |
| 30 |
"setuptools_scm", |
| 31 |
], |
| 32 |
classifiers=[ |
| 33 |
"Environment :: Web Environment", |
| 34 |
"Intended Audience :: Developers", |
| 35 |
"License :: OSI Approved :: MIT License", |
| 36 |
"Operating System :: OS Independent", |
| 37 |
"Programming Language :: Python :: 3.9", |
| 38 |
"Programming Language :: Python :: 3.10", |
| 39 |
"Programming Language :: Python :: 3.11", |
| 40 |
"Programming Language :: Python :: 3.12", |
| 41 |
"Programming Language :: Python :: 3.13", |
| 42 |
"Programming Language :: Python :: 3.14", |
| 43 |
"Programming Language :: Python :: 3.15", |
| 44 |
"Programming Language :: Python :: Implementation :: CPython", |
| 45 |
"Programming Language :: Python :: Implementation :: PyPy", |
| 46 |
"Topic :: Internet :: WWW/HTTP :: Dynamic Content", |
| 47 |
"Topic :: Software Development :: Libraries :: Python Modules", |
| 48 |
], |
| 49 |
) |