#3281 closed defect (fixed)

Give wheels built from a Git clone a good version number

Reported by: exarkun Owned by: GitHub <noreply@…>
Priority: normal Milestone: undecided
Component: dev-infrastructure Version: n/a
Keywords: Cc:
Launchpad Bug:

Description

Wheels built from git currently have a sad version number:

Building wheels for collected packages: tahoe-lafs                                                 
  Building wheel for tahoe-lafs (setup.py) ... done                           
  Created wheel for tahoe-lafs: filename=tahoe_lafs-0.0.0-py2-none-any.whl size=1171502 sha256=c421518db3d65e64bf7f7965b7288ed0db0933aa996c9fa7081177d901a2d82d

Change History (3)

comment:1 Changed at 2020-02-05T00:53:31Z by exarkun

This is because Tahoe-LAFS has no version number in Git. A version is only conferred by the update_version command. Other dist-building commands have a setup.cfg-supplied alias to run update_version first. Give bdist_wheel such an alias and the problem is resolved:

Building wheels for collected packages: tahoe-lafs
  Building wheel for tahoe-lafs (setup.py) ... done
  Created wheel for tahoe-lafs: filename=tahoe_lafs-1.13.0.post1454-py2-none-any.whl size=1172021 sha256=69a11c528930b4e34c68298bbd4710be45b5483d76ed90bb218c97e660dedf4e                    

comment:3 Changed at 2020-02-11T18:56:07Z by GitHub <noreply@…>

  • Owner set to GitHub <noreply@…>
  • Resolution set to fixed
  • Status changed from new to closed

In 4d3474a/trunk:

Merge pull request #691 from tahoe-lafs/bdist-wheel-with-version

Automatically update the version with bdist_wheel

Fixes: ticket:3281

Note: See TracTickets for help on using tickets.