This repository was archived by the owner on Jan 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsetup.py
More file actions
156 lines (149 loc) · 6.42 KB
/
setup.py
File metadata and controls
156 lines (149 loc) · 6.42 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# -*- coding: utf-8 -*-
import sys
import os
from setuptools import setup, Extension, find_packages
from pyquicksetup import read_version, read_readme, default_cmdclass
#########
# settings
#########
project_var_name = "pyquickhelper"
github_owner = "sdpython"
versionPython = f"{sys.version_info.major}.{sys.version_info.minor}"
path = "Lib/site-packages/" + project_var_name
readme = 'README.rst'
history = "HISTORY.rst"
requirements = None
KEYWORDS = [project_var_name,
'synchronization, files', 'documentation', 'Xavier Dupré',
'sphinx', 'notebooks', 'rst', 'helpers', 'automation']
DESCRIPTION = (
"Various functionalities: folder synchronization, simple logging function, "
"helpers to generate documentation with sphinx, sphinx extension, "
"to run a command line, to run a notebook...")
CLASSIFIERS = [
'Programming Language :: Python :: 3',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Development Status :: 5 - Production/Stable'
]
#######
# data
#######
packages = find_packages('src', exclude='src')
package_dir = {k: "src/" + k.replace(".", "/") for k in packages}
package_data = {
project_var_name + ".sphinxext": ["*.png"],
project_var_name + ".ipythonhelper": ["*.png"],
project_var_name + ".filehelper": ["*.js", "*.css"],
project_var_name + ".helpgen": ["*.js", "*.tpl"],
project_var_name + ".sphinxext.sphinximages.sphinxtrib": ["*.png"],
project_var_name + ".sphinxext.revealjs.templates.revealjs": ["*.conf", "*.html", "*.txt"],
project_var_name + ".sphinxext.revealjs.templates.revealjs.static": ["LICENSE", "*.json", "*.css_t"],
project_var_name + ".sphinxext.revealjs.templates.revealjs.static.css": ["*.css", "*.scss"],
project_var_name + ".sphinxext.revealjs.templates.revealjs.static.css.print": ["*.css"],
project_var_name + ".sphinxext.revealjs.templates.revealjs.static.css.theme": ["*.css", "*.md"],
project_var_name + ".sphinxext.revealjs.templates.revealjs.static.css.theme.source": ["*.scss"],
project_var_name + ".sphinxext.revealjs.templates.revealjs.static.css.theme.template": ["*.scss"],
project_var_name + ".sphinxext.revealjs.templates.revealjs.static.js": ["*.js"],
project_var_name + ".sphinxext.revealjs.templates.revealjs.static.lib.css": ["*.css"],
project_var_name + ".sphinxext.revealjs.templates.revealjs.static.lib.font": [
"league-gothic/*.*", "source-sans-pro/*.*"],
project_var_name + ".sphinxext.revealjs.templates.revealjs.static.lib.js": ["*.js"],
project_var_name + ".sphinxext.revealjs.templates.revealjs.static.lib.plugin.highlight": ["*.js"],
project_var_name + ".sphinxext.revealjs.templates.revealjs.static.lib.plugin.markdown": ["*.*"],
project_var_name + ".sphinxext.revealjs.templates.revealjs.static.lib.plugin.math": ["*.js"],
project_var_name + ".sphinxext.revealjs.templates.revealjs.static.lib.plugin.multiplex": ["*.*"],
project_var_name + ".sphinxext.revealjs.templates.revealjs.static.lib.plugin.notes": ["*.js"],
project_var_name + ".sphinxext.revealjs.templates.revealjs.static.lib.plugin.search": ["*.js"],
project_var_name + ".sphinxext.revealjs.templates.revealjs.static.lib.plugin": [
"notes-server/*.*", "print-pdf/*.js", "zoom-js/*.js"],
project_var_name + ".sphinxext.sphinximages.sphinxcontrib_images_lightbox2.lightbox2_customize": ["*.js"],
project_var_name + ".sphinxext.sphinximages.sphinxcontrib_images_lightbox2.lightbox2.css": ["*.css"],
project_var_name + ".sphinxext.sphinximages.sphinxcontrib_images_lightbox2.lightbox2.img": ["*.png", "*.gif"],
project_var_name + ".sphinxext.sphinximages.sphinxcontrib_images_lightbox2.lightbox2.js": ["*.js", "*.map"],
project_var_name + ".sphinxext.sphinximages.sphinxcontrib_images_lightbox2.lightbox2.sass": ["*.sass"],
project_var_name + ".sphinxext.sphinximages.sphinxtrib": ["*.png"],
project_var_name + ".sphinxext.templates": ["*.txt"],
}
#######
# data
#######
setup(
name=project_var_name,
version=read_version(__file__, "pyquickhelper", subfolder='src'),
author='Xavier Dupré',
author_email='xavier.dupre@gmail.com',
license="MIT",
url="http://www.xavierdupre.fr/app/pyquickhelper/helpsphinx/index.html",
download_url="https://github.com/sdpython/pyquickhelper",
description=DESCRIPTION,
long_description=read_readme(__file__),
keywords=KEYWORDS,
classifiers=CLASSIFIERS,
packages=packages,
package_dir=package_dir,
package_data=package_data,
ext_modules=[],
cmdclass=default_cmdclass(),
setup_requires=['pyquicksetup>=0.2'],
install_requires=[
'fire',
'numpy>=1.16.0',
'pyquicksetup>=0.2',
],
extras_require={
'cli': ['tkinterquickhelper', 'pysftp', 'fire'],
# cryptography
'filehelper': ['cffi', 'cryptography', 'pylzma', 'pysftp',
'keyrings.cryptfile'],
'jenkinshelper': ['python-jenkins>=1.0.0', 'pyyaml'],
'loghelper': ['psutil'],
'server': ['fastapi'],
'all': [
"autopep8", # part of the minimal list
'cffi',
"coverage>=5.0",
'cryptography',
"docformatter",
"docutils",
'flake8',
'fastapi',
'fire',
"IPython>=5.0.0",
"jupyter",
"jupyter_client",
"jupyter_sphinx",
"jyquickhelper",
"keyring",
"keyrings.cryptfile",
"matplotlib",
"metakernel",
"multi_key_dict",
"nbconvert>=6",
"notebook>=4.2.0",
"numpy>=1.16.0",
"numpydoc",
"pandas>=1.0.0",
'psutil',
"pylint",
'python-jenkins>=1.0.0',
'pyyaml',
'pylzma',
'pysftp',
"requests",
"semantic_version",
"sphinx>=5.0",
"sphinx-gallery",
"traitlets>=5.0",
],
},
entry_points={
'console_scripts': [
'encrypt = pyquickhelper.cli.encryption_cli:encrypt',
'decrypt = pyquickhelper.cli.encryption_cli:decrypt',
'encrypt_file = pyquickhelper.cli.encryption_file_cli:encrypt_file',
'decrypt_file = pyquickhelper.cli.encryption_file_cli:decrypt_file',
'pyq-sync = pyquickhelper.cli.pyq_sync_cli:pyq_sync',
]}
)