-
Notifications
You must be signed in to change notification settings - Fork 53
/
setup.py
52 lines (43 loc) · 1.55 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
#!/usr/bin/env python
"""The setup script."""
import re
from setuptools import setup, find_packages
COMMENT_RE = re.compile(r"(^|\s+)#.*$")
def load_requirements(file_name):
requirements = []
with open(file_name, "r") as req_file:
for line in req_file:
line = COMMENT_RE.sub("", line)
line = line.strip()
if line:
requirements.append(line)
return requirements
def read_file(filename):
with open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="Xero Developer API",
author_email="api@xero.com",
python_requires=">=3.5",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
description="Official Python sdk for Xero API generated by OpenAPI spec for oAuth2",
install_requires=load_requirements("requirements.txt"),
license="MIT license",
long_description="\n\n".join((read_file("README.md"), read_file("HISTORY.md"))),
long_description_content_type="text/markdown",
include_package_data=True,
keywords="xero python sdk API oAuth",
name="xero_python",
packages=find_packages(include=["xero_python", "xero_python.*"]),
version="6.3.0",
)