Commit Graph

22 Commits

Author SHA1 Message Date
Stephen Finucane 75cd334d14 Remove dead tooling
Remove the following collections of tools

  analyze-oslo.sh, new_core.py, new_core_analyzer.py,
  new_core_recruit.py
    Used to handle identification and onboarding of new cores. Committed
    in 2015 and likely unused in recent years.

  apply_cookiecutter.sh
    References "graduation" of oslo projects. Oslo Incubator is dead and
    so is this.

  dashboards/*, build_dashboards.sh
    From 2015 and untouched so likely unused nowadays. Most of these are
    available in the gerrit-dash-creator now.

  clean_oslo_namespaces.sh
    A remnant from the days we thought namespace packages were a good
    idea. I miss those days...

  clone_openstack.sh
    Clones the entirety of OpenStack to your local drive. Seems
    initially useful but references stackforge and untouched in years so
    not really.

  lint.py
    Runs PyLint with our special flavor of settings. Initially replaced
    by tox and now dead because PyLint is a PITA.

  find_used_deleted_modules.py
    Another reference to the incubator. Now dead.

  remove-namespace-packages-project.txt
    Describe the long-since-completed effort to drop namespace packages.
    No references and therefore removable.

  run_tests_common.sh, with_venv.sh, install_venv.py,
  install_venv_common.py
    All replaced by tox for, well, everything nowadays.

  colorizer.py
    No users after everything else is removed.

  virtual_sprint.py
    Sends an email about a virtual sprint. No one's using this anymore
    and it was last modified in 2014.

Change-Id: I6c5bd16dcfacdd816caf568f30e55451acf03ae1
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2018-07-19 14:03:46 +01:00
Steve Martinelli 84fcfc83e2 remove py26 handling from install_venv files
we don't use py26 in our testing and CI any longer, we no longer
need to keep code to check specifically for py26.

Change-Id: If5071a3816c6d6bc0dcb1508080659c9207e2519
2015-12-15 00:11:06 -05:00
Andreas Jaeger 42f631f202 Improve help strings
Follow oslo.config style guide for help strings better to create
more consistent help strings:
* Capitalize first word of each help string
* Finish help strings with "."
* Improve wording, capitalization

Change-Id: Ia9698807430d8b6b0862dfb8a7f8874703a88ff1
2014-04-29 08:08:18 +02:00
Joe Gordon 82c3d2666b Remove vim header
No need to set tabstop 189 times, this can be set in your vimrc file
instead.  Also if set incorrectly gate (pep8 check) will catch your
mistakes.

Change-Id: Ic6f0c0ef94e8194a5c121598305d1ec3c74e4843
2013-11-25 12:16:11 +08:00
Mark McLoughlin 7bd90bd5b9 Remove obsolete redhat-eventlet.patch
The gorey details for why this exists is in the commit message for
commit 3c132c0.

As of this fix:

  https://github.com/eventlet/eventlet/pull/34

which was released in eventlet 0.13, we no longer need the patch.

Change-Id: I84267f3c6726cb2e750f615e107c48b12c6ed353
2013-10-09 21:34:00 +01:00
Bob Ball 63182669c1 Make run_tests.sh identify requirements correctly
We need to check requirements.txt and test-requirements.txt
in parallel to ensure both are satisfied and we don't upgrade
a package beyond requirements.txt's limits when installing
dependencies for test-requirements.txt

Fixes bug: 1227019

Change-Id: I606f8a1d3eed5c270d5b3c154994d5c3a17b98c8
2013-09-20 09:11:02 +01:00
Monty Taylor 662b6a496d Don't attempt to patch eventlet without the patch
Some projects, like horizon, do not carry the eventlet patch.

Change-Id: I24ffad9ab7852be44e5d6c8805aa0a47647e21cc
2013-08-08 12:40:10 -03:00
Monty Taylor d76c940ce9 Ensure install_venv works behind firewalls
There is a problem with setuptools and firewalls that prevents
setuptools from downloading setup_requires properly. The only thing
in openstack that really needs setup_requires is pbr. Once that's in,
everything else installs via pip, which does firewalls correctly. So,
just install the latest pbr into the venv and the rest should work.

Change-Id: I838559f6f308e4a0c255af7bc27cdc669c5cf5f3
2013-07-31 12:13:20 -04:00
Monty Taylor ce277c6b2c Stop using distribute in install_venv_common
Upstream distribute is dead and has been merged back into setuptools.
Additionally, enhancements have been made to both setuptools and pip
that mean we no longer have to carry hacks around versions.

Also, we don't need to install greenlet here. Order is respected in
requirements.txt.

Also, let's kill the pip_requires verbage.

Change-Id: Ia15c66d6a03522e804ff96fd6f8d81db00467a6e
2013-07-05 22:00:09 -04:00
James E. Blair 5978e90377 Update eventlet bug URL.
The eventlet repository has moved, so the bug url referenced
in the comment about why we patch eventlet needs to be updated.

Change-Id: I55abe0b6eb4c8e21fad15a10d6ec71d3b5a59e54
2013-05-13 22:38:34 +01:00
Chuck Short 967eb0ad42 Improve python3 compatibility
Change print statements so that it works with python3
as well.

Change-Id: Iff16b62e4b875c79862c9af7726ea77627aa7b4f
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-05-02 08:06:01 -05:00
Rick Harris 654bb79eb1 Use optparse for install_venv_common
In order to bootstrap a virtualenv from an unmodified 2.6 Python environment,
we need to use optparse instead of argparse or openstack.common.cfg.

Fixes bug 1174926

Change-Id: Iad636c7adf7b184756eeba5ca760d8a76fc0e354
2013-05-01 16:03:15 +00:00
Dan Prince e4c6af0d74 Avoid calling sudo in install_venv_common.py.
Updates our common venv installation routine so that it no longer
attempts to automatically install missing RPM packages via sudo
and instead just prints an error message and dies.

The primary motivation here was to avoid sudo altogether since
some people would rather not have the test suite run these sorts
of systems admin commands for them.

Change-Id: I350e5421a4dd3094217270d39547acaea0aeda3b
2013-04-23 09:31:34 -04:00
Mark McClain cb903cc749 update OpenStack, LLC to OpenStack Foundation
fixes bug 1154745

The previous update (https://review.openstack.org/#/c/24103/) missed
header files that contained "OpenStack, LLC".  This change corrects the
missed files to reflect the OpenStack Foundation.

Change-Id: I9c6de265267485ef2c82ea7e6d8643e82134d102
2013-03-13 15:03:07 -04:00
Dan Prince edde97ccb7 Don't check exit codes when patching.
Similar to what we did in 427769c we need to ignore checking
exit codes for patch -N command so that they can be run multiple
times.

The motivation here is that I would like to use this to patch
virtual env's created by tox. Tox doesn't provide a good hook
to call post_process (which patches files) only once so the
idea here is we'll just let it call post_process all the time...

Change-Id: I866e7a3e1fd492d7d4c08eb55cde02f2dfa16c9a
2013-03-07 10:50:40 -05:00
Dan Prince b977828e7d Update install_venv_common to use patch -N.
This patch makes it possible to call the post_process function
in install_venv_common (which currently only patches files)
multiple times.

The motivation here is that I would like to use this to patch
virtual env's created by tox. Tox doesn't provide a good hook
to call post_process (which patches files) only once so the
idea here is we'll just let it call post_process all the time...
and for distro's where patching is used to fix the venv the
patch -N option will make it skip patches on subsequent runs.

Change-Id: Ib0a36e49dd1884de131c569fe8bb66fe20285e97
2013-03-06 20:31:19 -05:00
Mark McLoughlin fd482874ac Avoid using cfg in install_venv_common
Several people have complained that requiring oslo-config to be
installed in order to run install_venv seems like a chicken and egg
problem.

We're only using cfg for a boolean CLI option which is way overkill.
The truth is that cfg is really only interesting if you want to process
options from both the command line and configuration files. Clearly
that's not the case here.

Just use argparse instead of cfg.

Change-Id: Ib602686b554c3548f4be3d4a69d128c5fef7e8cf
2013-02-19 22:35:53 +00:00
Mark McLoughlin d3da828cf4 Use oslo-config-2013.1b3
The cfg API is now available via the oslo-config library, so switch to
it and remove the copied-and-pasted version.

Add the 2013.1b3 tarball to tools/pip-requires - this will be changed
to 'oslo-config>=2013.1' when oslo-config is published to pypi. This
will happen in time for grizzly final.

Remove the 'deps = pep8==1.3.3' and 'deps = pyflakes' from tox.ini as
it means all the other deps get installed with easy_install which can't
install oslo-config from the URL.

Change-Id: I4815aeb8a9341a31a250e920157f15ee15cfc5bc
2013-02-17 15:44:00 +00:00
Matthew Treinish 78bf94da72 Cleanup docstring and print in install_venv_common
This commit cleans up usage in the docstring for:
run_command_with_code() to be more explicit in the description
of where the commands are being run.

It also updates the prints to be consistent in the usage of venv
vs virtualenv.

These changes were recommended in the review for change:
I68fe3449ed0fcc7fdfb84af2dcc77a39ebde7f01

Change-Id: I3cdb3d991503446d37c8fa6a3547585a4f8beb6a
2013-02-11 16:56:03 -05:00
Josh Kearney c59a917db4 Allow tools/install_venv_common.py to be run from within the
source directory.

Not doing this raised exceptions when it tried importing modules
that didn't exist in the path.

Change-Id: I10e02cd9ce6beb8fdf822dd397688450ac6981a1
2013-02-05 10:35:48 -06:00
Matthew Treinish b6275ac900 Update copyright on install_venv_common.py
This updates the copyrights on install_venv_common.py to
include IBM.

Change-Id: I5da3d9f1f511f20b332dc206aba4bcd2011a4940
2013-01-28 13:54:35 -05:00
Matthew Treinish b1ace64605 Add install_venv library.
This adds a install_venv.py library that can be used by each
project's tools/install_venv.py script.

Currently all the projects have very similar install_venv
scripts in their respective tools directories that all
accomplish the same end result. This just breaks out the
common code and puts it in a class that can be imported
and used in each project's script.

Change-Id: I8346fc4201f35e5d0c475caef893ca71e7db8236
2013-01-24 15:14:56 -05:00