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__, |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
![]() |
|||
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 :: Web Environment', |
||
62 | 'Intended Audience :: Developers', |
||
63 | 'License :: OSI Approved :: MIT License', |
||
64 | 'Natural Language :: English', |
||
65 | 'Operating System :: OS Independent', |
||
66 | 'Programming Language :: Python :: 2', |
||
67 | 'Programming Language :: Python :: 2.7', |
||
68 | 'Programming Language :: Python :: 3', |
||
69 | 'Programming Language :: Python :: 3.4', |
||
70 | 'Programming Language :: Python :: 3.5', |
||
71 | 'Programming Language :: Python :: 3.6', |
||
72 | 'Programming Language :: Python :: 3.7', |
||
73 | 'Programming Language :: Python :: 3.8', |
||
74 | 'Topic :: Software Development :: Build Tools', |
||
75 | ], |
||
76 | license=__license__, |
||
77 | test_suite='tests' |
||
78 | ) |
||
79 |