-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathsetup.py
57 lines (50 loc) · 1.68 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
import sys
import os
import re
import io
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "tinify"))
from version import __version__
install_require = ["requests >= 2.7.0, < 3.0.0"]
tests_require = ["pytest", "pytest-xdist", "requests-mock", "types-requests"]
if sys.version_info.major > 2:
tests_require.append("mypy")
with io.open("pypi.md", encoding="utf-8") as f:
long_description = f.read()
setup(
name="tinify",
version=__version__,
description="Tinify API client.",
author="Jacob Middag",
author_email="[email protected]",
license="MIT",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://tinify.com/developers",
packages=["tinify"],
package_data={
"": ["LICENSE", "README.md"],
"tinify": ["data/cacert.pem", "py.typed"],
},
install_requires=install_require,
tests_require=tests_require,
extras_require={"test": tests_require},
classifiers=(
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.13",
),
)