-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
31 lines (26 loc) · 866 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
from setuptools import setup, find_packages
import re
from pathlib import Path
if __name__ == "__main__":
here = Path(__file__).parent
# Read package version
version = re.search(
r'__version__ = "(.+?)"',
(here / "frogbox" / "__init__.py").read_text("utf8"),
).group(1)
# Read requirements from requirements.txt
requirements = (
(here / "requirements.txt").read_text("utf8").strip().split("\n")
)
setup(
name="frogbox",
description="An opinionated machine learning framework.",
version=version,
author="Simon J. Larsen",
author_email="[email protected]",
license="MIT",
packages=find_packages(),
include_package_data=True,
install_requires=requirements,
entry_points={"console_scripts": ["frogbox=frogbox.cli:cli"]},
)