42 Commits

Author SHA1 Message Date
Monty Taylor
d26bc12f71
Update docs and pep8 tox environments
Make the docs tox environment use doc/requirements.

For pep8, just install the linters and skip installing the package.
Doing this but leaving in the constraints file keeps us in line with
upper-constraints on linters but lets our pep8 envs be tiny.

Finally, remove the doc8 line-length setting. It's not a big enough
difference to warrant changing it.

Change-Id: I3df81474fb52e2587d22c7789b6b553139eb37f2
2018-01-24 05:43:19 -06:00
Monty Taylor
da99fae94d
Update for new docs PTI
split docs requirements out into doc/requirements.txt and change the
helper tox docs env to be what the gate is going to be running.

As part of doing this, we can re-enable the enforcer code. However, it
doesn't seem to be working, so leave it as info rather than warn for
now.

Set the jobs and the tox env to use python3. The enforcer module wants
to use ifilterfalse/filterfalse which have different names in 2 vs. 3.
There's no reason to NOT run sphinx in python3.

Change-Id: I358db11b130b909084f7a9e8925477e931d87117
2018-01-05 12:44:02 -06:00
Andreas Jaeger
41c5bd9180 Remove -U from pip install
'pip install -U' ugrades specified packages, this is not necessary
since we use constraints, remove the parameter '-U' from the line.

With tools/tox_install.sh - which a previous change of mine removed -
the -U was not harmful, but with the current set up, it might cause
upgrades, so remove it.

Change-Id: I4270610053e3c541e57e2e539fbd56ffc1c266f0
2017-12-02 19:27:41 +01:00
Andreas Jaeger
58bafb63e1 Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: I9ee471b253ec104d2b93829be3644ce7aef06876
2017-12-01 08:58:30 +01:00
Monty Taylor
7fb95b9e75
Fix py35 and pypy tox env
The basepython line was causing the py35 tests to actually run under
python2. Whoops.

It was doing the same to pypy. Add pypy to bindep with the pypy tag.
Cryptography and the version of pypi in xenial are incompatible, so
update the pypy job to run on fedora-26 instead, which has a new enough
pypy.

Shift the line so that it only applies to functional and ansible tests,
since that's where it's used.

Depends-On: I7c22e23b73ddfc18ee28e87d34d1988417b49ccb
Change-Id: Ia27a0aa0633dcf48c1bab06b3c803f996eae9efa
2017-11-30 17:56:21 -06:00
Monty Taylor
535f2f48ff
Merge shade and os-client-config into the tree
This sucks in the git history for both projects, then moves their files
in place. It should not introduce any behavior changes to any of the
existing openstacksdk code, nor to openstack.config and openstack.cloud
- other than the name change.

TODO(shade) comments have been left indicating places where further
integration work should be done.

It should not be assumed that these are the final places for either to
live. This is just about getting them in-tree so we can work with them.

The enforcer code for reasons surpassing understanding does not work
with python setup.py build_sphinx but it does work with sphinx-build
(what?) For now turn it off. We can turn it back on once the build
sphinx job is migrated to the new PTI.

Change-Id: I9523e4e281285360c61e9e0456a8e07b7ac1243c
2017-11-15 09:03:23 -06:00
Monty Taylor
a4ee1a3f09
Merge tox, tests and other support files
Change-Id: I5a4759e36089f1f4fab0c75412c94d051d8b16a7
2017-10-04 14:51:08 -05:00
Monty Taylor
65293358a0
Move shade and os-client-config python content
Make shade be openstack.cloud and os-client-config be openstack.config.

Change-Id: I1d28be82a72cc1a30d6be306257fc1f0736ed604
2017-10-04 12:39:43 -05:00
liuxiaoyang
f18dc29eb0 Add doc8 rule and check doc/source files
doc8 is a linter for documents and used in openstack-manuals.
It is better to enforce document linters for simple checking.
This change is to add doc8 in tox file and fix line too long
in some files.

The current rules are as bellow:
- invalid rst format - D000
- lines should not be longer than 79 characters - D001
  - RST exception: line with no whitespace except in the beginning
  - RST exception: lines with http or https urls
  - RST exception: literal blocks
  - RST exception: rst target directives
- no trailing whitespace - D002
- no tabulation for indentation - D003
- no carriage returns (use unix newlines) - D004
- no newline at end of file - D005

Change-Id: I5b409fbfd95e05921310c6ecf4afea0220fb0bf0
2017-08-23 08:27:31 -04:00
Vu Cong Tuan
a66826ee7b Remove support for py34
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.

Change-Id: If2aba189704c310ea4fcb805589e2732a525e992
2017-06-07 10:38:31 +07:00
tengqm
ccb5582717 Add more server operations based on Nova API
This patch adds some more APIs to the Nova server resource.

