forked from kolypto/j2cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·69 lines (57 loc) · 1.95 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
#!/usr/bin/env python
""" j2cli - Jinja2 Command-Line Tool
================================
`j2cli` is a command-line tool for templating in shell-scripts,
leveraging the [Jinja2](http://jinja.pocoo.org/docs/) library.
Features:
* Jinja2 templating
* INI, YAML, JSON data sources supported
* Allows the use of environment variables in templates! Hello [Docker](http://www.docker.com/) :)
Inspired by [mattrobenolt/jinja2-cli](https://github.com/mattrobenolt/jinja2-cli)
"""
from setuptools import setup, find_packages
import sys
# PyYAML 3.11 was the last to support Python 2.6
# This code limits pyyaml version for older pythons
pyyaml_version = 'pyyaml >= 3.10' # fresh
if sys.version_info[:2] == (2, 6):
pyyaml_version = 'pyyaml<=3.11'
setup(
name='j2cli',
version='0.3.12b',
author='Mark Vartanyan',
author_email='[email protected]',
url='https://github.com/kolypto/j2cli',
license='BSD',
description='Command-line interface to Jinja2 for templating in shell scripts.',
long_description=__doc__, # can't do open('README.md').read() because we're describing self
long_description_content_type='text/markdown',
keywords=['Jinja2', 'templating', 'command-line', 'CLI'],
packages=find_packages(),
scripts=[],
entry_points={
'console_scripts': [
'j2 = j2cli:main',
]
},
install_requires=[
'jinja2 >= 2.7.2',
],
extras_require={
'yaml': [pyyaml_version,]
},
include_package_data=True,
zip_safe=False,
test_suite='nose.collector',
platforms='any',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: Software Development',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
)