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

(backport) pin pip<23.1 and setuptools<67 #654

Merged

Conversation

ajkavanagh
Copy link
Contributor

to allow PEP-440 non compliance.

(backported relevant parts from master branch in #653)

PEP-440 is more strict about requirement lines. As an example:

pytz>dev

is non-compliant, but is in 5.2.4 of kombu's requirements. This breaks building wheelhouses from source (such as the octavia charm). This patch pins pip and setuptools to the latest versions that will defintely still allow PEP-440 non-compliant packages to install.

The option --upgrade-buildvenv-core-deps can be used to override this and will install the latest versions of pip and setuptools available.

Fixes-Bug: #652

Description of change

Checklist

  • Are all your commits [logically] grouped and squashed appropriately?
  • Does this patch have code coverage?
  • Does your code pass make test?

to allow PEP-440 non compliance.

(backported relevant parts from master branch in juju#653)

PEP-440 is more strict about requirement lines.  As an example:

    pytz>dev

is non-compliant, but is in 5.2.4 of kombu's requirements.  This breaks
building wheelhouses from source (such as the octavia charm).  This
patch pins pip and setuptools to the latest versions that will defintely
still allow PEP-440 non-compliant packages to install.

The option --upgrade-buildvenv-core-deps can be used to override this
and will install the latest versions of pip and setuptools available.

Fixes-Bug: juju#652
@ajkavanagh ajkavanagh force-pushed the 2.8-pin-setuptools-and-pip-for-pep440 branch from f3d6e3e to 910ea5b Compare March 15, 2023 13:51
@javacruft javacruft merged commit 28bd804 into juju:2.8 Mar 15, 2023
@ajkavanagh ajkavanagh deleted the 2.8-pin-setuptools-and-pip-for-pep440 branch March 15, 2023 13:58
openstack-mirroring pushed a commit to openstack/charm-octavia that referenced this pull request Nov 29, 2023
Switch to using the latest charm-tools <3.0.0 to fix two build errors:
- An error related to 'pytz' fixed in charm-tools 2.8.6:
  juju/charm-tools#654
- An error related to ruamel.yaml fixed in charm-tools 2.8.8:
  here: juju/charm-tools#668

Additionally merge bindep.txt to install libpq-dev required for
psycopg2-binary as wheels no longer exist for py36.

Change-Id: Idc16b84dc3dcdf001c73c7d2fdd57b1d08ebfb23
openstack-mirroring pushed a commit to openstack/charm-octavia that referenced this pull request Mar 6, 2024
Switch to using the latest charm-tools <3.0.0 to fix three build errors:
- An error related to 'pytz' fixed in charm-tools 2.8.6:
  juju/charm-tools#654
- An error related to ruamel.yaml fixed in charm-tools 2.8.8:
  here: juju/charm-tools#668
- An error related to macaroonbakery fixed in charm-tools 2.8.9:
  juju/charm-tools#671

Additionally merge bindep.txt to install libpq-dev required for
psycopg2-binary as wheels no longer exist for py36.

Additional fix for ussuri only:
- Switch bionic test bundles from vault 1.7/edge to 1.6/edge as the 1.7
  channel no longer supports bionic.

Change-Id: Idc16b84dc3dcdf001c73c7d2fdd57b1d08ebfb23
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

Successfully merging this pull request may close these issues.

2 participants