Skip to content

Commit

Permalink
Traits 6.4.2 bugfix release (#1752)
Browse files Browse the repository at this point in the history
This PR (against the maint/6.4 branch) is aimed at a 6.4.2 bugfix
release.

Key changes:

- Backport PR #1746 
- Backport PR #1749 
- Update copyright headers and bring CI back to working state
- Update changelog, bump version for release.

The PR is pretty horrendous to review en masse thanks to the changelog
updates, but it should be possible to review it commit by commit.

@corranwebster Would you have bandwidth for review at some point? (Feel
free to unassign if not.)

---------

Co-authored-by: homosapien-lcy <102019577+homosapien-lcy@users.noreply.github.com>
  • Loading branch information
mdickinson and homosapien-lcy authored Aug 7, 2023
1 parent 7237633 commit 93583b9
Show file tree
Hide file tree
Showing 369 changed files with 461 additions and 515 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ jobs:
steps:

- name: Check out the release commit
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
if: runner.os == 'Linux'

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.8'

Expand All @@ -35,7 +35,7 @@ jobs:
python -m pip install twine wheel
- name: Build wheels
uses: pypa/cibuildwheel@v2.9.0
uses: pypa/cibuildwheel@v2.14.1
env:
CIBW_SKIP: 'pp*'
CIBW_ARCHS_LINUX: "auto aarch64"
Expand All @@ -55,10 +55,10 @@ jobs:
steps:

- name: Check out the release commit
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.8'

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run-core-traits-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11-dev']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install local package
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-style-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies and local packages
Expand Down
40 changes: 24 additions & 16 deletions .github/workflows/run-traits-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,37 @@ on:
- pull_request
- workflow_dispatch

env:
# Temporary workaround prior to release of Traits 8.0
# xref: enthought/traits#1742
ETS_QT4_IMPORTS: 1

jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11-dev']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Install Linux packages for Qt 5 support
- uses: actions/checkout@v3
- name: Install Linux packages for Qt support
run: |
sudo apt-get update
sudo apt-get install qt5-default
sudo apt-get install libegl1
sudo apt-get install libxkbcommon-x11-0
sudo apt-get install libxcb-cursor0
sudo apt-get install libxcb-icccm4
sudo apt-get install libxcb-image0
sudo apt-get install libxcb-keysyms1
sudo apt-get install libxcb-randr0
sudo apt-get install libxcb-render-util0
sudo apt-get install libxcb-xinerama0
sudo apt-get install libxcb-shape0
if: matrix.os == 'ubuntu-latest'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies and local packages
Expand All @@ -39,13 +45,15 @@ jobs:
- name: Create clean test directory
run: |
mkdir testdir
- name: Test Traits package
uses: GabrielBB/xvfb-action@v1
with:
working-directory: testdir
run: python -m unittest discover -v traits
- name: Test Traits typing stubs
uses: GabrielBB/xvfb-action@v1
with:
working-directory: testdir
run: python -m unittest discover -v traits_stubs_tests
- name: Test Traits package (Linux)
run: cd testdir && xvfb-run -a python -m unittest discover -v traits
if: matrix.os == 'ubuntu-latest'
- name: Test Traits package (Windows/macOS)
run: cd testdir && python -m unittest discover -v traits
if: matrix.os != 'ubuntu-latest'
- name: Test Traits typing stubs (Linux)
run: cd testdir && xvfb-run -a python -m unittest discover -v traits_stubs_tests
if: matrix.os == 'ubuntu-latest'
- name: Test Traits typing stubs (Windows/macOS)
run: cd testdir && python -m unittest discover -v traits_stubs_tests
if: matrix.os != 'ubuntu-latest'
7 changes: 3 additions & 4 deletions .github/workflows/test-documentation-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies and local packages
run: |
python -m pip install --upgrade pip
python -m pip install Sphinx enthought_sphinx_theme sphinx-copybutton
python -m pip install .
python -m pip install ".[docs]"
- name: Build HTML documentation with Sphinx
run: |
cd docs
Expand Down
44 changes: 24 additions & 20 deletions .github/workflows/test-from-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11-dev']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-architecture: [x86, x64]
exclude:
- os: macos-latest
Expand All @@ -22,20 +22,21 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Install Linux packages for Qt 5 support
- name: Install Linux packages for Qt support
run: |
sudo apt-get update
sudo apt-get install qt5-default
sudo apt-get install libegl1
sudo apt-get install libxkbcommon-x11-0
sudo apt-get install libxcb-cursor0
sudo apt-get install libxcb-icccm4
sudo apt-get install libxcb-image0
sudo apt-get install libxcb-keysyms1
sudo apt-get install libxcb-randr0
sudo apt-get install libxcb-render-util0
sudo apt-get install libxcb-xinerama0
sudo apt-get install libxcb-shape0
if: runner.os == 'Linux'
- name: Set up Python ${{ matrix.python-version }} (${{ matrix.python-architecture }})
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.python-architecture }}
Expand All @@ -48,17 +49,18 @@ jobs:
- name: Create clean test directory
run: |
mkdir testdir
- name: Test Traits package
uses: GabrielBB/xvfb-action@v1
with:
working-directory: testdir
run: python -m unittest discover -v traits
- name: Test Traits package (Linux)
run: cd testdir && xvfb-run -a python -m unittest discover -v traits
if: matrix.os == 'ubuntu-latest'
- name: Test Traits package (Windows/macOS)
run: cd testdir && python -m unittest discover -v traits
if: matrix.os != 'ubuntu-latest'

