Bump version and modernize version utility code.

Review Request #13955 — Created June 6, 2024 and submitted

Information

Djblets
release-5.x

Reviewers

This change bumps Djblets to 6.x on the master branch, and modernizes
all our package versioning utilities.

Ran setup.py develop.

Summary ID
Bump version and modernize version utility code.
This change bumps Djblets to 6.x on the master branch, and modernizes all our package versioning utilities. Testing Done: Ran setup.py develop.
6ac1c73856c7d88e47ea70e928a94a3b4fc10fdc
Description From Last Updated

Two blank lines here.

chipx86chipx86

Let's move the value to the next line. I want to make it as easy as possible to modify these …

chipx86chipx86

We should reserve _ for gettext. We can just assign to VERSION[:-1].

chipx86chipx86

Old code, but I've been changing other modules to use VERSION[-1] here since that's always going to be the release …

chipx86chipx86
maubin
  1. Ship It!
  2. 
      
chipx86
  1. 
      
  2. djblets/__init__.py (Diff revision 1)
     
     
     
     
    Show all issues

    Two blank lines here.

  3. djblets/__init__.py (Diff revision 1)
     
     
    Show all issues

    Let's move the value to the next line. I want to make it as easy as possible to modify these without feeling crowded or hitting a button a bunch of times in vim.

    (I'm almost tempted not to version this, just let it be Final of values.)

    Also, since this is a core package information module, let's go for the widest compatibility and use Type[...] and not type[...].

  4. djblets/__init__.py (Diff revision 1)
     
     
    Show all issues

    We should reserve _ for gettext. We can just assign to VERSION[:-1].

  5. djblets/__init__.py (Diff revision 1)
     
     
    Show all issues

    Old code, but I've been changing other modules to use VERSION[-1] here since that's always going to be the release flag.

  6. 
      
david
chipx86
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to master (886de02)