-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (51 loc) · 1.58 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
# VIM SETTINGS: {{{3
# vim: set tabstop=4 modeline modelines=10 foldmethod=marker:
# vim: set foldlevel=2 foldcolumn=3:
# }}}1
import re
from distutils.core import setup
from setuptools import setup
version = re.search(
'^__version__\s*=\s*"(.*)"',
open('dtscan/__main__.py').read(),
re.M
).group(1)
with open("README.md", "rb") as f:
long_descr = f.read().decode("utf-8")
#setup(
# name = "cmdline-bootstrap",
# packages = ["bootstrap"],
# entry_points = {
# "console_scripts": ['bootstrap = bootstrap.bootstrap:main']
# },
# version = version,
# description = "Python command line application bare bones template.",
# long_description = long_descr,
# author = "Jan-Philip Gehrcke",
# author_email = "jgehrcke@googlemail.com",
# url = "http://gehrcke.de/2014/02/distributing-a-python-command-line-application",
# )
test_depend = [
'pytest'
'pandas'
'tzlocal'
'pytz'
'dateparser'
]
setup(
name="dtscan",
version=version,
author="Matthew L Davis",
author_email="mld.0@protonmail.com",
description="Scan for, parse, and analyse datetimes in text",
long_description=long_descr,
packages = ['dtscan', 'tests', 'tests.data.test_check', 'tests.data.test_input' ],
package_data = { 'dtscan': [ '*.txt' ], 'tests.data.test_check': [ '*.txt' ], 'tests.data.test_input': [ '*.txt', 'scandir/*.txt' ], },
tests_require=test_depend,
entry_points={
'console_scripts': [
'dtscan= dtscan.__main__:cliscan',
'dtrange=dtscan.__main__:clirange',
],
}
)