Commit Graph

950 Commits

Author SHA1 Message Date
Tony Breeds 37349c1ffa Retire Packaging Deb project repos
This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).

Change-Id: I6ca27a94cfb35256d71966ea300245365d210350
2017-09-12 15:59:39 -06:00
Akihiro Motoki 5fa587dfed Update the doc URL in the documents
Change-Id: I015a24d68138afb17ff3204be63603a48ff9b94f
2017-07-12 12:35:21 +00:00
Akihiro Motoki c4cdad7380 rearrange existing documentation to fit the new standard layout
Some minor formatting issues caused by openstackdocstheme adoption
in README.rst and HACKING.rst.

Note that the install instruction is part of README, so it is not split
out into a separate rst file (as suggested in the doc-migration spec).

Change-Id: Iac58eeb15921e9225a461e3b5b2f3bd7ac99f415
2017-07-12 12:35:21 +00:00
Akihiro Motoki 39271f9300 Switch from oslosphinx to openstackdocstheme
Change-Id: I4ab08cd976dda6b9deb5116a7ab9d3da91fe69da
2017-07-12 12:35:18 +00:00
Akihiro Motoki f45fe0a23b Turn on warning-is-error in doc build
pbr warnerrors is no longer needed in favor of
warning-is-error from Sphinx.

Change-Id: Ia39ca8f59aa360d428817efa7d7276d65818d671
2017-07-11 12:19:25 +00:00
Andrea Frittoli f733b3133e Add py3.5 support in setup.cfg
As defined in https://governance.openstack.org/tc/goals/pike/python35.html
Pike community goal for py35, adding py35 to setup.cfg.

Change-Id: I8fd5e405c24e7e7072d0bfa1defda11fdbe56e53
2017-04-06 10:03:03 +01:00
OpenStack Proposal Bot 635d5d34e6 Updated from global requirements
Change-Id: Ic8e9c791a84f066119b432417763cc4f706951ea
2017-02-10 05:46:55 +00:00
Ben Nemec 4576fdcfb9 Add explicit support for py35
This is what we're gating on, so we ought to have it in tox.ini.

Change-Id: I0e63ed95d98be7b6b7244ac608257c1b0d3b2d47
2017-01-20 15:48:10 +00:00
Cao Xuan Hoang 8ee5febf51 Remove support for py33/py26
Python 3.3/Python 2.6 is not supported from Mitaka, as per Infra.
This patch removes the support for the same.

Change-Id: Ib0c93920cc785b1f4708d6f8d3b75e775793ba6a
2017-01-19 09:34:41 +07:00
Andreas Jaeger e32cbcb5b1 Fix broken link
http://docs.openstack.org/developer/hacking/readme.html has a link
to http://docs.openstack.org/developer/hacking/setup.cfg that does not
exist. Remove the link, it's wrong useage of markup.

Change-Id: I361071bf637648920b8cbab7d1e390e41f051e44
2017-01-13 08:09:30 +01:00
Tony Breeds c82a0b0a33 Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: Id1d43700e2e02e956d34fe37c104433cff88d8f4
2017-01-03 13:53:58 +11:00
Tony Breeds 5917e798d7 Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.

This change adds constraints support by also adding a helper script to
edit the constraints to remove hacking.

Change-Id: Id01984f5a986cf84a8fff3f028bb6246364ea2ff
2016-12-20 15:22:54 +11:00
Jenkins 08782af869 Merge "Add a check to make sure the right assert* method is used" 2016-12-06 19:40:17 +00:00
OpenStack Proposal Bot 74ced1ac4f Updated from global requirements
Change-Id: I5159f2af29a9a0a836593c954c8c589ed99386e0
2016-12-05 18:38:58 +00:00
Ian Cordasco 206b421d0a Revert "local-check-factory CLI option"
This reverts commit e72ce1831a.

Change-Id: Ia1b042aa036787ba2dfa86f49b1cff65a4bd0faf
2016-12-05 17:31:03 +00:00
Boden R e72ce1831a local-check-factory CLI option
Today hacking only provides consumers specifying the local check
factory function via tox.ini (in the '[hacking]' section). While this works
fine in a number of cases, others need a way to specify multiple
check factories without using multiple tox.ini files.

For example, we'd like a library project to define a common set of hacking
check functions for consumers. Some of those factory functions
may register checks we want consumers to run in 'warn only' mode.
From a tox.ini perspective, we'd like to be able to do this:

[testenv:pep8]
commands =
     # run mandatory checks in fail mode
      flake8 --factory a.b.c.mandatory
      # run incubating checks in warn-only mode
      flake8 --factory a.b.c.incubating --exit-zero

Today the above isn't possible without 2 separate tox.ini files;
each to specify the local-check-factory. While we can use our
own flake8 extension [1], it would be better to have this
support built right into hacking enabling a broader set of use
cases.

