Terence Tsang activity https://gitlab.com/TTsangSC 2026-03-13T08:12:31Z tag:gitlab.com,2026-03-13:5200124056 Terence Tsang pushed new project tag v0.19.1 at Terence Tsang / pytest-autoprofile 2026-03-13T08:12:31Z TTsangSC Terence Tsang [email protected]

Terence Tsang (7bd41943) at 13 Mar 08:12

Merge branch 'test-fixes' into 'master'

tag:gitlab.com,2026-03-13:5200073187 Terence Tsang deleted project branch test-fixes at Terence Tsang / pytest-autoprofile 2026-03-13T07:57:09Z TTsangSC Terence Tsang [email protected]

Terence Tsang (d982ca90) at 13 Mar 07:57

tag:gitlab.com,2026-03-13:5200073145 Terence Tsang pushed to project branch master at Terence Tsang / pytest-autoprofile 2026-03-13T07:57:08Z TTsangSC Terence Tsang [email protected]

Terence Tsang (7bd41943) at 13 Mar 07:57

Merge branch 'test-fixes' into 'master'

... and 1 more commit

tag:gitlab.com,2026-03-13:5200073097 Terence Tsang accepted merge request !15: v0.19.1: assorted test, CI, metadata, typing fixes at Terence Tsang / pytest-autoprofile 2026-03-13T07:57:08Z TTsangSC Terence Tsang [email protected]

Metadata/config changes

  • pyproject.toml::[tool.mypy.files]
    Added .mock-ci/ to also typecheck that automatically
  • src/pytest_autoprofile/__init__.py::__version__
    Bumped to v0.19.1

Code changes

  • src/pytest_autoprofile/
    Various changes in the following files, in response to how line_profiler PR #419 made the package more transparent to type-checkers
    • _doctest.py
    • profiler.py

Doc changes

  • README.md
    Updated section "Test -> Stacks" to reflect changes to the "newest" stack

