-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (47 loc) · 1.59 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
#!/usr/bin/env python
"""filepanther setup.py"""
from setuptools import setup
from setuptools import find_packages
import io
# import filepanther
# NOTE: can't do that here before dependencies installed, silly.
VERSION = '1.1.1' # should match __version__ in filepanther.__init__.py
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)
_long_description = read('README.md') # , 'CHANGES.txt')
_tests_require = [
line.strip() for line in open('tests_requirements.txt')
if line.strip() and not line.strip().startswith('--')
]
_install_requires = [
line.strip() for line in open('requirements.txt')
if line.strip() and not line.strip().startswith('--')
]
_extras_require = {
'test': _tests_require
}
setup(
name='filepanther',
version=VERSION,
description='Filepaths as metadata strings',
long_description=_long_description,
author='Tylar Murray',
author_email='[email protected]',
url='https://github.com/7yl4r/filepanther',
install_requires=_install_requires,
tests_require=_tests_require,
extras_require=_extras_require,
entry_points={ # sets up CLI (eg bash) commands
'console_scripts': [
'filepanther = filepanther.__main__:_main',
],
},
# cmdclass={'test': PyTest}, # custom build commands for test/lint/etc
packages=find_packages() # modules added to python when installed
)