Change-Id: Ic1caeda91bf4e95d4488b009f2d7e9fe14c23649
2016-12-06 20:43:33 -05:00
Tony Xu
79de7d9dd4 Add Python 3.5 classifier and venv
Now that there is a passing gate job, we can claim
support for Python 3.5 in the classifier.
This patch also adds the convenience py35 venv.

Change-Id: I5c5cdf59c32052e051fe3c586074aec7c5f2347f
2016-10-25 22:38:40 +08:00
Terry Howe
e2bbb78603 Remove openstack/common from tox.ini
The openstack/common files were removed a long time ago from
this project.

Change-Id: I8b473390510e3e5b15158780c0079c4c93e16c2a
2016-04-25 06:18:52 -05:00
Ankit Agrawal
4236c93750 Fix coverage configuration and execution
A configuration error prevents the successful creation of code
coverage. This patch corrects the .coveragerc omit setup and the
tox package name generation.

Closes-Bug: 1489164
Change-Id: I172708fe9048ed6208eb404974a5fa2e42bb810a
2016-03-14 07:34:53 +00:00
Everett Toews
7e98020b83 The Compute User Guide
The beginning of the compute user guide.

This also begins the simplification of the examples, makes them
more specific, and adds testing.

Change-Id: Ic4bac2fe30601c196b03ce73b2dd04a916231f33
Partial-Bug: #1487269
Partial-Bug: #1419012
Partial-Bug: #1466180
2015-10-01 21:50:49 -05:00
Brian Curtin
f956917c0d Add tox targets for functional testing on 2 and 3
Previously, the functional tests would run using the `python` in your
environment, which was 3 for myself and 2 for most others. We should
really be testing on both versions as we do for unit tests. A change to
the gate will follow this.

Change-Id: I2bd2664018c135593a96fd6ba5741279da772e76
Closes-Bug: 1489935
2015-08-28 14:16:05 -05:00
TerryHowe
9157aa372f Drop py33 support
Change-Id: I3d36d64dbb58aaa44152c4643ab51a0c82657d06
2015-07-17 11:39:43 -06:00
TerryHowe
9da163ac75 Remove requirements.txt from tox.ini
From lifeless: pbr reflects the package dependencies from
requirements.txt into the sdist that tox builds.

Change-Id: I0590548763d27a8806cd1e0e5c3f2df95cda2bc7
2015-07-17 11:16:29 -06:00
TerryHowe
785d3f1d3a Use ostestr for tests
The ostestr command has nicer output and it seems like it is going
to have better filtering.

Change-Id: Ia0210b52dee4d1bf56e590e85bbb3ff73d4c0573
2015-06-22 10:57:39 -06:00
Jenkins
e4a05c82a0 Merge "Add comment for tox coverage failure" 2015-06-01 19:05:34 +00:00
Jenkins
2c09af99c5 Merge "Add coverage-package-name to tox.ini for coverage" 2015-06-01 18:40:18 +00:00
TerryHowe
ed2f51dd1d Add comment for tox coverage failure
Change-Id: I035d7ccabf2b0591d7795ea6a315ac3b420e6f9f
2015-06-01 12:35:11 -06:00
Terry Howe
575155b738 Set OS_CLOUD for functional tests
Change-Id: Ie12e31bc02ba9793f3e17004ee9046cf1050c40d
2015-05-20 01:21:29 +00:00
Brian Curtin
16717fa476 Remove httpretty
This temporarily comments out httpretty-using tests in object_store so
that flakiness in py34 test setups in CI stop getting in the way. Once
https://review.openstack.org/#/c/178302/ lands the uncommented tests can
just be deleted and be written as any other tests are.

Change-Id: Ica348ce1f7640aa4bae09c68246e28ba71b42662
2015-05-14 11:05:24 -05:00
Brian Curtin
657f608ea0 Temporarily work around httpretty again
Change-Id: I6750586bebc4b87a709954e9d832abc79cfb33b5
2015-05-12 14:55:34 -05:00
Everett Toews
22bc68ebfb The first functional test
Just implementing a single functional test to start things off.

This test introduces a new test dependency on os-client-config.
os-client-config is used to configure the SDK to run its functional test
on a particular cloud.

To run the functional tests do a

    tox -e functional

Unit tests continue to be run the same way as always.

Change-Id: Id1e8233c5e366e6ec864fb435f7f3cbf290ffae0
2015-04-14 12:01:54 -05:00
Brian Curtin
fdc3ea98c1 Adjust httpretty inclusion
Although we're removing httpretty, it seems like Gerrit is no longer
honoring our fixgates.txt file, so I've included httpretty back in
test-requirements now that the versions we need to skip are skipped
there.

