forked from sphinx-contrib/confluencebuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
78 lines (71 loc) · 2.38 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
# -*- coding: utf-8 -*-
"""
:copyright: Copyright 2016-2020 by the contributors (see AUTHORS file).
:license: BSD-2-Clause, see LICENSE for details.
"""
from distutils.command.clean import clean
from distutils import dir_util
from setuptools import find_packages
from setuptools import setup
import os
with open('README.rst', 'r') as readme_rst:
long_desc = readme_rst.read()
# remove extra resources not removed by the default clean operation
class ExtendedClean(clean):
def run(self):
clean.run(self)
if not self.all:
return
extras = [
'dist',
'sphinxcontrib_confluencebuilder.egg-info',
]
for extra in extras:
if os.path.exists(extra):
dir_util.remove_tree(extra, dry_run=self.dry_run)
requires = [
'future>=0.16.0',
'requests>=2.14.0',
'sphinx>=1.8',
]
setup(
name='sphinxcontrib-confluencebuilder',
version='1.3.0-dev0',
url='https://github.com/sphinx-contrib/confluencebuilder',
download_url='https://pypi.python.org/pypi/sphinxcontrib-confluencebuilder',
license='BSD', # 2-clause
author='Anthony Shaw',
author_email='anthonyshaw@apache.org',
description="""Sphinx extension to output Atlassian Confluence Storage """
"""Markup documents and publish to Confluence instances.""",
long_description=long_desc,
zip_safe=False,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Documentation',
'Topic :: Utilities',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
platforms='any',
packages=find_packages(),
include_package_data=True,
install_requires=requires,
namespace_packages=['sphinxcontrib'],
test_suite='test',
tests_require=['sphinx'],
cmdclass={
'clean': ExtendedClean,
},
)