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.7 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
58
  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. requirements = f.read().splitlines()
  18. return [r for r in requirements if not r.startswith("--") and not r.startswith("#")]
  19. def get_pro_requirements():
  20. with open(REQ_PRO_LOCATION, encoding="utf-8") as f:
  21. return f.read().splitlines()
  22. def get_version():
  23. with open(VERSION_FILE, encoding="utf-8") as f:
  24. return f.readline()
  25. setup(
  26. name="super-gradients",
  27. version=get_version(),
  28. description="SuperGradients",
  29. author="Deci AI",
  30. author_email="rnd@deci.ai",
  31. url="https://deci-ai.github.io/super-gradients/welcome.html",
  32. keywords=["Deci", "AI", "Training", "Deep Learning", "Computer Vision", "PyTorch", "SOTA", "Recipes", "Pre Trained", "Models"],
  33. install_requires=get_requirements(),
  34. packages=find_packages(where="./src"),
  35. package_dir={"": "src"},
  36. package_data={
  37. "super_gradients.recipes": ["*.yaml", "**/*.yaml"],
  38. "super_gradients.common": ["auto_logging/auto_logging_conf.json"],
  39. "super_gradients.examples": ["*.ipynb", "**/*.ipynb"],
  40. "super_gradients": ["requirements.txt", "requirements.pro.txt"],
  41. },
  42. long_description=readme(),
  43. long_description_content_type="text/markdown",
  44. extras_require={"pro": get_pro_requirements()},
  45. )
Tip!

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

Comments

Loading...