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

Pipx metadata changelog #289

Merged
merged 11 commits into from
Dec 16, 2019
Merged

Conversation

itsayellow
Copy link
Contributor

Extra changelog items and rebuild of docs for PR #222

@itsayellow
Copy link
Contributor Author

btw I just noticed that commit 8011c12 "null out pythonpath" changed the version number in main.py from "0.14.0.0" to "0.14.0.1". I assume that was intentional?

Copy link
Member

@cs01 cs01 left a comment

Choose a reason for hiding this comment

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

After thinking about this a little, I should have requested changes on that PR and not let the version change. Here is my reasoning.

The version number in the README and in the docs should reflect the latest version published on PyPI. In this case that is still 0.14.0.0.

README.md and templates/index.md are both generated from generate_docs.py, which uses the version number in main.py. Therefore, the version in main.py should remain the same until a new version is published to PyPI.

To keep things clear to developers, git hashes are tagged with version numbers when a PyPI version is published. At the time of release, a new version number needs to be chosen. pipx follows semantic versioning, which you should read up on if you are not familiar.

The person managing the release (still me for now, but that will change at some point) will have to know what type of release is being created: major, minor, or patch. This will likely be done by reading over CHANGELOG.md or just asking in the pipx maintainers discussion group.

The next release will definitely be a major release due to all the CLI API changes, but the version should still stay the same for now, until the changes are published to PyPI.

Comment on lines 3 to 6
- Now store metadata information for each application installed, including install options like `--spec`, and injected packages. This information allows upgrade, upgrade-all and reinstall-all to work properly even with non-pypi installed packages. (#222)
- Change `upgrade`, removing options `--spec`, `--include-deps`. Use original options used to install application instead. (#222)
- Change `upgrade-all`, removing options `--include-deps`, `--system-site-packages`, `--index-url`, `--editable`, `--pip-args`. Use original options used to install each application instead. (#222)
- Change `reinstall-all`, removing options `--include-deps`, `--system-site-packages`, `--index-url`, `--editable`, `--pip-args`. Use original options used to install each application instead. (#222)
Copy link
Member

Choose a reason for hiding this comment

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

nit: The way this is phased sometimes comes across like a user has to take action. For example

Now store metadata information

could be written as

Metadata is now stored for each application...

And

Use original options used to install each application instead.

might be more clear as

Original options are used to install each application instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah you're right, I was in "git commit" mode when writing these. I'll make them more passive.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I fixed the ones I added in this PR, but I notice that some of the previous changelog entries sound similarly commanding. I left them be for now.

@cs01
Copy link
Member

cs01 commented Dec 9, 2019

Hmmm after thinking a little more, the README and docs should reflect what is on PyPI, so maybe we shouldn't be generating docs until a new release is published to PyPI.

@cs01
Copy link
Member

cs01 commented Dec 12, 2019

Looks good other than the version change. It should remain at 0.14.0.0 for now still.

@itsayellow
Copy link
Contributor Author

Looks good other than the version change. It should remain at 0.14.0.0 for now still.

Right, I forgot to do that. Should be good now, only changelog entries.

@cs01
Copy link
Member

cs01 commented Dec 16, 2019

Looks good. I was hoping to see the version go back to 0.14.0.0 and corresponding doc changes, but that can be done in another PR.

@itsayellow
Copy link
Contributor Author

Looks good. I was hoping to see the version go back to 0.14.0.0 and corresponding doc changes, but that can be done in another PR.

Oh I can do that too if you want. I thought you said you were going to request those changes from the PR that changed them.

I can definitely change the version back. And fix the docs.

@itsayellow
Copy link
Contributor Author

itsayellow commented Dec 16, 2019

@cs01, maybe you can double check my reversions of the version and docs. I believe they are correct.

I changed the version back to 0.14.0.0 in main.py

I changed docs/docs.md back to the version from October 19, 2019 (e835671)

@itsayellow itsayellow requested a review from cs01 December 16, 2019 05:51
@itsayellow itsayellow merged commit ea98438 into pypa:master Dec 16, 2019
@itsayellow itsayellow deleted the pipx_metadata_changelog branch December 16, 2019 07:21
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