Skip to content

Commit

Permalink
Update poetry.lock
Browse files Browse the repository at this point in the history
Add allowed dep on poetry 1.6 and 1.7
  • Loading branch information
spoorn committed Oct 31, 2023
1 parent 603e222 commit fcf3067
Show file tree
Hide file tree
Showing 8 changed files with 819 additions and 763 deletions.
1,565 changes: 810 additions & 755 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ packages = [
[tool.poetry.dependencies]
# No longer run on Python 3.7/3.8: https://github.com/python-poetry/poetry/issues/1930#issuecomment-653906544
python = "^3.9"
poetry = {version = "^1.2|^1.2.0rc1|^1.3|^1.4|^1.5", allow-prereleases = true}
poetry = {version = "^1.2|^1.2.0rc1|^1.3|^1.4|^1.5|^1.6|^1.7", allow-prereleases = true}

[tool.poetry.group.dev.dependencies]
flake8 = "*"
Expand Down
4 changes: 2 additions & 2 deletions src/poeblix/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import shutil
import zipfile
from pathlib import Path
from typing import Optional, List, Dict, cast
from typing import Optional, List, Dict, cast, ClassVar

from cleo.helpers import option
from cleo.io.inputs.option import Option
Expand Down Expand Up @@ -194,7 +194,7 @@ class BlixBuildCommand(EnvCommand):
"Builds a wheel package with custom data files mimicking data_files in setup.py, and uses the lock file"
)

options: List[Option] = [
options: ClassVar[List[Option]] = [
option(
"no-lock",
None,
Expand Down
4 changes: 2 additions & 2 deletions src/poeblix/validatedocker.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import subprocess
from typing import List
from typing import List, ClassVar

from cleo.helpers import argument, option
from cleo.io.inputs.option import Option
Expand Down Expand Up @@ -27,7 +27,7 @@ class ValidateDockerPlugin(EnvCommand):

arguments = [argument("containerId", "Docker Container ID")]

options: List[Option] = [
options: ClassVar[List[Option]] = [
option(
"no-lock",
None,
Expand Down
7 changes: 4 additions & 3 deletions src/poeblix/validatewheel.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import re
from pathlib import Path
from typing import List, Dict
from typing import List, Dict, ClassVar
from zipfile import ZipFile

import pkginfo
Expand All @@ -11,10 +11,11 @@
# For fixing https://github.com/python-poetry/poetry/issues/5216
from packaging.tags import sys_tags # noqa
from poetry.console.commands.env_command import EnvCommand

try:
from poetry.core.version.helpers import parse_constraint
except ImportError:
from poetry.core.semver.helpers import parse_constraint
from poetry.core.semver.helpers import parse_constraint # type: ignore

# e.g. "nemoize (>=0.1.0,<0.2.0)"
from tomlkit.exceptions import NonExistentKey
Expand All @@ -40,7 +41,7 @@ class ValidateWheelPlugin(EnvCommand):
arguments = [argument("wheelPath", "Wheel file path")]

# TODO: Add groups to options
options: List[Option] = [
options: ClassVar[List[Option]] = [
option(
"no-lock",
None,
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit fcf3067

Please sign in to comment.