-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
103 lines (98 loc) · 3.44 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import os
import sys
import multiprocessing # neccessary to keep setuptools quiet in tests
version = '1.2.dev0'
tests_path = os.path.join(os.path.dirname(__file__), 'tests')
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
args = sys.argv[sys.argv.index('test')+1:]
self.test_args = args
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(
name='ulif.openoffice',
version=version,
description="Run OpenOffice as web service.",
long_description=open("README.rst").read() + "\n\n" + open(
"CHANGES.txt").read(),
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: Implementation :: CPython",
"Operating System :: POSIX",
"Framework :: Paste",
"Environment :: Web Environment",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
"Topic :: Office/Business :: Office Suites",
],
keywords='openoffice pyuno uno openoffice.org libreoffice',
author='Uli Fouquet',
author_email='uli at gnufix.de',
url='http://pypi.python.org/pypi/ulif.openoffice',
license='GPL',
packages=find_packages('src', exclude=['ez_setup']),
package_dir={'': 'src'},
namespace_packages=['ulif', ],
include_package_data=True,
zip_safe=False,
install_requires=[
'setuptools',
'argparse',
'beautifulsoup4',
'cssutils',
'Routes',
'six',
'WebOb',
'Paste',
'PasteDeploy',
],
setup_requires=[],
extras_require=dict(
tests=[
'py-restclient',
'WebTest',
'pytest >= 2.0.3',
'pytest-xdist',
'pytest-cov',
],
docs=['Sphinx', ]
),
cmdclass={'test': PyTest},
entry_points="""
[console_scripts]
oooctl = ulif.openoffice.oooctl:main
oooclient = ulif.openoffice.client:main
[ulif.openoffice.processors]
meta = ulif.openoffice.processor:MetaProcessor
oocp = ulif.openoffice.processor:OOConvProcessor
unzip = ulif.openoffice.processor:UnzipProcessor
zip = ulif.openoffice.processor:ZipProcessor
tidy = ulif.openoffice.processor:Tidy
css_cleaner = ulif.openoffice.processor:CSSCleaner
html_cleaner = ulif.openoffice.processor:HTMLCleaner
error = ulif.openoffice.processor:Error
[paste.app_factory]
docconverter = ulif.openoffice.wsgi:make_docconverter_app
xmlrpcapp = ulif.openoffice.xmlrpc:make_xmlrpc_app
[paste.filter_app_factory]
htaccess = ulif.openoffice.htaccess:make_htaccess
""",
)