This patch adds a CLI option called --local-check-factory that
allows consumers to pass a local-check-factory via CLI. If
specified on CLI, it overrides anything in tox.ini. Using this
patch consumers can achieve the use case noted above and this
should also be backwards compatible.

[1] https://review.openstack.org/#/c/350723/14/neutron_lib/hacking/checks.py@286

Change-Id: I26f68e11d21938a13974c4e7684eea604dfc2e69
2016-11-16 09:12:49 -07:00
Cyril Roelandt 65b4a038eb Add a check to make sure the right assert* method is used
It is recommended to use
assert{Greater,GreaterEqual,Less,LessEqual,Equal,NotEqual} rather than
assertTrue(comparison).

Change-Id: Idd57a5e7897b839707371033d7f25604d44e9cd9
2016-10-07 13:02:24 +02:00
Andreas Jaeger 6be124c025 Enable release notes translation
Releasenote translation publishing is being prepared. 'locale_dirs'
needs to be defined in conf.py to generate translated version of the
release notes.

Note that this repository might not get translated release notes - or
no translations at all - but we add the entry here nevertheless to
prepare for it.

Change-Id: I52264fdacde1a2e45d390afb681824b70b23f552
2016-10-06 20:21:28 +02:00
OpenStack Proposal Bot 206d40b894 Updated from global requirements
Change-Id: Idb8561199fdcd953172050e89df4c2eb4630cb6a
2016-09-28 16:51:05 +00:00
OpenStack Proposal Bot 2bbd00c53f Updated from global requirements
Change-Id: Icd47c13361fc7ed1759d6c97b07e53f30f40a686
2016-09-27 09:58:01 +00:00
Jenkins 6a669030c3 Merge "Add documentation about off-by-default options" 2016-09-06 13:20:51 +00:00
John L. Villalovos cd3a213adb Fix issues detected by pycodestyle
When doing a test using pycodestyle instead of pep8, a few errors were
reported.

Fix those errors so it passed the tests.

Change-Id: I8e280aeab0575bd5a0919cbe4b9292df51c987ed
2016-08-23 16:57:39 -07:00
John L. Villalovos aff899adb5 Add documentation about off-by-default options
Add documentation on off-by-default options and how to enable them.

Change-Id: I34fc44f92ac7e8e800b1d8d07914af62cb2679ae
2016-08-23 14:07:29 -07:00
Tim Burke 7c360d21c7 Add optional H203 to check that assertIs(Not)None is used
...instead of assertEqual(None, ...) or assertIs(None, ...) and their
negations.

Apparently that's a thing that people want? At any rate, 30+ projects
have this bug marked "Fix Released". However, without a check to keep
them from regressing, there is a long tail of follow-up patches that
distracts developers and reviewers from addressing user-facing bugs. See
the following Nova changes, spread out over the course of a year, for an
example:

    If3824356ddf4e6e2d91f6bc2fbfa41946d8463cc
    I09f38e219931e0d7ad27f04861d1ebbc3b5e2c5f
    Iee1379b941f93388900e89388676000b845fc8fc
    I0d38a82e78fbe94657ab9a71c08422007843d179
    I9316c0b125aa87b6ebfa996a559c3551093ea711
    I406ea23b0e78f45f16306813e4111a95716cd6b0
    Ic8cb1192e001409d827c8da55fe536681895944b

Add a check for it in the interest of not wasting reviewer time or
having more code churn than necessary.

Change-Id: Iad65cb6399f4f933cbd9f503c88ce144387d39b5
Related-Bug: #1280522
2016-08-15 18:50:16 -07:00
OpenStack Proposal Bot 2e1da1b546 Updated from global requirements
Change-Id: Iffbc1d61b0c5facf9ef45a9079a6dce54a936029
2016-08-11 17:46:51 +00:00
Cyril Roelandt a038160785 Add a check for delayed string interpolation
This is stolen from the Neutron checks, since this seems useful for all
OpenStack projects.

See the oslo i18n guideline:
http://docs.openstack.org/developer/oslo.i18n/guidelines.html

Change-Id: Ibeaa82b295e011d87db2a0c44186a106f8d4254d
2016-07-19 22:03:18 +02:00
Andreas Jaeger 912fabbf1a Fix releasenote building
Releasennotes build fails with:

WARNING: html_static_path entry
u'/home/aj/vcs/OpenStack/openstack-dev/hacking/releasenotes/source/_static'
does not exist
ERROR: InvocationError:
'/home/aj/vcs/OpenStack/openstack-dev/hacking/.tox/releasenotes/bin/sphinx-build
-a -E -W -d releasenotes/build/doctrees -b html releasenotes/source
releasenotes/build/html'

Add - like in other projects - the directory using a placeholder file to
make git happy.

