26 Commits

Author SHA1 Message Date
Akihiro Motoki
ef3bfed0ea Update translation setup
Follow new infra setup for translations, see spec
http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html
for full details.

This basically renames
neutron-lib/locale/neutron-lib.pot to
neutron_lib/locale/neutron_lib.pot. For this we need to update
setup.cfg.

Update also domain name in _i18n.py.

The project has no translations currently, let's remove the outdated
pot file, the updated scripts work without them. So, we can just
delete the file and once there are translations, an updated pot file
together with translations can be imported automatically.

Change-Id: I73db7b37f5a44ae45c01ca16abccb41a5fbfbfe8
2016-01-29 07:08:35 +09:00
Jenkins
50546e95ec Merge "Replace deprecated library function os.popen() with subprocess" 2016-01-27 01:48:33 +00:00
Jenkins
30a745250d Merge "API validators and converters" 2016-01-16 01:56:13 +00:00
Paul Michali
7d9980f7ca API validators and converters
This brings over the validation and convert_to methods from Neutron.
Additional tests were added to improve coverage, and some supporting
methods were added for these.

Renamed validators to remove underscore, so that they can be imported
into neutron/api/v2/attributes.py.

Added devref docs to help developers in creating and using validators
and converters.

Change-Id: I81394dff69b816146e521bcd3e9641761178d6fd
Implements: blueprint neutron-lib
2016-01-15 12:44:09 +00:00
Harshada Mangesh Kakad
da8ed114cc Replace deprecated library function os.popen() with subprocess
os.popen() is deprecated since version 2.6. Resolved with use of
subprocess module.

Change-Id: I0072000a1386aaa5d3eacef4bfb9dc74edb915ec
Closes-Bug: #1529836
2016-01-14 05:26:52 -08:00
Jenkins
cb0b5efbe9 Merge "Setup for translation" 2015-12-24 08:53:45 +00:00
Henry Gessau
452c3ab8a8 Improvements to tox envs
- Actually depend on requirements.txt
- Run unit tests with ostestr
- Inform testr of location of unit tests
- Fix coverage job and include report
- Keep PEP8 strict; it's not annoying yet
- Remove vestiges of oslo incubator handling

Change-Id: I2465d18bee8e242e049d2d5e30dfcf472a49c0c4
2015-12-19 01:00:22 -05:00
Jenkins
42c178cd3d Merge "Adding callback mechanism" 2015-12-18 20:25:50 +00:00
Paul Michali
3d41d2e8e5 Adding callback mechanism
Adding the callback mechanism to neutron-lib. Added code, test, and
devref. Added additional test coverage. Added missing __init__.py
files so tests are run. Needed oslo.log added to requirements.

Once this is upstreamed, we can modify the callback mechanism.

Change-Id: Ib16f3942e8ac2ddbfc8ff6919863ec9ad197e5b6
Implements: blueprint neutron-lib
2015-12-18 19:05:15 +00:00
Gary Kotton
47dfcb63a1 Setup for translation
To start translation, we need to initially import the translation
file - and place it at the proper place so that the usual CI
scripts can handle it. The proper place is for all python
projects $PROJECT/locale/$PROJECT.pot - see setup.cfg.

Further imports will be done by the OpenStack Proposal bot.

Change-Id: I4223ec5ffd3770ef90e23cd8f84341097c1fe84f
2015-12-15 01:46:27 -08:00
Abhishek Raut
83565f33f3 Add neutron/plugin/common/constants.py module to neutron-lib
This patch proposes the addition of plugin constants module to
neutron-lib. Instead of creating a new file plugin_constants,
this patch appends them to the existing constants module
within neutron-lib.

Change-Id: Id1cb3b36a0409660ff585ef098f5315ccd37af9f
Implements: blueprint neutron-lib
2015-12-11 07:50:20 -08:00
Jenkins
9e83b65888 Merge "Setup for devref documentation" 2015-12-08 00:35:56 +00:00
Paul Michali
64211231be Setup for devref documentation
Setup the docs target for producing documentation, create the needed
index files for documentation and devref, and include references to
the existing .rst docs.

Change-Id: Id2a23058ee5aa557fb52b65f044bac4528ef86bc
Implements: blueprint neutron-lib
2015-12-07 18:50:07 +00:00
Doug Wiegley
6118e55976 Initial list of constants
This starting point list is derived from neutron.common.constants,
including only those entries that are being used in existing stadium
projects.

Change-Id: I4cc9f8fb18d726d8c65b7d229eb7a429631da150
Partially-Implements: blueprint neutron-lib
2015-12-03 16:21:42 -07:00
Jenkins
4a0da37c99 Merge "Use assertRaises instead of try-except in unit tests" 2015-12-03 22:31:02 +00:00
Jenkins
e2824ec8fb Merge "Remove pypy as tox env" 2015-11-30 22:56:32 +00:00
Henry Gessau
b721169ba7 Use assertRaises instead of try-except in unit tests
Change-Id: I1fde8f078363e66b0992c5874ae52d35a8c9cb68
2015-11-30 10:37:08 -05:00
Jenkins
7a48a86d46 Merge "Initial shared exceptions" 2015-11-30 14:15:56 +00:00
Doug Wiegley
0867d7fe1b Initial shared exceptions
Partially-Implements: blueprint neutron-lib

Change-Id: I1091412515f3755d53b8585fe99b47c01c4823b8
2015-11-25 14:52:05 -08:00
Doug Wiegley
1bb14da82d Remove pypy as tox env
Also submitted job change to infra to turn on py3 checking

Change-Id: I22381c536f05f2535e5017c9c9f4bfee03d08c74
2015-11-24 13:04:43 -08:00
Jenkins
636db0c70a Merge "Cleanup .gitignore" 2015-11-24 21:00:15 +00:00
Doug Wiegley
447531ff45 Insert references to debtcollector in review guidelines
Change-Id: Ib63da82d628333bc11c4764416c702429ad38dac
Partially-Implements: blueprint neutron-lib
2015-11-23 17:34:33 -07:00
Kyle Mestery
c358066282 Cleanup .gitignore
Per Henry's comments here [1], lets clean this up so it looks
nice and fancy like Neutron's .gitignore.

[1] https://review.openstack.org/#/c/247855/

Change-Id: Ie843eedc19fff5a0a4c342617c83093aa2cfbcbf
Signed-off-by: Kyle Mestery <mestery@mestery.com>
2015-11-23 13:15:43 -06:00
Doug Wiegley
f696b74579 Beginning of lib review guidelines
Partially-Implements: bp neutron-lib

Change-Id: I83ccbf3d0df80a537ce403922adfbca7ea567cf4
2015-11-23 14:48:20 +00:00
Doug Wiegley
b0d12660ea Initial cookiecutter commit
Partially-Implements: bp neutron-lib
Change-Id: Ia6884f545efb56429bcb74246a74e95d1318376a
2015-11-20 17:24:43 -07:00
OpenStack Project Creator
8fa19fe366 Added .gitreview 2015-11-19 19:54:39 +00:00