-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (64 loc) · 2.45 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
72
73
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Config file for installing/publishing cmpdisktree
"""
# For a fully annotated version of this file and what it does, see
# https://github.com/pypa/sampleproject/blob/master/setup.py
import ast
import io
import os
import re
from setuptools import find_packages, setup
DEPENDENCIES = ['click','tqdm']
EXCLUDE_FROM_PACKAGES = ['contrib', 'docs', 'tests*']
CURDIR = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(CURDIR, 'README.md'), 'r', encoding='utf-8') as f:
README = f.read()
def get_version():
"""Version for setup function"""
main_file = os.path.join(CURDIR, 'cmpdisktree', '__init__.py')
_version_re = re.compile(r'__version__\s+=\s+(?P<version>.*)')
with open(main_file, 'r', encoding='utf8') as f:
match = _version_re.search(f.read())
version = match.group("version") if match is not None else '"unknown"'
return str(ast.literal_eval(version))
setup(
name='cmpdisktree',
version=get_version(),
author='halloleo',
author_email='[email protected]',
description="Compare Directories as macOS Disk Structures",
long_description=README,
long_description_content_type='text/markdown',
url='https://github.com/halloleo/cmpdisktree',
packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES),
include_package_data=True,
keywords=['system', 'man', 'help'],
scripts=[],
entry_points={'console_scripts': ['cmpdisktree=cmpdisktree.main:main']},
zip_safe=False,
install_requires=DEPENDENCIES,
test_suite='tests.test_project',
python_requires='>=3.6',
# license and classifier list:
# https://pypi.org/pypi?%3Aaction=list_classifiers
license='License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: Implementation :: CPython',
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Operating System :: Unix',
'Topic :: System :: Archiving :: Backup',
'Topic :: System :: Filesystems',
'Topic :: System :: Systems Administration',
'Topic :: Utilities',
],
)