Closed mvdwetering closed 3 months ago
The recent changes streamline the dependency management and packaging processes for the Python package aiohuesyncbox
. The updates include enhanced type annotations for better clarity, removal of unused imports, and an introduction of a pyproject.toml
file that defines project metadata and dependencies. These modifications reflect a shift towards modern Python packaging practices, improving both maintainability and efficiency.
File | Change Summary |
---|---|
.github/workflows/python-package.yml |
Simplified dependency installation by removing pytest and using pip install .[test] for the current package's testing dependencies. |
.github/workflows/python-publish.yml |
Transitioned from setuptools and wheel to using the build package, simplifying the package build process with python -m build . |
aiohuesyncbox/device.py |
Updated type annotation for _wifi to explicitly allow None . Simplified URL string in set_led_mode method. |
aiohuesyncbox/hdmi.py |
Removed unused List import from typing , indicating a simplification in data structures. |
aiohuesyncbox/hue.py |
Removed Optional from imports and simplified URL string formatting in set_bridge function. |
aiohuesyncbox/huesyncbox.py |
Cleaned up imports by removing ipaddress and socket , enhancing code readability. |
pyproject.toml |
Introduced a configuration file defining build system, project metadata, and dependencies, ensuring modern package management practices. |
sequenceDiagram
participant User
participant PackageManager
participant BuildSystem
participant Repository
User->>PackageManager: Initiate package installation
PackageManager->>BuildSystem: Requests build package
BuildSystem->>PackageManager: Returns built package
PackageManager->>User: Package installed successfully
🐰 In a world where code does hop,
Changes bring joy, no need to stop!
Dependencies light, like soft bunny fur,
With each little tweak, we happily stir.
Apyproject.toml
to guide our way,
Let's code and play, hip-hip-hooray! ✨
Summary by CodeRabbit
New Features
pyproject.toml
file for improved build management and project definition.Bug Fixes
Chores