DataMedSci / pymchelper

Python toolkit for SHIELD-HIT12A and FLUKA
http://datamedsci.github.io/pymchelper/
15 stars 7 forks source link

Fix pip issue #635

Closed grzanka closed 1 year ago

grzanka commented 1 year ago

There is a problem with pip 23.1 and python3.10.11:

× Getting requirements to build editable did not run successfully.
  │ exit code: 1
  ╰─> [60 lines of output]
      fatal: No names found, cannot describe anything.
      fatal: No names found, cannot describe anything.
      fatal: No names found, cannot describe anything.
      /tmp/pip-build-env-madq0i3w/overlay/lib/python3.10/site-packages/setuptools/dist.py:561: UserWarning: The version specified ('Unknown') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
        warnings.warn(
      running egg_info
      /tmp/pip-build-env-madq0i3w/overlay/lib/python3.10/site-packages/setuptools/_normalization.py:93: SetuptoolsDeprecationWarning: Invalid version: 'Unknown'.
              !!

              ###################
              # Invalid version #
              ###################
              'Unknown' is not valid according to PEP 4[40](https://github.com/DataMedSci/pymchelper/actions/runs/4741626573/jobs/8421345090#step:4:41).

              Please make sure specify a valid version for your package.
              Also note that future releases of setuptools may halt the build process
              if an invalid version is given.

      !!
reviewpad[bot] commented 1 year ago

AI-Generated Summary: This issue involves a problem with pip 23.1 and python3.10.11, causing a failure in building editable requirements. The invalid version 'Unknown' leads to warnings and potential compatibility issues with setuptools, pip, and PyPI. The user needs to specify a proper version according to PEP 440 to resolve the issue.

reviewpad[bot] commented 1 year ago

AI-Generated Summary: This issue involves a problem with pip 23.1 and python3.10.11. The user is experiencing an error when attempting to build editable requirements. Notably, there's an invalid version specified ('Unknown'), which may cause compatibility issues with newer versions of setuptools, pip, and PyPI. The output also references PEP 440 as a guide for using the correct version format.