-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
64 lines (53 loc) · 1.87 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
from setuptools import setup
import codecs
import os.path
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), "r") as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
with open("README.md") as readme_file:
readme = readme_file.read()
test_deps = (["pytest", "coverage"],)
extra_deps = {"test": test_deps}
setup(
author="Thomas Mohren",
author_email="[email protected]",
python_requires=">=3.6",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
description="Data writers with optional timestamps for logging of events",
license="MIT license",
long_description=readme,
long_description_content_type="text/markdown",
include_package_data=True,
name="event_data_logging",
packages=["event_data_logging"],
test_suite="tests",
install_requires=["numpy"],
tests_require=test_deps,
extras_require=extra_deps,
package_dir={"": "src"},
url="https://github.com/maimonlab/event_data_logging",
# version=version,
version=get_version("src/event_data_logging/__init__.py"),
zip_safe=False,
)
# keywords="python_boilerplate",
# packages=find_packages(include=["python_boilerplate", "python_boilerplate.*"]),
# packages=find_packages(where="src"),
# package_data=[]