-
Notifications
You must be signed in to change notification settings - Fork 215
/
setup.py
47 lines (43 loc) · 1.48 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
import codecs
import os
import re
import sys
from setuptools import setup
version_file = os.path.join("schema", "__init__.py")
with open(version_file) as f:
for line in f.read().split("\n"):
if line.startswith("__version__ ="):
version = re.match(
r"^\s*__version__\s*=\s*['\"](.*?)['\"]\s*$", line
).group(1)
break
else:
print("No __version__ attribute found in %r" % version_file)
sys.exit(1)
setup(
name="schema",
version=version,
author="Vladimir Keleshev",
author_email="[email protected]",
description="Simple data validation library",
license="MIT",
keywords="schema json validation",
url="https://github.com/keleshev/schema",
packages=["schema"],
include_package_data=True,
long_description=codecs.open("README.rst", "r", "utf-8").read(),
long_description_content_type="text/x-rst",
install_requires=open("requirements.txt", "r").read().split("\n"),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: OSI Approved :: MIT License",
],
)