forked from Colin-b/pyxelrest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
126 lines (122 loc) · 5.54 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
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
import os
from setuptools import setup, find_packages
this_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_dir, "README.md"), "r") as f:
long_description = f.read()
# More information on properties: https://packaging.python.org/distributing
setup(
name="pyxelrest",
version=open("pyxelrest/version.py").readlines()[-1].split()[-1].strip("\"'"),
author="Colin Bounouar",
author_email="colin.bounouar.dev@gmail.com",
maintainer="Colin Bounouar",
maintainer_email="colin.bounouar.dev@gmail.com",
url="https://colin-b.github.io/pyxelrest/",
description="Query REST APIs using Microsoft Excel formulas or python functions",
long_description=long_description,
long_description_content_type="text/markdown",
download_url="https://pypi.org/project/pyxelrest/",
license="MIT",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: Microsoft :: Windows :: Windows 7",
"Operating System :: Microsoft :: Windows :: Windows 10",
],
keywords=["excel", "openapi", "swagger", "rest", "udf", "service"],
packages=find_packages(exclude=["tests*", "pyxelrest.generated"]),
package_data={
"pyxelrest": [
"generated_api.jinja2",
"generated_init.jinja2",
]
},
data_files=[
(
"pyxelrest_addin",
[
"addin/PyxelRestAddIn/bin/Release/PyxelRestAddIn.dll",
"addin/PyxelRestAddIn/bin/Release/PyxelRestAddIn.dll.config",
"addin/PyxelRestAddIn/bin/Release/PyxelRestAddIn.dll.manifest",
"addin/PyxelRestAddIn/bin/Release/PyxelRestAddIn.vsto",
# Package Dependencies to ensure that it will work on any client
"addin/PyxelRestAddIn/bin/Release/log4net.dll",
"addin/PyxelRestAddIn/bin/Release/log4net.xml",
"addin/PyxelRestAddIn/bin/Release/Microsoft.Office.Tools.Common.v4.0.Utilities.dll",
"addin/PyxelRestAddIn/bin/Release/Microsoft.Office.Tools.Excel.dll",
"addin/PyxelRestAddIn/bin/Release/Microsoft.Office.Tools.v4.0.Framework.dll",
"addin/PyxelRestAddIn/bin/Release/Microsoft.VisualStudio.Tools.Applications.Runtime.dll",
"addin/PyxelRestAddIn/bin/Release/YamlDotNet.dll",
"addin/PyxelRestAddIn/bin/Release/YamlDotNet.xml",
# VB Add-in
"addin/pyxelrest.xlam",
],
),
(
"pyxelrest_addin/resources",
[
"addin/PyxelRestAddIn/bin/Release/resources/add-file-16.png",
"addin/PyxelRestAddIn/bin/Release/resources/data-transfer-download-128.png",
"addin/PyxelRestAddIn/bin/Release/resources/data-transfer-download-128_grey.png",
"addin/PyxelRestAddIn/bin/Release/resources/data-transfer-download-128_orange.png",
"addin/PyxelRestAddIn/bin/Release/resources/file-4-16.png",
"addin/PyxelRestAddIn/bin/Release/resources/folder-3-128.png",
"addin/PyxelRestAddIn/bin/Release/resources/help-128.png",
"addin/PyxelRestAddIn/bin/Release/resources/plus-4-16.png",
"addin/PyxelRestAddIn/bin/Release/resources/plus-4-16_grey.png",
"addin/PyxelRestAddIn/bin/Release/resources/plus-5-16.png",
"addin/PyxelRestAddIn/bin/Release/resources/refresh-128.png",
"addin/PyxelRestAddIn/bin/Release/resources/refresh-128_orange.png",
"addin/PyxelRestAddIn/bin/Release/resources/settings-8-16.ico",
"addin/PyxelRestAddIn/bin/Release/resources/settings-8-128.png",
"addin/PyxelRestAddIn/bin/Release/resources/x-mark-3-16.png",
"addin/PyxelRestAddIn/bin/Release/resources/x-mark-4-16.png",
],
),
],
install_requires=[
# Used to generate UDFs python file from a template
"jinja2==3.*",
# Used to communicate with services
"requests==2.*",
# Used to communicate with Microsoft Excel (pywin32 dependency is also used to check that Excel is not running)
"xlwings==0.25.*",
# Used to parse configuration files
"pyyaml==6.*",
"pyaml==21.*",
# Used to manage authentication
"requests_auth==5.*",
# Used to parse all date-time formats in a easy way
"python-dateutil==2.*",
],
extras_require={
"testing": [
# Used to run tests
"pytest-cov==3.*",
# Used to mock responses
"pytest-responses==0.5.*",
# Optional dependency: Used to test results caching
"cachetools==4.*",
],
},
python_requires=">=3.8",
entry_points={
"console_scripts": [
"pyxelrest_install_addin=pyxelrest.install_addin:main",
"pyxelrest_add_config=pyxelrest._add_config:main",
]
},
project_urls={
"GitHub": "https://github.com/Colin-b/pyxelrest",
"Changelog": "https://github.com/Colin-b/pyxelrest/blob/master/CHANGELOG.md",
"Issues": "https://github.com/Colin-b/pyxelrest/issues",
},
platforms=["Windows"],
)