diff options
| author | Alex Grönholm <alex.gronholm@nextday.fi> | 2019-02-19 16:00:00 +0200 |
|---|---|---|
| committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2019-02-19 16:03:36 +0200 |
| commit | f17cebc5402bc1072a1c8c21cb2949ce1172ea38 (patch) | |
| tree | 9e296fa5e3c7bcae901886c02f9d93ff9ac2b8c5 | |
| parent | bb54233a2dc855951fa40a48d5730c67f9d570c8 (diff) | |
| download | wheel-git-f17cebc5402bc1072a1c8c21cb2949ce1172ea38.tar.gz | |
Fixed the build_number argument not being passed to pack()
| -rw-r--r-- | docs/news.rst | 4 | ||||
| -rw-r--r-- | wheel/cli/__init__.py | 2 | ||||
| -rw-r--r-- | wheel/cli/pack.py | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/docs/news.rst b/docs/news.rst index 8a1f2b2..cc27e57 100644 --- a/docs/news.rst +++ b/docs/news.rst @@ -1,6 +1,10 @@ Release Notes ============= +**UNRELEASED** + +- Fixed the ``--build-number`` option for ``wheel pack`` not being applied + **0.33.0** - Added the ``--build-number`` option to the ``wheel pack`` command diff --git a/wheel/cli/__init__.py b/wheel/cli/__init__.py index 8501ac2..95740bf 100644 --- a/wheel/cli/__init__.py +++ b/wheel/cli/__init__.py @@ -27,7 +27,7 @@ def unpack_f(args): def pack_f(args): from .pack import pack - pack(args.directory, args.dest_dir) + pack(args.directory, args.dest_dir, args.build_number) def convert_f(args): diff --git a/wheel/cli/pack.py b/wheel/cli/pack.py index 91607db..af6e81c 100644 --- a/wheel/cli/pack.py +++ b/wheel/cli/pack.py @@ -10,7 +10,7 @@ from wheel.wheelfile import WheelFile DIST_INFO_RE = re.compile(r"^(?P<namever>(?P<name>.+?)-(?P<ver>\d.*?))\.dist-info$") -def pack(directory, dest_dir, build_number=None): +def pack(directory, dest_dir, build_number): """Repack a previously unpacked wheel directory into a new wheel file. The .dist-info/WHEEL file must contain one or more tags so that the target |
