-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from natekspencer/dev
Use dynamic versioning to publish on release
- Loading branch information
Showing
8 changed files
with
291 additions
and
253 deletions.
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
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,23 @@ | ||
# An action to build and publish python package to https://pypi.org/ using poetry https://github.com/sdispater/poetry | ||
# For more information see: https://github.com/marketplace/actions/publish-python-poetry-package | ||
|
||
name: Publish python package | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v?*.*.*" | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build and publish to pypi | ||
uses: JRubics/[email protected] | ||
with: | ||
pypi_token: ${{ secrets.PYPI_TOKEN }} | ||
plugins: "poetry-dynamic-versioning-plugin" |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "vivintpy" | ||
version = "2023.3.3" | ||
version = "0.0.0" | ||
description = "Python library for interacting with a Vivint security and smart home system." | ||
authors = ["Nathan Spencer <[email protected]>"] | ||
license = "MIT" | ||
|
@@ -17,7 +17,7 @@ pubnub = "^7.0" | |
grpcio = "1.56.0" | ||
protobuf = "^4.22.1" | ||
|
||
[tool.poetry.dev-dependencies] | ||
[tool.poetry.group.dev.dependencies] | ||
tox = "^3.28.0" | ||
pytest = "^7.2.2" | ||
pytest-asyncio = "^0.21.0" | ||
|
@@ -31,6 +31,12 @@ pydocstyle = "^6.3.0" | |
pylint = "^2.17.4" | ||
grpcio-tools = "1.51.1" | ||
|
||
[tool.poetry-dynamic-versioning] | ||
enable = true | ||
vcs = "git" | ||
style = "semver" | ||
pattern = "default-unprefixed" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"] | ||
build-backend = "poetry_dynamic_versioning.backend" |
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
|
||
def test_version() -> None: | ||
"""Test version.""" | ||
assert __version__ == "2023.3.3" | ||
assert __version__ == "0.0.0" |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
"""Provide a package for vivintpy.""" | ||
__version__ = "2023.3.3" | ||
__version__ = "0.0.0" |
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