forked from cdgriffith/Box
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (54 loc) · 2.03 KB
/
setup.py
File metadata and controls
62 lines (54 loc) · 2.03 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
import os
import re
import sys
# Fix for issues with testing, experienced on win10
import multiprocessing
root = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(root, "box.py"), "r") as reuse_file:
reuse_content = reuse_file.read()
attrs = dict(re.findall(r"__([a-z]+)__ *= *['\"](.+)['\"]", reuse_content))
with open("README.rst", "r") as readme_file:
long_description = readme_file.read()
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
setup(
name='python-box',
version=attrs['version'],
url='https://github.com/cdgriffith/Box',
license='MIT',
author=attrs['author'],
tests_require=["pytest", "coverage >= 3.6", "pytest-cov"],
install_requires=['toml', 'ruamel.yaml'],
author_email='chris@cdgriffith.com',
description='Advanced Python dictionaries with dot notation access',
long_description=long_description,
scripts=['box.py'],
py_modules=['box'],
python_requires='>=3.6',
include_package_data=True,
platforms='any',
setup_requires=pytest_runner,
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Development Status :: 5 - Production/Stable',
'Natural Language :: English',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Utilities',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Python Modules'
],
extras_require={
'testing': ["pytest", "coverage >= 3.6", "pytest-cov"],
},
)