-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
47 lines (38 loc) · 1.13 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
from typing import List
import setuptools
def read_version(path="serialzy/version/version"):
with open(path) as file:
return file.read().rstrip()
def read_requirements() -> List[str]:
requirements = []
with open("requirements.txt", "r") as file:
for line in file:
requirements.append(line.rstrip())
return requirements
def read_readme() -> str:
with open("README.md", "r") as file:
return file.read()
setuptools.setup(
name="serialzy",
version=read_version(),
license="LICENSE",
classifiers=[
"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"
],
author="ʎzy developers",
install_requires=read_requirements(),
package_data={
"serialzy": ["version/version"],
},
packages=[
"serialzy",
"serialzy/serializers"
],
python_requires=">=3.7",
long_description=read_readme(),
long_description_content_type='text/markdown'
)