1
|
|
|
#!/usr/bin/env python |
2
|
|
|
|
3
|
|
|
import os |
4
|
|
|
|
5
|
|
|
from setuptools import find_packages, setup |
6
|
|
|
|
7
|
|
|
exec(open("benedict/metadata.py").read()) |
8
|
|
|
|
9
|
|
|
package_name = "python-benedict" |
10
|
|
|
package_url = f"https://github.com/fabiocaccamo/{package_name}" |
11
|
|
|
package_path = os.path.abspath(os.path.dirname(__file__)) |
12
|
|
|
download_url = f"{package_url}/archive/{__version__}.tar.gz" |
13
|
|
|
documentation_url = f"{package_url}#readme" |
14
|
|
|
issues_url = f"{package_url}/issues" |
15
|
|
|
sponsor_url = "https://github.com/sponsors/fabiocaccamo/" |
16
|
|
|
twitter_url = "https://twitter.com/fabiocaccamo" |
17
|
|
|
|
18
|
|
|
long_description_file_path = os.path.join(package_path, "README.md") |
19
|
|
|
long_description_content_type = "text/markdown" |
20
|
|
|
long_description = "" |
21
|
|
|
try: |
22
|
|
|
with open(long_description_file_path, "r", encoding="utf-8") as f: |
23
|
|
|
long_description = f.read() |
24
|
|
|
except IOError: |
25
|
|
|
pass |
26
|
|
|
|
27
|
|
|
setup( |
28
|
|
|
name=package_name, |
29
|
|
|
packages=find_packages(exclude=["contrib", "docs", "tests*"]), |
30
|
|
|
include_package_data=True, |
31
|
|
|
version=__version__, |
32
|
|
|
description=__description__, |
33
|
|
|
long_description=long_description, |
34
|
|
|
long_description_content_type=long_description_content_type, |
35
|
|
|
author=__author__, |
36
|
|
|
author_email=__email__, |
|
|
|
|
37
|
|
|
url=package_url, |
38
|
|
|
download_url=download_url, |
39
|
|
|
project_urls={ |
40
|
|
|
"Documentation": documentation_url, |
41
|
|
|
"Issues": issues_url, |
42
|
|
|
"Funding": sponsor_url, |
43
|
|
|
"Twitter": twitter_url, |
44
|
|
|
}, |
45
|
|
|
keywords=[ |
46
|
|
|
"python", |
47
|
|
|
"dictionary", |
48
|
|
|
"dictionaries", |
49
|
|
|
"dict", |
50
|
|
|
"benedict", |
51
|
|
|
"subclass", |
52
|
|
|
"extended", |
53
|
|
|
"keylist", |
54
|
|
|
"keypath", |
55
|
|
|
"utility", |
56
|
|
|
"io", |
57
|
|
|
"data", |
58
|
|
|
"file", |
59
|
|
|
"url", |
60
|
|
|
"read", |
61
|
|
|
"write", |
62
|
|
|
"parse", |
63
|
|
|
"configparser", |
64
|
|
|
"config", |
65
|
|
|
"cfg", |
66
|
|
|
"pickle", |
67
|
|
|
"plist", |
68
|
|
|
"base64", |
69
|
|
|
"csv", |
70
|
|
|
"ini", |
71
|
|
|
"json", |
72
|
|
|
"query-string", |
73
|
|
|
"toml", |
74
|
|
|
"xml", |
75
|
|
|
"yaml", |
76
|
|
|
"clean", |
77
|
|
|
"clone", |
78
|
|
|
"deepclone", |
79
|
|
|
"deepupdate", |
80
|
|
|
"dump", |
81
|
|
|
"filter", |
82
|
|
|
"flatten", |
83
|
|
|
"groupby", |
84
|
|
|
"invert", |
85
|
|
|
"merge", |
86
|
|
|
"move", |
87
|
|
|
"nest", |
88
|
|
|
"remove", |
89
|
|
|
"rename", |
90
|
|
|
"search", |
91
|
|
|
"standardize", |
92
|
|
|
"subset", |
93
|
|
|
"swap", |
94
|
|
|
"traverse", |
95
|
|
|
"unflatten", |
96
|
|
|
"unique", |
97
|
|
|
], |
98
|
|
|
install_requires=[ |
99
|
|
|
"boto3 >= 1.24.89, < 2.0.0", |
100
|
|
|
"ftfy >= 6.0.0, < 7.0.0", |
101
|
|
|
"mailchecker >= 4.1.0, < 6.0.0", |
102
|
|
|
"openpyxl >= 3.0.0, < 4.0.0", |
103
|
|
|
"phonenumbers >= 8.12.0, < 9.0.0", |
104
|
|
|
"python-dateutil >= 2.8.0, < 3.0.0", |
105
|
|
|
"python-fsutil >= 0.6.0, < 1.0.0", |
106
|
|
|
"python-slugify >= 6.0.1, < 8.0.0", |
107
|
|
|
"pyyaml >= 6.0, < 7.0", |
108
|
|
|
"requests >= 2.26.0, < 3.0.0", |
109
|
|
|
"toml >= 0.10.2, < 1.0.0", |
110
|
|
|
"xlrd >= 2.0.0, < 3.0.0", |
111
|
|
|
"xmltodict >= 0.12.0, < 1.0.0", |
112
|
|
|
], |
113
|
|
|
classifiers=[ |
114
|
|
|
"Development Status :: 5 - Production/Stable", |
115
|
|
|
"Environment :: MacOS X", |
116
|
|
|
"Environment :: Other Environment", |
117
|
|
|
"Environment :: Web Environment", |
118
|
|
|
"Environment :: Win32 (MS Windows)", |
119
|
|
|
"Intended Audience :: Developers", |
120
|
|
|
"Intended Audience :: Education", |
121
|
|
|
"Intended Audience :: Information Technology", |
122
|
|
|
"Intended Audience :: Science/Research", |
123
|
|
|
"Intended Audience :: System Administrators", |
124
|
|
|
"License :: OSI Approved :: MIT License", |
125
|
|
|
"Natural Language :: English", |
126
|
|
|
"Operating System :: OS Independent", |
127
|
|
|
"Programming Language :: Python :: 3", |
128
|
|
|
"Programming Language :: Python :: 3.8", |
129
|
|
|
"Programming Language :: Python :: 3.9", |
130
|
|
|
"Programming Language :: Python :: 3.10", |
131
|
|
|
"Programming Language :: Python :: 3.11", |
132
|
|
|
"Topic :: Education :: Testing", |
133
|
|
|
"Topic :: Software Development :: Build Tools", |
134
|
|
|
"Topic :: System :: Filesystems", |
135
|
|
|
"Topic :: Text Processing :: Markup :: XML", |
136
|
|
|
"Topic :: Utilities", |
137
|
|
|
], |
138
|
|
|
) |
139
|
|
|
|