forked from RealA10N/validit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (52 loc) · 1.46 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
from setuptools import setup, find_packages
def load_readme():
with open('README.md', encoding='utf8') as readme:
return readme.read()
REQUIRES = (
'termcolor==1.1.0',
# the dataclasses module is prebuilt into python>=3.7
# For Python 3.6, it is supported using a backport
'dataclasses; python_version < "3.7"',
)
EXTRAS = {
'dev': (
'pytest>=6.2, <6.3',
'flake8>=3.9, <3.10'
),
'yaml': (
'pyyaml>=5.4, <5.5',
),
'toml': (
'toml>=0.10.2, <0.11',
),
}
EXTRAS['all'] = tuple(
package
for group in EXTRAS
if group != 'dev'
for package in EXTRAS[group]
)
EXTRAS['dev'] += EXTRAS['all']
setup(
name='validit',
description='Easily define and validate configuration file structures 📂🍒',
version='1.3.2',
author='RealA10N',
author_email='[email protected]',
long_description=load_readme(),
long_description_content_type='text/markdown',
url='https://github.com/RealA10N/validit',
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Operating System :: OS Independent',
],
packages=find_packages(),
python_requires='>=3.6',
install_requires=REQUIRES,
extras_require=EXTRAS,
)