-
Notifications
You must be signed in to change notification settings - Fork 46
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
dogpile.cache 0.9.1 introduced pep517 regression #178
Comments
hi there - there's been extended discussion about the pep517 issue here: sqlalchemy/sqlalchemy#5207 short answer is that dogpile.cache has added pyproject.toml as well, which turns on pip's pep517 mode, which then has all kinds of issues that overall will have to be resolved on the pip side and/or the community at large. however there is no documented incompatibility about including a pyproject.toml file alongside setup.py . we can seek to remove pyproject.toml from the build but for now, however this is only a workaround. it is likely that there is something in your build environment that's stale or incompatible with pep517, try using a fresh install environment. If you run pip with --no-use-pep517 that would allow the install to proceed. |
@zzzeek Thanks for the quick reply. Lets keep issue open until we find a better solution. Use of I think we may need bit of tuning to make both worlds happy. |
on the SQLAlchemy side we simply removed pyproject.toml from the MANIFEST file so that it's not in the build. SQLAlchemy however builds C extensions so has a much more complicated situation. for dogpile, there's nothing unusual in setup.py, it's about as vanilla as it gets. What sort of "tunings" did you have in mind? |
I think that the problem may be an old version of setuptools. Another option is to use pep517 specifying in the
Likely also specifying a min version for setuptools. |
But I'm not sure if the bug on debian regarding the broken pep517 package would still happen with that configuration. All things considered it's probably best to sit out until it's in general use, since each time it was enabled, we got multiple issues regarding it, so it's clearly not ready for prime time yet. |
Bug: sqlalchemy/dogpile.cache#178 Bug: https://bugs.launchpad.net/tripleo/+bug/1876073 Change-Id: Ibdf42045421bb0adfde7905645140acb1cb33f5c
* Update tripleo-ansible from branch 'master' - Avoid broken dogpile.cache Bug: sqlalchemy/dogpile.cache#178 Bug: https://bugs.launchpad.net/tripleo/+bug/1876073 Change-Id: Ibdf42045421bb0adfde7905645140acb1cb33f5c
I am already testing patch that adds required missing bits to pyproject.toml from the #179 at https://review.opendev.org/#/c/724691/ -- we will know soon. It is a very common mistake to forget to add |
I dont understand why this is needed when pip states they have set up a sensible default for this: https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support is their default broken ? |
the problem here is that I think that the sensible default does not install an updated version of setuptools. ops I guess |
e.g., just like last time, this REALLY looks like a bug in pip/ setuptools / etc. they have documented a default, and it seems to break all over the place. if their default is unworkable, they should change it, or fix setuptools, or whatever. |
but their default includes a minimum version of setuptools "setuptools>=40.8.0" - is that wrong ? did they mean to update it? |
@zzzeek I did not test this project with older setuptools, I only copy/pasted values that I needed on other projects (which where raised due to specific bugs). So, shortly it may work file even with older versions of both pip and setuptools. Still, who has time to test all possible combinations? Considering that these are not runtime requirements, it should be safer to use more recent versions when building the wheel. Just to be clear for everyone: these requirements will not alter your system pip/setuptools when you build or install the package. |
as mentioned on the PR safest approach as we did in SQLAlchemy seems to omit this file from the builds. I just remain pretty frustrated that this ongoing issue is not considered to be a bug in pip. |
Bug: sqlalchemy/dogpile.cache#178 Related-Bug: #1876073 Change-Id: Ia3f7940e836d4bd90b73c7f82fc7203bfe76f2c5
* Update tripleo-upgrade from branch 'master' - Merge "Avoid broken dogpile.cache" - Avoid broken dogpile.cache Bug: sqlalchemy/dogpile.cache#178 Related-Bug: #1876073 Change-Id: Ia3f7940e836d4bd90b73c7f82fc7203bfe76f2c5
I created this workaround for OpenStack projects: https://review.opendev.org/725209 |
the irony is dogpile.cache is actually CI tested in centos8 containers, so no intrinsic incompatibility there. ill just release without the pyproject.toml in the dist. |
Mike Bayer has proposed a fix for this issue in the master branch: Omit pyproject.toml from installation https://gerrit.sqlalchemy.org/c/sqlalchemy/dogpile.cache/+/1941 |
I can confirm the problem is also happening when installing dogpile.cache on RHEL 8 |
0.9.2 is released which should not include this file |
dogpile.cache package 0.9.1 seam to have a compatibility issue when using on CentOS 8 systems [1] 0.9.2 is expected to fix the issue as soon it is released [1] Issue #178 - sqlalchemy/dogpile.cache#178 Change-Id: Iccc9f1346a25ade34f1482081d5c7a4d0deefbf3
* Update requirements from branch 'master' - Pin dogpile.cache!=0.9.1 version dogpile.cache package 0.9.1 seam to have a compatibility issue when using on CentOS 8 systems [1] 0.9.2 is expected to fix the issue as soon it is released [1] Issue #178 - sqlalchemy/dogpile.cache#178 Change-Id: Iccc9f1346a25ade34f1482081d5c7a4d0deefbf3
Bug: sqlalchemy/dogpile.cache#178 Bug: https://bugs.launchpad.net/tripleo/+bug/1876073 Change-Id: I2932eddd7afebe3a1ed45d7bc86dfbd89b6e3b79 Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
* Update tripleo-validations from branch 'master' - Merge "Avoid broken dogpile.cache" - Avoid broken dogpile.cache Bug: sqlalchemy/dogpile.cache#178 Bug: https://bugs.launchpad.net/tripleo/+bug/1876073 This patch also fixes a pep8 issue: doc/source/_exts/generate_validations_doc.py:99:0: F522 '...'.format(...) has unused named argument(s): metadata Change-Id: I9a79fdac81239b79010598e462e64b116040ec09 Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
Bug: sqlalchemy/dogpile.cache#178 Bug: https://bugs.launchpad.net/tripleo/+bug/1876073 This patch also fixes a pep8 issue: doc/source/_exts/generate_validations_doc.py:99:0: F522 '...'.format(...) has unused named argument(s): metadata Change-Id: I9a79fdac81239b79010598e462e64b116040ec09 Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
- dogpile.cache workaround Bug: sqlalchemy/dogpile.cache#178 Bug: https://bugs.launchpad.net/tripleo/+bug/1876073 - The lower-constraints.txt file has been removed because it is not useful for TripleO anymore. Change-Id: I17388fa82618cc881d6886a9328616de4350c38b Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
- dogpile.cache workaround Bug: sqlalchemy/dogpile.cache#178 Bug: https://bugs.launchpad.net/tripleo/+bug/1876073 - The lower-constraints.txt file has been removed because it is not useful for TripleO anymore. Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com> Change-Id: I00e2e252700d0229113cc6ee1c4efff0504fb005
* Update validations-common from branch 'master' to ba5db95b09bc653dceb10bba1f8d34793f39fe4e - Remove workaround for broken dogpile.cache and lower-constraints file - dogpile.cache workaround Bug: sqlalchemy/dogpile.cache#178 Bug: https://bugs.launchpad.net/tripleo/+bug/1876073 - The lower-constraints.txt file has been removed because it is not useful for TripleO anymore. Change-Id: I17388fa82618cc881d6886a9328616de4350c38b Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
* Update tripleo-validations from branch 'master' to b8bb9a5f2c6e2e8ca5fb8aea8ed0da5df5464078 - Remove workaround for broken dogpile.cache and lower-constraints file - dogpile.cache workaround Bug: sqlalchemy/dogpile.cache#178 Bug: https://bugs.launchpad.net/tripleo/+bug/1876073 - The lower-constraints.txt file has been removed because it is not useful for TripleO anymore. Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com> Change-Id: I00e2e252700d0229113cc6ee1c4efff0504fb005
- dogpile.cache workaround Bug: sqlalchemy/dogpile.cache#178 Bug: https://bugs.launchpad.net/tripleo/+bug/1876073 - The lower-constraints.txt file has been removed because it is not useful for TripleO anymore. Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com> Change-Id: I00e2e252700d0229113cc6ee1c4efff0504fb005 (cherry picked from commit b8bb9a5)
- dogpile.cache workaround Bug: sqlalchemy/dogpile.cache#178 Bug: https://bugs.launchpad.net/tripleo/+bug/1876073 - The lower-constraints.txt file has been removed because it is not useful for TripleO anymore. The .zuul.yaml doesn't exists in ussuri the modification was reported in zuul.d/layout.yaml file. Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com> Change-Id: I00e2e252700d0229113cc6ee1c4efff0504fb005 (cherry picked from commit b8bb9a5) (cherry picked from commit 3977997)
The issue described in [1] is not present from 0.9.2 and higher version [1] sqlalchemy/dogpile.cache#178 Change-Id: I5b6660dfb11c9a1aee0f0270be0554a782db8005
* Update tripleo-upgrade from branch 'master' to 2e66fa311784ed6bdfeafb4d23314dc0be861e06 - Merge "Bump dogpile to >=0.9.2" - Bump dogpile to >=0.9.2 The issue described in [1] is not present from 0.9.2 and higher version [1] sqlalchemy/dogpile.cache#178 Change-Id: I5b6660dfb11c9a1aee0f0270be0554a782db8005
dogpile.cache package 0.9.1 seam to have a compatibility issue when using on CentOS 8 systems [1] [1] Issue #178 - sqlalchemy/dogpile.cache#178 Change-Id: Iccc9f1346a25ade34f1482081d5c7a4d0deefbf3
dogpile.cache package 0.9.1 seam to have a compatibility issue when using on CentOS 8 systems [1] 0.9.2 is expected to fix the issue as soon it is released [1] Issue #178 - sqlalchemy/dogpile.cache#178 Change-Id: Iccc9f1346a25ade34f1482081d5c7a4d0deefbf3
dogpile.cache 0.9.1 introduced pep517 regression which prevented its installation on some setups:
Full report at https://zuul.opendev.org/t/openstack/build/0a2a5ca6414f4e56b9508322cf01c9f4
The text was updated successfully, but these errors were encountered: