diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a652287..3474366 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,9 @@ # name: Run updater that will check for conda-forge packages -on: push +on: + push: + branches: [ "main" ] + pull_request: jobs: run_tests: @@ -12,10 +15,7 @@ jobs: - uses: prefix-dev/setup-pixi@v0.5.1 with: pixi-version: "latest" - - - name: pixi install - run: | - pixi install + environments: test - name: run tests run: | diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 1bb5e9b..6337a3a 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -15,7 +15,4 @@ jobs: with: environments: lint - name: pre-commit - run: pixi run pre-commit-run --color=always --show-diff-on-failure - env: - # As the rust GitHub action is better at the rust jobs it can be skipped in this job. - SKIP: fmt + run: pixi run pre-commit-run --color=always --show-diff-on-failure --all diff --git a/pixi.lock b/pixi.lock index 4dfbebd..e365c6c 100644 --- a/pixi.lock +++ b/pixi.lock @@ -1142,18 +1142,6 @@ environments: - conda: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.5-h12be248_0.conda - pypi: . packages: -- kind: conda - name: _libgcc_mutex - version: '0.1' - build: conda_forge - subdir: linux-64 - url: https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2 - sha256: fe51de6107f9edc7aa4f786a70f4a883943bc9d39b3bb7307c04c41410990726 - md5: d7c89558ba9fa0495403155b64376d81 - license: None - purls: [] - size: 2562 - timestamp: 1578324546067 - kind: conda name: _libgcc_mutex version: '0.1' @@ -1165,25 +1153,6 @@ packages: license: None size: 2562 timestamp: 1578324546067 -- kind: conda - name: _openmp_mutex - version: '4.5' - build: 2_gnu - build_number: 16 - subdir: linux-64 - url: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2 - sha256: fbe2c5e56a653bebb982eda4876a9178aedfc2b545f25d0ce9c4c0b508253d22 - md5: 73aaf86a425cc6e73fcf236a5a46396d - depends: - - _libgcc_mutex 0.1 conda_forge - - libgomp >=7.5.0 - constrains: - - openmp_impl 9999 - license: BSD-3-Clause - license_family: BSD - purls: [] - size: 23621 - timestamp: 1650670423406 - kind: conda name: _openmp_mutex version: '4.5' @@ -1733,25 +1702,6 @@ packages: - pkg:pypi/certifi size: 160559 timestamp: 1707022289175 -- kind: conda - name: cffi - version: 1.16.0 - build: py312h38bf5a0_0 - subdir: osx-64 - url: https://conda.anaconda.org/conda-forge/osx-64/cffi-1.16.0-py312h38bf5a0_0.conda - sha256: 8b856583b56fc30f064a7cb286f85e4b5725f2bd4fda8ba0c4e94bffe258741e - md5: a45759c013ab20b9017ef9539d234dd7 - depends: - - libffi >=3.4,<4.0a0 - - pycparser - - python >=3.12.0rc3,<3.13.0a0 - - python_abi 3.12.* *_cp312 - license: MIT - license_family: MIT - purls: - - pkg:pypi/cffi - size: 282370 - timestamp: 1696002004433 - kind: conda name: cffi version: 1.16.0 @@ -1769,26 +1719,6 @@ packages: license_family: MIT size: 282370 timestamp: 1696002004433 -- kind: conda - name: cffi - version: 1.16.0 - build: py312h8e38eb3_0 - subdir: osx-arm64 - url: https://conda.anaconda.org/conda-forge/osx-arm64/cffi-1.16.0-py312h8e38eb3_0.conda - sha256: 1544403cb1a5ca2aeabf0dac86d9ce6066d6fb4363493643b33ffd1b78038d18 - md5: 960ecbd65860d3b1de5e30373e1bffb1 - depends: - - libffi >=3.4,<4.0a0 - - pycparser - - python >=3.12.0rc3,<3.13.0a0 - - python >=3.12.0rc3,<3.13.0a0 *_cpython - - python_abi 3.12.* *_cp312 - license: MIT - license_family: MIT - purls: - - pkg:pypi/cffi - size: 284245 - timestamp: 1696002181644 - kind: conda name: cffi version: 1.16.0 @@ -1807,27 +1737,6 @@ packages: license_family: MIT size: 284245 timestamp: 1696002181644 -- kind: conda - name: cffi - version: 1.16.0 - build: py312he70551f_0 - subdir: win-64 - url: https://conda.anaconda.org/conda-forge/win-64/cffi-1.16.0-py312he70551f_0.conda - sha256: dd39e594f5c6bca52dfed343de2af9326a99700ce2ba3404bd89706926fc0137 - md5: 5a51096925d52332c62bfd8904899055 - depends: - - pycparser - - python >=3.12.0rc3,<3.13.0a0 - - python_abi 3.12.* *_cp312 - - ucrt >=10.0.20348.0 - - vc >=14.2,<15 - - vc14_runtime >=14.29.30139 - license: MIT - license_family: MIT - purls: - - pkg:pypi/cffi - size: 287805 - timestamp: 1696002408940 - kind: conda name: cffi version: 1.16.0 @@ -1847,26 +1756,6 @@ packages: license_family: MIT size: 287805 timestamp: 1696002408940 -- kind: conda - name: cffi - version: 1.16.0 - build: py312hf06ca03_0 - subdir: linux-64 - url: https://conda.anaconda.org/conda-forge/linux-64/cffi-1.16.0-py312hf06ca03_0.conda - sha256: 5a36e2c254603c367d26378fa3a205bd92263e30acf195f488749562b4c44251 - md5: 56b0ca764ce23cc54f3f7e2a7b970f6d - depends: - - libffi >=3.4,<4.0a0 - - libgcc-ng >=12 - - pycparser - - python >=3.12.0rc3,<3.13.0a0 - - python_abi 3.12.* *_cp312 - license: MIT - license_family: MIT - purls: - - pkg:pypi/cffi - size: 294523 - timestamp: 1696001868949 - kind: conda name: cffi version: 1.16.0 @@ -3501,23 +3390,6 @@ packages: purls: [] size: 112766 timestamp: 1702146165126 -- kind: conda - name: libexpat - version: 2.6.2 - build: h59595ed_0 - subdir: linux-64 - url: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.6.2-h59595ed_0.conda - sha256: 331bb7c7c05025343ebd79f86ae612b9e1e74d2687b8f3179faec234f986ce19 - md5: e7ba12deb7020dd080c6c70e7b6f6a3d - depends: - - libgcc-ng >=12 - constrains: - - expat 2.6.2.* - license: MIT - license_family: MIT - purls: [] - size: 73730 - timestamp: 1710362120304 - kind: conda name: libexpat version: 2.6.2 @@ -3534,21 +3406,6 @@ packages: license_family: MIT size: 73730 timestamp: 1710362120304 -- kind: conda - name: libexpat - version: 2.6.2 - build: h63175ca_0 - subdir: win-64 - url: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.6.2-h63175ca_0.conda - sha256: 79f612f75108f3e16bbdc127d4885bb74729cf66a8702fca0373dad89d40c4b7 - md5: bc592d03f62779511d392c175dcece64 - constrains: - - expat 2.6.2.* - license: MIT - license_family: MIT - purls: [] - size: 139224 - timestamp: 1710362609641 - kind: conda name: libexpat version: 2.6.2 @@ -3563,21 +3420,6 @@ packages: license_family: MIT size: 139224 timestamp: 1710362609641 -- kind: conda - name: libexpat - version: 2.6.2 - build: h73e2aa4_0 - subdir: osx-64 - url: https://conda.anaconda.org/conda-forge/osx-64/libexpat-2.6.2-h73e2aa4_0.conda - sha256: a188a77b275d61159a32ab547f7d17892226e7dac4518d2c6ac3ac8fc8dfde92 - md5: 3d1d51c8f716d97c864d12f7af329526 - constrains: - - expat 2.6.2.* - license: MIT - license_family: MIT - purls: [] - size: 69246 - timestamp: 1710362566073 - kind: conda name: libexpat version: 2.6.2 @@ -3592,21 +3434,6 @@ packages: license_family: MIT size: 69246 timestamp: 1710362566073 -- kind: conda - name: libexpat - version: 2.6.2 - build: hebf3989_0 - subdir: osx-arm64 - url: https://conda.anaconda.org/conda-forge/osx-arm64/libexpat-2.6.2-hebf3989_0.conda - sha256: ba7173ac30064ea901a4c9fb5a51846dcc25512ceb565759be7d18cbf3e5415e - md5: e3cde7cfa87f82f7cb13d482d5e0ad09 - constrains: - - expat 2.6.2.* - license: MIT - license_family: MIT - purls: [] - size: 63655 - timestamp: 1710362424980 - kind: conda name: libexpat version: 2.6.2 @@ -3621,20 +3448,6 @@ packages: license_family: MIT size: 63655 timestamp: 1710362424980 -- kind: conda - name: libffi - version: 3.4.2 - build: h0d85af4_5 - build_number: 5 - subdir: osx-64 - url: https://conda.anaconda.org/conda-forge/osx-64/libffi-3.4.2-h0d85af4_5.tar.bz2 - sha256: 7a2d27a936ceee6942ea4d397f9c7d136f12549d86f7617e8b6bad51e01a941f - md5: ccb34fb14960ad8b125962d3d79b31a9 - license: MIT - license_family: MIT - purls: [] - size: 51348 - timestamp: 1636488394370 - kind: conda name: libffi version: 3.4.2 @@ -3648,20 +3461,6 @@ packages: license_family: MIT size: 51348 timestamp: 1636488394370 -- kind: conda - name: libffi - version: 3.4.2 - build: h3422bc3_5 - build_number: 5 - subdir: osx-arm64 - url: https://conda.anaconda.org/conda-forge/osx-arm64/libffi-3.4.2-h3422bc3_5.tar.bz2 - sha256: 41b3d13efb775e340e4dba549ab5c029611ea6918703096b2eaa9c015c0750ca - md5: 086914b672be056eb70fd4285b6783b6 - license: MIT - license_family: MIT - purls: [] - size: 39020 - timestamp: 1636488587153 - kind: conda name: libffi version: 3.4.2 @@ -3675,22 +3474,6 @@ packages: license_family: MIT size: 39020 timestamp: 1636488587153 -- kind: conda - name: libffi - version: 3.4.2 - build: h7f98852_5 - build_number: 5 - subdir: linux-64 - url: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.4.2-h7f98852_5.tar.bz2 - sha256: ab6e9856c21709b7b517e940ae7028ae0737546122f83c2aa5d692860c3b149e - md5: d645c6d2ac96843a2bfaccd2d62b3ac3 - depends: - - libgcc-ng >=9.4.0 - license: MIT - license_family: MIT - purls: [] - size: 58292 - timestamp: 1636488182923 - kind: conda name: libffi version: 3.4.2 @@ -3706,23 +3489,6 @@ packages: license_family: MIT size: 58292 timestamp: 1636488182923 -- kind: conda - name: libffi - version: 3.4.2 - build: h8ffe710_5 - build_number: 5 - subdir: win-64 - url: https://conda.anaconda.org/conda-forge/win-64/libffi-3.4.2-h8ffe710_5.tar.bz2 - sha256: 1951ab740f80660e9bc07d2ed3aefb874d78c107264fd810f24a1a6211d4b1a5 - md5: 2c96d1b6915b408893f9472569dee135 - depends: - - vc >=14.1,<15.0a0 - - vs2015_runtime >=14.16.27012 - license: MIT - license_family: MIT - purls: [] - size: 42063 - timestamp: 1636489106777 - kind: conda name: libffi version: 3.4.2 @@ -4231,21 +3997,6 @@ packages: purls: [] size: 565451 timestamp: 1702130473930 -- kind: conda - name: libnsl - version: 2.0.1 - build: hd590300_0 - subdir: linux-64 - url: https://conda.anaconda.org/conda-forge/linux-64/libnsl-2.0.1-hd590300_0.conda - sha256: 26d77a3bb4dceeedc2a41bd688564fe71bf2d149fdcf117049970bc02ff1add6 - md5: 30fd6e37fe21f86f4bd26d6ee73eeec7 - depends: - - libgcc-ng >=12 - license: LGPL-2.1-only - license_family: GPL - purls: [] - size: 33408 - timestamp: 1697359010159 - kind: conda name: libnsl version: 2.0.1 @@ -4596,43 +4347,13 @@ packages: - libgcc-ng >=12 license: BSD-3-Clause license_family: BSD - purls: [] size: 33601 timestamp: 1680112270483 - kind: conda - name: libuuid - version: 2.38.1 - build: h0b41bf4_0 - subdir: linux-64 - url: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.38.1-h0b41bf4_0.conda - sha256: 787eb542f055a2b3de553614b25f09eefb0a0931b0c87dbcce6efdfd92f04f18 - md5: 40b61aab5c7ba9ff276c41cfffe6b80b - depends: - - libgcc-ng >=12 - license: BSD-3-Clause - license_family: BSD - size: 33601 - timestamp: 1680112270483 -- kind: conda - name: libxcrypt - version: 4.4.36 - build: hd590300_1 - build_number: 1 - subdir: linux-64 - url: https://conda.anaconda.org/conda-forge/linux-64/libxcrypt-4.4.36-hd590300_1.conda - sha256: 6ae68e0b86423ef188196fff6207ed0c8195dd84273cb5623b85aa08033a410c - md5: 5aa797f8787fe7a17d1b0821485b5adc - depends: - - libgcc-ng >=12 - license: LGPL-2.1-or-later - purls: [] - size: 100393 - timestamp: 1702724383534 -- kind: conda - name: libxcrypt - version: 4.4.36 - build: hd590300_1 - build_number: 1 + name: libxcrypt + version: 4.4.36 + build: hd590300_1 + build_number: 1 subdir: linux-64 url: https://conda.anaconda.org/conda-forge/linux-64/libxcrypt-4.4.36-hd590300_1.conda sha256: 6ae68e0b86423ef188196fff6207ed0c8195dd84273cb5623b85aa08033a410c @@ -5971,23 +5692,6 @@ packages: - pkg:pypi/pycosat size: 77670 timestamp: 1696356641443 -- kind: conda - name: pycparser - version: '2.22' - build: pyhd8ed1ab_0 - subdir: noarch - noarch: python - url: https://conda.anaconda.org/conda-forge/noarch/pycparser-2.22-pyhd8ed1ab_0.conda - sha256: 406001ebf017688b1a1554b49127ca3a4ac4626ec0fd51dc75ffa4415b720b64 - md5: 844d9eb3b43095b031874477f7d70088 - depends: - - python >=3.8 - license: BSD-3-Clause - license_family: BSD - purls: - - pkg:pypi/pycparser - size: 105098 - timestamp: 1711811634025 - kind: conda name: pycparser version: '2.22' @@ -6511,22 +6215,6 @@ packages: - pkg:pypi/libarchive-c size: 69751 timestamp: 1709828844280 -- kind: conda - name: python_abi - version: '3.12' - build: 4_cp312 - build_number: 4 - subdir: linux-64 - url: https://conda.anaconda.org/conda-forge/linux-64/python_abi-3.12-4_cp312.conda - sha256: 182a329de10a4165f6e8a3804caf751f918f6ea6176dd4e5abcdae1ed3095bf6 - md5: dccc2d142812964fcc6abdc97b672dff - constrains: - - python 3.12.* *_cpython - license: BSD-3-Clause - license_family: BSD - purls: [] - size: 6385 - timestamp: 1695147396604 - kind: conda name: python_abi version: '3.12' @@ -6542,22 +6230,6 @@ packages: license_family: BSD size: 6385 timestamp: 1695147396604 -- kind: conda - name: python_abi - version: '3.12' - build: 4_cp312 - build_number: 4 - subdir: osx-64 - url: https://conda.anaconda.org/conda-forge/osx-64/python_abi-3.12-4_cp312.conda - sha256: 82c154d95c1637604671a02a89e72f1382e89a4269265a03506496bd928f6f14 - md5: 87201ac4314b911b74197e588cca3639 - constrains: - - python 3.12.* *_cpython - license: BSD-3-Clause - license_family: BSD - purls: [] - size: 6496 - timestamp: 1695147498447 - kind: conda name: python_abi version: '3.12' @@ -6573,22 +6245,6 @@ packages: license_family: BSD size: 6496 timestamp: 1695147498447 -- kind: conda - name: python_abi - version: '3.12' - build: 4_cp312 - build_number: 4 - subdir: osx-arm64 - url: https://conda.anaconda.org/conda-forge/osx-arm64/python_abi-3.12-4_cp312.conda - sha256: db25428e4f24f8693ffa39f3ff6dfbb8fd53bc298764b775b57edab1c697560f - md5: bbb3a02c78b2d8219d7213f76d644a2a - constrains: - - python 3.12.* *_cpython - license: BSD-3-Clause - license_family: BSD - purls: [] - size: 6508 - timestamp: 1695147497048 - kind: conda name: python_abi version: '3.12' @@ -6604,22 +6260,6 @@ packages: license_family: BSD size: 6508 timestamp: 1695147497048 -- kind: conda - name: python_abi - version: '3.12' - build: 4_cp312 - build_number: 4 - subdir: win-64 - url: https://conda.anaconda.org/conda-forge/win-64/python_abi-3.12-4_cp312.conda - sha256: 488f8519d04b48f59bd6fde21ebe2d7a527718ff28aac86a8b53aa63658bdef6 - md5: 17f4ccf6be9ded08bd0a376f489ac1a6 - constrains: - - python 3.12.* *_cpython - license: BSD-3-Clause - license_family: BSD - purls: [] - size: 6785 - timestamp: 1695147430513 - kind: conda name: python_abi version: '3.12' @@ -6652,26 +6292,6 @@ packages: - pkg:pypi/pytz size: 188538 timestamp: 1706886944988 -- kind: conda - name: pyyaml - version: 6.0.1 - build: py312h02f2b3b_1 - build_number: 1 - subdir: osx-arm64 - url: https://conda.anaconda.org/conda-forge/osx-arm64/pyyaml-6.0.1-py312h02f2b3b_1.conda - sha256: b6b4027b89c17b9bbd8089aec3e44bc29f802a7d5668d5a75b5358d7ed9705ca - md5: a0c843e52a1c4422d8657dd76e9eb994 - depends: - - python >=3.12.0rc3,<3.13.0a0 - - python >=3.12.0rc3,<3.13.0a0 *_cpython - - python_abi 3.12.* *_cp312 - - yaml >=0.2.5,<0.3.0a0 - license: MIT - license_family: MIT - purls: - - pkg:pypi/pyyaml - size: 182705 - timestamp: 1695373895409 - kind: conda name: pyyaml version: 6.0.1 @@ -6690,25 +6310,6 @@ packages: license_family: MIT size: 182705 timestamp: 1695373895409 -- kind: conda - name: pyyaml - version: 6.0.1 - build: py312h104f124_1 - build_number: 1 - subdir: osx-64 - url: https://conda.anaconda.org/conda-forge/osx-64/pyyaml-6.0.1-py312h104f124_1.conda - sha256: 04aa180782cb675b960c0bf4aad439b4a7a08553c6af74d0b8e5df9a0c7cc4f4 - md5: 260ed90aaf06061edabd7209638cf03b - depends: - - python >=3.12.0rc3,<3.13.0a0 - - python_abi 3.12.* *_cp312 - - yaml >=0.2.5,<0.3.0a0 - license: MIT - license_family: MIT - purls: - - pkg:pypi/pyyaml - size: 185636 - timestamp: 1695373742454 - kind: conda name: pyyaml version: 6.0.1 @@ -6726,26 +6327,6 @@ packages: license_family: MIT size: 185636 timestamp: 1695373742454 -- kind: conda - name: pyyaml - version: 6.0.1 - build: py312h98912ed_1 - build_number: 1 - subdir: linux-64 - url: https://conda.anaconda.org/conda-forge/linux-64/pyyaml-6.0.1-py312h98912ed_1.conda - sha256: 7f347a10a7121b08d79d21cd4f438c07c23479ea0c74dfb89d6dc416f791bb7f - md5: e3fd78d8d490af1d84763b9fe3f2e552 - depends: - - libgcc-ng >=12 - - python >=3.12.0rc3,<3.13.0a0 - - python_abi 3.12.* *_cp312 - - yaml >=0.2.5,<0.3.0a0 - license: MIT - license_family: MIT - purls: - - pkg:pypi/pyyaml - size: 196583 - timestamp: 1695373632212 - kind: conda name: pyyaml version: 6.0.1 @@ -6764,28 +6345,6 @@ packages: license_family: MIT size: 196583 timestamp: 1695373632212 -- kind: conda - name: pyyaml - version: 6.0.1 - build: py312he70551f_1 - build_number: 1 - subdir: win-64 - url: https://conda.anaconda.org/conda-forge/win-64/pyyaml-6.0.1-py312he70551f_1.conda - sha256: a72fa8152791b4738432f270e70b3a9a4d583ef059a78aa1c62f4b4ab7b15494 - md5: f91e0baa89ba21166916624ba7bfb422 - depends: - - python >=3.12.0rc3,<3.13.0a0 - - python_abi 3.12.* *_cp312 - - ucrt >=10.0.20348.0 - - vc >=14.2,<15 - - vc14_runtime >=14.29.30139 - - yaml >=0.2.5,<0.3.0a0 - license: MIT - license_family: MIT - purls: - - pkg:pypi/pyyaml - size: 167932 - timestamp: 1695374097139 - kind: conda name: pyyaml version: 6.0.1 @@ -6878,26 +6437,9 @@ packages: name: rattler-build-conda-compat version: 0.0.6 path: . - sha256: 6bf2bcd3e66ea117fda7ff83995b6d1dec8a3a0480f0f7ee7a6d83bfb8faa9fa + sha256: f699c1a6377cd93a9519b2966858ab7ef42d856304d11b90c2a96d3bdebfab60 requires_python: '>=3.8' editable: true -- kind: conda - name: readline - version: '8.2' - build: h8228510_1 - build_number: 1 - subdir: linux-64 - url: https://conda.anaconda.org/conda-forge/linux-64/readline-8.2-h8228510_1.conda - sha256: 5435cf39d039387fbdc977b0a762357ea909a7694d9528ab40f005e9208744d7 - md5: 47d31b792659ce70f470b5c82fdfb7a4 - depends: - - libgcc-ng >=12 - - ncurses >=6.3,<7.0a0 - license: GPL-3.0-only - license_family: GPL - purls: [] - size: 281456 - timestamp: 1679532220005 - kind: conda name: readline version: '8.2' @@ -6914,22 +6456,6 @@ packages: license_family: GPL size: 281456 timestamp: 1679532220005 -- kind: conda - name: readline - version: '8.2' - build: h92ec313_1 - build_number: 1 - subdir: osx-arm64 - url: https://conda.anaconda.org/conda-forge/osx-arm64/readline-8.2-h92ec313_1.conda - sha256: a1dfa679ac3f6007362386576a704ad2d0d7a02e98f5d0b115f207a2da63e884 - md5: 8cbb776a2f641b943d413b3e19df71f4 - depends: - - ncurses >=6.3,<7.0a0 - license: GPL-3.0-only - license_family: GPL - purls: [] - size: 250351 - timestamp: 1679532511311 - kind: conda name: readline version: '8.2' @@ -6945,22 +6471,6 @@ packages: license_family: GPL size: 250351 timestamp: 1679532511311 -- kind: conda - name: readline - version: '8.2' - build: h9e318b2_1 - build_number: 1 - subdir: osx-64 - url: https://conda.anaconda.org/conda-forge/osx-64/readline-8.2-h9e318b2_1.conda - sha256: 41e7d30a097d9b060037f0c6a2b1d4c4ae7e942c06c943d23f9d481548478568 - md5: f17f77f2acf4d344734bda76829ce14e - depends: - - ncurses >=6.3,<7.0a0 - license: GPL-3.0-only - license_family: GPL - purls: [] - size: 255870 - timestamp: 1679532707590 - kind: conda name: readline version: '8.2' @@ -7289,24 +6799,6 @@ packages: - pkg:pypi/rpds-py size: 201960 timestamp: 1707923686383 -- kind: conda - name: ruamel.yaml - version: 0.18.6 - build: py312h41838bb_0 - subdir: osx-64 - url: https://conda.anaconda.org/conda-forge/osx-64/ruamel.yaml-0.18.6-py312h41838bb_0.conda - sha256: 27ab446d39a46f7db365265a48ce74929c672e14c86b1ce8955f59e2d92dff39 - md5: 9db93e711729ec70dacdfa58bf970cfd - depends: - - python >=3.12,<3.13.0a0 - - python_abi 3.12.* *_cp312 - - ruamel.yaml.clib >=0.1.2 - license: MIT - license_family: MIT - purls: - - pkg:pypi/ruamel-yaml - size: 268460 - timestamp: 1707298596313 - kind: conda name: ruamel.yaml version: 0.18.6 @@ -7323,25 +6815,6 @@ packages: license_family: MIT size: 268460 timestamp: 1707298596313 -- kind: conda - name: ruamel.yaml - version: 0.18.6 - build: py312h98912ed_0 - subdir: linux-64 - url: https://conda.anaconda.org/conda-forge/linux-64/ruamel.yaml-0.18.6-py312h98912ed_0.conda - sha256: 26856daba883254736b7f3767c08f445b5d010eebbf4fc7aa384ee80e24aa663 - md5: a99a06a875138829ef65f44bbe2c30ca - depends: - - libgcc-ng >=12 - - python >=3.12,<3.13.0a0 - - python_abi 3.12.* *_cp312 - - ruamel.yaml.clib >=0.1.2 - license: MIT - license_family: MIT - purls: - - pkg:pypi/ruamel-yaml - size: 268015 - timestamp: 1707298336196 - kind: conda name: ruamel.yaml version: 0.18.6 @@ -7374,48 +6847,8 @@ packages: - ruamel.yaml.clib >=0.1.2 license: MIT license_family: MIT - purls: - - pkg:pypi/ruamel-yaml size: 268637 timestamp: 1707298502612 -- kind: conda - name: ruamel.yaml - version: 0.18.6 - build: py312he37b823_0 - subdir: osx-arm64 - url: https://conda.anaconda.org/conda-forge/osx-arm64/ruamel.yaml-0.18.6-py312he37b823_0.conda - sha256: 4a27b50445842e97a31e3f412816d4a0d576b4f1ee327b9a892a183ba5c60f6f - md5: cb9f9b4797001b2c52383f4007fa1f4b - depends: - - python >=3.12,<3.13.0a0 - - python >=3.12,<3.13.0a0 *_cpython - - python_abi 3.12.* *_cp312 - - ruamel.yaml.clib >=0.1.2 - license: MIT - license_family: MIT - size: 268637 - timestamp: 1707298502612 -- kind: conda - name: ruamel.yaml - version: 0.18.6 - build: py312he70551f_0 - subdir: win-64 - url: https://conda.anaconda.org/conda-forge/win-64/ruamel.yaml-0.18.6-py312he70551f_0.conda - sha256: 31a9e347107a46149ae334586430bebb3a769bb5792eba9ccb89c664dbce7970 - md5: 5833ba75a49ac40876242ccb5f77ab23 - depends: - - python >=3.12,<3.13.0a0 - - python_abi 3.12.* *_cp312 - - ruamel.yaml.clib >=0.1.2 - - ucrt >=10.0.20348.0 - - vc >=14.2,<15 - - vc14_runtime >=14.29.30139 - license: MIT - license_family: MIT - purls: - - pkg:pypi/ruamel-yaml - size: 267762 - timestamp: 1707298539404 - kind: conda name: ruamel.yaml version: 0.18.6 @@ -7435,23 +6868,6 @@ packages: license_family: MIT size: 267762 timestamp: 1707298539404 -- kind: conda - name: ruamel.yaml.clib - version: 0.2.8 - build: py312h41838bb_0 - subdir: osx-64 - url: https://conda.anaconda.org/conda-forge/osx-64/ruamel.yaml.clib-0.2.8-py312h41838bb_0.conda - sha256: c0a321d14505b3621d6301e1ed9bc0129b4c8b2812e7520040d2609aaeb07845 - md5: a134bf1778eb7add92ea760e801dc245 - depends: - - python >=3.12,<3.13.0a0 - - python_abi 3.12.* *_cp312 - license: MIT - license_family: MIT - purls: - - pkg:pypi/ruamel-yaml-clib - size: 118650 - timestamp: 1707314908121 - kind: conda name: ruamel.yaml.clib version: 0.2.8 @@ -7481,44 +6897,8 @@ packages: - python_abi 3.12.* *_cp312 license: MIT license_family: MIT - purls: - - pkg:pypi/ruamel-yaml-clib size: 135640 timestamp: 1707314642857 -- kind: conda - name: ruamel.yaml.clib - version: 0.2.8 - build: py312h98912ed_0 - subdir: linux-64 - url: https://conda.anaconda.org/conda-forge/linux-64/ruamel.yaml.clib-0.2.8-py312h98912ed_0.conda - sha256: 5965302881d8b1049291e3ba3912286cdc72cb82303230cbbf0a048c6f6dd7c1 - md5: 05f31c2a79ba61df8d6d903ce4a4ce7b - depends: - - libgcc-ng >=12 - - python >=3.12,<3.13.0a0 - - python_abi 3.12.* *_cp312 - license: MIT - license_family: MIT - size: 135640 - timestamp: 1707314642857 -- kind: conda - name: ruamel.yaml.clib - version: 0.2.8 - build: py312he37b823_0 - subdir: osx-arm64 - url: https://conda.anaconda.org/conda-forge/osx-arm64/ruamel.yaml.clib-0.2.8-py312he37b823_0.conda - sha256: c3138824f484cca2804d22758c75965b578cd35b35243ff02e64da06bda03477 - md5: 2fa02324046cfcb7a67fae30fd06a945 - depends: - - python >=3.12,<3.13.0a0 - - python >=3.12,<3.13.0a0 *_cpython - - python_abi 3.12.* *_cp312 - license: MIT - license_family: MIT - purls: - - pkg:pypi/ruamel-yaml-clib - size: 111221 - timestamp: 1707315016121 - kind: conda name: ruamel.yaml.clib version: 0.2.8 @@ -7535,26 +6915,6 @@ packages: license_family: MIT size: 111221 timestamp: 1707315016121 -- kind: conda - name: ruamel.yaml.clib - version: 0.2.8 - build: py312he70551f_0 - subdir: win-64 - url: https://conda.anaconda.org/conda-forge/win-64/ruamel.yaml.clib-0.2.8-py312he70551f_0.conda - sha256: 7d5705ee3190a5b1c24eee2def964cc1d70b9e856488d971f0fd6df0224ca666 - md5: f8de34a829b65a8e3ac6ddc61ed0d2e0 - depends: - - python >=3.12,<3.13.0a0 - - python_abi 3.12.* *_cp312 - - ucrt >=10.0.20348.0 - - vc >=14.2,<15 - - vc14_runtime >=14.29.30139 - license: MIT - license_family: MIT - purls: - - pkg:pypi/ruamel-yaml-clib - size: 96333 - timestamp: 1707315306489 - kind: conda name: ruamel.yaml.clib version: 0.2.8 @@ -7872,22 +7232,6 @@ packages: purls: [] size: 191416 timestamp: 1602687595316 -- kind: conda - name: tk - version: 8.6.13 - build: h1abcd95_1 - build_number: 1 - subdir: osx-64 - url: https://conda.anaconda.org/conda-forge/osx-64/tk-8.6.13-h1abcd95_1.conda - sha256: 30412b2e9de4ff82d8c2a7e5d06a15f4f4fef1809a72138b6ccb53a33b26faf5 - md5: bf830ba5afc507c6232d4ef0fb1a882d - depends: - - libzlib >=1.2.13,<1.3.0a0 - license: TCL - license_family: BSD - purls: [] - size: 3270220 - timestamp: 1699202389792 - kind: conda name: tk version: 8.6.13 @@ -7903,22 +7247,6 @@ packages: license_family: BSD size: 3270220 timestamp: 1699202389792 -- kind: conda - name: tk - version: 8.6.13 - build: h5083fa2_1 - build_number: 1 - subdir: osx-arm64 - url: https://conda.anaconda.org/conda-forge/osx-arm64/tk-8.6.13-h5083fa2_1.conda - sha256: 72457ad031b4c048e5891f3f6cb27a53cb479db68a52d965f796910e71a403a8 - md5: b50a57ba89c32b62428b71a875291c9b - depends: - - libzlib >=1.2.13,<1.3.0a0 - license: TCL - license_family: BSD - purls: [] - size: 3145523 - timestamp: 1699202432999 - kind: conda name: tk version: 8.6.13 @@ -7949,43 +7277,8 @@ packages: - vc14_runtime >=14.29.30139 license: TCL license_family: BSD - purls: [] size: 3503410 timestamp: 1699202577803 -- kind: conda - name: tk - version: 8.6.13 - build: h5226925_1 - build_number: 1 - subdir: win-64 - url: https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h5226925_1.conda - sha256: 2c4e914f521ccb2718946645108c9bd3fc3216ba69aea20c2c3cedbd8db32bb1 - md5: fc048363eb8f03cd1737600a5d08aafe - depends: - - ucrt >=10.0.20348.0 - - vc >=14.2,<15 - - vc14_runtime >=14.29.30139 - license: TCL - license_family: BSD - size: 3503410 - timestamp: 1699202577803 -- kind: conda - name: tk - version: 8.6.13 - build: noxft_h4845f30_101 - build_number: 101 - subdir: linux-64 - url: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_h4845f30_101.conda - sha256: e0569c9caa68bf476bead1bed3d79650bb080b532c64a4af7d8ca286c08dea4e - md5: d453b98d9c83e71da0741bb0ff4d76bc - depends: - - libgcc-ng >=12 - - libzlib >=1.2.13,<1.3.0a0 - license: TCL - license_family: BSD - purls: [] - size: 3318875 - timestamp: 1699202167581 - kind: conda name: tk version: 8.6.13 @@ -8002,23 +7295,6 @@ packages: license_family: BSD size: 3318875 timestamp: 1699202167581 -- kind: conda - name: tomli - version: 2.0.1 - build: pyhd8ed1ab_0 - subdir: noarch - noarch: python - url: https://conda.anaconda.org/conda-forge/noarch/tomli-2.0.1-pyhd8ed1ab_0.tar.bz2 - sha256: 4cd48aba7cd026d17e86886af48d0d2ebc67ed36f87f6534f4b67138f5a5a58f - md5: 5844808ffab9ebdb694585b50ba02a96 - depends: - - python >=3.7 - license: MIT - license_family: MIT - purls: - - pkg:pypi/tomli - size: 15940 - timestamp: 1644342331069 - kind: conda name: tomli version: 2.0.1 @@ -8168,19 +7444,6 @@ packages: license_family: MIT size: 3670179 timestamp: 1720643007539 -- kind: conda - name: tzdata - version: 2024a - build: h0c530f3_0 - subdir: noarch - noarch: generic - url: https://conda.anaconda.org/conda-forge/noarch/tzdata-2024a-h0c530f3_0.conda - sha256: 7b2b69c54ec62a243eb6fba2391b5e443421608c3ae5dbff938ad33ca8db5122 - md5: 161081fc7cec0bfda0d86d7cb595f8d8 - license: LicenseRef-Public-Domain - purls: [] - size: 119815 - timestamp: 1706886945727 - kind: conda name: tzdata version: 2024a @@ -8193,21 +7456,6 @@ packages: license: LicenseRef-Public-Domain size: 119815 timestamp: 1706886945727 -- kind: conda - name: ucrt - version: 10.0.22621.0 - build: h57928b3_0 - subdir: win-64 - url: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.22621.0-h57928b3_0.tar.bz2 - sha256: f29cdaf8712008f6b419b8b1a403923b00ab2504bfe0fb2ba8eb60e72d4f14c6 - md5: 72608f6cd3e5898229c3ea16deb1ac43 - constrains: - - vs2015_runtime >=14.29.30037 - license: LicenseRef-Proprietary - license_family: PROPRIETARY - purls: [] - size: 1283972 - timestamp: 1666630199266 - kind: conda name: ucrt version: 10.0.22621.0 @@ -8527,20 +7775,6 @@ packages: - pkg:pypi/wrapt size: 61358 timestamp: 1699533495284 -- kind: conda - name: xz - version: 5.2.6 - build: h166bdaf_0 - subdir: linux-64 - url: https://conda.anaconda.org/conda-forge/linux-64/xz-5.2.6-h166bdaf_0.tar.bz2 - sha256: 03a6d28ded42af8a347345f82f3eebdd6807a08526d47899a42d62d319609162 - md5: 2161070d867d1b1204ea749c8eec4ef0 - depends: - - libgcc-ng >=12 - license: LGPL-2.1 and GPL-2.0 - purls: [] - size: 418368 - timestamp: 1660346797927 - kind: conda name: xz version: 5.2.6 @@ -8563,32 +7797,8 @@ packages: sha256: 59d78af0c3e071021cfe82dc40134c19dab8cdf804324b62940f5c8cd71803ec md5: 39c6b54e94014701dd157f4f576ed211 license: LGPL-2.1 and GPL-2.0 - purls: [] size: 235693 timestamp: 1660346961024 -- kind: conda - name: xz - version: 5.2.6 - build: h57fd34a_0 - subdir: osx-arm64 - url: https://conda.anaconda.org/conda-forge/osx-arm64/xz-5.2.6-h57fd34a_0.tar.bz2 - sha256: 59d78af0c3e071021cfe82dc40134c19dab8cdf804324b62940f5c8cd71803ec - md5: 39c6b54e94014701dd157f4f576ed211 - license: LGPL-2.1 and GPL-2.0 - size: 235693 - timestamp: 1660346961024 -- kind: conda - name: xz - version: 5.2.6 - build: h775f41a_0 - subdir: osx-64 - url: https://conda.anaconda.org/conda-forge/osx-64/xz-5.2.6-h775f41a_0.tar.bz2 - sha256: eb09823f34cc2dd663c0ec4ab13f246f45dcd52e5b8c47b9864361de5204a1c8 - md5: a72f9d4ea13d55d745ff1ed594747f10 - license: LGPL-2.1 and GPL-2.0 - purls: [] - size: 238119 - timestamp: 1660346964847 - kind: conda name: xz version: 5.2.6 @@ -8600,21 +7810,6 @@ packages: license: LGPL-2.1 and GPL-2.0 size: 238119 timestamp: 1660346964847 -- kind: conda - name: xz - version: 5.2.6 - build: h8d14728_0 - subdir: win-64 - url: https://conda.anaconda.org/conda-forge/win-64/xz-5.2.6-h8d14728_0.tar.bz2 - sha256: 54d9778f75a02723784dc63aff4126ff6e6749ba21d11a6d03c1f4775f269fe0 - md5: 515d77642eaa3639413c6b1bc3f94219 - depends: - - vc >=14.1,<15 - - vs2015_runtime >=14.16.27033 - license: LGPL-2.1 and GPL-2.0 - purls: [] - size: 217804 - timestamp: 1660346976440 - kind: conda name: xz version: 5.2.6 @@ -8640,36 +7835,8 @@ packages: md5: d7e08fcf8259d742156188e8762b4d20 license: MIT license_family: MIT - purls: [] size: 84237 timestamp: 1641347062780 -- kind: conda - name: yaml - version: 0.2.5 - build: h0d85af4_2 - build_number: 2 - subdir: osx-64 - url: https://conda.anaconda.org/conda-forge/osx-64/yaml-0.2.5-h0d85af4_2.tar.bz2 - sha256: 5301417e2c8dea45b401ffee8df3957d2447d4ce80c83c5ff151fc6bfe1c4148 - md5: d7e08fcf8259d742156188e8762b4d20 - license: MIT - license_family: MIT - size: 84237 - timestamp: 1641347062780 -- kind: conda - name: yaml - version: 0.2.5 - build: h3422bc3_2 - build_number: 2 - subdir: osx-arm64 - url: https://conda.anaconda.org/conda-forge/osx-arm64/yaml-0.2.5-h3422bc3_2.tar.bz2 - sha256: 93181a04ba8cfecfdfb162fc958436d868cc37db504c58078eab4c1a3e57fbb7 - md5: 4bb3f014845110883a3c5ee811fd84b4 - license: MIT - license_family: MIT - purls: [] - size: 88016 - timestamp: 1641347076660 - kind: conda name: yaml version: 0.2.5 @@ -8696,41 +7863,8 @@ packages: - libgcc-ng >=9.4.0 license: MIT license_family: MIT - purls: [] size: 89141 timestamp: 1641346969816 -- kind: conda - name: yaml - version: 0.2.5 - build: h7f98852_2 - build_number: 2 - subdir: linux-64 - url: https://conda.anaconda.org/conda-forge/linux-64/yaml-0.2.5-h7f98852_2.tar.bz2 - sha256: a4e34c710eeb26945bdbdaba82d3d74f60a78f54a874ec10d373811a5d217535 - md5: 4cb3ad778ec2d5a7acbdf254eb1c42ae - depends: - - libgcc-ng >=9.4.0 - license: MIT - license_family: MIT - size: 89141 - timestamp: 1641346969816 -- kind: conda - name: yaml - version: 0.2.5 - build: h8ffe710_2 - build_number: 2 - subdir: win-64 - url: https://conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h8ffe710_2.tar.bz2 - sha256: 4e2246383003acbad9682c7c63178e2e715ad0eb84f03a8df1fbfba455dfedc5 - md5: adbfb9f45d1004a26763652246a33764 - depends: - - vc >=14.1,<15.0a0 - - vs2015_runtime >=14.16.27012 - license: MIT - license_family: MIT - purls: [] - size: 63274 - timestamp: 1641347623319 - kind: conda name: yaml version: 0.2.5 diff --git a/pyproject.toml b/pyproject.toml index 4afe937..9bd146b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ exclude = [ ] [tool.ruff.lint.per-file-ignores] -"tests/*.py" = ["S101", "INP001"] +"tests/*.py" = ["S101", "INP001", "PLR2004", "ANN001"] [tool.pyright] venvPath = ".pixi/envs" diff --git a/tests/conftest.py b/tests/conftest.py index a318c0e..57b908e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,11 +1,14 @@ +from __future__ import annotations + from os import mkdir from pathlib import Path +from typing import Any import pytest @pytest.fixture() -def python_recipe(tmpdir): +def python_recipe(tmpdir: Path) -> str: recipe_dir = tmpdir / "recipe" mkdir(recipe_dir) @@ -21,7 +24,7 @@ def python_recipe(tmpdir): @pytest.fixture() -def env_recipe(tmpdir): +def env_recipe(tmpdir: Path) -> str: recipe_dir = tmpdir / "recipe" mkdir(recipe_dir) @@ -33,12 +36,12 @@ def env_recipe(tmpdir): @pytest.fixture() -def unix_namespace(): +def unix_namespace() -> dict[str, Any]: return {"linux-64": True, "unix": True} @pytest.fixture() -def recipe_dir(tmpdir): +def recipe_dir(tmpdir: Path) -> Path: py_recipe = Path("tests/data/py_recipe.yaml").read_text() recipe_dir = tmpdir / "recipe" mkdir(recipe_dir) @@ -49,7 +52,7 @@ def recipe_dir(tmpdir): @pytest.fixture() -def old_recipe_dir(tmpdir): +def old_recipe_dir(tmpdir: Path) -> Path: recipe_dir = tmpdir / "recipe" mkdir(recipe_dir) diff --git a/tests/test_rattler_loader.py b/tests/test_rattler_loader.py index 093af23..b613313 100644 --- a/tests/test_rattler_loader.py +++ b/tests/test_rattler_loader.py @@ -1,4 +1,7 @@ +from __future__ import annotations + from pathlib import Path +from typing import Any from rattler_build_conda_compat.loader import ( load_all_requirements, @@ -7,7 +10,7 @@ ) -def test_load_variants(snapshot, unix_namespace) -> None: +def test_load_variants(snapshot, unix_namespace: dict[str, Any]) -> None: variants_path = Path("tests/data/variants.yaml") loaded_variants = parse_recipe_config_file(str(variants_path), unix_namespace) diff --git a/tests/test_rattler_render.py b/tests/test_rattler_render.py index 3b99475..3c47339 100644 --- a/tests/test_rattler_render.py +++ b/tests/test_rattler_render.py @@ -1,10 +1,16 @@ +from __future__ import annotations + import os +from typing import TYPE_CHECKING, Any from rattler_build_conda_compat.loader import parse_recipe_config_file from rattler_build_conda_compat.render import render +if TYPE_CHECKING: + from pathlib import Path + -def test_render_recipe(python_recipe, unix_namespace, snapshot) -> None: +def test_render_recipe(python_recipe: Path, unix_namespace: dict[str, Any], snapshot) -> None: variants = parse_recipe_config_file(str(python_recipe / "variants.yaml"), unix_namespace) rendered = render(str(python_recipe), variants=variants, platform="linux", arch="64")