Commit Graph

142 Commits

Author SHA1 Message Date
Dirk Müller 6d55b2f165
Allow suse_py311 to be selected as template
Change-Id: Ia4705adff71255974bf1b5da280256611b62bfee
2024-01-07 14:44:35 +01:00
Zuul e1f682cd17 Merge "Allow selecting suse_39 template" 2023-03-03 21:24:36 +00:00
Dirk Müller b9145d5d4d
Allow selecting suse_39 template
Change-Id: Ib16122c5b25cf8f83f27a83ef49ee75643bbc7ba
2023-03-03 21:51:42 +01:00
liyou01 a80cdaa54c 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

Change-Id: I46ab12465f3e0ffa9fd309a8e770ba956151989e
2022-09-12 15:25:58 +08:00
Dirk Müller 20abec6018
Switch to Python3 zed unit test jobs
Ensure unit testing is in place for all of the tested
runtimes for zed.

Change-Id: If17bc27f244aea3a0989873b99024f15e224e7d3
2022-05-09 12:32:53 +02:00
Ghanshyam Mann d9fdb64e76 [community goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html

Story: #2007236
Task: #38550
Change-Id: I3ef3537f714d88098fa3282ae8bb97d6e49892ac
2021-08-30 17:13:52 +00:00
Zuul 9fc002e8c5 Merge "Use py3 as the default runtime for tox" 2021-08-27 07:20:09 +00:00
Zuul d86f276931 Merge "drop mock from lower-constraints and requirements" 2021-08-27 07:18:15 +00:00
Javier Pena 3bbb1c7a25 Add support for Jinja2 3.x filters
Jinja2 3.0 has deprecated the contextfunction() and contextfilter()
filters, and recommends to use pass_context() instead [1].

This commit adds support for pre-3.1 and 3.1 versions of Jinja2.

[1] - https://jinja.palletsprojects.com/en/3.0.x/api/#jinja2.contextfilter

Change-Id: Ic011f19ee0f96339ffff7b316b40663e840c0529
2021-08-25 13:29:42 +02:00
Zuul 19e663e4c8 Merge "Switch to OFTC" 2021-08-02 07:43:51 +00:00
Dirk Mueller 48b7cd0dc6 Switch to OFTC
Change-Id: I07eb319eb3332b80f05b05dd963c640b29afde55
2021-06-07 10:31:23 +02:00
zhangboye 548bd54370 Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update
this at each new cycle.

Change-Id: Ic76d58132d5feef008a16f13b1c7890d8a68c93b
2021-04-20 14:47:12 +08:00
Zuul 6c13cc24f1 Merge "Correct a typo in the document" 2020-10-02 08:29:15 +00:00
Javier Pena eb69d47bab Improve distro detection for recent Fedora releases
On recent Fedora releases (seen with 32), /etc/os-release does not
include the ID_LIKE variable. This causes renderspec to fail when
run using Python 3.8.

This commit adds another identification method for those cases, using
the ID variable. It also makes sure to avoid using
platform.linux_distribution in Python 3.8 or later.

Change-Id: Idc84af8b2e7d2b4aca517c20af052dfcac55366c
2020-09-16 18:46:37 +02:00
zhaoleilc d26ae18b10 Correct a typo in the document
This patch changes 'prefered' to 'preferred'
in the document

Change-Id: I490f415651cafa771c8ad26cb4e740e983e130ae
2020-07-23 17:26:59 +08:00
Hervé Beraud cb7b813cfe drop mock from lower-constraints and requirements
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints and requirements.

These changes will help us to drop `mock` from openstack/requirements

Change-Id: I4d7b11ac4ac5725ad0605b03ddabed22bad8d0d3
2020-06-09 12:07:49 +02:00
Andreas Jaeger 8e84ccdcbd Switch to newer openstackdocstheme version
Switch to openstackdocstheme 2.2.1 version. Using
this version will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

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.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I6d6ed7c7db614dd1b5a678d496d6d8790383d8e9
2020-06-01 15:24:41 +02:00
Andreas Jaeger ece74aaa98 Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I38ea03576c19cb008f5a07be3527535b4652a4c5
2020-04-05 10:43:59 +02:00
Dirk Mueller 19108775be Python 3.8 tests are passing, declare as supported
Change-Id: Ic45017d3a275db5d3386e70f855770e93d69f9c4
2020-03-20 21:20:04 +01:00
Thomas Bechtold 50bea70bb5 Fix urllib.urlopen for python3
Current code is broken on python3. We need to use urllib.request to
use urlopen().

Change-Id: I9f64c22311102c7a67d49b211be91d62b3170a47
2020-03-17 06:21:22 +01:00
Dirk Mueller 1022a8cca5 Remove usage of platform.linux_distribution
This function was deprecated and is removed in Python 3.8.

We can't remove all of the code as the unit tests are relying
on being able to mock this function.

Change-Id: If2bc9ee174fb65b81de012cb911fc8c2bd260d27
2020-03-14 16:39:48 +01:00
Ghanshyam Mann 809e959b14 Set ignore_basepython_conflict in tox
Ida03f9cca7d276ed8a449d21c0ba58330916e7d9 defined
the basepython in common place but
did not set the ignore_basepython_conflict to True
in tox to avoid the wrong version in py env and
error in future.

Change-Id: I398df150ebf6e5ec9bc34344f0f95a6eb2d0244d
2020-02-15 17:24:02 -06:00
Zuul a9241367d7 Merge "Drop py27 support" 2020-01-21 10:14:29 +00:00
Sean McGinnis c9a5abaa8e
Drop py27 support
This bumps jobs to the current usurri template and drops compatibility
code for Python 2.7.

Change-Id: Ida03f9cca7d276ed8a449d21c0ba58330916e7d9
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-01-12 02:28:31 -06:00
Sean McGinnis dd2c0fca02
Drop use of unittest2
unittest2 was needed for Python <= 2.6 and hasn't been needed for quite
awhile now. See unittest2 note at:

https://docs.python.org/2.7/library/unittest.html

This cleans up use to just use the standard unittest package.

Change-Id: I54c6ada7c4ad7147bf7f8547e249eb6998a05145
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-01-12 02:18:24 -06:00
Corey Bryant f74f393218 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Iec17f01beed324e1481391204533eeafaf6253e3
Story: #2005924
Task: #34235
2019-07-05 15:22:33 -04:00
Thomas Bechtold 8083f1ed3c Add contextfunctions 'py2' and 'py3'
Both are shortcuts to 'py2pkg' with specific py_versions set.
This is useful when defining BuildRequires that are eg. python3 only.

Change-Id: I273919cf4f47bf9859d71bc216cbf96e82a2a6f7
2019-07-03 14:30:00 +02:00
Javier Pena 10dba17495 Fix _pymod2pkg_translate when skip_pyversion is None
[1] ensured proper order for py_vers when using pymod2pkg, however
it did not consider the chance that skip_pyversion is None. In this
case, it failed with:

TypeError: argument of type 'NoneType' is not iterable

This patch ensures that it works even when skip_pyversion is None.

[1] - https://review.opendev.org/662719

Change-Id: Iac7dda35b44edf4a7af31129d9055280aa37df01
2019-06-06 11:50:07 +02:00
Javier Pena 110c29133b Preserve list order in _pymod2pkg_translate
Previously, we converted the py_versions list into a set to substract
the versions to be skipped. However, Python does not guarantee the
item order in a set, so some unit tests could fail when the order
was reversed from ['py2', 'py3'] to ['py3', 'py2'].

This change fixes that by making sure the order is maintained.

Change-Id: I5bcdfa3a3dfe2583cc9653d6c87f6c24464b60a5
2019-06-03 11:09:28 +02:00
Dirk Mueller 91fa3948ec Switch to TOX_CONSTRAINTS_FILE
This is a slightly more accurate naming of UPPER_CONSTRAINTS_FILE
whic is still supported.

Change-Id: Ie764618004b52449f909afbb075d2571b83e32a2
2019-05-23 21:41:06 +02:00
Dirk Mueller 4eee4e9285 Update flake8 version to latest release
Doesn't require any modifications, so newer is better.

Change-Id: I7c81c1ab4914392fbdfd985604b79b1b945a9f59
2019-05-23 01:44:29 +02:00
Dirk Mueller 020c6690a3 Follow opendev rebranding
Change-Id: If01eacca0a3f209a5fa2b684224107495aa6595a
2019-05-23 01:44:16 +02:00
Dirk Mueller 32f9d1f049 Switch to openstackdocstheme
With the recent Sphinx release the previously used oslosphinx
theme is no longer functional. It is fine to switch over
to the more openstack standard openstackdocstheme which is
maintained and working with the new Sphinx.

Move doc-specific requirements for the docs process into
a separate doc/requirements.py and remove it from test-reqiurements.

Change-Id: I075a02bb9efbfc9c39277bc8ce7330e20bf91605
2019-05-21 09:19:42 +02:00
OpenDev Sysadmins adcaafe9f2 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:45:17 +00:00
huang.zhiping dcc565f858 Update home-page
Change-Id: I9738d30bc2089533dfc6623ba934ba6d5569acb8
2019-01-12 09:53:20 +00:00
Dirk Mueller d9682e124f Move linter dependencies out of test-requirements
These requirements are expanded into the sdist tarball,
however they're not needed for building or runnig tests.
Move them into the pep8 target.

Change-Id: Ice851200a45538be4dd27736674fcd7315ed87a3
2019-01-02 22:19:07 +01:00
melissaml a703174020 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I988c9cf863b56a38b758409f3168c539431cae1a
2018-12-14 20:05:54 +08:00
98k dafe4b4edf Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I7e7d45f9d66cdb383044e862a69c09047225ecbb
2018-12-04 09:00:28 +00:00
Zuul 0b3306ce25 Merge "Switch to stestr" 2018-11-23 09:14:59 +00:00
Vu Cong Tuan fd4d10d732 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: I61dca6dfd7f6227731fdd6902bdd79b5ba0fb995
2018-11-23 01:42:49 +01:00
qingszhao 26e80e1778 Removed older version of python added 3.5
Change-Id: I3ee357028686bef85dc494427c578c688f492962
Closes-Bug:  #1801855
2018-11-20 06:28:26 +00:00
qingszhao c1ad5f3aa6 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Id0c9854f5515ee76339243482ddbba14ddd299a4
2018-09-29 20:33:24 +08:00
Doug Hellmann 2f52be024b add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I1a6b649f0e87e7e19d89e1eeacf38d722d8e69d4
Story: #2002586
Task: #24323
2018-08-31 10:10:31 -04:00
Doug Hellmann ea25cb3f30 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ib5893f970c0bd8fb2154132d0abf65eb6571b4d7
Story: #2002586
Task: #24323
2018-08-31 10:10:29 -04:00
Doug Hellmann 7f1225d616 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I3cdb7f54d4d550ad27d959acd47efe723bdd12c6
Story: #2002586
Task: #24323
2018-08-31 10:10:04 -04:00
melissaml 27f27463dc Update links in README
Change the outdated links to the latest links in README

Change-Id: I955af221ac721d600b5bbbe1d2d3fe664ae15902
2018-03-02 17:58:21 +08:00
OpenStack Proposal Bot 1cc06fc649 Updated from global requirements
Change-Id: I6d49220f84063183f434bff7300f98bbd0994f18
2018-01-18 03:33:21 +00:00
Andreas Jaeger 5da2cb66a1 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.

For this, move bandit to test-requirements.txt.

Change-Id: If1ca9278e104c519a1aff88ed9ff27e120e34aff
2017-12-20 10:25:12 +01:00
Zuul 825098ba42 Merge "Update to a somewhat recent flake8 version" 2017-11-23 15:57:52 +00:00
OpenStack Proposal Bot c3e699d0e6 Updated from global requirements
Change-Id: I5ab29b2fef7bf328d1077e64529fe95833eb83e1
2017-11-16 11:27:39 +00:00