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

Provide the --freeze parameter. Fixes #385 #392

Merged
merged 3 commits into from
May 5, 2020
Merged

Conversation

facundobatista
Copy link
Member

No description provided.

@facundobatista facundobatista linked an issue May 4, 2020 that may be closed by this pull request
@coveralls
Copy link

coveralls commented May 4, 2020

Coverage Status

Coverage decreased (-0.2%) to 81.13% when pulling 044da71 on lets-freeze into 4e59d45 on master.

Copy link
Contributor

@gilgamezh gilgamezh left a comment

Choose a reason for hiding this comment

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

Only a typo. then I think it's ready to merge

README.rst Outdated

However, this has a bad side. If it happens that a dependency of your
project released a revision between the moment you run the tests and the
mement your project is deployed to the server, it may happen that you
Copy link
Contributor

Choose a reason for hiding this comment

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

mement

Copy link
Member Author

Choose a reason for hiding this comment

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

Gotcha

"""Dump venv contents to the indicated filepath."""
logger.debug("running freeze to store in %r", filepath)
stdout = helpers.logged_exec([self.pip_exe, "freeze", "--all", "--local"])
with open(filepath, "wt", encoding='utf8') as fh:
Copy link
Contributor

Choose a reason for hiding this comment

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

why are you adding t here? That's just the default

Copy link
Member Author

Choose a reason for hiding this comment

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

Explicit better than implicit :).

Now seriously, I always write 't' or 'b' there, as the difference is getting bytes or unicode chars, which may be critical in the following handling of the file handler.

@facundobatista facundobatista merged commit b3b9c6d into master May 5, 2020
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.

Include --freeze
3 participants