Change-Id: I246fcbc40570331cce1bff8dc5717fe3bacb5e40
2015-03-23 12:31:36 -05:00
Brian Curtin
b9d9934686 Remove py26 jobs
Per discussion on 1428346

Change-Id: I02d8375c7109be1f5499a4871039e37ffaa128c7
Closes-Bug: 1428346
2015-03-04 21:17:44 -06:00
TerryHowe
8070f00b4a omit 0.8.7 httpretty
Change-Id: I7f80b0693b1b44cbac51898b9427995075239138
2015-02-23 14:12:51 -07:00
Terry Howe
26605953be Remove flake/pep8 ignores
These ignores are no longer needed.

Change-Id: I1b15403f79b9038c77786fe0262a421f7d5dd737
2015-01-26 12:27:53 -07:00
Brian Curtin
a7a0219b77 Add coverage-package-name to tox.ini for coverage
Recent pbrs support a coverage-package-name argument which allows you to
explicitly specify the package name to test coverage of. By default it
takes the project name (python-openstacksdk) and splits the "python-"
prefix off, leaving it to check coverage of the nonexistent
"openstacksdk" package. After this, "tox -e cover html" works and drops
the results in a cover/ folder under root.

Change-Id: I55e3fb274158aa37938329f2153c5c9597e64915
2014-11-17 16:29:26 -06:00
Terry Howe
7beca88793 Reverse order of tests to avoid incompatibility
If py26 tests are run first, there is some incompatibility in the
.testrepository that breaks several tests.  To get around this, you
need to run the py33 tests first.  This change was made over in the
cliff project.

Before:

    (.venv)terry@brat:~/hp/sdk$ rm -rf .testrepository/
    (.venv)terry@brat:~/hp/sdk$ tox
      ...
      py26: commands succeeded
      py27: commands succeeded
    ERROR:   py33: commands failed
    ERROR:   py34: commands failed
    ERROR:   pypy: commands failed
      pep8: commands succeeded

After:

    (.venv)terry@brat:~/hp/sdk$ rm -rf .testrepository/
    (.venv)terry@brat:~/hp/sdk$ tox
      ...
      py33: commands succeeded
      py34: commands succeeded
      py26: commands succeeded
      py27: commands succeeded
      pypy: commands succeeded
      pep8: commands succeeded
      congratulations :)
    (.venv)terry@brat:~/hp/sdk$ 

Change-Id: I64925097ce003659c4daa0e105bd06dc30726921
2014-10-17 14:45:52 +00:00
Terry Howe
60bca52009 Add docs environement to testing interface
As per the governance resolution https://review.openstack.org/119875

Change-Id: I3885e3684eef748831d97718bf41958be3a7d4fd
2014-09-09 16:50:35 -06:00
Jeremy Stanley
220072c2fe Work toward Python 3.4 support and testing
Change-Id: I450c86e62d6d1da8292e22d81dfcaf7ebbeb1942
2014-09-03 19:07:44 +00:00
Terry Howe
cd0e1eed55 H405 activate
Activate H405 tests.

Change-Id: I50266114b4fec3cfeeb86b44fc555d20d76ebca6
2014-07-03 20:46:12 -06:00
Alex Gaynor
e5d07e43e2 Remove a now unused flake8 exclude directory
Change-Id: I325c8e516d4b8c0868e703524aef9aa2b885203b
2014-06-12 10:49:07 -07:00
Alex Gaynor
7d8c633341 Sync hacking requirement with global requirements
Change-Id: I366e52e84105d319064ca29ed4aaf2b61b12e0cc
2014-06-11 11:00:42 -07:00
Alex Gaynor
1d4c9ecb30 Removed now unnecesary workaround for PyPy
Change-Id: I793108170a4fa847d351cf605bf2d01b0dd46822
2014-05-31 21:41:21 -07:00
Dean Troyer
8b43d8ae8e Fix temporary pypy gate issue with setuptools
Change-Id: I56e187a15768c507c5fd9eee7b9fc408a5715a95
2014-03-21 08:44:40 -05:00
Alex Gaynor
83ec5d3047 Remove locale overrides in tox
This is being done in all OpenStack projects.

Change-Id: I0000a9b8e35089dfb7683f21c718586a023a778d
2014-02-09 22:19:40 -08:00
Alex Gaynor
fe57620045 Made tox -e pep8 passed. Also made git review work
Two elements to this: make the existing code pass, and skip the
api_strawman/ directory.

Change-Id: Ic85067bdd63337e135f054c9a28e46683c46656c
2014-01-28 09:20:44 -08:00
Jesse Noller
e0418241a3 setting up the initial layout; move the api proposals to api_strawman
Change-Id: I7c933d5e023c2a98a64aa90ed209f1e25d07f0d9
2014-01-24 22:58:25 -06:00