summaryrefslogtreecommitdiff
path: root/pbr
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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
* | 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
* pbr/testr_command.py: Add loggingMarc Abramowitz2014-05-051-0/+17
| | | | | | to aid in debugging and testing. Change-Id: I5342604204602623cdb5c0f2623d85f7d44e2b50
* 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
* | 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
* 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
* | Fixes blocking issue on WindowsOctavian Ciuhandu2014-03-191-1/+3
|/ | | | | | | On Windows, environment variables can not be unicode. Change-Id: I8c7fd7627d7f733e0db8690a39e7128b7fe2ebcf Closes-bug: #1294246
* Factor run_cmd out of the base class.0.7.0Robert Collins2014-03-131-7/+14
| | | | | | | I want to reuse this for factoring out some fixtures, so make it reusable. Change-Id: I7035a514adf889a8ebaadff9ae873341804fe099
* Return the real class in VersionInfo __repr__.Robert Collins2014-03-131-1/+2
| | | | Change-Id: I52337fd704a0d4b38f9562d88dcdf5952cf7b422
* Fix up some docstrings.Robert Collins2014-03-131-9/+14
| | | | | | | The version.py docstrings were a) not PEP compliant and b) somewhat out of sync with the code. Change-Id: I87c4134ef80fd9e6fd57b66c58c3c5920ee0b6b6
* Init sphinx config values before accessing them.Clark Boylan2014-03-061-0/+1
| | | | | | | | | | Sphinx's config object needs to have its values initialized with init_values for the values to be loaded from _raw_config into config. Without this pbr gets null equivalent values from Sphinx's config. These null values prevented man pages from being built when Sphinx warnerrors is set. Fix this. Change-Id: I0f17ca6eff036a0bcc6686fcc3f4efe0830cc585
* Remove copyright from empty filesChangBo Guo(gcb)2014-03-031-14/+0
| | | | | | | | | According to policy change in HACKING: http://docs.openstack.org/developer/hacking/#openstack-licensing empty files should no longer contain copyright notices. Closes-Bug: #1262424 Change-Id: Ib937beb9f627e7b5e25baa1cd37fd01fcc04fd41
* Merge "Remove unused _parse_mailmap()"Jenkins2014-02-251-12/+0
|\
| * Remove unused _parse_mailmap()Mark McLoughlin2014-02-181-12/+0
| | | | | | | | | | | | Unused since commit 745d615 Change-Id: I7fbd90bb480f6d039e2e96d629a1db67127f40d5
* | Add support for python 3-<3.3Toilal2014-02-171-3/+5
|/ | | | | | | Use unicode_literals import instead of u'unicode' notation. Change-Id: I6e6aba938ae43399d5aa398344c219fe43649034 Closes-Bug: #1276139
* Do not force log verbosity level to infoDoug Hellmann2014-02-052-4/+0
| | | | | | | | | 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
* package: read a specific Python version requirement file0.6Julien Danjou2014-01-282-1/+23
| | | | | | | | | | This change makes pbr reads a specific requirement file tight to the major Python version that is used. So you can add a file such as requirements-py3.txt to have a specific requirement file for Python 3, or requirements-py2.txt to have a specific requirement file for Python 2. Change-Id: I4b548e9830586f11b82539d334dd5cf4b0445a36
* Use wheels for installationMonty Taylor2013-12-041-3/+8
| | | | | | | | Add an option to pbr to use wheels when installing things from pip. The speed boost this gives is quite sexy, as it can avoid having to re-build C things all the time. Change-Id: Id9b9b21ef949ff44c7c962e81576266661264a13
* Merge "Let git do mailmap mapping for us"Jenkins2013-11-302-63/+3
|\
| * Let git do mailmap mapping for usMonty Taylor2013-11-292-63/+3
| | | | | | | | | | | | | | It turns out, git log already knows how to process mailmap files. Just defer to it and stop processing that in python. Change-Id: Ib3d6f85683fcbe8b5002117d2ee46dc3c008cae7
* | Merge "Make ChangeLog more condensed"Jenkins2013-11-303-23/+75
|\ \ | |/
| * Make ChangeLog more condensedMonty Taylor2013-11-293-23/+75
| | | | | | | | | | | | | | | | | | Just duplicating the git log isn't particularly exciting. Make the ChangeLog a list of change subjects grouped by tag. New output can be seen here: http://paste.openstack.org/show/49999 Change-Id: I7bf4d89dcdba135de663d75895b30963f7a44662
* | Merge "Make sphinx builders configurable in LocalBuildDoc"Jenkins2013-11-292-0/+40
|\ \
| * | Make sphinx builders configurable in LocalBuildDoccbjchen@cn.ibm.com2013-11-272-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | Sphinx builders were hard coded to be html and man in LocalBuildDoc before. This enables users to config a list of builders in setup.cfg as a comma seperated list, e.g. html,man,doctest Change-Id: I3528b208c7e719286fe8816acf65f8efdc5844c6
* | | Merge "Communicate to user when we skip a requirement"Jenkins2013-11-261-9/+11
|\ \ \
| * | | Communicate to user when we skip a requirementMonty Taylor2013-11-141-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We skip several requirements on python >= 2.6 because they are only needed on 2.6 but there is no good way to express that in requirements.txt. This can be confusing to users, because they may not be expecting such a thing and may think something broke. Print a message to the info log to that the user can see that we chose to not install their non-needed requirement. Change-Id: I11de12351123bbf406f77cf402feeab0e5dff26b
* | | | Merge "Base python 2.7 skip list on parsed names"Jenkins2013-11-222-1/+21
|\ \ \ \ | |/ / / | | / / | |/ / |/| |
| * | Base python 2.7 skip list on parsed namesMonty Taylor2013-11-142-1/+21
| |/ | | | | | | | | | | | | | | | | | | | | | | We keep a list of libraries that should only be installed on python 2.6, but the check to see if a requirement matches that list was only doing a simple string equality, which would miss attempts to install version specified instances of one of them. Instead, use pkg_resources to parse the potential requirements line and operate on the parsed project name. Change-Id: If64e4b2ee6696a0531e3ed6099e63372d47bc851
* | Ignore jenkins@openstack.org in authors buildingSergey Lukjanov2013-11-141-1/+1
|/ | | | | | this email used for posting requirements updates Change-Id: I30e2e68cb6b5e8c2bcbc972a632ac2a1254f5fe4
* Avoid using 'which' executable for finding gitDavanum Srinivas2013-11-072-1/+25
| | | | | | | Just use 'git --version' to check if the git executable is present Change-Id: Ib5c11060fa7d9b7d9741dd88fc3430237f0bc1a0 Closes-Bug: #1248447
* Fixed pbr install to not error out and fail if git is not installed0.5.23Nikhil Manchanda2013-10-301-1/+5
| | | | | | | | | | Fixed the issue where pbr was erroring out (file not found) when running 'python setup.py egg_info' since it was trying to get the .git directory even if git was not installed. Closes bug 1245676 Change-Id: I31e1f86f10f18897774b49eb293aede31641db31
* Merge "Move base test case logic out of __init__.py"0.5.22Jenkins2013-10-289-158/+158
|\
| * Move base test case logic out of __init__.pyMonty Taylor2013-10-289-158/+158
| | | | | | | | | | | | | | It's an antipattern to have functional code in an __init__.py. Move it into base.py to be less anti. Change-Id: Ib4db548b78e4e760d94099596a3c495a839836dc
* | Merge "Prevent ordereddict installation on 2.7"Jenkins2013-10-271-1/+1
|\ \ | |/ |/|
| * Prevent ordereddict installation on 2.7Thomas Leaman2013-10-161-1/+1
| | | | | | | | | | | | | | This supports https://review.openstack.org/#/c/48475/ in glance to remove copy/pasted ordereddict code. Change-Id: I9b0a2588c6e7da86c048698c5e6dfe37ced4dd7f
* | Comply with pep440Monty Taylor2013-10-181-1/+1
|/ | | | | | | | | | | | pep440 indicates that development releases should mark themselves with the devN specifier. http://www.python.org/dev/peps/pep-0440/#developmental-releases Instead of using aN as we are currently doing for automatically generated versions, we should use the pep440 compliant devN form. Change-Id: Ieeb5149f8b013e76621112593e0a5c0a64817e1f
* Do not pass unicode where byte strings are wantedDoug Hellmann2013-10-091-1/+13
| | | | | | | | | | | Some versions of the tarfile module break when unicode data is passed as metadata (like the version). See http://bugs.python.org/issue11638 for details. This change ensures that version number is always a byte strings under python 2, where the problem exists. Change-Id: Ic266cd7cce0394d28794ee61afe269f1296be2a2
* Merge "Rework run_shell_command"Jenkins2013-10-092-65/+48
|\
| * Rework run_shell_commandMonty Taylor2013-09-282-65/+48
| | | | | | | | | | | | | | | | A previous patch for windows support made the simple case of passing a string to run_shell_command complicated with quoting. Clean that up by reverting to list, which avoids the crazy quoting we had to do. Change-Id: Ia3b8ac6a57e7400d0aab0d5265c851e536fb4e87
* | Add a test for command registration.Robert Collins2013-09-301-0/+7
| | | | | | | | | | | | | | | | | | | | This would be better as a direct unit test, but I can't see where thats done; and setuptools doesn't seem super friendly to that. There are more commands that can be tested, but this seemed like a good place to start. Change-Id: I433880d9b08d07de0194450bbc90a423554e347c
* | Switch away from tearDown for BaseTests.Robert Collins2013-09-291-2/+2
| | | | | | | | | | | | tearDown is never the right hammer. Change-Id: If17ae653e25d4fba2b768cb569a573467448ccef