Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

setup.py 834 B

You have to be logged in to leave a comment. Sign In
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
  1. from setuptools import find_packages,setup
  2. from typing import List
  3. HYPEN_E_DOT = '-e .'
  4. def get_requirements(file_path: str) -> List[str]:
  5. '''
  6. This function will return list of requirements
  7. '''
  8. requirements = []
  9. with open(file_path) as file_obj:
  10. requirements = file_obj.readlines()
  11. requirements = [req.replace('\n', '') for req in requirements]
  12. # Remove any editable requirement specified with '-e.' at the beginning of the line
  13. if HYPEN_E_DOT in requirements:
  14. requirements.remove(HYPEN_E_DOT)
  15. return requirements
  16. setup(
  17. name='ml-best-practices',
  18. version='0.0.1',
  19. author='Karan Shingde',
  20. author_email='karanshingde@gmail.com',
  21. packages=find_packages(),
  22. install_requires=get_requirements('requirements.txt')
  23. )
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...