Skip to content

Commit

Permalink
fix: allow older setuptools_scm versions when building
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Jan 15, 2024
1 parent 6918c4d commit 94a99f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@ issue_format = "[#{issue}](https://github.com/pypa/pipx/issues/{issue})"
package = "pipx"

[[tool.mypy.overrides]]
module = ["pipx.version", "pycowsay.*"]
module = ["pycowsay.*"]
ignore_missing_imports = true
2 changes: 1 addition & 1 deletion src/pipx/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from pipx.interpreter import DEFAULT_PYTHON, InterpreterResolutionError, find_python_interpreter
from pipx.util import PipxError, mkdir, pipx_wrap, rmdir
from pipx.venv import VenvContainer
from pipx.version import __version__
from pipx.version import version as __version__

logger = logging.getLogger(__name__)

Expand Down
5 changes: 5 additions & 0 deletions src/pipx/version.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: str
version_tuple: tuple[int, int, int, str, str] | tuple[int, int, int]

# Note that newer versions of setuptools_scm also add __version__, but we are
# not forcing new versions of setuptools_scm, so only these imports are allowed.

0 comments on commit 94a99f6

Please sign in to comment.