-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (40 loc) · 1.28 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
from setuptools import setup, find_packages
def get_requirements(file_path:str)->List[str]:
"""
this function will give list of requriments
"""
requirement = []
with open(file_path, 'r') as file_obj:
requirement=file_obj.readlines()
requirement = [req.rstrip() for req in requirement]
#print(requirement)
if '-e .' in requirement:
requirement.remove('-e .')
return requirement
with open("README.md", "r") as f:
description = f.read()
setup(
name="newberryai",
use_scm_version=True,
setup_requires=["setuptools_scm"],
author="Saurabh Patil, Jaideepsinh Dabhi, Harsh Langaliya",
author_email="jaideep@newberry.ai",
description="NewberryAI Python Package",
packages=find_packages(),
install_requires=get_requirements('requirements.txt'),
entry_points={
"console_scripts": [
"newberryai=newberryai.cli:main",
]
},
url="https://github.com/HolboxAI/newberryai",
long_description=description,
long_description_content_type="text/markdown",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
)