forked from midea-lan/midea-local
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add release please (midea-lan#202)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Implemented automated release workflow using GitHub Actions to streamline the release process. - **New Features** - Version information is now dynamically loaded from a version file, improving maintainability. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
3 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
name: release-please | ||
|
||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: googleapis/release-please-action@v4 | ||
with: | ||
token: ${{ secrets.MIDEA_GITHUB_PAT }} | ||
release-type: python |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"""Midea Local Version.""" | ||
|
||
__version__ = "1.1.4" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,15 @@ | |
with requirements.open(encoding="utf-8") as fp: | ||
requires = fp.read().splitlines() | ||
|
||
version: dict = {} | ||
version_file = Path("midealocal", "version.py") | ||
with version_file.open(encoding="utf-8") as fp: | ||
exec(fp.read(), version) # noqa: S102 | ||
|
||
|
||
setuptools.setup( | ||
name="midea-local", | ||
version="1.1.4", | ||
version=version["__version__"], | ||
author="rokam", | ||
author_email="[email protected]", | ||
description="Control your Midea M-Smart appliances via local area network", | ||
|