Skip to content
Snippets Groups Projects

python/knot_resolver: meson configured constants

Merged Aleš Mrázek requested to merge python-constants-module into master
All threads resolved!

The goal is to get rid of the separate python module (knot_resolver_build_options) that only has meson constants in it, but still have the configured meson constants available in the knot_resolver python module.

Requires updated Docker image for Python parts knot-resolver-ci!6 (merged).

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Jakub Ružička
  • Jakub Ružička requested review from @jruzicka

    requested review from @jruzicka

    • Resolved by Jakub Ružička

      I'm confused by python/constants.py.in vs python/knot_resolver/constants.py, I'd expect to see

      1. python/knot_resolver/constants.py.in only
      2. python/knot_resolver/constants.py{,.in}

      I assume the meson templating stays, which might cause issues when someone tries to use the python/knot_resolver module directly without runing meson.

      I think it would be convenient to go with 2) - include default constants.py in the repo alongside the constants.py.in so that it works without meson templating. We will still re-generate the file using meson, but it won't be strictly required.

      Edited by Jakub Ružička
  • Aleš Mrázek added 1 commit

    added 1 commit

    • 4096b7b9 - fixup! scripts/poe-tasks: _env.sh improvements and formatting

    Compare with previous version

  • Aleš Mrázek added 2 commits

    added 2 commits

    • 052d00c0 - fixup! scripts/poe-tasks: _env.sh improvements and formatting
    • 54710c7a - python: meson constants.py template moved to knot_resolver module

    Compare with previous version

  • added 1 commit

    • 14bf41e9 - distro/pkg: update packaging for single python module

    Compare with previous version

  • Jakub Ružička resolved all threads

    resolved all threads

  • added 1 commit

    • eb222d92 - fixup! distro/pkg: update packaging for single python module

    Compare with previous version

  • Jakub Ružička added 2 commits

    added 2 commits

    • ddf41ed1 - fixup! distro/pkg: update packaging for single python module
    • 74e6b584 - CI: use standard docker for pkg:arch

    Compare with previous version

  • added 1 commit

    • 2134a870 - fixup! CI: use standard docker for pkg:arch

    Compare with previous version

  • added 1 commit

    • 682a3761 - fixup! distro/pkg: update packaging for single python module

    Compare with previous version

  • added 1 commit

    • 82142c64 - tests/packaging: skip systemd tests without systemd

    Compare with previous version

  • Jakub Ružička added 3 commits

    added 3 commits

    • 5e05af2e - distro/pkg: update packaging for single python module
    • 67910ab0 - tests/packaging: skip systemd tests without systemd
    • ae22b27e - CI: use standard docker for pkg:arch

    Compare with previous version

    • Resolved by Jakub Ružička

      OK, I've updated packaging for the single module, it's much nicer now :ok_hand:

      As a bonus I've switched pkg:arch to docker as Arch doesn't work in LXC no matter what I do. Systemd tests are skipped when systemd isn't PID 1.

      @amrazek Shall I update the packaged constants.py with meson-generated one a la

      cp build_deb/python/knot_resolver/constants.py debian/tmp/python/knot-resolver/constants.py

      and equivalents?

  • Vladimír Čunát
  • Jakub Ružička added 4 commits

    added 4 commits

    • 0fc75315 - pyproject.toml: exclude meson templates
    • 7b40c1c8 - distro/pkg: update packaging for single python module
    • 830752be - tests/packaging: skip systemd tests without systemd
    • b5a1918c - CI: use standard docker for pkg:arch

    Compare with previous version

  • Jakub Ružička resolved all threads

    resolved all threads

  • Jakub Ružička approved this merge request

    approved this merge request

  • Aleš Mrázek added 1 commit

    added 1 commit

    • 5286fc02 - fixup! ci: manager: configure meson before every test

    Compare with previous version

  • Aleš Mrázek added 1 commit

    added 1 commit

    • 94470ec6 - .gitlab-ci.yml: IMAGE_TAG update

    Compare with previous version

  • Aleš Mrázek added 18 commits

    added 18 commits

    • 94470ec6...736640a2 - 8 earlier commits
    • 95a80abd - meson.build: use non-standard prefix for run_dir
    • c22bcd23 - scripts/poe-tasks: ./configure not required for some tasks
    • 0cfe6074 - scripts/poe-tasks: _env.sh improvements and formatting
    • 16965e3e - scripts/poe-tasks: created gen-constantspy script
    • fc8a5fc9 - python: meson constants.py template moved to knot_resolver module
    • a81afc4b - pyproject.toml: exclude meson templates
    • 24bb19c9 - distro/pkg: update packaging for single python module
    • ec7726aa - tests/packaging: skip systemd tests without systemd
    • 3cd232e7 - CI: use standard docker for pkg:arch
    • b8ec0127 - .gitlab-ci.yml: IMAGE_TAG update

    Compare with previous version

  • Aleš Mrázek marked this merge request as ready

    marked this merge request as ready

  • Vladimír Čunát
  • Vladimír Čunát
  • Jakub Ružička unapproved this merge request

    unapproved this merge request

  • added 1 commit

    • b3ba97cb - fixup! tests/packaging: skip systemd tests without systemd

    Compare with previous version

  • Jakub Ružička marked this merge request as draft from b3ba97cb

    marked this merge request as draft from b3ba97cb

  • Jakub Ružička added 3 commits

    added 3 commits

    • 51abefea - tests/packaging: skip systemd tests without systemd
    • 8b8d74ff - CI: use standard docker for pkg:arch
    • 9a54c1b5 - .gitlab-ci.yml: IMAGE_TAG update

    Compare with previous version

  • Jakub Ružička marked this merge request as ready

    marked this merge request as ready

  • Vladimír Čunát resolved all threads

    resolved all threads

  • Aleš Mrázek added 28 commits

    added 28 commits

    • 9a54c1b5...9fcd2b5f - 7 commits from branch master
    • 9fcd2b5f...5ad88a40 - 11 earlier commits
    • d2c8db59 - meson.build: use non-standard prefix for run_dir
    • 83e23309 - scripts/poe-tasks: ./configure not required for some tasks
    • d940726d - scripts/poe-tasks: _env.sh improvements and formatting
    • 7c6871ce - scripts/poe-tasks: created gen-constantspy script
    • 9f70c6e5 - python: meson constants.py template moved to knot_resolver module
    • 0286a094 - pyproject.toml: exclude meson templates
    • 101248e7 - distro/pkg: update packaging for single python module
    • 0f85472c - tests/packaging: skip systemd tests without systemd
    • c1660b02 - CI: use standard docker for pkg:arch
    • 776acb5b - .gitlab-ci.yml: IMAGE_TAG update

    Compare with previous version

  • Aleš Mrázek mentioned in issue #921

    mentioned in issue #921

  • Aleš Mrázek mentioned in commit eed008a0

    mentioned in commit eed008a0

  • There's an unsolved lint problem: https://gitlab.nic.cz/knot/knot-resolver/-/jobs/1178977

    I mean, we can probably disregard such lints in tests/pytests/, but keeping it red in CI is annoying.

  • Please register or sign in to reply
    Loading