-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[Refactor] Phaseout python dependency package decorator
#17652
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
Conversation
|
@tvm-bot rerun |
|
Failed to re-run CI in https://github.com/apache/tvm/actions/runs/13333204874 Detailswith response |
|
would be great if the pr remove the merge branch commit and focus on the rebase |
6050aaa to
b61a996
Compare
- Remove attrs from base requirements and constraints - Replace attr.s decorator with @DataClass in memory_plan.py - Simplify Region class definition using dataclass Remove attrs dependency from installation scripts and documentation - Remove attrs from conda recipe requirements - Remove attrs from Docker installation scripts for Ubuntu - Update documentation to remove attrs from pip install instructions lint fix Remove decorator dependency from various installation scripts and files This commit removes the decorator package from: - Conda recipe requirements - Docker installation scripts - Python requirements generation - Documentation installation instructions Additionally, it introduces a local implementation of the decorator module in the TVM project to maintain existing functionality without external dependency. Refactor decorator module to remove external dependency This commit completes the local implementation of the decorator module by: - Cleaning up license headers - Formatting code to improve readability - Preserving the full functionality of the original decorator library - Ensuring consistent code style with the rest of the TVM project Refactor decorator module: Code formatting and style improvements This commit continues the work of refactoring the decorator module by: - Applying consistent code formatting - Using double quotes for string literals - Improving code readability through whitespace and line breaks - Maintaining the module's existing functionality Disable all pylint checks in decorator module Modify pylint configuration to disable all checks for the decorator module, simplifying linting rules while maintaining the module's functionality. Add decorator.py to rat-excludes for package source tracking Exclude the downloaded package source file for the decorator module from license header checks, maintaining consistency with previous refactoring efforts around the decorator module. Update LICENSE and NOTICE for decorator module Add attribution and licensing details for the decorator module in LICENSE and NOTICE files. Update rat-excludes to reflect the package source tracking for the decorator module.
b61a996 to
8820aae
Compare
|
Sure, I’ve rebased the branch onto main and squashed these commits. |
|
@tvm-bot rerun |
|
Failed to re-run CI in https://github.com/apache/tvm/actions/runs/13358565751 Detailswith response |
|
likely due to recent update there are some timeout issue, would be great if we can raise a new pr, hopefully better with recent cleanups, sorry for the trouble |
|
closed as we should move onto another pr |
This pull request focuses on removing the
decoratordependency from various parts of the codebase and updating the relevant files accordingly as the decorator package consists of a single file and has not been maintained for a long time.Codebase updates:
python/gen_requirements.py: Removeddecoratorfrom the base requirements and the list of additional requirements. [1] [2]python/tvm/_ffi/base.py: Replaced the usage of the externaldecoratorpackage with an internal implementation of thedecoratefunction.conda/recipe/meta.yaml: Removeddecoratorfrom the list of runtime dependencies.docker/Dockerfile.demo_opencl: Removeddecoratorfrom the list of Python packages installed viapip3.docker/install/ubuntu2004_install_python_package.sh: Removeddecoratorfrom the list of Python packages installed viapip3.docker/install/ubuntu_install_python_package.sh: Removeddecoratorfrom the list of Python packages installed viapip3.docs/install/from_source.rst: Updated the installation instructions to removedecoratorfrom the list of extra Python dependencies.