Commit Graph

292 Commits

Author SHA1 Message Date
Zuul 22e840efa5 Merge "Bump hacking" 2024-02-06 16:27:07 +00:00
Takashi Kajinami c8d19b3ebb Bump hacking
hacking 3.0.x is too old.

Change-Id: I5d1dd13270c711822a12918d24eb26e30febd2a3
2024-01-25 12:31:06 +09:00
Ghanshyam Mann 42b80620c0 Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg

Change-Id: I48f4e136566139b06757643847e66170ed944102
2024-01-11 16:20:23 -08:00
Takashi Kajinami cd5a039df3 Fix python shebang
The current shebang requires /usr/bin/python which is not available in
Ubuntu Jammy by default.

Change-Id: If112e3f4389fab8e5954ddf85a00a0615233740c
2023-10-17 16:02:54 +00:00
Ghanshyam a85b2e5299 Revert "Moves supported python runtimes from version 3.8 to 3.10"
This reverts commit 9739bd0047.

Keeping Python 3.10 in setup.cfg classifier. 

Reason for revert:

Needed-By: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175

TC has been discussing about re-adding the python 3.8
testing in current master 2023.2 release testing.

- https://meetings.opendev.org/meetings/tc/2023/tc.2023-04-25-18.00.log.html#l-191
- https://lists.openstack.org/pipermail/openstack-discuss/2023-April/033469.html

While governance changes are under review, TC agreed to add py3.8 testing
so that we do not see more project/lib dropping python 3.8 and make them
uninstalable on python 3.8

- https://meetings.opendev.org/meetings/tc/2023/tc.2023-05-02-18.00.log.html#l-17
- https://review.opendev.org/c/openstack/governance/+/882165

Also adding py3.8 testing back in job https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175

Change-Id: Iad5f31553c19f243be487fdcf8cadd9812839c51
2023-05-04 20:21:29 +00:00
Hervé Beraud 9739bd0047 Moves supported python runtimes from version 3.8 to 3.10
Within 2023.2 python version 3.9 and 3.10 are the
supported python runtimes [1].
[1] https: //review.opendev.org/c/openstack/governance/+/872232

Change-Id: I26d45090b0198545bf88d013e81f8c35f1ed1a11
2023-04-10 01:55:26 +00:00
niuke 2d9e9cec1e Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: Iae55c1cfdccccf7140d86819b4a7cbb3835c39a8
2022-07-27 09:42:32 +08:00
Hervé Beraud 5a046ea4c9 Drop python3.6/3.7 support in testing runtime
In Zed cycle testing runtime, we are targetting to drop the
python 3.6/3.7 support, project started adding python 3.8 as minimum,

example nova:
- 56b5aed08c/setup.cfg (L13)

Also moving zuul's job to `openstack-python3-jobs`.

