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

Rename dmutils/repoutils/freeze-requirements.py -> dmutils/repoutils/freeze_requirements.py as per pep8 #474

Merged
merged 1 commit into from
Nov 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

Records breaking changes from major version bumps

## 45.0.0

PR [#474](https://github.com/alphagov/digitalmarketplace-utils/pull/474)

Rename dmutils/repoutils/freeze-requirements.py > dmutils/repoutils/freeze_requirements.py as per [pep8](https://www.python.org/dev/peps/pep-0008/#package-and-module-names)

Old code:

```
python -m dmutils.repoutils.freeze-requirements requirements-app.txt
```

New code:

```
python -m dmutils.repoutils.freeze_requirements requirements-app.tx
```

## 44.0.0

PR [#455](https://github.com/alphagov/digitalmarketplace-utils/pull/455)
Expand Down
2 changes: 1 addition & 1 deletion dmutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
from .flask_init import init_app, init_manager


__version__ = '44.11.0'
__version__ = '45.0.0'
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
error caused by `pip install` being case insensitive and the `pip freeze` command being case sensitive.

Usage:
freeze-requirements <target>
freeze-requirements <target> [options]
freeze_requirements <target>
freeze_requirements <target> [options]

Options:
<target> A requirements file for us to freeze
Expand All @@ -17,9 +17,9 @@
-h, --help Show this screen

Examples:
python -m dmutils.repoutils.freeze-requirements requirements-app.txt
freeze-requirements.py requirements-app.txt --verbose
python -m dmutils.repoutils.freeze-requirements requirements-app.txt --outfile=not-requirements.txt --verbose
python -m dmutils.repoutils.freeze_requirements requirements-app.txt
freeze_requirements.py requirements-app.txt --verbose
python -m dmutils.repoutils.freeze_requirements requirements-app.txt --outfile=not-requirements.txt --verbose
"""
import logging
import re
Expand All @@ -30,7 +30,7 @@
from docopt import docopt


logger = logging.getLogger('freeze-requirements')
logger = logging.getLogger('freeze_requirements')


def make_clean(virtualenv_name):
Expand Down