Closed ternaus closed 3 weeks ago
This pull request updates the build code, focusing on the setup.py file and the pre-commit configuration. The changes include refactoring the version retrieval method, simplifying the package setup process, and updating dependencies.
classDiagram
class Setup {
+List~str~ INSTALL_REQUIRES
+str MIN_OPENCV_VERSION
+List~Tuple~ CHOOSE_INSTALL_REQUIRES
+List~str~ get_install_requirements(List~str~ install_requires, List~Tuple~ choose_install_requires)
}
class Version {
+str get_version()
}
class Requirement {
+str choose_requirement(Tuple~str~ mains, str secondary)
}
Setup --> Version : uses
Setup --> Requirement : uses
note for Version "Refactored to use os.path.join instead of Path"
note for Requirement "Simplified logic for choosing requirements"
Change | Details | Files |
---|---|---|
Refactored version retrieval method |
|
setup.py |
Simplified package setup process |
|
setup.py |
Updated dependency management |
|
setup.py |
Updated pre-commit hooks |
|
.pre-commit-config.yaml |
Summary by Sourcery
Refactor setup.py to streamline version retrieval and package requirement selection, update dependencies, and modify package metadata. Update pre-commit hook versions in the configuration file.
Enhancements:
Build:
CI: