-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup.py
More file actions
65 lines (54 loc) · 1.92 KB
/
setup.py
File metadata and controls
65 lines (54 loc) · 1.92 KB
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
#!/usr/bin/env python
import os
import codecs
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
filename = os.path.join(os.path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
about = {}
# Load version number dynamically
with open(os.path.join(here, "predicthq", "version.py"), "r") as f:
exec(f.read(), about)
REPO_URL = "https://github.com/predicthq/sdk-py"
PYPI_README_NOTE = (
f"For the latest source, discussions, bug reports, etc., please visit the [GitHub repository]({REPO_URL})"
)
LONG_DESCRIPTION = "\n\n".join([PYPI_README_NOTE, read("README.md")])
setup(
name="predicthq",
version=about["__version__"],
description="PredictHQ Demand Intelligence",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
license="MIT",
author="PredictHQ",
author_email="developers@predicthq.com",
url=REPO_URL,
packages=find_packages(exclude=("tests*",)),
python_requires=">=3.8",
install_requires=[
"pydantic>=2,<3",
"requests>=2.7.0",
"python-dateutil>=2.4.2",
"pytz>=2017.2,<=2023.3",
"stamina>=24.3.0,<25",
"deprecated>=1.2.18,<2.0",
],
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Environment :: Web Environment",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)