-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (52 loc) · 1.69 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
53
54
55
56
57
58
59
60
61
62
"""
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/kosyachniy/consys',
author='Alexey 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',
'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.7, <4',
install_requires=[
'pymongo==4.5.0',
'Pillow==10.0.0',
'requests', # Because of conflicts with main repo
'pydantic==1.10.12',
],
project_urls={
'Source': 'https://github.com/kosyachniy/consys',
},
license='MIT',
include_package_data=False,
)