test-pypi-wheel:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-architecture: [x86, x64]
exclude:
- os: macos-latest
Expand All @@ -69,20 +71,21 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Install Linux packages for Qt 5 support
- name: Install Linux packages for Qt support
run: |
sudo apt-get update
sudo apt-get install qt5-default
sudo apt-get install libegl1
sudo apt-get install libxkbcommon-x11-0
sudo apt-get install libxcb-cursor0
sudo apt-get install libxcb-icccm4
sudo apt-get install libxcb-image0
sudo apt-get install libxcb-keysyms1
sudo apt-get install libxcb-randr0
sudo apt-get install libxcb-render-util0
sudo apt-get install libxcb-xinerama0
sudo apt-get install libxcb-shape0
if: runner.os == 'Linux'
- name: Set up Python ${{ matrix.python-version }} (${{ matrix.python-architecture }})
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.python-architecture }}
Expand All @@ -95,11 +98,12 @@ jobs:
- name: Create clean test directory
run: |
mkdir testdir
- name: Test Traits package
uses: GabrielBB/xvfb-action@v1
with:
working-directory: testdir
run: python -m unittest discover -v traits
- name: Test Traits package (Linux)
run: cd testdir && xvfb-run -a python -m unittest discover -v traits
if: matrix.os == 'ubuntu-latest'
- name: Test Traits package (Windows/macOS)
run: cd testdir && python -m unittest discover -v traits
if: matrix.os != 'ubuntu-latest'

notify-on-failure:
needs: [test-pypi-sdist, test-pypi-wheel]
Expand Down
15 changes: 15 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
Traits CHANGELOG
================

Release 6.4.2
-------------

Released: 2023-08-07

This is a bugfix release that fixes failing some test failures with the
most recent TraitsUI versions.

Fixes
~~~~~
* Replace a deprecated version check for TraitsUI. (#1746)
* Fix a test that fails on warnings other than those directly related to
the test purpose. (#1749)


Release 6.4.1
-------------

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
This software is OSI Certified Open Source Software.
OSI Certified is a certification mark of the Open Source Initiative.

(C) Copyright 2005-2022 Enthought, Inc., Austin, TX
(C) Copyright 2005-2023 Enthought, Inc., Austin, TX
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ inherited by any subclass derived from the class.
Dependencies
------------

Traits requires Python >= 3.6.
Traits requires Python >= 3.7.

Traits has the following optional dependencies:

Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) Copyright 2005-2022 Enthought, Inc., Austin, TX
# (C) Copyright 2005-2023 Enthought, Inc., Austin, TX
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
Expand Down Expand Up @@ -62,7 +62,7 @@
# General substitutions.
project = "traits"
copyright = """\
(C) Copyright 2005-2022 Enthought, Inc., Austin, TX
(C) Copyright 2005-2023 Enthought, Inc., Austin, TX
All rights reserved.
"""

Expand Down
2 changes: 1 addition & 1 deletion docs/source/traits_user_manual/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Traits |version| User Manual
============================

:Authors: David C. Morrill, Janet M. Swisher, and Enthought developers
:Copyright: | (C) Copyright 2005-2022 Enthought, Inc., Austin, TX
:Copyright: | (C) Copyright 2005-2023 Enthought, Inc., Austin, TX
| All rights reserved.
Contents
Expand Down
7 changes: 3 additions & 4 deletions etstool.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) Copyright 2005-2022 Enthought, Inc., Austin, TX
# (C) Copyright 2005-2023 Enthought, Inc., Austin, TX
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
Expand Down Expand Up @@ -51,7 +51,7 @@
python etstool.py test-all
Currently supported runtime values are ``3.6``. Not all
The only currently supported runtime values is ``3.8``. Not all
combinations of runtimes will work, but the tasks will fail with
a clear error if that is the case.
Expand Down Expand Up @@ -101,7 +101,6 @@

# Dependencies on the Python runtime.
runtime_dependencies = {
"3.6": {"pyqt5", "lark_parser", "mypy"},
"3.8": {"pyside6"},
}

Expand All @@ -118,7 +117,7 @@
"gnureadline",
}

supported_runtimes = ["3.6", "3.8"]
supported_runtimes = ["3.8"]
default_runtime = "3.8"

github_url_fmt = "git+http://github.com/enthought/{0}.git#egg={0}"
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/doc_examples/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) Copyright 2005-2022 Enthought, Inc., Austin, TX
# (C) Copyright 2005-2023 Enthought, Inc., Austin, TX
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/doc_examples/examples/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) Copyright 2005-2022 Enthought, Inc., Austin, TX
# (C) Copyright 2005-2023 Enthought, Inc., Austin, TX
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/doc_examples/examples/adapt_metadata.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) Copyright 2005-2022 Enthought, Inc., Austin, TX
# (C) Copyright 2005-2023 Enthought, Inc., Austin, TX
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) Copyright 2005-2022 Enthought, Inc., Austin, TX
# (C) Copyright 2005-2023 Enthought, Inc., Austin, TX
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) Copyright 2005-2022 Enthought, Inc., Austin, TX
# (C) Copyright 2005-2023 Enthought, Inc., Austin, TX
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/doc_examples/examples/all_wildcard.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) Copyright 2005-2022 Enthought, Inc., Austin, TX
# (C) Copyright 2005-2023 Enthought, Inc., Austin, TX
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
Expand Down
Loading

0 comments on commit 93583b9

Please sign in to comment.