-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.py
56 lines (44 loc) · 1.46 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
import os
from setuptools import setup, find_packages
def get_here(file: str):
return os.path.join(os.path.dirname(os.path.realpath(__file__)), file)
def get_long_description():
readme = get_here('README.md')
if os.path.isfile(readme):
with open(readme, 'r') as f:
return f.read()
return ''
def get_name():
return 'satorineuron'
def get_version():
return '0.0.1'
def get_requirements():
requirements = get_here('requirements.txt')
if os.path.isfile(requirements):
with open(requirements, 'r') as f:
return f.read().splitlines()
return []
setup(
name=get_name(),
version=get_version(),
description='the Satori engine builds and uses simple preditive models.',
long_description=get_long_description(),
long_description_content_type="text/markdown",
packages=[f'{get_name()}.{p}' for p in find_packages(where=get_name())],
install_requires=get_requirements(),
python_requires='>=3.9.5',
author='Jordan Miller',
author_email="[email protected]",
url=f'https://github.com/SatoriNetwork/{get_name()}',
download_url=f'https://github.com/SatoriNetwork/{get_name()}',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
entry_points={
"console_scripts": [
f"{get_name()} = {get_name()}.cli:main",
]
},
)