CastXML / pygccxml

pygccxml is a specialized XML reader that reads the output from CastXML or GCCXML. It provides a simple framework to navigate C++ declarations, using Python classes.
Boost Software License 1.0
129 stars 44 forks source link

Build: pyproject.xml fixes #171

Closed mgorny closed 2 months ago

mgorny commented 10 months ago

commit 97498ae39322fd228d10d5e099cbe11f97e9f384 Author: Michał Górny mgorny@gentoo.org AuthorDate: 2023-08-22 05:54:54 +0200 Commit: Michał Górny mgorny@gentoo.org CommitDate: 2023-08-22 05:55:20 +0200

Build: Remove redundant wheel dep from pyproject.toml

Remove the redundant `wheel` dependency, as it is added by the backend
automatically.  Listing it explicitly in the documentation was
a historical mistake and has been fixed since, see:
https://github.com/pypa/setuptools/commit/f7d30a9529378cf69054b5176249e5457aaf640a

commit df8e4074998afe15593bead59674ebdad9d59676 Author: Michał Górny mgorny@gentoo.org AuthorDate: 2023-08-22 05:50:07 +0200 Commit: Michał Górny mgorny@gentoo.org CommitDate: 2023-08-22 05:50:07 +0200

Build: Use non-legacy setuptools backend

Use the modern `setuptools.build_meta` backend rather than the legacy
backend that is implied by the lack of `build-backend`.

This is documented in PEP 517:

> If the `pyproject.toml` file is absent, or the `build-backend` key is
> missing, the source tree is not using this specification, and tools
> should revert to the legacy behaviour of running `setup.py` (either
> directly, or by implicitly invoking
> the `setuptools.build_meta:__legacy__` backend).

https://peps.python.org/pep-0517/#source-trees
codecov-commenter commented 10 months ago

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (2d23294) 91.71% compared to head (97498ae) 91.77%. Report is 6 commits behind head on develop.

Files Patch % Lines
src/pygccxml/parser/linker.py 0.00% 1 Missing :warning:
src/pygccxml/utils/utils.py 50.00% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #171 +/- ## =========================================== + Coverage 91.71% 91.77% +0.05% =========================================== Files 138 138 Lines 10736 10720 -16 =========================================== - Hits 9847 9838 -9 + Misses 889 882 -7 ``` | [Flag](https://app.codecov.io/gh/CastXML/pygccxml/pull/171/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/CastXML/pygccxml/pull/171/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | `91.77% <85.71%> (+0.05%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.