-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
executable file
·88 lines (84 loc) · 3.91 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
#!/usr/bin/env python3
#
# Copyright (c) 2018 SUSE Linux GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 3 of the GNU General Public License as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, contact SUSE LLC.
#
# To contact SUSE about this file by physical or electronic mail,
# you may find current contact information at www.suse.com
from glob import glob
from os.path import basename, dirname, join as joinpath, splitext
from setuptools import find_packages, setup
setup(
name="docserv",
version="6.8",
packages=find_packages('src'),
package_dir={'': 'src'},
entry_points={
'console_scripts': [
'docserv = docserv.docserv:main',
]
},
scripts=[
'bin/docserv-stitch',
'bin/docserv-dirs',
'bin/docserv-create-archive',
'bin/docserv-createconfig',
'bin/docserv-build-navigation',
'bin/docserv-dchash',
'bin/docserv-write-daps-param-file',
'bin/docserv-write-xslt-param-file',
],
install_requires=[],
data_files=[
('/usr/share/docserv/example/', ['config/my-site.ini']),
('/usr/share/docserv/example/', ['config/xslt-params.txt']),
('/usr/share/docserv/example/product-config/', glob('config/product-config/*.xml')),
# can contain .htaccess, a favicon, etc.
('/usr/share/docserv/example/server-root-files/', glob('config/server-root-files/*')),
# template can be .html or .php (and potentially more in the future)
('/usr/share/docserv/example/template/', glob('config/templates/template-*')),
# will likely contain .css and .js and perhaps imagery of some sort
('/usr/share/docserv/example/template/res/', glob('config/templates/res/*')),
('/usr/share/docserv/validate-product-config/', ['share/validate-product-config/product-config-schema.rnc']),
# validation check, Bash-based or XSLT-based
('/usr/share/docserv/validate-product-config/', glob('share/validate-product-config/global-check-*')),
('/usr/share/docserv/validate-product-config/checks/', glob('share/validate-product-config/checks/check-*.sh')),
('/usr/share/docserv/validate-product-config/checks/', glob('share/validate-product-config/checks/check-*.xsl')),
# contains a single .xsl file
('/usr/share/docserv/simplify-product-config/', glob('share/simplify-product-config/*.xsl')),
# contains a couple .xsl files and a single .rnc
('/usr/share/docserv/build-navigation/', glob('share/build-navigation/*.xsl')),
('/usr/share/docserv/build-navigation/', glob('share/build-navigation/*.rnc')),
# contains a single .js file currently
('/usr/share/docserv/build-navigation/web-resources/', glob('share/build-navigation/web-resources/*')),
# contains a single .txt file currently
('/usr/share/docserv/rsync/', glob('share/rsync/*')),
('/usr/lib/systemd/system/', ['systemd/[email protected]']),
],
author="SUSE Documentation Team",
author_email="[email protected]",
description="Build server for DAPS documentation",
license="GPL-2.0-or-later",
keywords="DAPS build documentation",
url="http://github.com/openSUSE/docserv",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Topic :: Documentation',
'Topic :: Software Development :: Documentation',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
]
)