diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-01-21 11:16:56 +0100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-02-07 12:28:37 +0100 |
| commit | 1bf91ac505c93a90088081795369dfa0d1558a71 (patch) | |
| tree | aeb947bd666ad323c2e2997c6b83e471aef8ba0a /gnu/packages/python-science.scm | |
| parent | e9ddab869d19454c939dd94ea71cb6d334d95469 (diff) | |
gnu: Drop setting SETUPTOOLS_SCM_PRETEND_VERSION in some packages.
* gnu/packages/astronomy.scm (python-asdf-compression)
(python-asdf-fits-schemas, python-cdflib, python-sunkit-spex):
* gnu/packages/bioinformatics.scm (python-whatshap, python-mudata)
(python-pyfaidx, python-ctxcore, scvelo):
* gnu/packages/bootloaders.scm (dtc):
* gnu/packages/check.scm (python-pytest-xdist, python-pytest-forked):
* gnu/packages/databases.scm (python-fastparquet):
* gnu/packages/disk.scm (greaseweazle-host-tools):
* gnu/packages/docker.scm (python-docker):
* gnu/packages/finance.scm (python-ledgerblue):
* gnu/packages/fontutils.scm (python-compreffor)
(python-defcon-bootstrap, nototools):
* gnu/packages/games.scm (sc-controller):
* gnu/packages/machine-learning.scm (python-botorch):
* gnu/packages/music.scm (python-pylast):
* gnu/packages/package-management.scm (conda):
* gnu/packages/python-build.scm (python-exceptiongroup):
* gnu/packages/python-science.scm (python-dask-image)
(python-distributed, python-osqp):
* gnu/packages/python-web.scm (python-branca, python-smart-open):
* gnu/packages/python-xyz.scm (python-conda-content-trust)
(python-menuinst, python-isort, python-pyclibrary)
(python-pyclipper, python-csb43-0.10, python-orgparse)
(python-deepmerge, python-scooby, python-uuid6):
* gnu/packages/radio.scm (nanovna-saver):
* gnu/packages/sphinx.scm (python-sphinx-autodoc-typehints):
[arguments]: Remove phases setting SETUPTOOLS_SCM_PRETEND_VERSION.
* gnu/packages/python-xyz.scm (python-bagit)
[arguments]: Refactor manual 'check phase into #:test-flags.
Change-Id: I0713d6603f982a7f956d02fc3b85a384f4dd6ce4
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-science.scm')
| -rw-r--r-- | gnu/packages/python-science.scm | 55 |
1 files changed, 6 insertions, 49 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 1f958613ead..118355d8ec1 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -326,9 +326,6 @@ possibility to differentiate functions that contain matrix functions as (lambda _ (substitute* "pyproject.toml" (("--doctest-modules") "")))) - (add-before 'build 'set-version - (lambda _ - (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))) ;; Numba needs a writable dir to cache functions. (add-before 'check 'set-numba-cache-dir (lambda _ @@ -735,16 +732,7 @@ but have now been adjusted using the viscm tool to be perceptually uniform.") " and not test_extended_overplotting[png]" " and not test_reverse_overplotting[png]" " and not test_arviz[png]" - " and not test_range_fig_arg[png]")) - #:phases - #~(modify-phases %standard-phases - (add-before 'build 'pretend-version - ;; XXX: Make sure you're either building from a fully intact git - ;; repository or PyPI tarballs. Most other sources (such as GitHub's - ;; tarballs, a git checkout without the .git folder) don't contain - ;; the necessary metadata and will not work. - (lambda _ - (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) + " and not test_range_fig_arg[png]")))) (propagated-inputs (list python-matplotlib)) (native-inputs @@ -864,9 +852,6 @@ optimization problems in Python.") (lambda _ (substitute* "pyproject.toml" ((".*--cov-config=pyproject.toml.*") "")))) - (add-before 'build 'set-version - (lambda _ - (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))) (add-before 'check 'remove-local-source (lambda _ (delete-file-recursively "dask")))))) @@ -924,10 +909,7 @@ run on top of the dynamic task schedulers.") (add-after 'unpack 'fix-pytest-config (lambda _ (substitute* "pyproject.toml" - (("--flake8") "")))) - (add-before 'build 'set-version - (lambda _ - (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) + (("--flake8") ""))))))) (native-inputs (list python-pytest python-pytest-timeout @@ -1074,10 +1056,7 @@ interoperability offered by HDF5.") (add-after 'unpack 'fix-pytest-config (lambda _ (substitute* "pyproject.toml" - (("--cov-config.*") "")))) - (add-before 'build 'set-version - (lambda _ - (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) + (("--cov-config.*") ""))))))) (native-inputs (list python-setuptools python-setuptools-scm-next)) @@ -2344,10 +2323,7 @@ web, by sharing data and other research outputs.") (format #f "SOURCE_DIR ~a" (string-append (getcwd) "/osqp"))) (("GIT_TAG v1.0.0") - "")))) - (add-before 'build 'set-version - (lambda _ - (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) + ""))))))) (native-inputs (list cmake-minimal osqp @@ -2794,14 +2770,7 @@ automated with the minimum of fuss and the least effort.") (sha256 (base32 "0v7l6qbxgclz644fq1vmakfasxcdhg1g019b5w47hlxqw8fx0ipl")))) (build-system pyproject-build-system) - (arguments - (list - ;; tests: 190 passed, 1 xfailed, 28 warnings - #:phases - #~(modify-phases %standard-phases - (add-before 'build 'set-version - (lambda _ - (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) + ;; tests: 190 passed, 1 xfailed, 28 warnings (native-inputs (list python-hatch-vcs python-hatchling @@ -3260,13 +3229,7 @@ the following purposes in mind: ;; tests: 1013 passed, 105 warnings #:test-flags #~(list "--durations=10" ;to help in spotting long running tests - "--numprocesses" (number->string (min 4 (parallel-job-count)))) - #:phases - #~(modify-phases %standard-phases - (add-before 'build 'set-version - (lambda _ - (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" - #$(version-major+minor version))))))) + "--numprocesses" (number->string (min 4 (parallel-job-count)))))) (propagated-inputs (list python-ecos python-joblib @@ -5477,12 +5440,6 @@ multiple-axes, polar charts, and bubble charts.") 'infix))) #:phases #~(modify-phases %standard-phases - (add-before 'build 'pretend-version - ;; The version string is usually derived via setuptools-scm, but - ;; without the git metadata available, the version string is set to - ;; '999'. - (lambda _ - (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))) (add-before 'check 'pre-check (lambda* (#:key inputs outputs #:allow-other-keys) ;; The data files are referenced by the tests but they are not |
