Skip to content

Apply version constraints specified with package upgrade option - #694

Merged
vphilippon merged 2 commits into
jazzband:masterfrom
richafrank:upgrade_packages-version
Nov 22, 2018
Merged

vphilippon merged 2 commits into
jazzband:masterfrom
richafrank:upgrade_packages-version

Conversation

@richafrank

@richafrank richafrank commented Oct 23, 2018 •

Copy link
Copy Markdown
Contributor
  1. In order to get tests passing for me locally (prior to any new features/fixes), I had to update them to handle a user pipconf with a non-default index url, since the generated requirements text includes it, and the tests didn't expect it. If you'd rather I split this into a separate PR or fix it differently, let me know.
  2. No longer ignore version constraints provided with the --upgrade-package option (For Upgrade specific package to a specific version fails to pick up the version constraint #649). The test I added requires a new binary wheel in the test data. I saw existing wheels there, but I'm not sure how they were generated, so I copied the contents of an existing one. Thus, the version in the wheel's contents is incorrect. Please let me know the best way to generate this test data!

Changelog-friendly one-liner: Apply version constraints specified with package upgrade option

Contributor checklist
  • Provided the tests for the changes
  • Requested (or received) a review from another contributor
  • Gave a clear one-line description in the PR (that the maintainers can add to CHANGELOG.md afterwards).

@vphilippon
vphilippon self-requested a review November 16, 2018 20:59
@vphilippon vphilippon added this to the 3.2.0 milestone Nov 16, 2018

@vphilippon vphilippon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @richafrank, thanks for the contribution!

For the test wheel, the easiest way would be to write a simple setup.py like this:

from setuptools import setup

setup(
    name='small-fake-b',
    version='0.3',
)

then run python setup.py bdist_wheel --universal --dist-dir ./ to generate the wheel in the current directory.

For the change itself, LGTM 👍

@richafrank
richafrank force-pushed the upgrade_packages-version branch from 7491559 to bc1d8b8 Compare November 18, 2018 18:53
@richafrank

Copy link
Copy Markdown
Contributor Author

Thanks @vphilippon! I updated the test wheel.

@vphilippon

Copy link
Copy Markdown
Member

Thanks @richafrank for the contribution, it's really appreciated :)

@vphilippon
vphilippon merged commit c1b4c67 into jazzband:master Nov 22, 2018
@richafrank

Copy link
Copy Markdown
Contributor Author

👍

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