-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
50 lines (42 loc) · 1.37 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
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from codecs import open
from os import path
from setuptools import find_packages, setup
import statham
REQUIREMENTS_FILE_PATH = path.join(
path.abspath(path.dirname(__file__)), "requirements.txt"
)
with open(REQUIREMENTS_FILE_PATH, "r") as f:
REQUIREMENTS_FILE = [
line
for line in f.read().splitlines()
if not line.startswith("#") and not line.startswith("--")
]
with open("README.md", "r") as readme_file:
LONG_DESCRIPTION = readme_file.read()
setup(
name="statham-schema",
version=statham.__version__,
description=(
"Tools for generating Python models from JSON Schema documents."
),
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="https://github.com/jacksmith15/statham-schema",
author="Jack Smith",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.6",
],
packages=find_packages(exclude=["docs*", "tests*"]),
package_data={"statham": ["py.typed"]},
install_requires=REQUIREMENTS_FILE,
dependency_links=[],
license="MIT",
entry_points={"console_scripts": ["statham=statham.__main__:entry_point"]},
)