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 3.1 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
  1. # Ultralytics YOLO 🚀, AGPL-3.0 license
  2. import re
  3. from pathlib import Path
  4. import pkg_resources as pkg
  5. from setuptools import find_packages, setup
  6. # Settings
  7. FILE = Path(__file__).resolve()
  8. PARENT = FILE.parent # root directory
  9. README = (PARENT / 'README.md').read_text(encoding='utf-8')
  10. REQUIREMENTS = [f'{x.name}{x.specifier}' for x in pkg.parse_requirements((PARENT / 'requirements.txt').read_text())]
  11. PKG_REQUIREMENTS = ['sentry_sdk'] # pip-only requirements
  12. def get_version():
  13. file = PARENT / 'ultralytics/__init__.py'
  14. return re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', file.read_text(encoding='utf-8'), re.M)[1]
  15. setup(
  16. name='ultralytics', # name of pypi package
  17. version=get_version(), # version of pypi package
  18. python_requires='>=3.7',
  19. license='AGPL-3.0',
  20. description=('Ultralytics YOLOv8 for SOTA object detection, multi-object tracking, instance segmentation, '
  21. 'pose estimation and image classification.'),
  22. long_description=README,
  23. long_description_content_type='text/markdown',
  24. url='https://github.com/ultralytics/ultralytics',
  25. project_urls={
  26. 'Bug Reports': 'https://github.com/ultralytics/ultralytics/issues',
  27. 'Funding': 'https://ultralytics.com',
  28. 'Source': 'https://github.com/ultralytics/ultralytics'},
  29. author='Ultralytics',
  30. author_email='hello@ultralytics.com',
  31. packages=find_packages(), # required
  32. include_package_data=True,
  33. install_requires=REQUIREMENTS + PKG_REQUIREMENTS,
  34. extras_require={
  35. 'dev': [
  36. 'check-manifest',
  37. 'pytest',
  38. 'pytest-cov',
  39. 'coverage',
  40. 'mkdocs-material',
  41. 'mkdocstrings[python]',
  42. 'mkdocs-redirects', # for 301 redirects
  43. 'mkdocs-ultralytics-plugin', # for meta descriptions and images, dates and authors
  44. ],
  45. 'export': ['coremltools>=6.0', 'openvino-dev>=2022.3', 'tensorflowjs'], # automatically installs tensorflow
  46. },
  47. classifiers=[
  48. 'Development Status :: 4 - Beta',
  49. 'Intended Audience :: Developers',
  50. 'Intended Audience :: Education',
  51. 'Intended Audience :: Science/Research',
  52. 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
  53. 'Programming Language :: Python :: 3',
  54. 'Programming Language :: Python :: 3.7',
  55. 'Programming Language :: Python :: 3.8',
  56. 'Programming Language :: Python :: 3.9',
  57. 'Programming Language :: Python :: 3.10',
  58. 'Programming Language :: Python :: 3.11',
  59. 'Topic :: Software Development',
  60. 'Topic :: Scientific/Engineering',
  61. 'Topic :: Scientific/Engineering :: Artificial Intelligence',
  62. 'Topic :: Scientific/Engineering :: Image Recognition',
  63. 'Operating System :: POSIX :: Linux',
  64. 'Operating System :: MacOS',
  65. 'Operating System :: Microsoft :: Windows', ],
  66. keywords='machine-learning, deep-learning, vision, ML, DL, AI, YOLO, YOLOv3, YOLOv5, YOLOv8, HUB, Ultralytics',
  67. entry_points={
  68. 'console_scripts': ['yolo = ultralytics.yolo.cfg:entrypoint', 'ultralytics = ultralytics.yolo.cfg:entrypoint']})
Tip!

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

Comments

Loading...