singularity-compose icon indicating copy to clipboard operation
singularity-compose copied to clipboard

Support is broken for Python 3.12

Open willdunklin opened this issue 1 year ago • 1 comments

pip installing this package fails when using python3.12:

$ python3.12 -m pip install singularity-compose
Defaulting to user installation because normal site-packages is not writeable
Collecting singularity-compose
  Downloading singularity-compose-0.1.18.tar.gz (32 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      ERROR: Can not execute `setup.py` since setuptools is not available in the build environment.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

When using 3.8, the install succeeds:

$ python3.8 -m pip install singularity-compose
Defaulting to user installation because normal site-packages is not writeable
Collecting singularity-compose
  Using cached singularity-compose-0.1.18.tar.gz (32 kB)
  Preparing metadata (setup.py) ... done
Collecting spython>=0.2.11 (from singularity-compose)
  Downloading spython-0.3.13-py3-none-any.whl.metadata (8.6 kB)
Collecting pyaml>=5.1.1 (from singularity-compose)
  Downloading pyaml-23.12.0-py3-none-any.whl.metadata (11 kB)
Requirement already satisfied: PyYAML in ./.local/lib/python3.8/site-packages (from pyaml>=5.1.1->singularity-compose) (6.0)
Downloading pyaml-23.12.0-py3-none-any.whl (23 kB)
Downloading spython-0.3.13-py3-none-any.whl (109 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 109.6/109.6 kB 1.8 MB/s eta 0:00:00
Building wheels for collected packages: singularity-compose
  Building wheel for singularity-compose (setup.py) ... done
  Created wheel for singularity-compose: filename=singularity_compose-0.1.18-py3-none-any.whl size=48182 sha256=5eb3662aaf3638dc298f9781a8f8cbd034dd5bdab3ba853cf746d0c36cdb6e4e
  Stored in directory: ~/.cache/pip/wheels/be/d9/19/ef8619972db1a384098dc9792e7bd97f7f34b1ca55c52cc07a
Successfully built singularity-compose
Installing collected packages: spython, pyaml, singularity-compose
Successfully installed pyaml-23.12.0 singularity-compose-0.1.18 spython-0.3.13

@vsoch If you could either update your python packaging to be compliant with python3.12 or explicitly mention which versions are supported, it would be much appreciated. Thank you!

willdunklin avatar Feb 26 '24 16:02 willdunklin

Could you please test build and install of a wheel directly? I can release that alongside if needed. Otherwise, please make a specific suggestion for what you'd like changed. Thanks!

vsoch avatar Feb 26 '24 17:02 vsoch