Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated config in setup.cfg used in pyyaml@5.3.1 #165

Open
ShellMars opened this issue Oct 7, 2023 · 0 comments
Open

Deprecated config in setup.cfg used in pyyaml@5.3.1 #165

ShellMars opened this issue Oct 7, 2023 · 0 comments

Comments

@ShellMars
Copy link

错误信息

Collecting PyYAML==5.3.1 (from -r requirements.txt (line 74))
  Using cached PyYAML-5.3.1.tar.gz (269 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [48 lines of output]
      /home/asiv/anaconda3/envs/hack/lib/python3.8/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in setup.cfg
      !!
      
              ********************************************************************************
              The license_file parameter is deprecated, use license_files instead.
      
              By 2023-Oct-30, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
      
              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************

pip install -r requirements.txt or bash build.sh fails on Python 3.8 due to deprecated setup.cfg in pyyaml 5.3.1 using license_file instead of license_files .

Materials and reference

修复建议:将requirements.txt中的

PyYAML==5.3.1

改为

PyYAML>=5.3,<7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant