Ticket #2885 enhancement closed fixed

Opened 6 years ago

Last modified 5 years ago

Automate version updating (goodly)

Reported by: radix Owned by:
Priority: highest Milestone: twisted-8.0
Component: release management Keywords:
Cc: Branch: branches/change-versions-2885-2
Author: jml,radix Launchpad Bug:

Description

There should be some first-class code for updating version numbers in a Twisted branch.

Change History

1

Changed 6 years ago by radix

  • branch set to branches/change-versions-2885

(In [21717]) Branching to 'change-versions-2885'

2

Changed 6 years ago by jml

  • branch changed from branches/change-versions-2885 to branches/change-versions-2885-2

(In [21731]) Branching to 'change-versions-2885-2'

3

Changed 6 years ago by jml

  • owner radix deleted
  • priority changed from normal to highest
  • keywords review added

4

Changed 6 years ago by radix

  • milestone set to twisted-7.0

5

Changed 6 years ago by exarkun

  • keywords review removed
  • owner set to jml
  • twisted/python/test/test_dist.py
    • no copyright or module docstring
    • GetVersionTest has no class docstring
  • twisted/python/_release.py
    • only the tests use getCurrentVersion - delete it?

Ran out of time on this one, didn't get to look at most of the changes.

6

Changed 6 years ago by jml

  • keywords review added
  • owner changed from jml to exarkun

Updated.

7

Changed 6 years ago by exarkun

  • status changed from new to assigned

8

Changed 6 years ago by exarkun

  • keywords review removed
  • status changed from assigned to new
  • owner changed from exarkun to jml

It'd be good if all the test methods had docstrings, even the ones which just got moved and not modified (at least in test_release, although it'd be nice to spruce up test_dist as well), since supposedly a goal here is "first class release code".

test_findTwistedStyleProjects and test_getProjectName and test_updateTwistedVersionInformation use twisted and twisted.conch even though they're not operating on the real Twisted source. It might be clearer to use made up names here. test_updateTwistedVersionInformation also doesn't cover the case where baseDirectory is None. There aren't any users of this API either so I can't tell if that is the normal case or not. Maybe those arguments just shouldn't be optional?

replaceProjectVersion writes out a string which refers to admin/change-versions, which no longer exists.

9

Changed 6 years ago by jml

  • keywords review added
  • owner changed from jml to exarkun
  • Docstrings added for all test_release tests. Not so concerned about test_dist, since they will likely be heavily modified by the tarball work.
  • replaceProjectVersion string changed to no longer refer to admin/change-versions.
  • Fixed test_findTwistedStyleProjects, test_getProjectName and test_updateTwistedVersionInformation.

10

Changed 6 years ago by jml

  • author set to jml,radix

11

Changed 6 years ago by exarkun

  • owner changed from exarkun to jml
  • keywords review removed
  • twisted.python.test.test_release.ProjectTest.test_updateTwistedVersionInformation failing
  • do something about the XXX in twisted.python._release.getNextVersion
  • updateTwistedVersionInformation still has a couple uncovered lines - the ones that handle the defaults for each parameter
  • Project could document its two instance attributes.

Otherwise good.

12

Changed 5 years ago by jml

  • owner changed from jml to exarkun
  • keywords review added

It's worth taking another look at this. You too, radix.

13

Changed 5 years ago by exarkun

  • owner changed from exarkun to radix

Looks good to me.

14

Changed 5 years ago by radix

  • owner changed from radix to jml
  • keywords review removed

I watched commits in my inbox and agree with them. Given that exarkun properly reviewed this, I think it's ready for merging.

15

Changed 5 years ago by jml

  • status changed from new to closed
  • resolution set to fixed

(In [21908]) Unit-tested, understandable API for updating the version of Twisted.

  • Authors: jml, radix
  • Reviewers: exarkun, radix
  • Fixes #2885

This is part of the new suite of automated release tools. It provides APIs for updating the version of Twisted and Twisted sub-projects using a new date-based version system.

Note that it removes the old admin/change-versions script without providing a replacement.

16

Changed 5 years ago by exarkun

  • status changed from closed to reopened
  • resolution fixed deleted

Reverted in [21909]

17

Changed 5 years ago by jml

  • status changed from reopened to closed
  • resolution set to fixed

(In [21911]) Unit-tested, understandable API for updating the version of Twisted.

  • Authors: jml, radix
  • Reviewers: exarkun, radix
  • Fixes #2885

This is part of the new suite of automated release tools. It provides APIs for updating the version of Twisted and Twisted sub-projects using a new date-based version system.

Note that it removes the old admin/change-versions script without providing a replacement.

This re-merge fixes Python 2.3 support.

18

Changed 2 years ago by <automation>

  • owner jml deleted
Note: See TracTickets for help on using tickets.