-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
38 lines (32 loc) · 1005 Bytes
/
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
from setuptools import setup, find_packages
def get_version(filename):
'''
Parse the value of the __version__ var from a Python source file
without running/importing the file.
'''
import re
version_pattern = r'^ *__version__ *= *[\'"](\d+\.\d+\.\d+)[\'"] *$'
match = re.search(version_pattern, open(filename).read(), re.MULTILINE)
assert match, ('No version found in file: {!r} matching pattern: {!r}'
.format(filename, version_pattern))
return match.group(1)
setup(
name='genizah-data-tools',
version='0.0.0', #get_version('src/genizahdata/_version.py'),
packages=find_packages('src'),
package_dir={'': 'src'},
author='Hal Blackburn',
install_requires=[
'docopt <1'
],
test_requires=[
'pytest'
'pytest-lazy-fixture'
'pytest-cov'
],
entry_points={
'console_scripts': [
'genizah-titles-extract=genizahdata:extract_genizah_titles_cmd'
]
}
)