-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·71 lines (67 loc) · 1.83 KB
/
setup.py
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
63
64
65
66
67
68
69
70
71
#!/usr/bin/env python
# -*- coding:utf-8 -*-
""" Setup script for csft """
from distutils.version import LooseVersion
from runpy import run_path
from sys import version
from setuptools import find_packages, setup
REQUIRES = [
'pandas >= 0.20.3',
'humanfriendly >= 4.6',
]
SYS_VERSION = LooseVersion(version)
if SYS_VERSION < LooseVersion('3.4'):
REQUIRES.append('pathlib >= 1.0.1')
if SYS_VERSION < LooseVersion('3.5'):
REQUIRES[0] = 'pandas >= 0.20.3, < 0.22'
REQUIRES.append('scandir >= 1.5')
INFO = run_path('src/csft/_meta.py')
setup(
# metadata
name='csft',
description='Count Sizes of File Types',
url=INFO['__url__'],
author=INFO['__author__'],
author_email=INFO['__email__'],
license=INFO['__license__'],
use_scm_version=True,
# package
zip_safe=False,
packages=find_packages('src'),
package_dir={'': 'src'},
entry_points={
'console_scripts': ('csft = csft.__main__:main', ),
},
# requires
python_requires='>=3.4',
install_requires=REQUIRES,
setup_requires=[
'pytest-runner',
'setuptools_scm',
],
tests_require=[
'pytest',
'pytest-cov',
'pytest-pep8',
'pytest-flakes',
'pytest-mock',
'pytest-isort',
'pytest-yapf3',
'mock',
],
# PyPI
keywords=['CLI'],
platforms=['any'],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)