1. 05 Jan, 2018 1 commit
  2. 28 Mar, 2017 1 commit
    • Clark Boylan's avatar
      Lazy import pkg_resources · 02228ceb
      Clark Boylan authored
      pkg_resources is costly to import so don't import it until we actually
      need it.
      Change-Id: I2152b6b3fd47597b5af032e74a840e2f5b89c383
  3. 22 Jun, 2016 1 commit
  4. 14 Apr, 2016 1 commit
    • Randall Nortman's avatar
      Handle IndexError during version string parsing · a27f5124
      Randall Nortman authored
      Some odd version strings can cause SemanticVersion.from_pip_string()
      to raise IndexError.  This change converts IndexError to ValueError.
      Change-Id: Ic3046817b6c5808c61c4a3bc3d912501e6a52274
      Closes-Bug: #1570145
  5. 16 Apr, 2015 1 commit
  6. 15 Apr, 2015 1 commit
    • Robert Collins's avatar
      Fixup semver · 2465a4ca
      Robert Collins authored
      The semver doc that Monty wrote was great, but doesn't work in the
      real world. Specifically because 1.dev1 < 1.a1, we're unable to
      depend on alphas without our testing getting locked down to the alpha
      on PyPI rather than the revision we're trying to test.
      This update fixes that by allowing 1.a1.dev1, audits for consistency
      with PEP-440, fixes up the contact details now that this is team
      maintained and notes that its as much Python specific as Linux
      specific. We also remove the never-in-a-release
      SemanticVersion.to_release method, as YAGNI.
      Change-Id: I005a2386842633e9fcda76adfc523196c8c2c95d
      Sem-Ver: feature
  7. 21 Dec, 2014 1 commit
    • Monty Taylor's avatar
      Port in git sha changes from 0.10 line · c01b8dae
      Monty Taylor authored
      Stop including git sha in version strings
      We include it in pbr.json now. Including it is contentious in the world
      of python, and it's up for debate as to whether or not it provides value.
      Write and read more complex git sha info
      Instead of encoding the git sha into the version string, add it to
      a metadata file. This will allow us to get out of the business of
      arguing with pip and setuptools about version info. In order to make
      this really nice, provide a command line utility called "pbr" that has
      subcommands to print out the metadata that we're now including in the
      egg-info dir.
      Only import sphinx during hook processing
      When pbr is imported to handle writing the egg_info file because of
      the entry point, it's causing sphinx to get imported. This has a
      cascading effect once docutils is trying to be installed on a system
      with pbr installed. If some of the imports fail along the way, allow
      pbr to continue usefully but without the Sphinx extensions
      available. Eventually, when everything is installed, those
      extensions will work again when the commands for build_sphinx, etc.
      are run separately.
      Also slip in a change to reorder the default list of environments
      run by tox so the testr database is created using a dbm format
      available to all python versions.
      Integration test PBR commits
      Make sure that if a PBR commit is being tested then we install and
      use that source rather than the latest PBR release.
      Change-Id: Ie121e795be2eef30822daaa5fe8ab1c2315577ae
      (cherry picked from commit 65f4fafd)
      (cherry picked from commit cd7da239)
      Closes-Bug: #1403510
      Co-Authored-By: 's avatarClark Boylan <clark.boylan@gmail.com>
      Co-Authored-By: 's avatarDoug Hellmann <doug@doughellmann.com>
      Co-Authored-By: Jeremy Stanley's avatarJeremy Stanley <fungi@yuggoth.org>
  8. 15 Sep, 2014 1 commit
    • Robert Collins's avatar
      Only consider tags that look like versions. · dc62764a
      Robert Collins authored
      pbr has been allowing any tag (e.g. 'fred') to be a version - but fred
      is clearly not a version! Since git describe cannot validate versions
      for us today, we need to perform the describe calculations ourselves.
      In order for this to work on Python3, a missing method __hash__ needed
      to be added to SemanticVersion.
      Change-Id: I09fa54231e77ae7671aa6f84eb91fd655e49ab25
      Closes-Bug: #1356784
  9. 26 Aug, 2014 1 commit
  10. 14 Aug, 2014 1 commit
    • Monty Taylor's avatar
      Handle more local dev version cases · 17589988
      Monty Taylor authored
      Due to an oversight in testing (the tests for local dev versions were
      all running with PBR_VERSION in the environment) we did not handle
      enough variety of local development versions.
      Specific new cases we now handle:
       - untagged trees - where git describe returns just the sha
       - tags with versions with less than two components (e.g. 1)
      Change-Id: Ieaeca592b6ba26c5da50dcad3fb6e7551431d50e
      Co-Authored-By: 's avatarRobert Collins <rbtcollins@hp.com>
  11. 13 Aug, 2014 1 commit
    • Robert Collins's avatar
      Introduce a SemanticVersion object · 59573648
      Robert Collins authored
      This object represents a single semver version and provides serialisation
      into different forms (dpkg/rpm/pep-440).
      implements: blueprint pbr-semver
      sem-ver: feature
      Change-Id: I482e07cce9b65df452d5b9af4c73960df68a141e
  12. 13 Mar, 2014 2 commits
  13. 20 Mar, 2013 1 commit