generated from roboflow/template-python
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Introduce pyproject toml file with optional install method and dropping python 3.7 support #180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+3,217
−84
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
629744d
feat(pyproject): 🐍 introduce pyproject toml file
onuralpszr 9e1e9fc
ci(removal): 🧪 removing python 3.7 from test and update other action …
onuralpszr 19271f3
fix: toml file version fix and removal of setup.py and adjusment on m…
onuralpszr c9d8547
ci(pypa-action): introduce pypa github action for uploading to pypi a…
onuralpszr f7a4a78
docs: 📝 removing python 3.7 metadata pyproject
onuralpszr cc81ae7
feat(version): ✨ dynamic version from __package__
onuralpszr c83e57c
fix: 📝 rename extras group into desktop and headless
onuralpszr a75a927
feat(package): 📦 pillow library added into toml file as deps
onuralpszr f78ac90
feat(package): 📦 opencv-python-headless set as default
onuralpszr 399121b
fix: 🐛 lower pillow version for google-colab environment
onuralpszr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
[tool.poetry] | ||
name = "supervision" | ||
version = "0.12.0" | ||
description = "A set of easy-to-use utils that will come in handy in any Computer Vision project" | ||
authors = ["Piotr Skalski <[email protected]>"] | ||
maintainers = ["Piotr Skalski <[email protected]>"] | ||
readme = "README.md" | ||
packages = [{include = "supervision"}] | ||
homepage = "https://github.com/roboflow/supervision" | ||
repository = "https://github.com/roboflow/supervision" | ||
documentation = "https://github.com/roboflow/supervision/blob/main/README.md" | ||
keywords = ["machine-learning", "deep-learning", "vision", "ML", "DL", "AI", "YOLOv5", "YOLOv8", "Roboflow"] | ||
|
||
classifiers=[ | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: BSD License', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3 :: Only', | ||
'Topic :: Software Development', | ||
'Topic :: Scientific/Engineering', | ||
"Topic :: Scientific/Engineering :: Artificial Intelligence", | ||
"Topic :: Scientific/Engineering :: Image Recognition", | ||
'Typing :: Typed', | ||
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: POSIX', | ||
'Operating System :: Unix', | ||
'Operating System :: MacOS' | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8,<3.12.0" | ||
numpy = "^1.20.0" | ||
matplotlib = "^3.7.1" | ||
pyyaml = "^6.0" | ||
pillow = "^8.4.0" | ||
opencv-python = { version = "^4.8.0.74", optional = true } | ||
opencv-python-headless = "^4.8.0.74" | ||
|
||
|
||
[tool.poetry.extras] | ||
desktop = ["opencv-python"] | ||
|
||
|
||
[tool.poetry.group.dev.dependencies] | ||
twine = "^4.0.2" | ||
pytest = "^7.2.2" | ||
wheel = "^0.40.0" | ||
notebook = "^6.5.3" | ||
mkdocs-material = "^9.1.4" | ||
mkdocstrings = {extras = ["python"], version = "^0.20.0"} | ||
build = "^0.10.0" | ||
|
||
|
||
[tool.setuptools] | ||
include-package-data = false | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = ["docs*", "test*"] | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.