Files
WPIQ/setup.py

80 lines
2.2 KiB
Python
Raw Normal View History

2018-11-13 21:55:59 +01:00
import glob
import os
from setuptools import find_packages, setup
2018-11-13 21:55:59 +01:00
2019-09-30 14:11:51 +02:00
with open("README.md", "r") as fh:
long_description = fh.read()
2018-11-13 21:55:59 +01:00
conf = []
templates = []
2019-09-30 14:11:51 +02:00
description = '''An essential toolset that eases WordPress
site and server administration'''
2018-11-13 21:55:59 +01:00
for name in glob.glob('config/plugins.d/*.conf'):
conf.insert(1, name)
for name in glob.glob('wo/cli/templates/*.mustache'):
templates.insert(1, name)
if not os.path.exists('/var/log/wo/'):
os.makedirs('/var/log/wo/')
2019-09-30 03:10:30 +02:00
if not os.path.exists('/var/lib/wo/tmp/'):
os.makedirs('/var/lib/wo/tmp/')
2018-11-13 21:55:59 +01:00
setup(name='wo',
2019-09-30 12:38:28 +02:00
version='3.9.9.2',
2019-09-30 14:11:51 +02:00
description=description,
2018-11-13 21:55:59 +01:00
long_description=long_description,
2019-09-30 14:11:51 +02:00
long_description_content_type="text/markdown",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
2018-11-13 21:55:59 +01:00
keywords='',
author='WordOps',
2019-09-30 14:11:51 +02:00
author_email='thomas@virtubox.net',
url='https://github.com/WordOps/WordOps',
2018-11-13 21:55:59 +01:00
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests',
'templates']),
include_package_data=True,
zip_safe=False,
test_suite='nose.collector',
install_requires=[
# Required to build documentation
2019-08-16 13:30:36 +02:00
# "Sphinx >= 1.0",
2018-11-13 21:55:59 +01:00
# Required for testing
2019-08-16 13:30:36 +02:00
# "nose",
# "coverage",
2018-11-13 21:55:59 +01:00
# Required to function
2019-09-23 18:34:56 +02:00
'cement == 2.8.2',
2018-11-13 21:55:59 +01:00
'pystache',
'python-apt',
'pynginxconfig',
'PyMySQL',
'psutil',
2018-11-13 21:55:59 +01:00
'sh',
'SQLAlchemy',
'requests',
'distro',
2019-09-24 19:10:13 +02:00
'apt-mirror-updater',
2019-04-05 10:02:20 +02:00
],
2018-11-13 21:55:59 +01:00
data_files=[('/etc/wo', ['config/wo.conf']),
('/etc/wo/plugins.d', conf),
('/usr/lib/wo/templates', templates),
('/etc/bash_completion.d/',
['config/bash_completion.d/wo_auto.rc']),
('/usr/share/man/man8/', ['docs/wo.8'])],
setup_requires=[],
entry_points="""
[console_scripts]
wo = wo.cli.main:main
""",
namespace_packages=[],
)