Setuptools Deprecated Config
pupubird opened this issue · 4 comments
pupubird commented
Hey, when I am using pip-tools
to pip-compile
, it will return this error:
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [62 lines of output]
/private/var/folders/qm/59y2pqyx7z79nqrj3r6bg3rw0000gn/T/pip-build-env-7tmch0hw/overlay/lib/python3.9/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.
********************************************************************************
!!
parsed = self.parsers.get(option_name, lambda x: x)(value)
running egg_info
writing lib3/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib3/PyYAML.egg-info/top_level.txt
Traceback (most recent call last):
I suggest to upgrade the PyYAML in the library
pupubird commented
Hey, you may be able to reproduce with the following steps:
- Using MacOS 14.0 (23A344)
- Use Python Version
3.9.6
- Run
pip install pip-tools
- Create requirements.in with following:
django
djangorestframework
django-imagekit
django-extensions
django-redis
django-rq
rq_scheduler
awscli
boto3
pillow
django-unused-media
django-cors-headers
django_extensions
fabric
ipython
gunicorn
uvicorn[standard]
python-dateutil
python-dotenv
patchwork
channels
channels_redis
django-push-notifications[WP,APNS]
drf-yasg
drf-spectacular
python-dateutil
django-admin-rangefilter
django-imagekit
qrcode
django-ckeditor
django-crontab
markdown2
openai
openai[embeddings]
sib-api-v3-sdk
omise
- Run
pip-compile
- You should see error as such:
Click me
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [62 lines of output]
/private/var/folders/qm/59y2pqyx7z79nqrj3r6bg3rw0000gn/T/pip-build-env-j7ss4ffj/overlay/lib/python3.9/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.
********************************************************************************
!!
parsed = self.parsers.get(option_name, lambda x: x)(value)
running egg_info
writing lib3/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib3/PyYAML.egg-info/top_level.txt
Traceback (most recent call last):
How to ensure it's omise issue?
- Try to remove omise from
requirements.in
, then runpip-compile
, it should be able to work - If you use Python version
3.11.5
, it should be able to work too
danfowler commented
Hi, thanks, this is what I get:
(venv) ➜ python --version [15:38:38]
Python 3.9.6
(venv) ➜ pip-compile --version [15:38:40]
pip-compile, version 7.3.0
(venv) ➜ pip-compile [15:38:42]
WARNING: --strip-extras is becoming the default in version 8.0.0. To silence this warning, either use --strip-extras to opt into the new default or use --no-strip-extras to retain the existing behavior.
#
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile
#
aiohttp==3.8.6
# via openai
aiosignal==1.3.1
# via aiohttp
anyio==4.0.0
# via watchfiles
apns2==0.7.2
# via django-push-notifications
appnope==0.1.3
# via ipython
asgiref==3.7.2
# via
# channels
# channels-redis
# django
asttokens==2.4.0
# via stack-data
async-timeout==4.0.3
# via
# aiohttp
# redis
attrs==23.1.0
# via
# aiohttp
# jsonschema
# referencing
awscli==1.29.67
# via -r requirements.in
backcall==0.2.0
# via ipython
bcrypt==4.0.1
# via paramiko
boto3==1.28.67
# via -r requirements.in
botocore==1.31.67
# via
# awscli
# boto3
# s3transfer
certifi==2023.7.22
# via
# requests
# sib-api-v3-sdk
cffi==1.16.0
# via
# cryptography
# pynacl
channels==4.0.0
# via
# -r requirements.in
# channels-redis
channels-redis==4.1.0
# via -r requirements.in
charset-normalizer==3.3.0
# via
# aiohttp
# requests
click==8.1.7
# via
# rq
# uvicorn
colorama==0.4.4
# via awscli
contourpy==1.1.1
# via matplotlib
crontab==1.0.1
# via rq-scheduler
cryptography==41.0.4
# via
# apns2
# http-ece
# paramiko
# py-vapid
# pywebpush
cycler==0.12.1
# via matplotlib
decorator==5.1.1
# via
# fabric
# ipython
django==4.2.6
# via
# -r requirements.in
# channels
# django-appconf
# django-ckeditor
# django-cors-headers
# django-crontab
# django-extensions
# django-js-asset
# django-push-notifications
# django-redis
# django-rq
# django-unused-media
# djangorestframework
# drf-spectacular
# drf-yasg
django-admin-rangefilter==0.11.2
# via -r requirements.in
django-appconf==1.0.5
# via django-imagekit
django-ckeditor==6.7.0
# via -r requirements.in
django-cors-headers==4.3.0
# via -r requirements.in
django-crontab==0.7.1
# via -r requirements.in
django-extensions==3.2.3
# via -r requirements.in
django-imagekit==5.0.0
# via -r requirements.in
django-js-asset==2.1.0
# via django-ckeditor
django-push-notifications[APNS,WP,apns,wp]==3.0.0
# via -r requirements.in
django-redis==5.4.0
# via -r requirements.in
django-rq==2.8.1
# via -r requirements.in
django-unused-media==0.2.2
# via -r requirements.in
djangorestframework==3.14.0
# via
# -r requirements.in
# drf-spectacular
# drf-yasg
docutils==0.16
# via awscli
drf-spectacular==0.26.5
# via -r requirements.in
drf-yasg==1.21.7
# via -r requirements.in
et-xmlfile==1.1.0
# via openpyxl
exceptiongroup==1.1.3
# via
# anyio
# ipython
executing==2.0.0
# via stack-data
fabric==2.7.1
# via
# -r requirements.in
# patchwork
fonttools==4.43.1
# via matplotlib
freezegun==1.2.2
# via rq-scheduler
frozenlist==1.4.0
# via
# aiohttp
# aiosignal
gunicorn==21.2.0
# via -r requirements.in
h11==0.14.0
# via uvicorn
h2==2.6.2
# via hyper
hpack==3.0.0
# via h2
http-ece==1.1.0
# via pywebpush
httptools==0.6.1
# via uvicorn
hyper==0.7.0
# via apns2
hyperframe==3.2.0
# via
# h2
# hyper
idna==3.4
# via
# anyio
# requests
# yarl
importlib-resources==6.1.0
# via matplotlib
inflection==0.5.1
# via
# drf-spectacular
# drf-yasg
invoke==1.7.3
# via fabric
ipython==8.16.1
# via -r requirements.in
jedi==0.19.1
# via ipython
jmespath==1.0.1
# via
# boto3
# botocore
joblib==1.3.2
# via scikit-learn
jsonschema==4.19.1
# via drf-spectacular
jsonschema-specifications==2023.7.1
# via jsonschema
kiwisolver==1.4.5
# via matplotlib
markdown2==2.4.10
# via -r requirements.in
matplotlib==3.8.0
# via openai
matplotlib-inline==0.1.6
# via ipython
msgpack==1.0.7
# via channels-redis
multidict==6.0.4
# via
# aiohttp
# yarl
numpy==1.26.1
# via
# contourpy
# matplotlib
# openai
# pandas
# pandas-stubs
# scikit-learn
# scipy
omise==0.13.0
# via -r requirements.in
openai[embeddings]==0.28.1
# via -r requirements.in
openpyxl==3.1.2
# via openai
packaging==23.2
# via
# drf-yasg
# gunicorn
# matplotlib
# plotly
pandas==2.1.1
# via openai
pandas-stubs==2.1.1.230928
# via openai
paramiko==3.3.1
# via fabric
parso==0.8.3
# via jedi
patchwork==1.0.1
# via -r requirements.in
pathlib2==2.3.7.post1
# via fabric
pexpect==4.8.0
# via ipython
pickleshare==0.7.5
# via ipython
pilkit==3.0
# via django-imagekit
pillow==10.1.0
# via
# -r requirements.in
# matplotlib
# pilkit
plotly==5.17.0
# via openai
prompt-toolkit==3.0.39
# via ipython
ptyprocess==0.7.0
# via pexpect
pure-eval==0.2.2
# via stack-data
py-vapid==1.9.0
# via pywebpush
pyasn1==0.5.0
# via rsa
pycparser==2.21
# via cffi
pygments==2.16.1
# via ipython
pyjwt==1.7.1
# via apns2
pynacl==1.5.0
# via paramiko
pyparsing==3.1.1
# via matplotlib
pypng==0.20220715.0
# via qrcode
python-dateutil==2.8.2
# via
# -r requirements.in
# botocore
# freezegun
# matplotlib
# pandas
# rq-scheduler
# sib-api-v3-sdk
python-dotenv==1.0.0
# via
# -r requirements.in
# uvicorn
pytz==2023.3.post1
# via
# djangorestframework
# drf-yasg
# pandas
pywebpush==1.14.0
# via django-push-notifications
pyyaml==6.0.1
# via
# awscli
# drf-spectacular
# drf-yasg
# uvicorn
qrcode==7.4.2
# via -r requirements.in
redis==5.0.1
# via
# channels-redis
# django-redis
# django-rq
# rq
referencing==0.30.2
# via
# jsonschema
# jsonschema-specifications
requests==2.31.0
# via
# omise
# openai
# pywebpush
rpds-py==0.10.6
# via
# jsonschema
# referencing
rq==1.15.1
# via
# django-rq
# rq-scheduler
rq-scheduler==0.13.1
# via -r requirements.in
rsa==4.7.2
# via awscli
s3transfer==0.7.0
# via
# awscli
# boto3
scikit-learn==1.3.1
# via openai
scipy==1.11.3
# via
# openai
# scikit-learn
sib-api-v3-sdk==7.6.0
# via -r requirements.in
six==1.16.0
# via
# asttokens
# django-unused-media
# pathlib2
# python-dateutil
# pywebpush
# sib-api-v3-sdk
sniffio==1.3.0
# via anyio
sqlparse==0.4.4
# via django
stack-data==0.6.3
# via ipython
tenacity==8.2.3
# via
# openai
# plotly
threadpoolctl==3.2.0
# via scikit-learn
tqdm==4.66.1
# via openai
traitlets==5.11.2
# via
# ipython
# matplotlib-inline
types-pytz==2023.3.1.1
# via pandas-stubs
typing-extensions==4.8.0
# via
# asgiref
# ipython
# qrcode
# uvicorn
tzdata==2023.3
# via pandas
uritemplate==4.1.1
# via
# drf-spectacular
# drf-yasg
urllib3==1.26.18
# via
# botocore
# requests
# sib-api-v3-sdk
uvicorn[standard]==0.23.2
# via -r requirements.in
uvloop==0.18.0
# via uvicorn
watchfiles==0.21.0
# via uvicorn
wcwidth==0.2.8
# via prompt-toolkit
websockets==11.0.3
# via uvicorn
yarl==1.9.2
# via aiohttp
zipp==3.17.0
# via importlib-resources
(venv) ➜ tail -f requirements.in [15:38:55]
django-imagekit
qrcode
django-ckeditor
django-crontab
markdown2
openai
openai[embeddings]
sib-api-v3-sdk
omise
(venv) ➜ sw_vers [15:40:36]
ProductName: macOS
ProductVersion: 14.0
BuildVersion: 23A344
aashishgurung commented
We’re going to close this since there hasn’t been any activity for a while. If this issue is still relevant, please feel free to reopen it with more details and we’ll take another look.