-
Notifications
You must be signed in to change notification settings - Fork 47
/
setup.py
57 lines (51 loc) · 1.66 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
# -*- coding: utf-8 -*-
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
long_description = """
============
Secretary
============
Take the power of Jinja2 templates to OpenOffice or LibreOffice and create reports and letters in your web applications.
See full `documentation on Github <https://github.com/christopher-ramirez/secretary/blob/master/README.md>`_
."""
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(
name='secretary',
version='0.2.19',
url='https://github.com/christopher-ramirez/secretary',
license='MIT',
author='Christopher Ramírez',
author_email='[email protected]',
description='Take the power of Jinja2 templates to OpenOffice or LibreOffice.',
long_description=long_description,
py_modules=['secretary', 'markdown_map'],
platforms='any',
install_requires=[
'Jinja2', 'markdown2'
],
tests_require=['pytest'],
cmdclass={'test': PyTest},
test_suite='test_secretary',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: End Users/Desktop',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Development Status :: 3 - Alpha',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Office/Business',
'Topic :: Utilities',
],
extras_require={
'testing': ['pytest']
}
)