56 lines
1.7 KiB
Python
56 lines
1.7 KiB
Python
# -*- coding: utf-8 -*-
|
|
import os
|
|
import sys
|
|
from setuptools import setup
|
|
from setuptools.command.test import test as TestCommand
|
|
|
|
# Utility function to read the README file.
|
|
# Used for the long_description. It's nice, because now
|
|
# 1) we have a top level README file and
|
|
# 2) it's easier to type in the README file than to put a raw string in below ...
|
|
def read(fname):
|
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
|
|
|
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.0.2',
|
|
url='https://github.com/christopher-ramirez/secretary',
|
|
license='BSD',
|
|
author='Christopher Ramírez',
|
|
author_email='chris.ramirezg@gmail.com',
|
|
description=('Take the power of Jinja2 templates to OpenOffice and '
|
|
'LibreOffice and create reports and letters in your web applications'),
|
|
long_description=read('README.md'),
|
|
py_modules=['secretary'],
|
|
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']
|
|
}
|
|
)
|