-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
63 lines (59 loc) · 1.92 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
from distutils.command.clean import clean
from setuptools import setup
class CleanAlsoSphinx(clean):
def run(self):
super().run()
import shutil
from pathlib import Path
dirs_to_remove = ['docs/doctrees/', 'docs/html/', 'docs/api/']
for dir_to_remove in dirs_to_remove:
dir_to_remove_abs = Path(dir_to_remove).resolve()
print(f'Removing {dir_to_remove_abs}...')
shutil.rmtree(dir_to_remove_abs, ignore_errors=True)
name = 'PyDocuShare'
setup(
name = name,
description = 'Python API to interact with DocuShare',
long_description = 'Python API to interact with DocuShare',
long_description_content_type = 'text/markdown',
url = 'https://tmtsoftware.github.io/pydocushare/',
author = 'Takashi Nakamoto',
author_email = '[email protected]',
license = 'GPLv2',
packages = ['docushare'],
python_requires = '>=3.8',
use_scm_version = True,
setup_requires = [
'setuptools_scm',
'sphinx >= 4.5.0',
'sphinx-rtd-theme >= 1.0.0',
'sphinx-automodapi >= 0.14.1',
'enum-tools >= 0.9.0',
],
install_requires = [
'beautifulsoup4 >= 4.8.2',
'requests >= 2.22.0',
'pyduktape >= 0.0.6',
'anytree >= 2.8.0',
],
extras_require = {
'password-store': ['keyring >= 18.0.1'],
'progress-bar': ['tqdm >= 4.30.0'],
},
classifiers=[
'Topic :: Utilities'
],
keywords = 'DocuShare',
command_options={
'build_sphinx': {
'project' : ('setup.py', name),
'copyright' : ('setup.py', '2022 TMT International Observatory'),
'source_dir': ('setup.py', 'docs'),
'build_dir' : ('setup.py', 'docs'),
'builder' : ('setup.py', 'html'),
}
},
cmdclass = {
'clean': CleanAlsoSphinx,
}
)