Test changes

  • tests/test_profiler.py
    Updated implementations of the following tests so that the regex checks on the profiler output work more consistently across line_profiler versions (see line_profiler PR #414):
    • test_profiling_{{bound,class,static}method,property,partial}()
    • tests_add_imported_function_or_module()
    • test_global_profiler()

CI changes

  • .ci-dependency-versions.yml
    • [.middle-stack.variables.SETUPTOOLS_VERSION]
      New variable to pin setuptools < v82 because newer versions no longer ships with pkg_resources (see setuptools PR #5007), which is required by pytest_doctestplus < v1.3
    • [.newest-stack.variables]
      Bumped versions:
      • ${PYTEST_VERSION}: 9.0.1 -> 9.0.2
      • ${PYTEST_DOCTESTPLUS_VERSION}: 1.5.0 -> 1.7.1
    • [.bleeding-edge-stack.variabls.PYTHON_VERSION]
      Dropped patch/micro version specification to allow for pulling the newest images in CI
  • .ci-helper-funcs.py::install_requirements(), python .ci-helper-funcs.py install-requirements
    Added handling for "optional"/"special" requirements like setuptools, which are only explicitly installed when the corresponding environment variable is passed
  • .mock-ci/pytest_autoprofiler_local_ci/
    • stacks.py::Stack
      • .setuptools
        New optional field corresponding to ${SETUPTOOLS_VERSION} in CI config files
      • .to_ci_environment_variables()
        Updated implementation to omit absent optional fields and removed redundant check
    • environment.py::find_python()
      Updated to allow for ${PYTHON_VERSION} to not set a patch/micro version
  • .gitlab-ci.yml::[workflow.rules]
    Added new rule to allow scheduled pipelines to run
tag:gitlab.com,2026-03-13:5200028888 Terence Tsang pushed to project branch test-fixes at Terence Tsang / pytest-autoprofile 2026-03-13T07:43:05Z TTsangSC Terence Tsang [email protected]

Terence Tsang (d982ca90) at 13 Mar 07:43

Bumped dependencies on "newest" stack

... and 1 more commit

tag:gitlab.com,2026-03-13:5199629345 Terence Tsang opened merge request !15: v0.19.1: assorted test, CI, metadata, typing fixes at Terence Tsang / pytest-autoprofile 2026-03-13T04:36:49Z TTsangSC Terence Tsang [email protected]

Metadata/config changes

  • pyproject.toml::[tool.mypy.files]
    Added .mock-ci/ to also typecheck that automatically
  • src/pytest_autoprofile/__init__.py::__version__
    Bumped to v0.19.1

Code changes

  • src/pytest_autoprofile/
    Various changes in the following files, in response to how line_profiler PR #419 made the package more transparent to type-checkers
    • _doctest.py
    • profiler.py

Doc changes

  • README.md
    Updated section "Test -> Stacks" to reflect changes to the "newest" stack

Test changes

  • tests/test_profiler.py
    Updated implementations of the following tests so that the regex checks on the profiler output work more consistently across line_profiler versions (see line_profiler PR #414):
    • test_profiling_{{bound,class,static}method,property,partial}()
    • tests_add_imported_function_or_module()
    • test_global_profiler()

CI changes

  • .ci-dependency-versions.yml
    • [.middle-stack.variables.SETUPTOOLS_VERSION]
      New variable to pin setuptools < v82 because newer versions no longer ships with pkg_resources (see setuptools PR #5007), which is required by pytest_doctestplus < v1.3
    • [.newest-stack.variables]
      Bumped versions:
      • ${PYTEST_VERSION}: 9.0.1 -> 9.0.2
      • ${PYTEST_DOCTESTPLUS_VERSION}: 1.5.0 -> 1.7.1
    • [.bleeding-edge-stack.variabls.PYTHON_VERSION]
      Dropped patch/micro version specification to allow for pulling the newest images in CI
  • .ci-helper-funcs.py::install_requirements(), python .ci-helper-funcs.py install-requirements
    Added handling for "optional"/"special" requirements like setuptools, which are only explicitly installed when the corresponding environment variable is passed
  • .mock-ci/pytest_autoprofiler_local_ci/
    • stacks.py::Stack
      • .setuptools
        New optional field corresponding to ${SETUPTOOLS_VERSION} in CI config files
      • .to_ci_environment_variables()
        Updated implementation to omit absent optional fields and removed redundant check
    • environment.py::find_python()
      Updated to allow for ${PYTHON_VERSION} to not set a patch/micro version
  • .gitlab-ci.yml::[workflow.rules]
    Added new rule to allow scheduled pipelines to run
tag:gitlab.com,2026-03-09:5181147890 Terence Tsang pushed to project branch test-fixes at Terence Tsang / pytest-autoprofile 2026-03-09T08:15:10Z TTsangSC Terence Tsang [email protected]

Terence Tsang (30c1984e) at 09 Mar 08:15

Metadata/Config updates

... and 2 more commits

tag:gitlab.com,2026-03-09:5181000264 Terence Tsang pushed new project branch test-fixes at Terence Tsang / pytest-autoprofile 2026-03-09T07:33:43Z TTsangSC Terence Tsang [email protected]

Terence Tsang (5fcae039) at 09 Mar 07:33

Pin setuptools version for the "middle" CI stack

... and 1 more commit

tag:gitlab.com,2026-02-08:5079479786 Terence Tsang commented on issue #1401 at gpaw / gpaw 2026-02-08T05:12:29Z TTsangSC Terence Tsang [email protected]

I think Jakob fixed the docs in !3158 (merged). Should this be closed?

tag:gitlab.com,2026-02-08:5079477304 Terence Tsang commented on merge request !2782 at gpaw / gpaw 2026-02-08T05:10:06Z TTsangSC Terence Tsang [email protected]

Seems that !3158 (merged) has fixed the docs and is more concise; I'll just close this one then.

tag:gitlab.com,2026-02-08:5079477277 Terence Tsang closed merge request !2782: Updated docs for macOS installation w/Homebrew at gpaw / gpaw 2026-02-08T05:10:05Z TTsangSC Terence Tsang [email protected]

See #1401.

tag:gitlab.com,2026-02-08:5079468431 Terence Tsang pushed to project branch master at Terence Tsang / gpaw 2026-02-08T05:01:33Z TTsangSC Terence Tsang [email protected]

Terence Tsang (fbae4a37) at 08 Feb 05:01

Merge branch 'diropt-unocc' into 'master'

... and 3435 more commits

tag:gitlab.com,2025-12-30:4950029855 Terence Tsang pushed new project tag v0.19.0 at Terence Tsang / pytest-autoprofile 2025-12-30T01:06:01Z TTsangSC Terence Tsang [email protected]

Terence Tsang (257617a7) at 30 Dec 01:06

Merge branch 'lp-5-1-prep' into 'master'

tag:gitlab.com,2025-12-30:4950020381 Terence Tsang deleted project branch lp-5-1-prep at Terence Tsang / pytest-autoprofile 2025-12-30T00:55:04Z TTsangSC Terence Tsang [email protected]

Terence Tsang (93fdc150) at 30 Dec 00:55

tag:gitlab.com,2025-12-30:4950020340 Terence Tsang pushed to project branch master at Terence Tsang / pytest-autoprofile 2025-12-30T00:55:03Z TTsangSC Terence Tsang [email protected]

Terence Tsang (257617a7) at 30 Dec 00:55

Merge branch 'lp-5-1-prep' into 'master'

... and 1 more commit

tag:gitlab.com,2025-12-30:4950020332 Terence Tsang accepted merge request !14: v0.19.0: forward-compatibility fixes + (mock) CI refactoring at Terence Tsang / pytest-autoprofile 2025-12-30T00:55:02Z TTsangSC Terence Tsang [email protected]

.ci-helper-funcs.py

python .ci-helper-funcs.py install-requirements now:

  • Includes line_profiler as a default requirement
  • Supports installing the requirements from their respective repo HEAD versions, if their corresponding ${*_VERSION} environment variable is set to the special value '<SOURCE>'

.gitlab-ci.yml

  • bleeding-edge stack put back into use (non-blocking on CI); now signifying an environment where repo-HEAD versions of the requirements (e.g. line_profiler, pytest, ...), instead of pinned PyPI releases, are used during tests
  • Stack/Dependency-version definitions moved to a new .ci-dependency-versions.yml file

.mock-ci/

  • configs.py::STACK:
    Now loaded from .ci-dependency-versions.yml to reduce duplication and avoid inconsistencies
  • stacks.py::Stack.line_profiler:
    New object member corresponding to ${LINE_PROFILER_VERSION} when using .ci-helper-funcs.py
  • versioning.py::VersionInfo._compare():
    Fixed bug where version-info fields nonexistent in the original strings are used in comparisons therewith
  • yaml_helper.py::parse_versions():
    New function helping with loading version info from YAML files
  • test:
    New convenience script for running the internal tests of .mock-ci/

pyproject.toml

Added pyyaml and types-pyyaml to the list of optional dependencies required for dev, since they are now used by .mock-ci/

src/pytest_autoprofile/

  • __init__.py::__version__
    Bumped to 0.19.0
  • _test_utils.py::CheckPytestConfig
    To facilitate type-checking of tests and reduce use of # type: ignore[arg-type] comments:
    • .test_count, .capture_reported_warnings, .profiling_flags:
      Updated default values (and type annotation in the case of .capture_reported_warnings)
    • .__post_init__():
      Migrated code normalizing input values of the above attributes to the new alternative constructor .new()
  • option_hooks.py::resolve_hooked_option():
    Updated code accessing internal states (._opt2dest) of pytest.Config objects, which will be moved in v9.0.x (see pytest #13880)
  • profiler.py
    • Updated import location of the line_profiler.[...].LineStats class, which will be moved in v5.1 (see line_profiler #380)
    • Updated implementation of _LinestatsCollator.__init__() to type-check better

tests/

  • (General):
    Updated various tests to use the new CheckPytestConfig.new() constructor
  • test_doctest.py::test_doctest_plus():
    Updated implementation to account for test-collection behavior differences between pytest_doctestplus v1.6 and earlier versions (see pytest-doctestplus #312)
tag:gitlab.com,2025-12-30:4949999881 Terence Tsang pushed to project branch lp-5-1-prep at Terence Tsang / pytest-autoprofile 2025-12-30T00:39:41Z TTsangSC Terence Tsang [email protected]

Terence Tsang (93fdc150) at 30 Dec 00:39

Bump __version__ to 0.19.0

tag:gitlab.com,2025-12-29:4947468722 Terence Tsang opened merge request !14: v0.19.0: forward-compatibility fixes + (mock) CI refactoring at Terence Tsang / pytest-autoprofile 2025-12-29T01:05:29Z TTsangSC Terence Tsang [email protected]

.ci-helper-funcs.py

python .ci-helper-funcs.py install-requirements now:

  • Includes line_profiler as a default requirement
  • Supports installing the requirements from their respective repo HEAD versions, if their corresponding ${*_VERSION} environment variable is set to the special value '<SOURCE>'

.gitlab-ci.yml

  • bleeding-edge stack put back into use (non-blocking on CI); now signifying an environment where repo-HEAD versions of the requirements (e.g. line_profiler, pytest, ...), instead of pinned PyPI releases, are used during tests
  • Stack/Dependency-version definitions moved to a new .ci-dependency-versions.yml file

.mock-ci/

  • configs.py::STACK:
    Now loaded from .ci-dependency-versions.yml to reduce duplication and avoid inconsistencies
  • stacks.py::Stack.line_profiler:
    New object member corresponding to ${LINE_PROFILER_VERSION} when using .ci-helper-funcs.py
  • versioning.py::VersionInfo._compare():
    Fixed bug where version-info fields nonexistent in the original strings are used in comparisons therewith
  • yaml_helper.py::parse_versions():
    New function helping with loading version info from YAML files
  • test:
    New convenience script for running the internal tests of .mock-ci/

pyproject.toml

Added pyyaml and types-pyyaml to the list of optional dependencies required for dev, since they are now used by .mock-ci/

src/pytest_autoprofile/

  • __init__.py::__version__
    Bumped to 0.19.0
  • _test_utils.py::CheckPytestConfig
    To facilitate type-checking of tests and reduce use of # type: ignore[arg-type] comments:
    • .test_count, .capture_reported_warnings, .profiling_flags:
      Updated default values (and type annotation in the case of .capture_reported_warnings)
    • .__post_init__():
      Migrated code normalizing input values of the above attributes to the new alternative constructor .new()
  • option_hooks.py::resolve_hooked_option():
    Updated code accessing internal states (._opt2dest) of pytest.Config objects, which will be moved in v9.0.x (see pytest #13880)
  • profiler.py
    • Updated import location of the line_profiler.[...].LineStats class, which will be moved in v5.1 (see line_profiler #380)
    • Updated implementation of _LinestatsCollator.__init__() to type-check better

tests/

  • (General):
    Updated various tests to use the new CheckPytestConfig.new() constructor
  • test_doctest.py::test_doctest_plus():
    Updated implementation to account for test-collection behavior differences between pytest_doctestplus v1.6 and earlier versions (see pytest-doctestplus #312)
tag:gitlab.com,2025-12-29:4947439963 Terence Tsang pushed to project branch lp-5-1-prep at Terence Tsang / pytest-autoprofile 2025-12-29T00:26:40Z TTsangSC Terence Tsang [email protected]

Terence Tsang (74e07244) at 29 Dec 00:26

.mock-ci/: Read versions from YAML

tag:gitlab.com,2025-12-29:4947423159 Terence Tsang pushed to project branch lp-5-1-prep at Terence Tsang / pytest-autoprofile 2025-12-29T00:09:24Z TTsangSC Terence Tsang [email protected]

Terence Tsang (658215d8) at 29 Dec 00:09

.mock-ci/: Read versions from YAML

... and 3 more commits