From ee1b382dfca8f49dd80e7c56f339f7489e513e19 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Mon, 8 Apr 2024 10:39:04 +0200 Subject: [PATCH] [pyproject] Separate features; update pixi.lock --- pixi.lock | 146 ++++++++++++++++++++++++++++++++++++++++++++++++- pyproject.toml | 29 +++++++--- 2 files changed, 166 insertions(+), 9 deletions(-) diff --git a/pixi.lock b/pixi.lock index f36b8f5..d11c696 100644 --- a/pixi.lock +++ b/pixi.lock @@ -8,6 +8,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2 - conda: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2 - conda: https://conda.anaconda.org/conda-forge/noarch/alabaster-0.7.16-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/attrs-23.2.0-pyh71513ae_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/auto-intersphinx-1.0.3-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/babel-2.14.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/beautifulsoup4-4.12.3-pyha770c72_0.conda @@ -27,6 +28,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/distlib-0.3.8-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/docutils-0.20.1-py312h7900ff3_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.2.0-pyhd8ed1ab_2.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/fancycompleter-0.9.1-py312h7900ff3_1007.conda - conda: https://conda.anaconda.org/conda-forge/noarch/filelock-3.13.3-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/furo-2024.1.29-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/icu-73.2-h59595ed_0.conda @@ -57,11 +59,13 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/nodeenv-1.8.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.2.1-hd590300_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-24.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pdbpp-0.10.3-pyhd8ed1ab_0.tar.bz2 - conda: https://conda.anaconda.org/conda-forge/noarch/platformdirs-4.2.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/pluggy-1.4.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/pre-commit-3.7.0-pyha770c72_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/pycparser-2.22-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/pygments-2.17.2-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/linux-64/pyrepl-0.9.0-py312h98912ed_9.conda - conda: https://conda.anaconda.org/conda-forge/noarch/pysocks-1.7.1-pyha2e5f31_6.tar.bz2 - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-8.1.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-cov-5.0.0-pyhd8ed1ab_0.conda @@ -98,6 +102,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/linux-64/ukkonen-1.0.1-py312h8572e83_4.conda - conda: https://conda.anaconda.org/conda-forge/noarch/urllib3-2.2.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/virtualenv-20.25.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/wmctrl-0.5-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/xdg-6.0.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/linux-64/xz-5.2.6-h166bdaf_0.tar.bz2 - conda: https://conda.anaconda.org/conda-forge/linux-64/yaml-0.2.5-h7f98852_2.tar.bz2 @@ -105,6 +110,7 @@ environments: - pypi: . osx-arm64: - conda: https://conda.anaconda.org/conda-forge/noarch/alabaster-0.7.16-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/attrs-23.2.0-pyh71513ae_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/auto-intersphinx-1.0.3-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/babel-2.14.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/beautifulsoup4-4.12.3-pyha770c72_0.conda @@ -124,6 +130,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/distlib-0.3.8-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/osx-arm64/docutils-0.20.1-py312h81bd7bf_3.conda - conda: https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.2.0-pyhd8ed1ab_2.conda + - conda: https://conda.anaconda.org/conda-forge/osx-arm64/fancycompleter-0.9.1-py312h81bd7bf_1007.conda - conda: https://conda.anaconda.org/conda-forge/noarch/filelock-3.13.3-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/furo-2024.1.29-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/osx-arm64/icu-73.2-hc8870d7_0.conda @@ -148,11 +155,13 @@ environments: - conda: https://conda.anaconda.org/conda-forge/noarch/nodeenv-1.8.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/osx-arm64/openssl-3.2.1-h0d3ecfb_1.conda - conda: https://conda.anaconda.org/conda-forge/noarch/packaging-24.0-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/pdbpp-0.10.3-pyhd8ed1ab_0.tar.bz2 - conda: https://conda.anaconda.org/conda-forge/noarch/platformdirs-4.2.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/pluggy-1.4.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/pre-commit-3.7.0-pyha770c72_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/pycparser-2.22-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/pygments-2.17.2-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/osx-arm64/pyrepl-0.9.0-py312he37b823_9.conda - conda: https://conda.anaconda.org/conda-forge/noarch/pysocks-1.7.1-pyha2e5f31_6.tar.bz2 - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-8.1.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/pytest-cov-5.0.0-pyhd8ed1ab_0.conda @@ -189,6 +198,7 @@ environments: - conda: https://conda.anaconda.org/conda-forge/osx-arm64/ukkonen-1.0.1-py312h389731b_4.conda - conda: https://conda.anaconda.org/conda-forge/noarch/urllib3-2.2.1-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/virtualenv-20.25.1-pyhd8ed1ab_0.conda + - conda: https://conda.anaconda.org/conda-forge/noarch/wmctrl-0.5-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/noarch/xdg-6.0.0-pyhd8ed1ab_0.conda - conda: https://conda.anaconda.org/conda-forge/osx-arm64/xz-5.2.6-h57fd34a_0.tar.bz2 - conda: https://conda.anaconda.org/conda-forge/osx-arm64/yaml-0.2.5-h3422bc3_2.tar.bz2 @@ -241,6 +251,23 @@ packages: - pkg:pypi/alabaster size: 18365 timestamp: 1704848898483 +- kind: conda + name: attrs + version: 23.2.0 + build: pyh71513ae_0 + subdir: noarch + noarch: python + url: https://conda.anaconda.org/conda-forge/noarch/attrs-23.2.0-pyh71513ae_0.conda + sha256: 77c7d03bdb243a048fff398cedc74327b7dc79169ebe3b4c8448b0331ea55fea + md5: 5e4c0743c70186509d1412e03c2d8dfa + depends: + - python >=3.7 + license: MIT + license_family: MIT + purls: + - pkg:pypi/attrs + size: 54582 + timestamp: 1704011393776 - kind: conda name: auto-intersphinx version: 1.0.3 @@ -544,9 +571,9 @@ packages: timestamp: 1698833765762 - kind: pypi name: clapper - version: 1.0.2.dev17+g532dcc0.d20240403 + version: 1.0.2.dev20+g25f7b76.d20240408 path: . - sha256: 0e533ae3b24810069d50555e2fe7ddf21c4f60edd2342b94d87476c4b7af2c32 + sha256: 2a52808438c38dec29548f420e4c5ca85f545d9f494a8216e789433a21faadd2 requires_dist: - click >=8 - tomli @@ -706,6 +733,45 @@ packages: - pkg:pypi/exceptiongroup size: 20551 timestamp: 1704921321122 +- kind: conda + name: fancycompleter + version: 0.9.1 + build: py312h7900ff3_1007 + build_number: 1007 + subdir: linux-64 + url: https://conda.anaconda.org/conda-forge/linux-64/fancycompleter-0.9.1-py312h7900ff3_1007.conda + sha256: 12f78c53b9dac0ecfb1650a339bf8b950ba8f127a108eb09c3adda44a79ef31c + md5: 9dfab523f1136690d861fe337034dbee + depends: + - pyrepl >=0.8.2 + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/fancycompleter + size: 26174 + timestamp: 1709160998274 +- kind: conda + name: fancycompleter + version: 0.9.1 + build: py312h81bd7bf_1007 + build_number: 1007 + subdir: osx-arm64 + url: https://conda.anaconda.org/conda-forge/osx-arm64/fancycompleter-0.9.1-py312h81bd7bf_1007.conda + sha256: 895d2bdd1e56d28be8be0a46adbce92fcdf08e1b0dca073b99f2f4b5211603f9 + md5: 3b30d90c8ca61010a6f85eb9ce2a049f + depends: + - pyrepl >=0.8.2 + - python >=3.12,<3.13.0a0 + - python >=3.12,<3.13.0a0 *_cpython + - python_abi 3.12.* *_cp312 + license: BSD-3-Clause + license_family: BSD + purls: + - pkg:pypi/fancycompleter + size: 26498 + timestamp: 1709161451678 - kind: conda name: filelock version: 3.13.3 @@ -1382,6 +1448,24 @@ packages: - pkg:pypi/packaging size: 49832 timestamp: 1710076089469 +- kind: conda + name: pdbpp + version: 0.10.3 + build: pyhd8ed1ab_0 + subdir: noarch + noarch: python + url: https://conda.anaconda.org/conda-forge/noarch/pdbpp-0.10.3-pyhd8ed1ab_0.tar.bz2 + sha256: c3f3996853853501af5ee936ebbd5a3de2eb1e73a078c7d4c541dbd97b315248 + md5: 3efee795aeb50ae2ca1ac732b529e603 + depends: + - fancycompleter + - pygments + - python >=3.4 + - wmctrl + license: BSD-3-Clause + license_family: BSD + size: 25010 + timestamp: 1626016866544 - kind: conda name: platformdirs version: 4.2.0 @@ -1470,6 +1554,46 @@ packages: - pkg:pypi/pygments size: 860425 timestamp: 1700608076927 +- kind: conda + name: pyrepl + version: 0.9.0 + build: py312h98912ed_9 + build_number: 9 + subdir: linux-64 + url: https://conda.anaconda.org/conda-forge/linux-64/pyrepl-0.9.0-py312h98912ed_9.conda + sha256: 9e9d59e511c8a8e0792386bec59a87e584768f2856b1131191c6e98f50b03cc2 + md5: a56b87ccd13bc27b0e8ce66c75abe79e + depends: + - libgcc-ng >=12 + - ncurses + - python >=3.12,<3.13.0a0 + - python_abi 3.12.* *_cp312 + license: ISC + license_family: OTHER + purls: + - pkg:pypi/pyrepl + size: 104985 + timestamp: 1709131190353 +- kind: conda + name: pyrepl + version: 0.9.0 + build: py312he37b823_9 + build_number: 9 + subdir: osx-arm64 + url: https://conda.anaconda.org/conda-forge/osx-arm64/pyrepl-0.9.0-py312he37b823_9.conda + sha256: 41fd0010d8520d26a56e1585cc46b4bbcfbb94b9e3bcebcbe18885ea14a06fa6 + md5: 4c4540b6c01647e1737670f4f1142f7e + depends: + - ncurses + - python >=3.12,<3.13.0a0 + - python >=3.12,<3.13.0a0 *_cpython + - python_abi 3.12.* *_cp312 + license: ISC + license_family: OTHER + purls: + - pkg:pypi/pyrepl + size: 105769 + timestamp: 1709131653373 - kind: conda name: pysocks version: 1.7.1 @@ -2275,6 +2399,24 @@ packages: - pkg:pypi/virtualenv size: 3148218 timestamp: 1708602229963 +- kind: conda + name: wmctrl + version: '0.5' + build: pyhd8ed1ab_0 + subdir: noarch + noarch: python + url: https://conda.anaconda.org/conda-forge/noarch/wmctrl-0.5-pyhd8ed1ab_0.conda + sha256: b7526024b323b43ab8af687adeb6ee8f40aba70a9ee5939317d1b6b50e050061 + md5: eee592c2bd3901849b3732ff1da58049 + depends: + - attrs + - python >=3 + license: MIT + license_family: MIT + purls: + - pkg:pypi/wmctrl + size: 10415 + timestamp: 1695590958853 - kind: conda name: xdg version: 6.0.0 diff --git a/pyproject.toml b/pyproject.toml index 9d2204f..8711dfc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,10 +66,19 @@ tomli = "*" tomli-w = "*" xdg = "*" -[tool.pixi.host-dependencies] +[tool.pixi.pypi-dependencies] +clapper = { path = ".", editable = true, extras = ["qa", "doc", "test"] } + +[tool.pixi.feature.qa.dependencies] pre-commit = "*" ruff = "*" reuse = "*" + +[tool.pixi.feature.qa.tasks] +qa-install = "pre-commit install" +qa = "pre-commit run --all-files" + +[tool.pixi.feature.doc.dependencies] sphinx = "*" furo = "*" sphinx-autodoc-typehints = "*" @@ -77,17 +86,23 @@ sphinxcontrib-programoutput = "*" auto-intersphinx = "*" sphinx-copybutton = "*" sphinx-inline-tabs = "*" + +[tool.pixi.feature.doc.tasks] +doc = "rm -rf doc/api && rm -rf html && sphinx-build -aEW doc html" + +[tool.pixi.feature.test.dependencies] pytest = "*" pytest-cov = "*" -[tool.pixi.pypi-dependencies] -clapper = { path = ".", editable = true, extras = ["qa", "doc", "test"] } +[tool.pixi.feature.debug.dependencies] +pdbpp = "*" -[tool.pixi.tasks] -qa-install = "pre-commit install" -qa = "pre-commit run --all-files" -doc = "rm -rf doc/api && rm -rf html && sphinx-build -aEW doc html" +[tool.pixi.feature.test.tasks] test = "pytest -sv tests/" +test-ci = "pytest -sv --cov-report 'html:html/coverage' --cov-report 'xml:coverage.xml' --junitxml 'junit-coverage.xml' --ignore '.profile' tests/" + +[tool.pixi.environments] +default = { features = [ "qa", "doc", "test", "debug" ] } [tool.hatch.version] source = "versioningit" -- GitLab