-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
57 lines (51 loc) · 1.86 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
# coding: utf-8
import os
from setuptools import setup, find_packages # noqa: H301
here = os.path.abspath(os.path.dirname(__file__))
os.chdir(here)
def _read(filename):
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
return f.read()
def _generate_description():
description = []
description.append("The UniCourt Python Package provides simplified access to the UniCourt API for applications written in the Python programming language. Documentation of UniCourt's APIs can be found at docs.unicourt.com. API keys can be obtained by filling out the form here https://unicourt.com/contact-us/?c=sales&enterprise=1 \n")
changelog_file = os.getenv("CHANGELOG_FILE")
if changelog_file:
description.append(_read("CHANGELOG.rst"))
return "\n".join(description)
# To install the library, run the following
#
# python setup.py install
#
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "unicourt"
VERSION = "1.1.0"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = [
"urllib3 >= 1.25.3, < 2.1.0",
"python-dateutil",
"pydantic >= 2",
"typing-extensions >= 4.7.1",
]
setup(
name=NAME,
version=VERSION,
description="Python bindings for the UniCourt Enterprise APIs",
author="UniCourt",
author_email="support@unicourt.com",
license="",
url="https://unicourt.com/",
project_urls={
"Source": "https://github.com/UniCourt/enterprise-api-py-sdk/tree/main",
"Documentation": "https://docs.unicourt.com/knowledge-base/python-sdk",
},
keywords=["UniCourt", "UniCourt Python Package",
"UniCourt Enterprise APIs"],
python_requires=PYTHON_REQUIRES,
install_requires=REQUIRES,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
long_description=_generate_description(),
package_data={"unicourt": ["py.typed"]},
)