-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
40 lines (33 loc) · 926 Bytes
/
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
from setuptools import setup
import re
version = ""
with open("ezycore/__init__.py") as f:
contents = f.read()
_match = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', contents, re.MULTILINE
)
version = _match.group(1)
if not version:
raise RuntimeError("Cannot resolve version")
PACKAGES = [
'ezycore',
'ezycore.drivers',
'ezycore.manager',
'ezycore.models',
]
REQUIRES = ['pydantic']
setup(
name='EzyCore',
version=version[1:],
description='A highly customizable cache manager for python',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
project_urls={
'Issue Tracker': 'https://github.com/Seniatical/EzyCore/issues',
'Homepage': 'https://github.com/Seniatical/EzyCore',
},
author='Seniatical',
license='MIT License',
packages=PACKAGES,
install_requires=REQUIRES
)