Commit Graph

211 Commits

Author SHA1 Message Date
OpenDev Sysadmins 07cce9e548 OpenDev Migration Patch
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.
2019-04-19 19:50:54 +00:00
Dirk Mueller 1476f6c3aa Remove pep8 from test-requirements.txt
flake8 already pulls it in, and listing it separately can only
produce conflicts. Also, pep8 was renamed to pycodestyle a
couple of years ago.

Change-Id: I5b9f99af60df753a2860eb083b9e763de8eeccf4
2017-10-25 08:05:39 +02:00
Nam Nguyen Hoai f2befc4168 TrivialFix: Using assertEqual instead of assertEquals
Following OpenStack Style Guidelines[1]: http://docs.openstack.org/developer/hacking/#unit-tests-and-assertraises
[H234] assertEquals() logs a DeprecationWarning in Python 3.x,
use assertEqual() instead. The same goes for assertNotEquals().

Change-Id: I0469bc4d5672d2832b61ec8e3cd283ad06bf380f
2016-09-28 15:10:44 +07:00
Clint Byrum e0853bb40d Fix test decorators
These tests aren't actually run by nose because the private decorator
doesn't properly wrap its test. This is also a useful pattern, and so we
move it into its own file (note that even better would be to use
testtools and fixtures, but that's a bigger refactor).

In addition, we don't need to use the git CLI, when we have gitpython,
which produces cleaner code and doesn't spray stuff all over our stderr.

Finally, the outdir creating decorator wasn't as reusable as I thought
it would be, so removing it for inline code for now.

Change-Id: Ibe1b993235b68a1a59bc398ded9c822a02475570
2016-07-09 15:37:05 -07:00
Jenkins 46829604c3 Merge "Add basic test coverage for build_spec" 2016-07-07 01:16:21 +00:00
Jenkins 4307c1e30c Merge "Add test coverage for openstack_git_repo" 2016-07-07 01:13:10 +00:00
Clint Byrum f46a162ea2 Add basic test coverage for build_spec
This asserts the basic public surface area of the module

Change-Id: I97f5f228ed55dd0d0b748a47bd88c72c55500102
2016-07-06 16:56:19 -07:00
Clint Byrum 5e5e0086b9 Add test coverage for openstack_git_repo
Just some basic tests to see if we're interacting with git repositories
well.

Change-Id: I796b70ae505ff10111f640d7f530fb4d6f2d5acb
2016-07-06 16:33:32 -07:00
Clint Byrum 34a8d83829 Add py34 and py35 to tox.ini default envs
This is a minor issue, but when somebody just runs 'tox', this will
ensure that tox tries to run with all known working interpreters.

Change-Id: I745912bc1f449e4d370d1e9248efe9eb1a84d90a
2016-06-27 22:14:22 -07:00
Craig Tracey 56c0208a9c Remove contraints from postinstall_dependencies
postinstall_dependencies is meant for very fine-grained modification of
the resulting virtual environment. If a user wants to use constraints
after the fact they may then specify those constraints in the
postinstall_dependencies list item.

Change-Id: I21390450fc086d80b16c7ab4d1dc43c81ff590af
2016-06-20 13:44:30 -04:00
Jesse Keating 4946801f16 Release with upper constraints
Bump version
Update README
Update CHANGELOG
Update example manifest

Change-Id: I2744d2964cf4e7b0aeff8bddc6569140a3e1b9ae
2016-06-15 11:21:29 -07:00
Jesse Keating 14b8389c53 Introduce upper constraints
This is a global setting that will apply across every project, a
constraint on the versions of things that can be installed via pip.

This is a first pass, adding basic functionality, by allowing a list
of constraint URLs to be provided. Future iterations of this feature may be
tied to a "superrepo" that contains all the projects _and_ the
constraints for those projects all in one place.

Change-Id: Ib5c2dd441b9294b775e755e595486a671d8de57f
2016-06-15 11:07:21 -07:00
Jenkins 6b40cee8bf Merge "Use newer urllib3" 2016-05-05 00:20:45 +00:00
Jenkins 8c197c0e1e Merge "Update git url for homepage" 2016-05-05 00:11:01 +00:00
Jesse Keating 30c6c26778 Use newer urllib3
docker requires a newer urllib3, but doesn't express that dependency
correctly. So pull in the latest as of today, or newer.

Change-Id: Ie5c1d0142c8d15d66e7fa9e58d10f2821f194d68
2016-05-03 14:57:50 -07:00
Jenkins 562a12ffc8 Merge "Fix repository URL in README file" 2016-05-02 23:28:59 +00:00
Jesse Keating 3e0c454e59 Update git url for homepage
Change-Id: I6f704064fa51d0b919726859610367e2375076a2
2016-05-02 16:21:17 -07:00
Jesse Keating 9b88e54da3 Python3 clean ups
Use pep3217 syntax for octal
This allows us to pass the py34 gate checks. Compatible at least with
python 2.7.6 (on Ubuntu 14.04).

Handle urlparse -> urllib.parse

Update to latest GitPython

Fix bad print statements

Fix test unittest comparisons

Change-Id: I79dac5e2c94f8ce5d522801837dbb6ea5e044f13
2016-05-02 15:39:38 -07:00
Christian Berendt 65b606d82f Fix repository URL in README file
Change-Id: I2eab40807d6039766a4b99dc765136149cca25d9
2016-04-25 21:17:36 -05:00
Jesse Keating 0459763673 Merge pull request #63 from emonty/gitreview
Add gitreview file for OpenStack Gerrit
2016-02-16 13:00:41 +00:00
Jesse Keating dd969d83f8 Merge pull request #62 from emonty/master
Prep for being in gerrit
2016-02-16 10:54:02 +00:00
Monty Taylor 72f3854b31 Add gitreview file for OpenStack Gerrit 2016-02-16 10:52:59 +00:00
Monty Taylor 009a1a0b8e Prep for being in gerrit
name needs to be python-giftwrap for uploads to pypi. Also, the pbr
section in setup.cfg is deprecated.
2016-02-16 10:48:55 +00:00
Craig Tracey 00d790a67c Merge pull request #60 from notnownikki/limit-built-projects
Add --projects to specify which projects to build
2016-01-27 14:39:04 -05:00
Craig Tracey 4aa79ac470 Merge pull request #61 from blueboxgroup/venv-broken
Remove downloadcache in tox config
2016-01-27 11:19:00 -05:00
Nicola Heald e573a3e1b3 Use comma separated list of projects for --projects 2016-01-27 11:06:06 +00:00
Craig Tracey 2a8da40c29 Remove downloadcache in tox config
The virtualenv doesnt play nice with --download-cache
2016-01-26 12:58:45 -05:00
Nicola Heald 9716cfb3ef Add --projects to specify which projects to build
New option --projects (-p) allows you to only build certain projects
from the manifest you're using.

Example:

giftwrap build -m examples/manifest.yml -t package -p glance cinder
2016-01-21 20:13:31 +00:00
Jesse Keating bc16005950 Merge pull request #59 from xavpaice/master
Add quotes to package install
2015-12-08 12:26:35 -08:00
Xav Paice 64a6ed4372 Add quotes to package install
postinstall_dependencies (and probably others) need to have the version
specified with == otherwise the command fails due to < and > being known
as redirects.  This adds quotes round the package name, so that bash
doesn't do that.
2015-12-08 15:37:14 +13:00
Jesse Keating 4793c14b39 Merge pull request #57 from blueboxgroup/builder-drivers
Add ability to extend builders via builder drivers
2015-11-04 12:05:22 -08:00
Craig Tracey d4d383a029 Update test_builders to make test more resilient
Previously, the order of the list of drivers was indeterminate.
Change this from a list comparison to a set comparison.
2015-11-03 22:03:01 -05:00
Craig Tracey f2d79a0db9 Add ability to extend builders via builder drivers
There are times where you may want to extend or modify the way that
giftwrap builds packages. Short of submitting a pull request or
(worse) forking the repository, there was no easy way to do so.

This change introduces builder drivers with stevedore. By merely adding
entry points in the 'giftwrap.builder.drivers', additional
implementations are now possible.
2015-11-03 21:43:34 -05:00
Craig Tracey 931ce3f12c Merge branch 'master' of github.com:blueboxgroup/giftwrap 2015-10-15 14:44:11 -04:00
Craig Tracey a9ef3673e1 Remove CHANGELOG until we update correctly
Remove the CHANGELOG for now. This has not been updated in some time.
2015-10-15 14:42:48 -04:00
Craig Tracey 3341e7cd50 Merge pull request #56 from blueboxgroup/two-dot-oh
Promote beta-2.0 to master
2015-10-15 14:41:31 -04:00
Craig Tracey 962ae5562b Merge branch 'master' into two-dot-oh
Conflicts:
	README.md
2015-10-15 14:37:52 -04:00
twaldrop a700ca4f1f Merge pull request #55 from blueboxgroup/thread-improvement
Add some threading improvements
2015-10-15 11:05:59 -07:00
Craig Tracey 503d3f0b7b Add some threading improvements
Two improvements have been added:
- display the name of the thread in the logging
- record the thread exit status and return it upon completion
2015-10-15 12:32:10 -04:00
Paul Czarkowski 68ae12caf3 Merge pull request #54 from blueboxgroup/gitdepth
Fix git depth issues
2015-10-14 21:42:25 -05:00
Paul Czarkowski e49298cc49 Merge pull request #53 from blueboxgroup/iterative
Install pip dependencies iteratively
2015-10-14 21:42:00 -05:00
Craig Tracey c188d6238a Fix git depth issues
Defaulting a getdepth to 1 makes it difficult to switch branches if
the branch is not available in the shallow clone, so make this
optional. Also, instantiate OpenstackGitRepo properly: depth is not
the fourth parameter.
2015-10-14 21:06:46 -04:00
Craig Tracey 37eed319e5 Install pip dependencies iteratively
Installing pip dependencies interatively (vs. concurrently) provides
for interesting manifest syntax. For example, one could specify
an index-url along side a dependency without affecting the other
dependencies in the list.
2015-10-14 21:01:50 -04:00
Jesse Keating 5e3769d1e3 Merge pull request #52 from blueboxgroup/docker-sync
Docker builds need to be synchronous
2015-10-12 13:40:46 -07:00
Craig Tracey 3c0f88249a Docker builds need to be synchronous
There is no point in making Docker builds "parallel" as they are
executed by way of a docker build.
2015-10-12 11:48:19 -04:00
Paul Czarkowski 75098e9c1d Merge pull request #50 from blueboxgroup/postinstall-deps
Support postinstall python dependencies
2015-10-09 22:59:06 -05:00
Craig Tracey 5df2dff2f2 Support postinstall python dependencies
There are cases where you would like for a Python module to be
installed *after* the project itself has been installed. This is now
possible with project.postinstall_dependencies.
2015-10-09 23:49:27 -04:00
Paul Czarkowski 06c94a0542 Merge pull request #49 from blueboxgroup/errant-etc
Only attempt copy when directory exists
2015-10-09 22:33:42 -05:00
Paul Czarkowski 2927ba7f6d Merge pull request #48 from blueboxgroup/parallel
Add parallel builds
2015-10-09 22:33:39 -05:00
Craig Tracey 8dd2e05a30 Only attempt copy when directory exists
This bug is the result of poor whitespace management.  Only copy
etc if etc is present.
2015-10-09 23:02:12 -04:00