24 Commits

Author SHA1 Message Date
Hervé Beraud
236a0c4081 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: Ia7c6b8ba6d3842a19e75fd64f9e56f2cf5f74409
2020-06-04 08:34:47 +00:00
XieYingYun
402d2482b3 Fix to use . to source script files
Adhering to coding conventions. Refer to ``Code conventions`` at
https://docs.openstack.org/contributor-guide/ for details.
When you have to source a script file, for example, a credentials file
to gain access to user-only or admin-only CLI commands, use . instead of source.
https://docs.openstack.org/contributor-guide/writing-style/code-conventions.html

Change-Id: I1ff56e0775da68e43a691f7f25b3a4ce7930406a
2017-09-01 02:40:38 -07:00
Einst Crazy
858389db7c Use tools_path/venv environment variables in install_venv
In the run_tests.sh, it export tools_path/venv/venv_path.
In the install_venv.sh, to get venv value in environ values. In
the with_venv.sh, to get correct envirion values.

Change-Id: Ia041937eaa8cf2194a929c846a7a96312a641ac5
Partial-Bug: #1535514
2016-01-20 02:07:12 +00:00
liu-sheng
b30c47233d Remove the useless vim modelines
Change-Id: I41286e0b8f74c90b7078c3d3fb041b6586d95ab0
Closes-Bug: #1229324
2014-06-21 15:07:31 +08:00
Wu Wenxiang
ab97446132 Remove unused imports
Remove unused imports in tools/install_venv.py

Change-Id: Ia2fbb4ece5c8bcdee96503f0f853f826ae4f3dfa
Closes-Bug: #1265267
2014-01-01 22:01:27 +08:00
Mark McLoughlin
a764f78327 Remove obsolete redhat-eventlet.patch
See I62ce43a330d7ae94eda4c7498782a655e63747fa for the gorey details on
why this exists.

As of this fix:

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

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

This has now been removed from oslo-incubator, so this is really just
syncing that removal.

Change-Id: I84267f3c6726cb2e750f615e107c48b12c6ed353
2013-10-09 21:47:48 +01:00
Chang Bo Guo
a37b4133b7 Use built-in print() instead of print statement
In python 3 print statement is not supported, so we should use
only print() functions.

This patch also removes print in unit test, left by accident

Fixes bug 1226943

Change-Id: I5ace50cb9e149682344b4c986ef9318f8dc50f72
2013-09-21 07:30:33 -07:00
Mark McClain
ee3fe4e836 Rename Quantum to Neutron
This change renames everything to Neutron while providing backwards
compatible adjustments for Grizzly configuration files.

implements blueprint: remove-use-of-quantum

Change-Id: Ie7d07ba7c89857e13d4ddc8f0e9b68de020a3d19
2013-07-06 15:02:43 -04:00
Zhenguo Niu
47846a7a63 Rename requires files to standard names.
Rename tools/pip-requires to requirements.txt and tools/test-requires
to test-requirements.txt. These are standard files, and tools in the
general world are growing intelligence about them.

Fixes: bug #1179008
Change-Id: I6f8a11988982133249d443403f63b4f8724e156e
2013-05-30 22:15:24 +00:00
Gary Kotton
e4b44c2856 Replace "OpenStack LLC" with "OpenStack Foundation"
fixes bug 1154702

Change-Id: I78b1d2c9975a1a4f32b0785cce45f1e471783d8c
2013-03-13 15:06:24 -04:00
Matthew Treinish
672549dd4b Use install_venv_common.py from oslo.
This syncs install_venv_common.py from oslo and reworks the
tools/install_venv.py script to use the new library.

Change-Id: I46bbf7d656e6cb9660e37af2d3ce96150e18e7fe
2013-01-28 16:22:17 -05:00
Monty Taylor
6d9ddf1c37 Use setuptools git plugin for file inclusion.
Fixes bug 1018833. We're looking at this as a possible pan-project
option instead of manual MANIFEST.in inclusion and then looking for
where the tarballs differ.

Change-Id: I25287d5aca2046c6b613b05d54281533bdd6f79f
2012-07-01 05:31:22 -07:00
Juliano Martinez
2fcb3ecacf Bug #1013967 - Quantum is breaking on tests with pep 1.3
Fixing files

93/93 files fixed

Change-Id: Ia30f2e2253806fa5f447d44208d13d2c0beba9cd
2012-06-16 15:38:10 -03:00
Monty Taylor
20ee7ee0e7 Fix up test running to match jenkins expectation.
Change-Id: I215cd92d707f81ed481897704b31188017a5a8b8
2012-06-10 15:20:16 -04:00
Monty Taylor
8f6de697f0 Split out pip requires and aligned tox file.
Align tox.ini file with standards.
Align setup.py with openstack-common standards.

Change-Id: I333bbd66648c865a5c97ec2661359ab849274446
2012-03-14 23:20:22 -07:00
Dan Wendlandt
9f4ec1c723 bug 934459: pip no longer supports -E
Change-Id: I2acdef113d147b7130053088d4bcf8515f61b815
2012-02-25 10:24:39 -08:00
Jenkins
d11d0e621b Merge "Install a good version of pip in the venv." 2012-01-16 22:24:58 +00:00
Monty Taylor
98d04ae684 Install a good version of pip in the venv.
Change-Id: If55032a5018b50cd7cc359ec4a013c8c18dc735e
2012-01-02 13:59:59 -08:00
James E. Blair
a90fab1193 Rename .quantum-venv to .venv.
This simplifies a number of Jenkins jobs which currently, other
than directory names, could be the same for all OpenStack
projects. By renaming the virtualenv directory, the redundant
Jenkins virtualenv build and copy jobs can be eliminated.

Change-Id: I93c7f6577b4c3a76b021f002bda59fcb8fac3f95
2011-12-23 15:02:57 -08:00
James E. Blair
dadbae9833 Remove plugin pip-requires.
Fixes bug 906636.

The cisco plugin included ncclient, but does not use it when testing.
The openvswitch plugin included SQLAlchemy which is already required
by quantum itself.

I've also changed the install_venv.py script to only look at
tools/pip-requires, so that it behaves more like the rest of the
OpenStack projects.  In Jenkins that's the only file we look at
to see if we need to rebuild the virtualenv, so it would be best
if the project only hade one pip-requires.

Also added .gitignore to ignore files created during testing.

Change-Id: Ic460452ec89aa8377c975ca63b57563119860e6b
2011-12-19 16:30:54 -08:00
Monty Taylor
a73ba62920 Changes to make pip-based tests work with jenkins.
The git line for the cisco pip-requires was wrong.
The venv needs to be installed in the source tree, not in the home
directory for self-contained builds.
The version of python can't be assumed and must be calculated.

Change-Id: I23d381eb273e82796e309483086dc68f27ce6093
2011-11-16 01:32:03 -02:00
Tyler Smith
3760868eb0 Fix for Bug #888820 - pip-requires file support for plugins
Change-Id: I6e0833ec0c875ec38db419a88fd6c2db02142f08
2011-03-11 20:21:25 -05:00
Tyler Smith
24b0207cbe blueprint quantum-packaging
Change-Id: Ica19170540b06ecddb0fbb6d340ee7a6819c1708
2011-03-07 18:02:05 -05:00
Santhosh
6458fa7cff Santhosh/Vinkesh | Added the testing framework. Moved the smoketest to tests/functional 2011-06-08 14:22:51 +05:30