Skip to content

MAINT: put back mesonpy.__version__ #719

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ debian-unstable_task:
cpu: 1
<< : *test

fedora-37_task:
fedora-41_task:
container:
dockerfile: ci/fedora-37.docker
dockerfile: ci/fedora-41.docker
cpu: 1
<< : *test

Expand Down
2 changes: 1 addition & 1 deletion RELEASE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ After that is done, you may release the project by following these steps:

#. Create the release commit

#. Bump the versions in ``pyproject.toml``.
#. Bump the versions in ``pyproject.toml`` and in ``mesonpy/__init__.py``.
#. Create ``CHANGELOG.rst`` section for the new release and fill it.
#. The commit message should read: ``REL: set version to X.Y.Z``

Expand Down
2 changes: 1 addition & 1 deletion ci/archlinux.docker
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
#
# SPDX-License-Identifier: MIT

# 20221203
# 20250127
FROM archlinux:latest
RUN pacman -Syu --noconfirm && pacman -S --noconfirm python python-pip gcc ninja git patchelf
2 changes: 1 addition & 1 deletion ci/debian-12.docker
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
#
# SPDX-License-Identifier: MIT

# 20240204
# 20250127
FROM debian:bookworm
RUN apt-get update && apt-get install -y git ninja-build patchelf python3-pip python3-venv && rm -rf /var/lib/apt/lists/*
4 changes: 2 additions & 2 deletions ci/fedora-37.docker → ci/fedora-41.docker
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
#
# SPDX-License-Identifier: MIT

# 20240204
FROM fedora:37
# 20250127
FROM fedora:41
RUN dnf -y update && dnf -y install python3-devel python3-pip gcc ninja-build git patchelf && dnf clean all
3 changes: 3 additions & 0 deletions mesonpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ class InvalidLicenseExpression(Exception): # type: ignore[no-redef]
MesonArgs = Mapping[MesonArgsKeys, List[str]]


__version__ = '0.18.0.dev0'


_PYPROJECT_METADATA_VERSION = tuple(map(int, pyproject_metadata.__version__.split('.')[:2]))
_SUPPORTED_DYNAMIC_FIELDS = {'version', } if _PYPROJECT_METADATA_VERSION < (0, 9) else {'version', 'license', 'license-files'}

Expand Down
9 changes: 9 additions & 0 deletions tests/test_consistency.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
else:
import tomli as tomllib

import mesonpy


def test_version():
pyproject = pathlib.Path(__file__).parent.parent.joinpath('pyproject.toml')
with open(pyproject, 'rb') as f:
project_version = tomllib.load(f)['project']['version']
assert mesonpy.__version__ == project_version


def test_pyproject_dependencies():
pyproject = pathlib.Path(__file__).parent.parent.joinpath('pyproject.toml')
Expand Down
Loading