summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* OpenDev Migration Patchfeature/0.10OpenDev Sysadmins2019-04-191-2/+2
| | | | | | | | | | | | | | | This commit was bulk generated and pushed by the OpenDev sysadmins as a part of the Git hosting and code review systems migration detailed in these mailing list posts: http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html Attempts have been made to correct repository namespaces and hostnames based on simple pattern matching, but it's possible some were updated incorrectly or missed entirely. Please reach out to us via the contact information listed at https://opendev.org/ with any questions you may have.
* Support script text override for newer develop0.10.8Monty Taylor2015-02-033-0/+21
| | | | | | | | | setuptools > 12 has a new flow for writing out generated script text. It's nicer, actually, because it means we can just subclass and extend one method instead of monekypatching. Closes-Bug: 1415106 Change-Id: I56e7bea60df8a59d859575d426ce93c45ffee314
* _get_revno only returns a commit count0.10.7Jeremy Stanley2014-12-221-5/+4
| | | | | | | | * pbr/packaging.py(_get_revno): The _get_revno_and_last_tag method always returns the same number of elements, so don't try to treat it as an iterable and also rename it to something sensible. Change-Id: I8a83135b979a13f8cd129126a29159e93c147467
* Integration test PBR commits0.10.6Jeremy Stanley2014-12-213-3/+8
| | | | | | | | | | | | | | | | | | * pbr/packaging.py(_get_version_from_git): Correct a bug which is causing install failures for PBR-based projects with no Git tags. This slipped through because integration testing was using the most recent PBR release rather than the commit being proposed. * tools/integration.sh: Make sure that if a PBR commit is being tested then we install and use that source rather than the latest PBR release. * tox.ini(testenv:pep8): Get rid of the custom deps list for pep8 and inherit the one from testenv which is already fixed with the self-dependency. Without this, pep8 jobs fail when run with Setuptools 8. Change-Id: Icc7275261e8fc0df8b0ae99184437ca50b89c13a
* Move write_pbr_json to avoid issues with nose0.10.5Clark Boylan2014-12-206-254/+350
| | | | | | | | | | | | | Put write_pbr_json in pbr.pbr_json so that you do not need to import pbr.packaging to use it. This avoids python3 errors with nose where nose is imported by pbr before it is converted to python3 by 2to3 under python3. Also port the pbr.git refactor from the master branch. Co-Authored-By: Jeremy Stanley <fungi@yuggoth.org> Change-Id: I1c420fed609bc60bbfdf78eb219e067ccab1a61e (cherry picked from commit 3550e89db42002e226ea70b1d0314a319b2ecd10)
* Properly check for git before getting git dir0.10.4Clark Boylan2014-12-171-7/+7
| | | | | | | | | We cannot get the git dir if git is not installed. Check that git is installed before querying for the git dir. Return None if the git dir cannot be found or if git is not installed. Change-Id: Ic8e0c74a779b23842369a8cf01fcbf37885202ef Fixes-bug: 1326682
* Use post version signifiersMonty Taylor2014-12-171-3/+5
| | | | | | PEP440 is unhappy about revcounts after pre-release tags. Change-Id: I553a0bf9f522d50bcbdb16756c994058bd27da77
* Only import sphinx during hook processingDoug Hellmann2014-12-177-179/+267
| | | | | | | | | | | | | | | | | | 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
* Stop including git sha in version strings0.10.3Monty Taylor2014-12-161-8/+17
| | | | | | | | 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. Change-Id: Ie2ca34f59e9b42a3126c95edf36640fef32feed8
* Write and read more complex git sha infoMonty Taylor2014-12-164-3/+161
| | | | | | | | | | | 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. Change-Id: I35a1489c9ab637769218d1e6a26d1115a52a7051
* Prefix git suffixes with + instead of .0.10.1Monty Taylor2014-12-141-2/+3
| | | | | | | | | | | | setuptools 8.0 enforces the accepted version of PEP440, which means that 1.2.3.g123456 is now sorted before 1.0. Forget for a second that under no obvious human inspection this makes sense, it is now the law of the land and we must comply. I swear to god I'm going to start coding in Go. Change-Id: I2a5072d73e19ce77fa29ba5d8aa6e9649859a551 (cherry picked from commit fafd6c4db07789b2d378fdb5ceda89115d2abe30)
* Remove all 2.7 filtering0.10.20.10.0Monty Taylor2014-07-212-21/+0
| | | | | | | | ordereddict and importlib used to break when attempted to install on python 2.7 - but this situation seems to have improved in modern pip/setuptools. Remove the logic and support for this. Change-Id: I49d9c9ee3108ad7ec9537f3fcec62e84d4de1680
* Stop filtering out argparseMonty Taylor2014-07-212-7/+1
| | | | | | | | | | | | | | Back in the day, attempting to install argparse on python 2.7 would result in failure, as the setup.py of argparse failed hard if it was attempted. That seems to be fixed, and when we do filter it out of the list now, we cause problems with python 2.6 and wheels (if we make a wheel on 2.6 and it depends on argparse, the pbr code means that argparse doesn't get added properly) Remove the filtering so that our wheels can be universal. Closes-bug: #1346357 Change-Id: I49d539ac6fb8ee75f8d32fdfbd20129b13d36499
* Remove mirror testing from the integration scriptDoug Hellmann2014-07-101-140/+0
| | | | | | | | We don't need to test the mirroring tool in this integration script any more, because we're using a different tool to build the mirror now anyway. Change-Id: I1a3f739a9530f4f5cce18f64b0705ae9ae77704d
* Merge "Check for git before querying it for a version"0.9.0Jenkins2014-06-301-1/+1
|\
| * Check for git before querying it for a versionJeremy Stanley2014-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | * pbr/packaging.py(_get_version_from_git): Wrap calls to _run_git_command in a conditional check for _git_is_installed to avoid an opaque error message which can occur when you have a .git directory but no git executable. Change-Id: I6752c93d393a941daa1e7fb949c7c3d2a75337f3 Closes-Bug: #1326682
* | Allow examining parsing exceptions.Robert Collins2014-06-281-0/+5
| | | | | | | | | | | | | | Having to put breakpoints in pbr to diagnose issues is bad for dealing with reports from users. Change-Id: Ifecf4c4e4bb5955e0e5feb4bf5b5b85150b08ebe
* | Merge "Un-nest some sections of code"Jenkins2014-06-271-83/+89
|\ \
| * | Un-nest some sections of codeMonty Taylor2014-05-261-83/+89
| | | | | | | | | | | | | | | | | | | | | Reversing the logic in a few of the booleans and returning earlier allows us to not have to be nested quite so deep. Change-Id: Ia0dad183563381e9eb8c790ba61d0b350d74421d
* | | Update integration script for Apache 2.4Sean Dague2014-06-261-4/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apache 2.4 requires site configuration files to have a ".conf" extension, and Apache 2.2 does not want the extension. Add logic to figure out the right name for the file so we can run the tests against both versions of Apache. Fixes bug: #1334326 install required libraries for mixed c things use build-dep to install the required libraries needed for the python build deps. Without this we can get cryptic library compilation issues. And use ccache explicitly Change-Id: Ia750e4221b119097521cf373752aae364759913b squashed into this one because we can't move forward without both. Co-Authored-By: Sean Dague <sean@dague.net> Change-Id: I5ab8898bd3cc2de18681fe3262cb784f7d9519ab
* | | Restore Monkeypatched Distribution InstanceKevin McCarthy2014-06-221-49/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pbr is monkeypatching the Distribution intstance in setuptools, which is OK I guess, but then it never puts it back how it left it. As a consequence, whenever pbr installs before another project in a setup.py, it breaks setuptools for everything that comes after it. This patch will restore the Distribution instance. Closes-Bug: 1324784 Change-Id: I20fbf255c634685e82f7b11987d2725de8280b9d
* | | Register testr as a distutil entry pointSteve Kowalik2014-06-112-1/+3
| |/ |/| | | | | | | | | | | | | | | pbr contains a testr distutil command, but since it isn't registered as an entry-point, it won't get used. Also drive-by a fix to coverage, where we go to the trouble of setting a variable, and then not using it. Change-Id: I2227adf3643ffe6bcece0c7d2127d23e20d52f7a
* | Merge "Allow _run_cmd to run commands in any directory."Jenkins2014-05-301-2/+6
|\ \
| * | Allow _run_cmd to run commands in any directory.Robert Collins2014-05-291-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | This is needed to avoid running pip install within the directory of the test package on Python2.6, where it helpfully (not really) installs the test package, not pbr. Change-Id: I956ad29f68a32cb4d33af448333f649043e0a655
* | | Merge "Make setUp fail if sdist fails."Jenkins2014-05-272-10/+10
|\ \ \ | |/ /
| * | Make setUp fail if sdist fails.Robert Collins2014-05-272-10/+10
| | | | | | | | | | | | | | | | | | Hygiene - fail at the point of failure, not later. Change-Id: Id0328f1afad5dd2fb4f5ef22e025d60eef1d4e52
* | | Merge "Permit pre-release versions with git metadata"Jenkins2014-05-271-1/+1
|\ \ \ | |/ / | | / | |/ |/|
| * Permit pre-release versions with git metadataRobert Collins2014-05-271-1/+1
| | | | | | | | | | | | | | This is implied by the example and seems necessary for doing automated generation of pre-release versions. Change-Id: I8d4ceec200fac7982f2dafa7f8f1a8abfd4b0f83
* | Merge "Fix typos in docs"0.8.2Jenkins2014-05-242-5/+5
|\ \
| * | Fix typos in docsRoger Luethi2014-05-212-5/+5
| |/ | | | | | | Change-Id: I547e99c24707895c1e3614821c5cb8da354b294a
* | Remove --use-mailmap as it's not neededMonty Taylor2014-05-232-2/+2
|/ | | | | | | | | | | --use-mailmap is a newer git construct that applies mailmaps to things that are not using the mailmap aware format strings. But we're using those format strings, and this breaks on precise. Simplest thing - don't use the arg, since it's pointless and broken for us. Change-Id: Ic8ca062a6936a4f112aa52d0eb209211658611c2
* Merge "pbr/testr_command.py: Add logging"0.8.1Jenkins2014-05-091-0/+17
|\
| * pbr/testr_command.py: Add loggingMarc Abramowitz2014-05-051-0/+17
| | | | | | | | | | | | to aid in debugging and testing. Change-Id: I5342604204602623cdb5c0f2623d85f7d44e2b50
* | Documentation updatesVasudev Kamath2014-05-012-0/+27
|/ | | | | | | | | | * doc/source/index.rst: pbr requires git tags to be signed for using it to generate version information. Added a note mentioning this * doc/source/packagers.rst: documented SKIP_GENERATE_AUTHORS and SKIP_WRITE_GIT_CHANGELOG environment variable for packagers. Change-Id: I153c26f0d6876729dfb95eed2ab031c2aaa890d5 Signed-off-by: Vasudev Kamath <kamathvasudev@gmail.com>
* Merge "Fixed a typo in the documentation."Jenkins2014-05-011-1/+1
|\
| * Fixed a typo in the documentation.Alex Gaynor2014-04-251-1/+1
| | | | | | | | | | | | Found using: https://github.com/intgr/topy Change-Id: I15d9469e60ea74aacba03b5ad0e50b4a87661892
* | Merge "Make source configurable when using --coverage"Jenkins2014-04-301-2/+8
|\ \
| * | Make source configurable when using --coverageMarc Abramowitz2014-04-251-2/+8
| | | | | | | | | | | | | | | Change-Id: If5cd9e517d66322027408a59fd99015c91181db8 Closes-bug: #1310008
* | | Merge "README.rst: tweaks"Jenkins2014-04-291-18/+24
|\ \ \ | |_|/ |/| |
| * | README.rst: tweaksMarc Abramowitz2014-04-201-18/+24
| |/ | | | | | | Change-Id: Iadb60bd8422734a0eb252d30accd513a49032fd3
* | Format autoindex.rst file properlyRuby Loo2014-04-151-2/+2
|/ | | | | | | | | Fix the indentation of the lines following the "toctree" directive in the autoindex.rst file, so that they are aligned under the start of the "toctree" directive. Change-Id: Iff4ec8ea05819f6126a7be3d1fb5238c969fca21 Closes-Bug: #1307769
* make pbr use hacking directlySean Dague2014-04-082-3/+2
| | | | | | | Remove flake8 from pbr's requirements file, we should be requiring hacking instead, and let hacking pull in flake8. Change-Id: I6e7135a07e3ca6b9e26fcc9623b1434ecba1444f
* Merge "Add support for nested requirements files"Jenkins2014-03-312-0/+22
|\
| * Add support for nested requirements filesBen Nemec2014-03-262-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | pip supports requirements files with a line such as: -r other-requirements.txt for specifying nested requirements files. Adding support to pbr should be helpful with handling optional dependencies in projects better, by allowing us to split the requirements files and then merge them back together using -r lines. Change-Id: I80e081b2229cc81eed26533c50afb07dc98a1db1
* | Merge "Remove duplicate git setup in tests."Jenkins2014-03-312-8/+31
|\ \
| * | Remove duplicate git setup in tests.Robert Collins2014-03-172-8/+31
| | | | | | | | | | | | | | | | | | | | | Less duplication for more reuse. If the intent was clarity before, I'm happy to skip this and just have duplicate code... Change-Id: I09fd14ecd9751e79a3a475dedf320c36ba0ba71c
* | | Use unicode_literals import instead of u'unicode' notation.0.8.0Toilal2014-03-271-1/+1
| | | | | | | | | | | | | | | Change-Id: I94ff7e2517c714b9f576f9f9f615537502fcbf41 Closes-Bug: #1276139
* | | Remove pip version specifierDoug Hellmann2014-03-231-1/+1
| |/ |/| | | | | | | | | | | | | | | We don't actually require pip 1.4, and saying that we do breaks package installation in a lot of cases. Remove the version specifier from our requirements list. Fixes-bug: #1296310 Change-Id: I69c67c4c8cba7076e33292eaab9070ba51b4dff3
* | Merge "Fixes blocking issue on Windows"Jenkins2014-03-211-1/+3
|\ \
| * | Fixes blocking issue on WindowsOctavian Ciuhandu2014-03-191-1/+3
| |/ | | | | | | | | | | | | On Windows, environment variables can not be unicode. Change-Id: I8c7fd7627d7f733e0db8690a39e7128b7fe2ebcf Closes-bug: #1294246