-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
36 lines (32 loc) · 1.19 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
from pathlib import Path
from setuptools import find_namespace_packages, setup, find_packages
import requirements
name_ns, name_base = 'fmtr', 'tools'
name = f'{name_ns}.{name_base}'
path_segment = f'{name_ns}/{name_base}'
path_base = Path(__file__).absolute().parent
path_ver = path_base / path_segment / 'version'
__version__ = path_ver.read_text().strip()
packages = find_packages(where=path_segment)
packages = [name] + [f'{name}.{nsp}' for nsp in packages]
setup(
name=name,
version=__version__,
url=f'https://github.com/{name_ns}/{name}',
license='Copyright © 2024 Frontmatter. All rights reserved.',
author='Frontmatter',
author_email='[email protected]',
description='Collection of high-level tools to simplify everyday development tasks, with a focus on AI/ML',
long_description=(path_base / 'README.md').read_text(),
long_description_content_type='text/markdown',
packages=find_namespace_packages(),
package_dir={'': '.'},
package_data={
name: [f'version'],
},
entry_points={
'console_scripts': requirements.CONSOLE_SCRIPTS,
},
install_requires=requirements.INSTALL,
extras_require=requirements.EXTRAS,
)