-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·60 lines (57 loc) · 2.1 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
#!/usr/bin/env python
from setuptools import setup, find_packages
import sys
readme = open("README.md").read()
py2 = sys.version_info < (3,)
setup(
name = "yamlns",
version = "0.12.2",
description = "YAML serializable dictionary with dual item and attribute accessors",
author = "David Garcia Garzon",
author_email = "[email protected]",
url = 'https://github.com/GuifiBaix/python-yamlns',
long_description = readme,
long_description_content_type = 'text/markdown',
license = 'GNU General Public License v3 or later (GPLv3+)',
packages=find_packages(exclude=['*_[tT]est*']),
entry_points=dict(
console_scripts = [
'json2yaml = yamlns.json2yaml:main',
'nstemplate = yamlns.nstemplate:main',
'nstemplate.py = yamlns.nstemplate:deprecated', # backwards compatibility
],
pytest11 = [
'yamlns_tests = yamlns.pytestutils',
],
),
install_requires=[
'setuptools>=20.4', # markdown readme
'PyYAML<6, >5.3.1' if py2 else 'PyYAML>=5.3.1', # security
'pytest<4.7' if py2 else 'pytest',
'pytest-cov',
'pathlib2' if py2 else '', # Py2 backport
'packaging<21' if py2 else '', # Py2, indirect importlib-metadata, zipp
'zipp<2' if py2 else '', # Py2, indirect importlib-metadata
'configparser<5' if py2 else '', # Py2, indirect importlib-metadata
'importlib-metadata<3' if py2 else '', # Py2, indirect pytest
'click<8' if py2 else '', # Py2, indirect pytest
'coverage<6' if py2 else '', # Py2, indirect pytest-cov
'pyparsing<3' if py2 else '', # Py2, indirect packaging
'contextlib2<21' if py2 else '', # Py2, indirect by many libs
'attrs<22' if py2 else '', # Py2, indirect by many libs
],
include_package_data = True,
test_suite = 'yamlns',
classifiers = [
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Framework :: Pytest',
'Intended Audience :: Developers',
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
],
)
# vim: sw=4 ts=4 noet