1. 01 Jun, 2018 1 commit
  2. 27 Mar, 2018 1 commit
    • Ben Nemec's avatar
      Explicitly read setup.cfg as utf-8 on Python 3 · 10fce39a
      Ben Nemec authored
      Per the referenced bug, relying on the terminal encoding to read
      setup.cfg is not safe.  Unfortunately, Python 2 doesn't accept an
      encoding when reading config files so we need a fallback path for
      that version.
      
      Change-Id: If49344db2f9139c0557f6acd17671163e02468a5
      Closes-Bug: 1745396
      10fce39a
  3. 26 Mar, 2018 1 commit
    • Stephen Finucane's avatar
      builddoc: Treat '[pbr] autodoc_tree_excludes' as a multi-line opt · 1fe0ceab
      Stephen Finucane authored
      We were treating this a single line, comma- or space-delimited option.
      This was incorrect and was causing issues for projects like neutron-lib
      when Sphinx 1.7, which switches from optparse to the stricter argparse
      was used. In addition, this project was including comments in the
      multi-line opt. These were being passed through but Sphinx < 1.7 was
      simply ignoring them. These are now filtered out.
      
      Change-Id: I177edf0f44714175da220cf3a960b8f23aa4ab09
      Closes-Bug: #1753082
      1fe0ceab
  4. 06 Dec, 2017 1 commit
    • Monty Taylor's avatar
      Put test-requirements into an extra named 'test' · 225e8823
      Monty Taylor authored
      In bindep files we use a 'test' environment to indicate dependencies
      that are needed for testing. Make the same thing available for our
      python dependencies, allowing things like "pip install .[test]" or "pip
      install shade[test]" to work.
      
      Change-Id: If3ad8b6a79a8cab2f7434b73207f35384e8516ba
      225e8823
  5. 04 Dec, 2017 1 commit
    • Jeremy Stanley's avatar
      Support Description-Content-Type metadata · 538d2c21
      Jeremy Stanley authored
      As of setuptools 36.4.0, support for Description-Content-Type
      metadata was added via the long_description_content_type variable.
      Add a metadata.description-content-type option for setup.cfg so it
      can be provided through PBR. This makes it possible to instruct PyPI
      and potentially other frontends to know an explicit RFC 1341 content
      type, along with character set and variant, for the accompanying
      long description.
      
      Change-Id: I852f603d9ca4e4cd469eab4cae9933ef2581e3af
      538d2c21
  6. 22 Nov, 2017 1 commit
  7. 09 Oct, 2017 1 commit
    • Stephen Finucane's avatar
      Remove support for command hooks · 32c90ba5
      Stephen Finucane authored
      distutils2 is long dead and many of its best ideas have been
      incorporated into setuptools. One of the ideas that *has not* been
      incorporated is the idea of command hooks, of either the pre or post
      kind. pbr is still carrying the code for this, and there are several
      issues with this:
      
      - No one is using this functionality in OpenStack and, given the
        complete lack of documentation on the matter, it's very doubtful that
        it's being used anywhere else [1]
      - It's causing issues for projects attempting to hook into the
        'distutils.commands' entry point on Python 2.7, which it seems no else
        must have attempted yet [2].
      - distutils2 is dead and advanced features like this that we don't
        explicitly need should not be retained
      
      We could attempt to fix this but why bother? Good riddance, I say.
      
      [1] http://codesearch.openstack.org/?q=pre_hook%5C.&i=nope&files=&repos=
      [2] http://codesearch.openstack.org/?q=distutils.commands&i=nope&files=&repos=
      
      Change-Id: I01f657034cffbf55ce830b7e8dbb6b3d94c1fd18
      32c90ba5
  8. 06 Oct, 2017 1 commit
  9. 25 Jun, 2017 1 commit
  10. 02 Jan, 2017 1 commit
    • Dirk Mueller's avatar
      Don't raise exception on missing man pages · 9fd7aa2c
      Dirk Mueller authored
      The revert in Ia6cfbfe5b10a5b714fbb9f21ca61380aaf231638 actually
      broke Sphinx 1.3.x support again. Try to fix it for real this
      time by avoiding an exception on missing man_pages.
      
      NOTE(dmllr): don't change dict while iterating over it, hopefully
      this fixes the gating failure with python 3.5.x
      
      Change-Id: I52d45fa0a0d42de690d3a492068f7bb03483a224
      Related-Bug: 1379998
      9fd7aa2c
  11. 17 Nov, 2016 1 commit
  12. 16 Nov, 2016 1 commit
  13. 12 Sep, 2016 1 commit
    • jiansong's avatar
      Deprecated warning for SafeConfigParser · 77d9ab7d
      jiansong authored
      tox -e py34 is reporting a deprecation warning for SafeConfigParser
      /octavia/.tox/py34/lib/python3.4/site-packages/pbr/util.py:207:
      DeprecationWarning: The SafeConfigParser class has been renamed to
      ConfigParser in Python 3.2. This alias will be removed in future
      versions. Use ConfigParser directly instead.
        parser = configparser.SafeConfigParser()
      
      Closes-Bug: #1618666
      Change-Id: Ib280b778938b64717ee1cf94efae2f7b553c8f5e
      77d9ab7d
  14. 26 Aug, 2016 1 commit
    • Sachi King's avatar
      Don't ignore data-files · a432bc29
      Sachi King authored
      We're currently ignoring data-files, and it looks like the problem
      would sometimes be present starting with 2796f9, 0.5.7, and always be present
      from 04984a, 0.5.15.
      
      This normalises all config keys from - to _ as soon as we read the
      config, which means future access and modification does not need to
      concern itself with the possibility of the key being a '-' instead '_'.
      
      This should make it more difficult for code accessing/modifying values
      in the config to clobber user set values or be unaware of them, like
      in the case of the files hook.
      
      As well, support download-url, but properly expose it as download_url.
      Co-Authored-By: 's avatarJulien Danjou <julien@danjou.info>
      Change-Id: I062774c706b8f7339dda46689a226b80ae6ac277
      a432bc29
  15. 09 Mar, 2016 1 commit
  16. 21 Jan, 2016 1 commit
    • Sachi King's avatar
      Support entry point patching on setuptools < 12 · d19459da
      Sachi King authored
      In patch 789888 we began relying on EntryPoint.resolve(), which only
      exists in setuptools >= 12, breaking support for setuptools < 12.  This
      includes the default virtualenv installations from may LTS distributions.
      As ep.load with arguments is deprecated we will attempt to use
      ep.resolve if it exists and fall back to ep.load(false) if it does not.
      setuptools 11 is the odd release out, as this was when load with
      arguments was deprecated, suggesting the use of ep._load.  We will
      continue to use ep.load(False) here.
      
      Change-Id: I272f76fef7e447378697a3980372191f4ffe1a2f
      d19459da
  17. 16 Dec, 2015 1 commit
    • Sachi King's avatar
      Handle markers to support sdist on pip < 6 · 7898882f
      Sachi King authored
      Old versions of pip do not properly evaluate blank envmarkers such as
      ':python_version>=2.7', so as long as we are not creating a bdist_wheel
      we evaluate these immediately to support these old installations
      
      Change-Id: I94a5f9bccd658a2529a727d99f5a2b79e6b00aa8
      Closes-Bug: 1502692
      7898882f
  18. 07 Dec, 2015 1 commit
    • Sachi King's avatar
      Add patch to properly get all commands from dist · 379e42ab
      Sachi King authored
      Distribution().get_command_list() is not hooked by setuptools like
      print_commands() is, as such we do not get a complete command list.
      
      Here we perform the hook ourselves to prevent the need to depend on
      a super new version of setuptools.
      
      Change-Id: Ie6088aedb92713be4b8b9af4a4ce3d300a114d7b
      379e42ab
  19. 14 Sep, 2015 1 commit
    • Sachi King's avatar
      Strip comments present in setup.cfg · daa905ca
      Sachi King authored
      When processing setup.cfg strip trailing comments from lines as this is
      unsupported by setuptools.
      
      Change-Id: I7712c07552b50830549644a6ff4167b90d897125
      Closes-bug: 1494330
      daa905ca
  20. 10 Jul, 2015 1 commit
    • Monty Taylor's avatar
      Wrap env markers in parens · 61a3a1ec
      Monty Taylor authored
      If there are boolean conditions in the env marker, the existing join
      causes the extra tag to only be applied to the first of them, causing
      carnage.
      
      Change-Id: I7b735befae76b330f923276e1c48ef23816774d4
      61a3a1ec
  21. 15 May, 2015 1 commit
    • James Polley's avatar
      Teach pbr to read extras and env markers · 2b29c4fc
      James Polley authored
      This adds support for reading extras from setup.cfg.
      
      It also adds support for handling environment markers, both in the
      extras section and in install_requires and in requirements.txt.
      
      Change-Id: I6fd8276012e65f82934df9c374613b1ce6856b5a
      2b29c4fc
  22. 23 Apr, 2015 1 commit
  23. 18 Mar, 2015 1 commit
  24. 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>
      c01b8dae
  25. 17 Dec, 2014 1 commit
    • Doug Hellmann's avatar
      Only import sphinx during hook processing · 65f4fafd
      Doug Hellmann authored
      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.
      
      Change-Id: I79d67bf41a09d7e5aad8ed32eaf107f139167eb8
      Closes-bug: #1403510
      65f4fafd
  26. 05 Feb, 2014 1 commit
    • Doug Hellmann's avatar
      Do not force log verbosity level to info · 3eb741af
      Doug Hellmann authored
      Forcing the log level to info causes pbr to emit status log messages
      in a way that breaks commands like "python setup.py --maintainer" and
      "python setup.py --name", which are useful when scripting operations
      that work on packages.
      
      Change-Id: I6607c96e171f2f8efa89bd701018f4af6ec9c15a
      3eb741af
  27. 04 Aug, 2013 1 commit
    • Monty Taylor's avatar
      Replace setuptools_git with a smarter approach · d26d4301
      Monty Taylor authored
      Implement a local egg_info command that only re-generates the
      SOURCES.txt file when we need to. That is:
      
       - If there is no SOURCES.txt, make one
       - If we have run the sdist command, make one
      
      Otherwise, leave well enough alone.
      
      Also, skip doing any git processing if SKIP_GIT_SDIST is specified.
      
      This should mean that consumers of our tarballs should not get screwed
      by the need to inject git processing into the sdist.
      
      Change-Id: I163b1c153d030e79b120600a2890edeb49e1fa90
      d26d4301
  28. 03 Aug, 2013 1 commit
    • Monty Taylor's avatar
      Correct typo · b6234379
      Monty Taylor authored
      The filter for not double running ourself was mis-spelled.
      
      Change-Id: Ief500bb4426f74cf5d41440a80056ae4122f6fcb
      b6234379
  29. 25 Jul, 2013 1 commit
    • Monty Taylor's avatar
      Swap the order of configparser imports · 37f5b545
      Monty Taylor authored
      The configparser backport package has un-understood issues parsing
      our files. But the intent of the code is to use whichever is the
      package for the version of python in use. So, instead of trying to
      install the python3 version first, which can also result in loading
      the backport package, first try the python2 package, so that if
      configparser itself is loaded, it will be because we're running python3.
      
      Change-Id: I7ef497127822d0110804b04a674f24c195a07278
      37f5b545
  30. 21 Jul, 2013 3 commits
  31. 11 Jul, 2013 1 commit
  32. 06 Jul, 2013 1 commit
  33. 09 Apr, 2013 1 commit
  34. 12 Mar, 2013 1 commit
  35. 11 Mar, 2013 1 commit
  36. 06 Mar, 2013 1 commit
  37. 05 Mar, 2013 2 commits