Change-Id: Ic012f5d02dbe8ecea30b7c6a10a94199dc5e809f
2016-07-13 08:59:54 +02:00
Ian Cordasco c8f3bc26a2 Clean up check signatures
Flake8 3.0 enforces the check signature contract that was detailed in
2.x. To prepare Hacking for Flake8 3.0's release, we need to clean up
our signatures and stop requesting both logical_line and physical_line,
especially when we don't use both in each of those cases.

Change-Id: Id55eadb66599a9bf240c837dafa88737aa024a16
Closes-bug: 1597729
2016-06-30 06:40:29 -05:00
Nattaphoom Chaipreecha fa24ccae16 Fix Google Python Style Guide link.
Update the link, the current one is 404.

Change-Id: If37ffc98909e0c1fc8a320d62b18c64a8983a797
Signed-off-by: Nattaphoom Chaipreecha <attomos@gmail.com>
2016-06-26 00:30:54 +07:00
OpenStack Proposal Bot 13d02ec52f Updated from global requirements
Change-Id: I1d24b5268475d17eb121fc4332f937aed2f4e1bb
2016-06-21 17:57:30 +00:00
OpenStack Proposal Bot ab68df1354 Updated from global requirements
Change-Id: I84e8ad3c9e9413077c120fb37d78f5acbc3e5e2c
2016-05-30 00:31:55 +00:00
OpenStack Proposal Bot e141092524 Updated from global requirements
Change-Id: Iae42843ab9fc281e19c55865fc5a092fca75d77b
2016-05-26 16:56:00 +00:00
Tim Burke 1b446f4e56 Fix H703 test
Change-Id: I7cfc896381426b751569b7b856c68358a17eee62
2016-05-19 18:41:11 -07:00
OpenStack Proposal Bot 7284cb4dea Updated from global requirements
Change-Id: I71bd0e873a2ac70973a0e403d6ad52829520f51c
2016-05-16 16:34:46 +00:00
Jenkins c1bf3fa5a2 Merge "Add reno and release notes tracking" 2016-05-16 16:28:50 +00:00
OpenStack Proposal Bot 7d5947b37c Updated from global requirements
Change-Id: Ib6b65007eda14982f8f3cdb62823e2e850982cd5
2016-04-21 18:10:15 +00:00
Jenkins f77bf0ac83 Merge "Add support for PEP257" 2016-04-21 16:39:29 +00:00
Ian Cordasco 7e75793a5b Add reno and release notes tracking
This adds a placeholder file (like every other project has by default),
the source for the sphinx-generated release notes project, and the
appropriate requirements and tox environments.

Change-Id: I999b4f7014216361ba559158b13d776531dc8591
2016-04-21 09:19:03 -05:00
Jenkins 059ee83ad7 Merge "Updated from global requirements" 2016-04-13 14:41:00 +00:00
Jenkins 066b4653a5 Merge "Run all flake8 checks" 2016-04-13 14:40:50 +00:00
OpenStack Proposal Bot c3b03a9d50 Updated from global requirements
Change-Id: I41198b59b6d48b97badc1b7e87fd679152ec3bb3
2016-04-08 13:20:07 +00:00
Dougal Matthews 4cffaafa3c Update the assertRaises example to be more modern
Change-Id: I801877038adbefb263144df4eb9204dcd2367294
2016-03-08 12:27:38 +00:00
OpenStack Proposal Bot c11724e7fd Updated from global requirements
Change-Id: Ifea9955336655d4aa302af42e31f96fd5364bed2
2016-02-19 18:49:22 +00:00
Tim Burke b011ebb0e7 Run all flake8 checks
Previously, only H106 was being run.

Depends-On: I04b862ced4659dfeb3c515edb3b8fed36b5b086d
Change-Id: I76b5bbfee016ea25904a558c64a69b796d135f2d
2016-02-16 14:29:44 -08:00
OpenStack Proposal Bot b8e3ce2795 Updated from global requirements
Change-Id: I2f09468bc23078b3bc072333d8d0b5ec5fa1d6c8
2016-01-28 01:25:21 +00:00
Jenkins 8c66cb9e7d Merge "Updated from global requirements" 2016-01-25 15:50:02 +00:00
OpenStack Proposal Bot 44718ab1f2 Updated from global requirements
Change-Id: I4ca6470a6bc051c2b44e2810c62d018c96bf5681
2016-01-24 20:47:23 +00:00
Ian Cordasco 79ce68e9de Update flake8 requirement for 0.11.0
We need to update our flake8 dependency version so we can use
--allow-extensions to be used with our off-by-default rules.

Change-Id: I3171244a14ebc110f2b041b9db75499f007f472b
2016-01-21 19:54:32 +00:00
Jenkins 3208459594 Merge "Avoid git clone in integration test" 2016-01-18 18:07:37 +00:00
OpenStack Proposal Bot 1bfbe65189 Updated from global requirements
Change-Id: Ib961c445041811397ba9e0c25c293e90d6c7a5ea
2016-01-16 03:24:57 +00:00