-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
66 lines (58 loc) · 1.92 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
# -*- coding: utf-8 -*-
# This file is a part of the AnyBlok / Attachment / Jinja project
#
# Copyright (C) 2018 Jean-Sebastien SUZANNE <jssuzanne@anybox.fr>
#
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file,You can
# obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup, find_packages
import os
version = '1.0.0'
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst'), 'r',
encoding='utf-8') as readme_file:
readme = readme_file.read()
with open(
os.path.join(here, 'doc', 'CHANGES.rst'), 'r', encoding='utf-8'
) as change:
CHANGES = change.read()
with open(
os.path.join(here, 'doc', 'FRONT.rst'), 'r', encoding='utf-8'
) as front:
FRONT = front.read()
requirements = [
'anyblok',
'anyblok_attachment',
'jinja2',
]
setup(
name='anyblok_attachment_jinja',
version=version,
description="Jinja templating for AnyBlok attachment",
long_description=readme + '\n' + FRONT + '\n' + CHANGES,
author="jssuzanne",
author_email='jssuzanne@anybox.fr',
url="http://docs.anyblok-attachment-jinja.anyblok.org/%s" % version,
packages=find_packages(),
entry_points={
'bloks': [
'report-jinja=anyblok_attachment_jinja.bloks.jinja:ReportBlok',
],
},
include_package_data=True,
install_requires=requirements,
zip_safe=False,
keywords='attachment',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
test_suite='tests',
tests_require=requirements + ['pytest', 'pytest-cov'],
)