csspin-python 3.0.0__py3-none-any.whl → 3.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
csspin_python/pytest.py CHANGED
@@ -68,7 +68,7 @@ def configure(cfg: ConfigTree) -> None:
68
68
  cfg.pytest.requires.python.extend(["pytest-base-url", "pytest-playwright"])
69
69
 
70
70
 
71
- def provision(cfg: ConfigTree) -> None:
71
+ def finalize_provision(cfg: ConfigTree) -> None:
72
72
  if cfg.pytest.playwright.enabled:
73
73
  _install_playwright_browsers(cfg)
74
74
 
csspin_python/python.py CHANGED
@@ -813,6 +813,7 @@ class SimpleProvisioner(ProvisionerProtocol):
813
813
  None if cfg.verbosity > Verbosity.NORMAL else "-q",
814
814
  "--disable-pip-version-check",
815
815
  "install",
816
+ *[f"--constraint={constraint}" for constraint in cfg.python.constraints],
816
817
  )
817
818
 
818
819
  def prerequisites(self: Self, cfg: ConfigTree) -> None:
@@ -939,7 +940,7 @@ def venv_provision( # pylint: disable=too-many-branches,missing-function-docstr
939
940
 
940
941
  # Plugins can define a 'venv_hook' function, to give them a
941
942
  # chance to do something with the virtual environment just
942
- # being provisioned (e.g. preparing the venv by adding pth
943
+ # being provisioned (e.g. preparing the venv by adding .pth
943
944
  # files or by adding packages with other installers like
944
945
  # easy_install).
945
946
  for plugin in cfg.spin.topo_plugins:
@@ -105,6 +105,11 @@ python:
105
105
  setup.py/setup.cfg.
106
106
  Note that editable installs with ``-e`` or requirement files
107
107
  with ``-r`` can also be used here.
108
+ constraints:
109
+ type: list
110
+ help: |
111
+ The list of constraint files that should be used when
112
+ installing packages into the virtual environment.
108
113
  index_url:
109
114
  type: str
110
115
  help: |
@@ -135,6 +135,7 @@ class SimpleUvProvisioner(SimpleProvisioner):
135
135
  *self._uv_cmd._cmd,
136
136
  "pip",
137
137
  "install",
138
+ *[f"--constraint={constraint}" for constraint in cfg.python.constraints],
138
139
  )
139
140
 
140
141
  def provision_python(self, cfg: ConfigTree) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: csspin-python
3
- Version: 3.0.0
3
+ Version: 3.1.0
4
4
  Summary: Plugin-package for csspin providing Python related plugins
5
5
  Author-email: CONTACT Software GmbH <info@contact-software.com>
6
6
  Maintainer-email: Waleri Enns <waleri.enns@contact-software.com>, Benjamin Thomas Schwertfeger <benjaminthomas.schwertfeger@contact-software.com>, Fabian Hafer <fabian.hafer@contact-software.com>
@@ -6,16 +6,16 @@ csspin_python/devpi.py,sha256=C-5O_vA06CwQR4uElOw-2VH2-m001SpxowM_X6RbRwo,2352
6
6
  csspin_python/devpi_schema.yaml,sha256=2gPATWjVcfvCTrGZX2FK6wH8hh9KS0XzZ35JvZeJGEU,487
7
7
  csspin_python/playwright.py,sha256=oFfphLqa4AB6K9vasCUFHN0kFXu63n3ocrsqVuRp4-0,5102
8
8
  csspin_python/playwright_schema.yaml,sha256=TSeR16YHa7m7bfO59F2eMV-jXcglluTJdEpUeL16saY,1178
9
- csspin_python/pytest.py,sha256=fX50f22DYtJNNTBkAt75ki26eM0sZDcRXnwoFsKWV_M,4565
9
+ csspin_python/pytest.py,sha256=pTOb5zFd9RINZwJsHNaRuSGVDkPMABzaAhwpAJo1nQE,4574
10
10
  csspin_python/pytest_schema.yaml,sha256=tzXtdF6MvGC9v59EVRJFfLeMMHqPsXcFXy2zJtRECBI,1535
11
- csspin_python/python.py,sha256=SRsl7wXkPFxEqwhjDtr-Uq80N_JNRrlD0kPMaE1gfrU,34610
12
- csspin_python/python_schema.yaml,sha256=s8snEDJ8UdfpORgCgqbKvy0exaXlvy4U1gUwBd-Do94,5739
11
+ csspin_python/python.py,sha256=Hht9TcBhIcHU4PdicB5W7s-9OYepUnxK1bdpxzob1Ro,34697
12
+ csspin_python/python_schema.yaml,sha256=J9GEr5023cUHvfvSRiD1572eSVvfXt8-XEk9uhowhlc,5939
13
13
  csspin_python/radon.py,sha256=uFqm6FEi5oWj-_XVaAm3s9cam0cUmr1_FwRf40K6xWs,1876
14
14
  csspin_python/radon_schema.yaml,sha256=rlRzXw5z4XbjOVznRiUxWGP4E9hx1Jm-gGw1iQiYzE0,548
15
- csspin_python/uv_provisioner.py,sha256=A6Di0ahCrZCO3KhYedry7JCfa5ME6h7vH4ypRBZh5UA,5907
15
+ csspin_python/uv_provisioner.py,sha256=8d_24xyofO_6wU7bkomAH1FfY6P_Am0Yy6CXbzLxWN4,5993
16
16
  csspin_python/uv_provisioner_schema.yaml,sha256=Y8ZNC2OMnhR8Us3WUXAXK9hMjqGWAKFJB2puX4X5XNQ,727
17
- csspin_python-3.0.0.dist-info/licenses/LICENSE,sha256=4MAecetnRTQw5DlHtiikDSzKWO1xVLwzM5_DsPMYlnE,10172
18
- csspin_python-3.0.0.dist-info/METADATA,sha256=NkiY16n49Q9lFYCu-emb9G1OjQlg3gEm0vW5t3EJwtE,4715
19
- csspin_python-3.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
20
- csspin_python-3.0.0.dist-info/top_level.txt,sha256=QSeglMEGbFu1z4L6MCQYwo01NgL0KojWvC4rzgMQ8gU,14
21
- csspin_python-3.0.0.dist-info/RECORD,,
17
+ csspin_python-3.1.0.dist-info/licenses/LICENSE,sha256=4MAecetnRTQw5DlHtiikDSzKWO1xVLwzM5_DsPMYlnE,10172
18
+ csspin_python-3.1.0.dist-info/METADATA,sha256=YIDI67iYHouz4I8dVqCkMtcpXgQTXqmXlz3yUwjbeaM,4715
19
+ csspin_python-3.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
20
+ csspin_python-3.1.0.dist-info/top_level.txt,sha256=QSeglMEGbFu1z4L6MCQYwo01NgL0KojWvC4rzgMQ8gU,14
21
+ csspin_python-3.1.0.dist-info/RECORD,,