-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
78 lines (68 loc) · 2.18 KB
/
setup.py
File metadata and controls
78 lines (68 loc) · 2.18 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
"""
Setup the Python package
"""
import pathlib
import re
from setuptools import setup, find_packages
with open("README.md", "r", encoding="utf-8") as file:
long_description = file.read()
WORK_DIR = pathlib.Path(__file__).parent
def get_version():
"""Get version"""
txt = (WORK_DIR / "consys" / "__init__.py").read_text("utf-8")
try:
return re.findall(r"^__version__ = \"([^\"]+)\"\r?$", txt, re.M)[0]
except IndexError as e:
raise RuntimeError("Unable to determine version") from e
setup(
name="consys",
version=get_version(),
description="Base object model for Python",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/chilleco/consys",
author="Alex Poloz",
author_email="alexypoloz@gmail.com",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
],
keywords=(
"base, object, model, oop, orm, python, mongodb, files, uploading, "
"handlers, errors, types, checking"
),
packages=find_packages(exclude=("tests",)),
python_requires=">=3.10, <4",
install_requires=[
"pymongo>=4.15.4,<5",
"pillow>=12,<13",
"requests>=2.32.5,<3",
"pydantic>=2.12.5,<3",
],
extras_require={
"dev": [
"pylint==4.0.4",
"pytest==9.0.1",
"pytest-asyncio==1.3.0",
"libdev==0.96",
"twine==6.2.0",
"build>=1.2.2",
"setuptools>=80.9.0",
],
},
project_urls={
"Source": "https://github.com/chilleco/consys",
},
license="MIT",
include_package_data=False,
)