Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion appium/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@


def _get_version():
return metadata.version('Appium-Python-Client')
try:
return metadata.version('Appium-Python-Client')
except metadata.PackageNotFoundError:
return 'unknown'


version = _get_version()
9 changes: 2 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "Appium-Python-Client"
description = "Python client for Appium"
version = "5.3.0"
version = "6.0.0"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't bump the version by manual.

Instead, commit message must have BREAKING CHANGE: prefix to bump major version

readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
Expand Down Expand Up @@ -64,11 +64,6 @@ dev = [
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.version]
source = "regex"
path = "appium/version.py"
pattern = "(?P<version>\\d+\\.\\d+\\.\\d+)"

[tool.hatch.build]
exclude = [
"test/",
Expand All @@ -94,7 +89,7 @@ major_on_zero = true
allow_zero_version = false
no_git_verify = false
tag_format = "v{version}"
version_toml = ["pyproject.toml:project.version"]
version_toml = ["pyproject.toml:project.version", "appium/version.py:version"]

[tool.semantic_release.branches.main]
match = "(main|master)"
Expand Down
45 changes: 0 additions & 45 deletions setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading