-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/validate and fix toml #46
Merged
Merged
Conversation
This file contains 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
Updated the Python versions under test in the CI/CD workflows to include Python 3.12. Also, made changes in the pyproject.toml and setup.py files, reflecting the updated metadata, including authors, readme, classifiers, etc. The setuptools calls in setup.py were significantly simplified.
Removed the adoc formatted README file and replaced it with a markdown version (README.md). The new README file maintains the original content but uses markdown language, which is more widely supported and easier to read.
Removed agrirouter module and replaced it with the src module in import statements across the codebase. This change was made to better align the module names with its functions, and improve readability and organization of code structure. The change also covers respective adaptations in the file system and addition of new '__init__.py' files for the package structure. Ensured that all existing references to the old 'agrirouter' name are updated to 'src'.
The setup function in setup.py now only runs if the script is run directly. This modification prevents unnecessary operations from taking place when the module is imported, improving efficiency and avoiding potential issues.
Unnecessary imports were removed from __init__.py, greatly cleaining it up. This change makes the code cleaner, improves understandability, and potentially increases the execution efficiency.
The removed line of code did not contribute to the testing process of validating the toml file. The adjustment corrects the test logic, making the test case more effective and meaningful. Now, the test will run as intended.1
Two new dependencies, google and toml, were added to the project's requirements.txt. This ensures that all needed packages for the application to work properly will be installed.
Added a new step in the continuous-integration.yml file for a dry run of the wheel build. This change ensures that the wheel build is functioning as expected before each deployment, reducing potential failure points.
The Python version and action scripts in the GitHub workflows have been updated. The supported Python version constraints have also been adjusted in pyproject.toml to reflect these changes and ensure compatibility in all contexts.
A dry run build step to wheel package creation has been added to the GitHub linting workflow. With this change, along with the flake8 linting, a source distribution and wheel distribution will be created natively in Python, ensuring code quality and functionality before deployment.
The continuous integration and linting workflows have been updated to include the installation of 'wheel' and 'setuptools'. These packages are essential for the creation of a Python wheel distribution, enabling a dry run build which ensures code quality and functionality before the actual deployment.
The pip install command for 'wheel' and 'setuptools' in both continuous integration and linting workflows contained a typo. This typo has been corrected to ensure that the necessary packages are installed correctly. These packages are critical for creating Python wheel distributions and for running quality assurance checks before deployment.
Removed setup.py and unnecessary pip installs for flake8, pytest, wheel, and setuptools from CI workflow files. Dependencies are now managed using the requirements.txt file. The 'build' package was added to the requirements.txt to help create Python distributions.
The package building command in CI workflows has been updated from using setup.py to the 'build' package. This change has been made in both 'continuous-integration.yml' and 'linting-for-all-versions.yml' files. This change simplifies managing dependencies via the requirements.txt file.
Removed Python version "3.7" from the linting GitHub actions configuration. Now, the linting will only run for Python versions "3.8", "3.9", "3.10", and "3.11".
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.