Change-Id: I7997e1dc076ba4b9a385b96bfc97b7bf1c8aedd0
2022-05-09 15:11:20 +02:00
tushargite96 39e580a1e2 Add Python3 yoga unit tests
This patch updates the project template to use the Yoga project template
to ensure unit testing is in place for all of the tested runtimes
for yoga. For more please refer to [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I9f89b5c3bf01f6dedde418c45bcf63b3e17db3af
2022-03-02 22:11:42 +05:30
Jeremy Stanley 02c638fda1 Correct the tox option for skipping sdist generation
The tox option to skip source distribution building is skipsdist,
but this seems to be often misspelled skipdist instead, which gets
silently ignored and so does not take effect. Correct it
everywhere, in hopes that new projects will finally stop copying
this mistake around.

See https://tox.readthedocs.io/en/latest/config.html#conf-skipsdist
and https://github.com/tox-dev/tox/issues/1388 for details.

Change-Id: Id20f1ee2725533e2a06dc6798ead3cc9d70c35eb
2021-06-17 17:05:28 +00:00
Hervé Beraud 201b537f95 Moving to OFTC
http://lists.openstack.org/pipermail/openstack-discuss/2021-May/022724.html

Change-Id: I3db9febff755b9f009489b6c1659de103dcbdbbf
2021-06-04 13:56:58 +02:00
yangyawei 7c67a4d9ca Switch testing to Xena testing runtime
Upating the tetsing template to Xena testing runtime:
https://governance.openstack.org/tc/reference/runtimes/xena.html

Change-Id: I9972556cff2132013f7de020eb9ef46584f1cbbb
2021-05-17 18:01:47 +08:00
yangyawei 8dc78f0da1 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I9496ef8ac2349e9bc5a3a426fb0fed4b25b95090
2021-05-14 17:38:33 +08:00
xuanyandong f9ed48e920 remove unicode from code
Change-Id: I2384088d8bd5fb483ed0f9239f1e30ba1ab0229e
2021-01-03 16:22:19 +08:00
xuanyandong 24c7276a4b Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I4c0088e31a8f8e3120a473f0e362445f5b3fe5cf
2020-12-31 09:16:14 +08:00
haixin 10cb40e016 Remove all usage of six library
Replace six with Python 3 style code.

Change-Id: I559fcf1696c2ce62944b501d54695f8d205db0cf
2020-10-06 16:38:22 +08:00
maaoyu f64c1ea5b3 Remove install unnecessary packages
The docs requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: I2f6d873d299c168177ea94259c6b5b590011d3d9
2020-09-23 14:54:22 +08:00
Zuul 4bfdc64960 Merge "Align contributing doc with oslo's policy" 2020-06-30 16:03:57 +00:00
Zuul d1338f73f4 Merge "Ignore a struture error (E010) on bashate" 2020-06-23 18:07:04 +00:00
melissaml be7ed3d38d Fix pygments style
New theme of docs respects pygments_style.

more info: http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I1a8c786654abe82f9de159c0b2b7187ce5067743
2020-06-04 15:14:29 +08:00
Hervé Beraud 8ff656ec24 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: I602a07fc4517ee053c4bfc25920209a2e7ce4f5f
2020-06-02 20:41:13 +02:00
Andreas Jaeger 612d9b3194 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.0 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

Depends-On: https://review.opendev.org/728938
Change-Id: I53dfc4b7d9fff5f6d8fce02728bc91dada252ec7
2020-05-18 21:02:09 +02:00
Andreas Jaeger 3f09ba20c2 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Change-Id: Ifda9fc359720eaa21bd0135aac1db6047115cee5
2020-05-12 14:17:20 +02:00
Hervé Beraud f710b36cf1 Ignore a struture error (E010) on bashate
It could be less annoying to ignore the E010 [1] and allow us to don't fight
against base syntaxe error with "for do" statements by avoiding
semicolon.

Also these changes add some comments about the ignored rules.

[1] https://docs.openstack.org/bashate/latest/readme.html#structure-errors

Change-Id: Ic16027bf97eb93d25fbfed21843f9df855571fa9
2020-05-07 13:58:44 +02:00
Hervé Beraud b1ee6b6eaf Align contributing doc with oslo's policy
Related to:
- https://review.opendev.org/#/c/723044/
- https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html

Change-Id: I71de5a04b6e11ba6b1370978817adb56c8191715
2020-05-04 18:33:36 +02:00
Hervé Beraud fb9efaa018 Make oslo.tools more usable by newcomers
These changes make oslo.tools more user friendly by documenting tools
introducing commands shortcut etc...

Introduced changes:
- add doc and build it with tox
- add tox and shortcut commands
- centralize tools
- launch zuul jobs
- apply pep8
- apply bashate

Change-Id: I0f948c9f507b8c951c5748265699a2f515350ff9
2020-03-30 11:31:52 +02:00
Hervé Beraud 94f22e342a Adding gitignore rules
Change-Id: I2671b807f5ea08a4644a5b791b10307a988b1cd9
2019-09-23 12:44:09 +00:00
Scott Little 6b06d7d7e1 filter_git_history.sh passes broken parent-filter to git filter-branch
Problem:
    filter_git_history.sh, when passed a list if directories to filter,
 sometimes passes a bad arguement to git filter-branch.

e.g.

filter_git_history.sh <dir1> <dir2> <dir3>

results in ...

git filter-branch ... --parent-filter '<bad arg>' ...

resulting in logs ....

Rewrite 1a32385367efab7a2bccf63981993b322e0d4b4c (1/866)/usr/lib/git-core/git-filter-branch: line 340: [: missing `]'
/usr/lib/git-core/git-filter-branch: line 341: -o: command not found
Rewrite 3cd12006bb6e7c9157f6b0f82a10d0c8cd63e334 (2/866)/usr/lib/git-core/git-filter-branch: line 340: [: missing `]'
/usr/lib/git-core/git-filter-branch: line 341: -o: command not found

The issue appears to be carriage returns in variable 'set_roots'.
Specifically the expresion within the '[' ']' pair seems to be incompatible with
carriage returns.

If I run with bash debugging turned on, I see the for loop at
line 45 iterated twice, producing the following output.

+ set_roots='
if [ 1 -eq 0  -o "$GIT_COMMIT" = '\''1232ac58be82479ddf1af7f7eb335103cb883356'\''
 -o "$GIT_COMMIT" = '\''ffe029ef99c501a0076ad6106a364bbb9c0d80ea'\''  ]; then
    echo '\'''\'';
else
    cat;
fi'

Note that there is a carriage return prior to the second -o clause.
My theory is that within git-filter-branch, bash is being invoked twice.

First call:
    if [ 1 -eq 0  -o "$GIT_COMMIT" = '\''1232ac58be82479ddf1af7f7eb335103cb883356'\''

resulting in:
    git-filter-branch: line 340: [: missing `]'

Second call:
     -o "$GIT_COMMIT" = '\''ffe029ef99c501a0076ad6106a364bbb9c0d80ea'\''  ]; then
        echo '\'''\'';
    else
        cat;
    fi

resulting in:
   git-filter-branch: line 341: -o: command not found

Other details:
   bash 4.3-7ubuntu1.7
   git  1:1.9.1-1ubuntu0.10

Solution
   Use 'echo -n' rather than 'echo' when constructing 'set_roots'.

Which results in ...

+ set_roots='
if [ 1 -eq 0  -o "$GIT_COMMIT" = '\''1232ac58be82479ddf1af7f7eb335103cb883356'\'' -o "$GIT_COMMIT" = '\''ffe029ef99c501a0076ad6106a364bbb9c0d80ea'\''  ]; then
    echo '\'''\'';
else
    cat;
fi'

The entire '[' ']' expression is on the same line, and the git-filter-branch go away.

Change-Id: I3a21fd0841f093495cf4727a9f5633a6f80c1690
Signed-off-by: Scott Little <scott.little@windriver.com>
2019-07-12 10:50:11 -04:00
Ben Nemec bcc255ccf3 Remove ping_me script
We've moved to managing the ping list in the meeting agenda on the
wiki instead. To avoid confusion, let's remove the old script. If
we find that we need to revive it in the future we can always pull
it from the git history.

Change-Id: I8e5c4efbc26110ae87aae7c4661f67bb1c5f9c26
2019-06-18 16:55:57 +00:00
jacky06 ea3a3b8054 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I225939b27efa6402abe7d9addce967c31d188a68
2019-04-23 13:25:40 +08:00
OpenDev Sysadmins 316284a192 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:29:42 +00:00
Dan Smith 7c6582221c Remove dansmith from ping_me.py
Change-Id: I4dc14e0e3e0c9ffb865e9c60292db968f1f3ae70
2019-04-01 10:13:00 -07:00
Ben Nemec 0dd7f4a3a2 Remove flaper87 from ping list
He is no longer working on Oslo and asked to be removed from the
ping list.

Change-Id: I3acaf3ebee07a7dfc78783f3d6fbe558130e8193
2019-03-25 16:55:21 +00:00
Ben Nemec 31f4e9f02a Unroll the ping list
The Python code defining the ping list has gotten a bit messy as
names are added or removed. Instead of trying to keep the formatting
updated, which is a waste of time since we reformat it on output
anyway, just make it a single vertical list that can be easily added
to or removed from.

Change-Id: I636944deb39b682abd29d741bfb9dff41dfb9bee
2019-03-25 16:53:41 +00:00
Ben Nemec a80ab52615 Include add/remove info in ping script output
People periodically ask about how to be added or removed from the
Oslo courtesy ping list. When generating the list, include a brief
informational message that explains this.

Change-Id: Ie6d600adfea42236b04e58a06854df162f18352e
2019-03-25 16:50:18 +00:00
Doug Hellmann 2f024bc8e0 remove dhellmann from meeting ping
I am unlikely to be able to attend meetings during the Train cycle.

Change-Id: Ic59ac1c59382ba748131d1eed6232e6b43a1c1b6
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2019-03-18 11:03:09 -04:00
Hervé Beraud ca098008e9 Add hberaud to ping list
Change-Id: Ief4d002919463ad8f96d02c32a7d0bc4db014ada
2018-10-15 17:39:04 +02:00
Zuul 4315e28baf Merge "Remove dead tooling" 2018-10-12 15:19:04 +00:00
Ben Nemec 07fc2f7d3f Add moguimar to ping list
We generally want all of the oslo cores to be in this list.

Change-Id: I961d681f0fe441520d1f94e2660a5b7b2baa82dc
2018-09-24 16:01:20 +00:00
Clint Byrum 46141e19b2 Remove spamaps from pings
I am no longer working on any oslo projects and thus don't need meeting
pings. Best of luck to those of you still maintaining some of my code.

Change-Id: I5a2775c0b63c47d0ecab43e26d3a2a0ea3b46048
2018-08-27 08:52:31 -07:00
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
Zuul 44c5fc75b6 Merge "Switch to stestr" 2018-07-13 16:24:10 +00:00
Vu Cong Tuan 43f796058b Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I5f07c8b8fb998a7c333e076a3f7c0de65568068c
2018-07-03 13:39:32 +07:00
Nate Johnston 3ff7f15740 Add njohnston to ping_me.py
I am the new Neutron-Oslo liaison, and I would like to participate in
your lovely notification tool.  Thank you!

Change-Id: Idd7225e708c24af337409185e41dec3c65d142d5
2018-06-25 16:48:44 -04:00
Zuul ab5008d844 Merge "Fix command error in filter" 2018-04-28 00:08:32 +00:00
Dean Troyer 5c0df7ef13 Fix command error in filter
An apparently missing space in an if condition causes a command not
found error.

Change-Id: I40e2ea3dbe6f2ce507e9aaa7a563054d009f9c0b
2018-04-27 17:25:48 -05:00
melissaml a770c21c06 Trivial: Update pypi url to new url
Pypi url changed from [1] to [2]

[1] https://pypi.python.org/pypi/<package>
[2] https://pypi.org/project/<package>

Change-Id: I2c0bf3844e9c56f78269ac1746c780b640dd1e9c
2018-04-21 13:27:41 +08:00
Ben Nemec 3a0fb60b33 Add stephenfin to the ping list
Change-Id: Id9dda995a7cf4d6cb8cd7446a24cc73b65577e96
2018-04-09 15:42:29 +00:00
Ben Nemec 18c2ead0ee Clean up ping list
There are a number of people who are no longer active on OpenStack
and/or Oslo that are still being courtesy pinged for meetings.
Let's stop doing that.

This is probably not a complete cleanup, but it's a step in the
right direction.

Change-Id: I719b4ad605b52005394f823650230b906e7dbd13
2018-04-02 20:45:13 +00:00
Andrew Smith 559aee6cd7 Add to ping list
Change-Id: I2a1e4bfc924259bb9be3eb85042801f40c81c3e1
2018-04-02 13:00:23 -04:00