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
|
|
|
package_name = 'python-benedict' |
12
|
|
|
package_url = '{}/{}'.format(github_url, package_name) |
13
|
|
|
package_path = os.path.abspath(os.path.dirname(__file__)) |
14
|
|
|
long_description_file_path = os.path.join(package_path, 'README.md') |
15
|
|
|
long_description_content_type = 'text/markdown' |
16
|
|
|
long_description = '' |
17
|
|
|
try: |
18
|
|
|
long_description_file_options = {} if sys.version_info[0] < 3 else { 'encoding':'utf-8' } |
19
|
|
|
with open(long_description_file_path, 'r', **long_description_file_options) as f: |
20
|
|
|
long_description = f.read() |
21
|
|
|
except IOError: |
22
|
|
|
pass |
23
|
|
|
|
24
|
|
|
setup( |
25
|
|
|
name=package_name, |
26
|
|
|
packages=find_packages(exclude=['contrib', 'docs', 'tests*']), |
27
|
|
|
include_package_data=True, |
28
|
|
|
version=__version__, |
29
|
|
|
description=__description__, |
30
|
|
|
long_description=long_description, |
31
|
|
|
long_description_content_type=long_description_content_type, |
32
|
|
|
author=__author__, |
33
|
|
|
author_email=__email__, |
|
|
|
|
34
|
|
|
url=package_url, |
35
|
|
|
download_url='{}/archive/{}.tar.gz'.format(package_url, __version__), |
36
|
|
|
keywords=[ |
37
|
|
|
'python', 'dictionary', 'dictionaries', 'dict', 'benedict', |
38
|
|
|
'subclass', 'extended', 'keylist', 'keypath', 'utility', 'io', |
39
|
|
|
'data', 'file', 'url', 'read', 'write', 'parse', |
40
|
|
|
'base64', 'csv', 'json', 'query-string', 'toml', 'xml', 'yaml', |
41
|
|
|
'clean', 'clone', 'deepclone', 'deepupdate', 'dump', |
42
|
|
|
'filter', 'flatten', 'groupby', 'invert', 'merge', |
43
|
|
|
'move', 'nest', 'remove', 'rename', 'search', 'standardize', |
44
|
|
|
'subset', 'swap', 'traverse', 'unflatten', 'unique', |
45
|
|
|
], |
46
|
|
|
install_requires=[ |
47
|
|
|
'ftfy==4.4.3;python_version<"3.4"', |
48
|
|
|
'ftfy;python_version>"2.7"', |
49
|
|
|
'mailchecker', |
50
|
|
|
'phonenumbers', |
51
|
|
|
'python-dateutil', |
52
|
|
|
'python-slugify', |
53
|
|
|
'pyyaml', |
54
|
|
|
'requests', |
55
|
|
|
'six', |
56
|
|
|
'toml', |
57
|
|
|
'xmltodict', |
58
|
|
|
], |
59
|
|
|
classifiers=[ |
60
|
|
|
'Development Status :: 5 - Production/Stable', |
61
|
|
|
'Environment :: MacOS X', |
62
|
|
|
'Environment :: Other Environment', |
63
|
|
|
'Environment :: Web Environment', |
64
|
|
|
'Environment :: Win32 (MS Windows)', |
65
|
|
|
'Intended Audience :: Developers', |
66
|
|
|
'Intended Audience :: Education', |
67
|
|
|
'Intended Audience :: Information Technology', |
68
|
|
|
'Intended Audience :: Science/Research', |
69
|
|
|
'Intended Audience :: System Administrators', |
70
|
|
|
'License :: OSI Approved :: MIT License', |
71
|
|
|
'Natural Language :: English', |
72
|
|
|
'Operating System :: OS Independent', |
73
|
|
|
'Programming Language :: Python :: 2', |
74
|
|
|
'Programming Language :: Python :: 2.7', |
75
|
|
|
'Programming Language :: Python :: 3', |
76
|
|
|
'Programming Language :: Python :: 3.4', |
77
|
|
|
'Programming Language :: Python :: 3.5', |
78
|
|
|
'Programming Language :: Python :: 3.6', |
79
|
|
|
'Programming Language :: Python :: 3.7', |
80
|
|
|
'Programming Language :: Python :: 3.8', |
81
|
|
|
'Programming Language :: Python :: 3.9', |
82
|
|
|
'Topic :: Education :: Testing', |
83
|
|
|
'Topic :: Software Development :: Build Tools', |
84
|
|
|
'Topic :: System :: Filesystems', |
85
|
|
|
'Topic :: Text Processing :: Markup :: XML', |
86
|
|
|
'Topic :: Utilities', |
87
|
|
|
], |
88
|
|
|
license=__license__, |
89
|
|
|
test_suite='tests' |
90
|
|
|
) |
91
|
|
|
|