secretary/setup.py

57 lines
1.7 KiB
Python
Raw Normal View History

2013-08-14 20:41:41 -06:00
# -*- coding: utf-8 -*-
import os
2013-08-17 10:54:53 -06:00
import sys
2013-08-14 20:41:41 -06:00
from setuptools import setup
2013-08-17 10:54:53 -06:00
from setuptools.command.test import test as TestCommand
2013-08-14 20:41:41 -06:00
# Utility function to read the README file.
2013-08-15 22:08:29 -06:00
# 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 ...
2013-08-14 20:41:41 -06:00
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
2013-08-17 10:54:53 -06:00
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)
2013-08-14 20:41:41 -06:00
setup(
name='secretary',
version='0.0.1',
url='https://github.com/christopher-ramirez/secretary',
license='BSD',
author='Christopher Ramírez',
2013-08-15 22:08:29 -06:00
author_email='chris.ramirezg@gmail.com',
2013-08-14 20:41:41 -06:00
description=('Take the power of Jinja2 templates to OpenOffice and '
2013-08-15 22:08:29 -06:00
'LibreOffice and create reports and letters in your web applications'),
2013-08-14 20:41:41 -06:00
long_description=read('README.md'),
py_modules=['secretary'],
platforms='any',
install_requires=[
2013-09-03 15:49:38 -06:00
'Jinja2', 'markdown2'
2013-08-14 20:41:41 -06:00
],
2013-08-17 10:54:53 -06:00
tests_require=['pytest'],
cmdclass={'test': PyTest},
test_suite='test_secretary',
2013-08-14 20:41:41 -06:00
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',
2013-08-17 10:54:53 -06:00
],
extras_require={
'testing': ['pytest']
}
2013-08-14 20:41:41 -06:00
)