-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
69 lines (56 loc) · 1.73 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
#!/usr/bin/env python
"""
hansel
------
Flexible parametric file paths to make queries, build folder trees and
smart folder structure access.
"""
import io
from setuptools import setup, find_packages
requirements = [
'click>=6.7',
]
# long description
def read(*filenames, **kwargs):
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
setup_dict = dict(
name='hansel',
version='2.0.1',
description='Easily traverse your structured folder tree.',
url='https://pypi.python.org/pypi/hansel',
license='Apache 2.0',
author='alexsavio',
author_email='alexsavio@gmail.com',
maintainer='alexsavio',
maintainer_email='alexsavio@gmail.com',
packages=find_packages(exclude=['tests']),
install_requires=requirements,
entry_points='''
[console_scripts]
crumb=hansel.cli:cli
''',
long_description=read('README.rst', 'CHANGES.rst'),
platforms='Linux/MacOSX',
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Programming Language :: Python',
'Development Status :: 5 - Production/Stable',
'Natural Language :: English',
'Environment :: Console',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Programming Language :: Python :: 3.6',
],
)
if __name__ == '__main__':
setup(**setup_dict)