14 Commits

Author SHA1 Message Date
ZhiQiang Fan
59464d2be4 Replace OpenStack LLC with OpenStack Foundation
Correct the copyright headers to be consistent with the policies
outlined by the OpenStack Foundation at
http://www.openstack.org/brand/openstack-trademark-policy/

Remove references to OpenStack LLC, replace with OpenStack Foundation

Change-Id: Iec8f554a5c279c39580c00abd50e3a9b2e6bf219
Fixes-Bug: #1214176
2013-09-20 10:27:21 +08:00
Monty Taylor
79f81b0c9f Remove version pins from setup_requires
setuptools can never upgrade things based on setup_requires versions.
What this means is that pbr can NEVER EVER introduce a feature or a
change that would require specifying a newer version of pbr in the
setup.py file, because if will break. This is a non-flexible
requirement.

The requirements.txt file can catch the actual version we're interested
in having around, if it's an install time requirement.

Change-Id: Ic491f295156ea0ee3f6296360ca8b31d5134ae07
2013-09-05 15:46:08 -04:00
Sean Dague
a9136d8cae add option for adding a suffix to output files
When we run update.py automatically in the devstack gate, we
have the issue that we are programatically changing files which
are actually git versioned. This makes lots of people sad pandas.

As this is all being done automatically we could actually update
the files with a suffix, then have devstack use that instead.
This will make developers happy, as they won't have to keep
resetting their devstack trees if they do development straight in
them.

Change-Id: I3d264f15ab7123f258f198b375b9667895c4104c
2013-08-09 07:12:07 -04:00
Sean Dague
63322c94d1 use dev-requirements for global sync
This allows us to pass through an exact line from
dev-requirements.txt as valid, if it's not exactly valid we'll
revert to the base requirement. This is needed so that projects
can keep development requirements in their tree.

Redo an if statement to make E125 happy....

Change-Id: I50a1292c321b7092ca1c7aeee5068f0828ece7b0
2013-08-09 07:09:44 -04:00
Monty Taylor
6a31ae3fda Bump pbr requirment to 0.5.21
Removes the need for setuptools_git. Also, change the upper bound,
as the next planned release will be 1.0 and we'd like to coordinate
that move.

Change-Id: I9a9ff8c62f800da3bf02d4afb3bc24ddfd0d24d5
2013-08-06 22:08:54 -04:00
Monty Taylor
3b7afbe4d3 Add an exclusion for projects not on pbr
If a project isn't on pbr, then force-upgrading their setup.py will
be a categorical disaster.

Once glance and swift have finished moving, we can remove this 'feature'
but for now, it's a blocker.

Change-Id: I6ab41be97a2ff83c395861a95244d090c543d1fb
2013-08-02 20:04:46 -04:00
Monty Taylor
11aa4b333f Update update.py to also write a stock setup.py
One of the points of pbr was ensuring that we had a consistent build
environment, but we still have boilerplate setup.py laying around.
Install the right boilerplate at update time.

Change-Id: If4b2e16b469171204270ace8144792e607cfddd7
2013-08-02 14:05:14 -04:00
Sean Dague
f7fbf480da one global-requirements.txt to rule them all
... and in the darkness bind them.

This moves the contents of requirements.txt and
test-requirements.txt to a single file, global-requirements.txt.
This means that regardless of whether a requirement is in
either file it will get checked. This massively simplifies the
checking and upgrading of req and test-req files.

This also adds in a unit testing framework for the update.py
script to ensure it does what we think it does. This is
accomplished by making a fake tree with a set of req and test-req
files, running update.py, and ensuring the updates were made
that we expected. It includes testing for the oslo url case,
as well as test-requires.

Change-Id: Ib9b86ade4cb8317509e218aec31f32e5d08f4035
2013-08-02 13:13:57 -04:00
Mark McLoughlin
4fec3a04ac Clean up pass-through logic in update.py
In our gating logic (project-requirements-change.py), we ignore
tarballs, editable reqs and --find-links lines. Similarly, in update.py
we just want to pass these through on unmodified.

Add a _pass_through() function which encapsulates this logic and use it
to ignore lines when parsing the source requirements.txt and also to
pass-through matching lines from the destination requirements.txt.

Change-Id: I7c34dd65ecd866e923c117686d10e86177bb320e
2013-07-08 13:36:19 +01:00
Monty Taylor
ec9cf61690 Rename pip-requires to requirements.txt.
Change-Id: I4cfdd0ef6cddfa3d75b4d650362f9645486755c8
2013-06-30 10:07:41 -04:00
Dirk Mueller
c5df1aa895 Preserve order and comments when updating
This removes reordering of the requirements
when updatin the files, as preserving the
order makes reviewing significantly easier.

Also preserve comments around the requirements.

In addition, search for missing test-requirements
also in the tools/pip-requires, to avoid accidentally
dropping them.

Change-Id: I3c51783a42db9907da9d9a98b42b52b5f639bcc8
2013-06-26 08:19:56 +02:00
Dirk Mueller
7c62ae57b7 Avoid duplicate pep8 generation
pep8 requirements were always written twice to the
updated requirements. Simply preserve the original pep8
line, like the source code comment mentioned.

Change-Id: I6b23f756594feeea0a5dbe14c58be981501bc5a4
2013-06-07 16:02:49 +02:00
Dirk Mueller
1e5f2fae72 Update requirements.txt/test-requirements.txt
Within Havana we generally rename tools/pip-requires to
requirements.txt and tools/test-requires to test-requirements.txt.

Handle both locations gracefully.

Fix flake8 warnings.

Change-Id: I5ad03a1b7efa76e31522f5b6f0da1bb3dd8cf6bc
2013-05-31 14:10:21 +02:00
Monty Taylor
b788389acc Initial import. 2012-07-26 12:57:00 -05:00