2018-11-13 21:55:59 +01:00
|
|
|
|
|
|
|
|
import glob
|
2019-09-17 01:30:58 +02:00
|
|
|
import os
|
2019-10-23 01:59:10 +02:00
|
|
|
import sys
|
2019-09-17 01:30:58 +02:00
|
|
|
|
|
|
|
|
from setuptools import find_packages, setup
|
2018-11-13 21:55:59 +01:00
|
|
|
|
2019-10-18 18:47:08 +02:00
|
|
|
# read the contents of your README file
|
|
|
|
|
this_directory = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
|
|
|
|
|
LONG = f.read()
|
2019-09-30 14:11:51 +02:00
|
|
|
|
2018-11-13 21:55:59 +01:00
|
|
|
conf = []
|
|
|
|
|
templates = []
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
2019-10-08 17:39:00 +02:00
|
|
|
if os.geteuid() == 0:
|
|
|
|
|
if not os.path.exists('/var/log/wo/'):
|
|
|
|
|
os.makedirs('/var/log/wo/')
|
2018-11-13 21:55:59 +01:00
|
|
|
|
2019-10-08 17:39:00 +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
|
|
|
|
2019-10-01 17:24:09 +02:00
|
|
|
setup(name='wordops',
|
2023-01-29 14:19:39 +01:00
|
|
|
version='3.16.3',
|
2019-10-21 11:37:19 +02:00
|
|
|
description='An essential toolset that eases server administration',
|
2019-10-09 17:35:23 +02:00
|
|
|
long_description=LONG,
|
2019-10-18 18:00:15 +02:00
|
|
|
long_description_content_type='text/markdown',
|
2019-09-30 14:11:51 +02:00
|
|
|
classifiers=[
|
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
|
"Operating System :: OS Independent",
|
2019-10-01 17:24:09 +02:00
|
|
|
"Development Status :: 5 - Production/Stable",
|
|
|
|
|
"Environment :: Console",
|
|
|
|
|
"Natural Language :: English",
|
|
|
|
|
"Topic :: System :: Systems Administration",
|
2019-09-30 14:11:51 +02:00
|
|
|
],
|
2019-12-03 19:48:18 +01:00
|
|
|
keywords='nginx automation wordpress deployment CLI',
|
2018-11-13 21:55:59 +01:00
|
|
|
author='WordOps',
|
2019-10-01 17:24:09 +02:00
|
|
|
author_email='contact@wordops.io',
|
2019-09-30 14:11:51 +02:00
|
|
|
url='https://github.com/WordOps/WordOps',
|
2018-11-13 21:55:59 +01:00
|
|
|
license='MIT',
|
2019-12-03 19:48:18 +01:00
|
|
|
project_urls={
|
|
|
|
|
'Documentation': 'https://docs.wordops.net',
|
|
|
|
|
'Forum': 'https://community.wordops.net',
|
|
|
|
|
'Source': 'https://github.com/WordOps/WordOps',
|
|
|
|
|
'Tracker': 'https://github.com/WordOps/WordOps/issues',
|
|
|
|
|
},
|
2018-11-13 21:55:59 +01:00
|
|
|
packages=find_packages(exclude=['ez_setup', 'examples', 'tests',
|
|
|
|
|
'templates']),
|
|
|
|
|
include_package_data=True,
|
|
|
|
|
zip_safe=False,
|
|
|
|
|
test_suite='nose.collector',
|
2019-10-31 00:13:30 +01:00
|
|
|
python_requires='>=3.4',
|
2018-11-13 21:55:59 +01:00
|
|
|
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 to function
|
2019-11-11 19:06:11 +01:00
|
|
|
'cement == 2.10.12',
|
2023-02-26 19:06:20 +01:00
|
|
|
'pystache',
|
|
|
|
|
'pynginxconfig',
|
2023-05-18 14:34:05 +00:00
|
|
|
'PyMySQL == 1.0.3',
|
2023-02-26 19:06:20 +01:00
|
|
|
'psutil',
|
|
|
|
|
'sh',
|
2023-05-17 13:58:55 +00:00
|
|
|
'SQLAlchemy == 1.4.48',
|
2023-02-26 19:06:20 +01:00
|
|
|
'requests',
|
|
|
|
|
'distro',
|
|
|
|
|
'argcomplete',
|
|
|
|
|
'colorlog',
|
2019-04-05 10:02:20 +02:00
|
|
|
],
|
2019-10-01 17:24:09 +02:00
|
|
|
extras_require={ # Optional
|
|
|
|
|
'testing': ['nose', 'coverage'],
|
|
|
|
|
},
|
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=[],
|
|
|
|
|
)
|