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