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 1.6 KB

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
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
57
  1. # coding: utf-8
  2. """
  3. Deci Training Toolkit
  4. """
  5. from setuptools import setup
  6. from setuptools import find_packages
  7. README_LOCATION = "README.md"
  8. REQ_LOCATION = "requirements.txt"
  9. REQ_PRO_LOCATION = "requirements.pro.txt"
  10. VERSION_FILE = "version.txt"
  11. def readme():
  12. """print long description"""
  13. with open(README_LOCATION, encoding="utf-8") as f:
  14. return f.read()
  15. def get_requirements():
  16. with open(REQ_LOCATION, encoding="utf-8") as f:
  17. return f.read().splitlines()
  18. def get_pro_requirements():
  19. with open(REQ_PRO_LOCATION, encoding="utf-8") as f:
  20. return f.read().splitlines()
  21. def get_version():
  22. with open(VERSION_FILE, encoding="utf-8") as f:
  23. return f.readline()
  24. setup(
  25. name="super-gradients",
  26. version=get_version(),
  27. description="SuperGradients",
  28. author="Deci AI",
  29. author_email="rnd@deci.ai",
  30. url="https://deci-ai.github.io/super-gradients/welcome.html",
  31. keywords=["Deci", "AI", "Training", "Deep Learning", "Computer Vision", "PyTorch", "SOTA", "Recipes", "Pre Trained", "Models"],
  32. install_requires=get_requirements(),
  33. packages=find_packages(where="./src"),
  34. package_dir={"": "src"},
  35. package_data={
  36. "super_gradients.recipes": ["*.yaml", "**/*.yaml"],
  37. "super_gradients.common": ["auto_logging/auto_logging_conf.json"],
  38. "super_gradients.examples": ["*.ipynb", "**/*.ipynb"],
  39. "super_gradients": ["requirements.txt", "requirements.pro.txt"],
  40. },
  41. long_description=readme(),
  42. long_description_content_type="text/markdown",
  43. extras_require={"pro": get_pro_requirements()},
  44. )
Tip!

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

Comments

Loading...