-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
72 lines (62 loc) · 2.26 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
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/env python
import setuptools
VERSION = '0.4.1'
PACKAGE_NAME = 'yamlator'
DESCRIPTION = 'Yamlator is a CLI tool that allows a YAML file to be validated using a lightweight schema language' # nopep8
def create_long_description():
with open('README.md', 'r', encoding='utf-8') as fh:
long_description = fh.read()
# Replace the relative paths in the ReadMe.md
# with links to the documentation in GitHub
long_description = long_description.replace(
'./docs/schema_components.md',
'https://github.com/ryan95f/yamlator/blob/main/docs/schema_components.md' # nopep8
)
long_description = long_description.replace(
'./example/',
'https://github.com/ryan95f/yamlator/tree/main/example'
)
long_description = long_description.replace(
'./docs/setting_up_the_environment.md',
'https://github.com/ryan95f/yamlator/blob/main/docs/setting_up_the_environment.md' # nopep8
)
return long_description
long_description = create_long_description()
setuptools.setup(
name=PACKAGE_NAME,
version=VERSION,
description=DESCRIPTION,
long_description=long_description,
license='MIT',
long_description_content_type='text/markdown',
url='https://github.com/ryan95f/yamlator',
author='Ryan Flynn',
packages=setuptools.find_packages(include=[
'yamlator',
'yamlator.validators',
'yamlator.cmd',
'yamlator.cmd.outputs',
'yamlator.parser',
]),
install_requires=[
'lark>=1.0.0',
'PyYAML>=5.4.1'
],
python_requires='>=3.6',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Operating System :: OS Independent'
],
entry_points={
'console_scripts': ['yamlator=yamlator.cmd:main']
},
package_data={'yamlator': ['grammar/grammar.lark']}
)