-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add tag filter #225
Add tag filter #225
Conversation
✅ Deploy Preview for pdm-backend-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
This is still missing tests. I thought I'd ask for an early review of the draft just to align on the approach. I'll finish the tests next week and submit for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I am okay with the implementation, please don't stack the PR with other changes not related to this PR.
Sure, I'm used to stacking changes and submitting only once the parent has been submitted. I'll pull the changes out this week and separate them. Also, sorry for the delay, but I've been pretty busy and hadn't the time to get to this. Will do so in the next couple days. |
You forgot to declare |
According to the README, you don't need to import anything, as it can be accessed via |
Just tried that. It unfortunately fails pyright as Do you care about the type checker and do you have a preference here? I'd recommend just leaving it as is since it will reduce type issues in the future compared to |
As long as the CI statuses are all green I am ok |
Done. Added a quick assertion, but otherwise it should be good. |
Please rebase main branch |
Done |
I noticed that the tests were failing so I took a look. Turns out that they were failing because of two issues.
|
Removed the pytest-lazy-fixture dependency and fixed the CI to install hg for use in testing. All the tests are passing now. |
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pdm-backend](https://togithub.com/pdm-project/pdm-backend) | build-system.requires | minor | `==2.1.8` -> `==2.3.0` | --- ### Release Notes <details> <summary>pdm-project/pdm-backend (pdm-backend)</summary> ### [`v2.3.0`](https://togithub.com/pdm-project/pdm-backend/releases/tag/2.3.0) [Compare Source](https://togithub.com/pdm-project/pdm-backend/compare/2.2.1...2.3.0) ##### 🚀 Features - Remove support for python 3.7 and older - by [@​frostming](https://togithub.com/frostming) in [https://github.com/pdm-project/pdm-backend/issues/232](https://togithub.com/pdm-project/pdm-backend/issues/232) [<samp>(32e3a)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/32e3a33) - Add `tag_filter` as a way to pre-filter tags - by [@​mezuzza](https://togithub.com/mezuzza) in [https://github.com/pdm-project/pdm-backend/issues/225](https://togithub.com/pdm-project/pdm-backend/issues/225) [<samp>(9915c)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/9915cb6) ##### 🐞 Bug Fixes - Error about dynamic project version - by [@​cntvc](https://togithub.com/cntvc) in [https://github.com/pdm-project/pdm-backend/issues/235](https://togithub.com/pdm-project/pdm-backend/issues/235) [<samp>(146b1)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/146b170) - **ci**: CI matrix on macos latest - by [@​frostming](https://togithub.com/frostming) [<samp>(080b4)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/080b4bc) ##### 💻 Chores - Use `Literal` type for valid target values - by [@​DetachHead](https://togithub.com/DetachHead), **pre-commit-ci\[bot]** and **Frost Ming** in [https://github.com/pdm-project/pdm-backend/issues/227](https://togithub.com/pdm-project/pdm-backend/issues/227) [<samp>(a210b)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/a210b72) ##### [View changes on GitHub](https://togithub.com/pdm-project/pdm-backend/compare/2.2.1...2.3.0) ### [`v2.2.1`](https://togithub.com/pdm-project/pdm-backend/releases/tag/2.2.1) [Compare Source](https://togithub.com/pdm-project/pdm-backend/compare/2.2.0...2.2.1) ##### 🚀 Features - Add parameter `--build-number` to wheel builder - by [@​0xfabioo](https://togithub.com/0xfabioo) and **Frost Ming** in [https://github.com/pdm-project/pdm-backend/issues/229](https://togithub.com/pdm-project/pdm-backend/issues/229) [<samp>(d7d15)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/d7d15fb) - Bump pyproject-metadata to 0.8.0 - by [@​frostming](https://togithub.com/frostming) in [https://github.com/pdm-project/pdm-backend/issues/231](https://togithub.com/pdm-project/pdm-backend/issues/231) [<samp>(5f538)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/5f53873) ##### [View changes on GitHub](https://togithub.com/pdm-project/pdm-backend/compare/2.2.0...2.2.1) ### [`v2.2.0`](https://togithub.com/pdm-project/pdm-backend/releases/tag/2.2.0) [Compare Source](https://togithub.com/pdm-project/pdm-backend/compare/2.1.8...2.2.0) ##### 🚀 Features - Don't add '+editable' to the editable version - by [@​frostming](https://togithub.com/frostming) [<samp>(e6fcd)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/e6fcd5f) - Custom version format for source="scm" - by [@​frostming](https://togithub.com/frostming) in [https://github.com/pdm-project/pdm-backend/issues/217](https://togithub.com/pdm-project/pdm-backend/issues/217) [<samp>(4f20c)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/4f20cfd) - Fallback_version config for scm version - by [@​frostming](https://togithub.com/frostming) [<samp>(8b8ab)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/8b8ab28) - **vendor**: Update packaging to 24.0 - by [@​frostming](https://togithub.com/frostming) [<samp>(81836)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/8183604) - **vendors**: Update pyproject-metadata to 0.8.0rc1 - by [@​frostming](https://togithub.com/frostming) in [https://github.com/pdm-project/pdm-backend/issues/228](https://togithub.com/pdm-project/pdm-backend/issues/228) [<samp>(6b260)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/6b2601e) ##### 🐞 Bug Fixes - Change to datetime.now(tz=UTC) - by [@​frostming](https://togithub.com/frostming) [<samp>(74f7a)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/74f7a61) ##### 📝 Documentation - Add missing dep - by [@​frostming](https://togithub.com/frostming) [<samp>(feb9f)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/feb9fc7) ##### 💻 Chores - Update lockfile to the latest version - by [@​frostming](https://togithub.com/frostming) [<samp>(940d1)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/940d129) ##### [View changes on GitHub](https://togithub.com/pdm-project/pdm-backend/compare/2.1.8...2.2.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjM2My4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: Nicolas Drebenstedt <[email protected]>
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pdm-backend](https://togithub.com/pdm-project/pdm-backend) | build-system.requires | minor | `==2.1.8` -> `==2.3.0` | --- ### Release Notes <details> <summary>pdm-project/pdm-backend (pdm-backend)</summary> ### [`v2.3.0`](https://togithub.com/pdm-project/pdm-backend/releases/tag/2.3.0) [Compare Source](https://togithub.com/pdm-project/pdm-backend/compare/2.2.1...2.3.0) ##### 🚀 Features - Remove support for python 3.7 and older - by [@​frostming](https://togithub.com/frostming) in [https://github.com/pdm-project/pdm-backend/issues/232](https://togithub.com/pdm-project/pdm-backend/issues/232) [<samp>(32e3a)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/32e3a33) - Add `tag_filter` as a way to pre-filter tags - by [@​mezuzza](https://togithub.com/mezuzza) in [https://github.com/pdm-project/pdm-backend/issues/225](https://togithub.com/pdm-project/pdm-backend/issues/225) [<samp>(9915c)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/9915cb6) ##### 🐞 Bug Fixes - Error about dynamic project version - by [@​cntvc](https://togithub.com/cntvc) in [https://github.com/pdm-project/pdm-backend/issues/235](https://togithub.com/pdm-project/pdm-backend/issues/235) [<samp>(146b1)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/146b170) - **ci**: CI matrix on macos latest - by [@​frostming](https://togithub.com/frostming) [<samp>(080b4)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/080b4bc) ##### 💻 Chores - Use `Literal` type for valid target values - by [@​DetachHead](https://togithub.com/DetachHead), **pre-commit-ci\[bot]** and **Frost Ming** in [https://github.com/pdm-project/pdm-backend/issues/227](https://togithub.com/pdm-project/pdm-backend/issues/227) [<samp>(a210b)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/a210b72) ##### [View changes on GitHub](https://togithub.com/pdm-project/pdm-backend/compare/2.2.1...2.3.0) ### [`v2.2.1`](https://togithub.com/pdm-project/pdm-backend/releases/tag/2.2.1) [Compare Source](https://togithub.com/pdm-project/pdm-backend/compare/2.2.0...2.2.1) ##### 🚀 Features - Add parameter `--build-number` to wheel builder - by [@​0xfabioo](https://togithub.com/0xfabioo) and **Frost Ming** in [https://github.com/pdm-project/pdm-backend/issues/229](https://togithub.com/pdm-project/pdm-backend/issues/229) [<samp>(d7d15)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/d7d15fb) - Bump pyproject-metadata to 0.8.0 - by [@​frostming](https://togithub.com/frostming) in [https://github.com/pdm-project/pdm-backend/issues/231](https://togithub.com/pdm-project/pdm-backend/issues/231) [<samp>(5f538)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/5f53873) ##### [View changes on GitHub](https://togithub.com/pdm-project/pdm-backend/compare/2.2.0...2.2.1) ### [`v2.2.0`](https://togithub.com/pdm-project/pdm-backend/releases/tag/2.2.0) [Compare Source](https://togithub.com/pdm-project/pdm-backend/compare/2.1.8...2.2.0) ##### 🚀 Features - Don't add '+editable' to the editable version - by [@​frostming](https://togithub.com/frostming) [<samp>(e6fcd)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/e6fcd5f) - Custom version format for source="scm" - by [@​frostming](https://togithub.com/frostming) in [https://github.com/pdm-project/pdm-backend/issues/217](https://togithub.com/pdm-project/pdm-backend/issues/217) [<samp>(4f20c)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/4f20cfd) - Fallback_version config for scm version - by [@​frostming](https://togithub.com/frostming) [<samp>(8b8ab)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/8b8ab28) - **vendor**: Update packaging to 24.0 - by [@​frostming](https://togithub.com/frostming) [<samp>(81836)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/8183604) - **vendors**: Update pyproject-metadata to 0.8.0rc1 - by [@​frostming](https://togithub.com/frostming) in [https://github.com/pdm-project/pdm-backend/issues/228](https://togithub.com/pdm-project/pdm-backend/issues/228) [<samp>(6b260)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/6b2601e) ##### 🐞 Bug Fixes - Change to datetime.now(tz=UTC) - by [@​frostming](https://togithub.com/frostming) [<samp>(74f7a)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/74f7a61) ##### 📝 Documentation - Add missing dep - by [@​frostming](https://togithub.com/frostming) [<samp>(feb9f)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/feb9fc7) ##### 💻 Chores - Update lockfile to the latest version - by [@​frostming](https://togithub.com/frostming) [<samp>(940d1)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/940d129) ##### [View changes on GitHub](https://togithub.com/pdm-project/pdm-backend/compare/2.1.8...2.2.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTguMSIsInVwZGF0ZWRJblZlciI6IjM3LjM1OC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pdm-backend](https://togithub.com/pdm-project/pdm-backend) | build-system.requires | minor | `==2.1.8` -> `==2.3.0` | --- ### Release Notes <details> <summary>pdm-project/pdm-backend (pdm-backend)</summary> ### [`v2.3.0`](https://togithub.com/pdm-project/pdm-backend/releases/tag/2.3.0) [Compare Source](https://togithub.com/pdm-project/pdm-backend/compare/2.2.1...2.3.0) ##### 🚀 Features - Remove support for python 3.7 and older - by [@​frostming](https://togithub.com/frostming) in [https://github.com/pdm-project/pdm-backend/issues/232](https://togithub.com/pdm-project/pdm-backend/issues/232) [<samp>(32e3a)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/32e3a33) - Add `tag_filter` as a way to pre-filter tags - by [@​mezuzza](https://togithub.com/mezuzza) in [https://github.com/pdm-project/pdm-backend/issues/225](https://togithub.com/pdm-project/pdm-backend/issues/225) [<samp>(9915c)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/9915cb6) ##### 🐞 Bug Fixes - Error about dynamic project version - by [@​cntvc](https://togithub.com/cntvc) in [https://github.com/pdm-project/pdm-backend/issues/235](https://togithub.com/pdm-project/pdm-backend/issues/235) [<samp>(146b1)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/146b170) - **ci**: CI matrix on macos latest - by [@​frostming](https://togithub.com/frostming) [<samp>(080b4)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/080b4bc) ##### 💻 Chores - Use `Literal` type for valid target values - by [@​DetachHead](https://togithub.com/DetachHead), **pre-commit-ci\[bot]** and **Frost Ming** in [https://github.com/pdm-project/pdm-backend/issues/227](https://togithub.com/pdm-project/pdm-backend/issues/227) [<samp>(a210b)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/a210b72) ##### [View changes on GitHub](https://togithub.com/pdm-project/pdm-backend/compare/2.2.1...2.3.0) ### [`v2.2.1`](https://togithub.com/pdm-project/pdm-backend/releases/tag/2.2.1) [Compare Source](https://togithub.com/pdm-project/pdm-backend/compare/2.2.0...2.2.1) ##### 🚀 Features - Add parameter `--build-number` to wheel builder - by [@​0xfabioo](https://togithub.com/0xfabioo) and **Frost Ming** in [https://github.com/pdm-project/pdm-backend/issues/229](https://togithub.com/pdm-project/pdm-backend/issues/229) [<samp>(d7d15)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/d7d15fb) - Bump pyproject-metadata to 0.8.0 - by [@​frostming](https://togithub.com/frostming) in [https://github.com/pdm-project/pdm-backend/issues/231](https://togithub.com/pdm-project/pdm-backend/issues/231) [<samp>(5f538)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/5f53873) ##### [View changes on GitHub](https://togithub.com/pdm-project/pdm-backend/compare/2.2.0...2.2.1) ### [`v2.2.0`](https://togithub.com/pdm-project/pdm-backend/releases/tag/2.2.0) [Compare Source](https://togithub.com/pdm-project/pdm-backend/compare/2.1.8...2.2.0) ##### 🚀 Features - Don't add '+editable' to the editable version - by [@​frostming](https://togithub.com/frostming) [<samp>(e6fcd)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/e6fcd5f) - Custom version format for source="scm" - by [@​frostming](https://togithub.com/frostming) in [https://github.com/pdm-project/pdm-backend/issues/217](https://togithub.com/pdm-project/pdm-backend/issues/217) [<samp>(4f20c)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/4f20cfd) - Fallback_version config for scm version - by [@​frostming](https://togithub.com/frostming) [<samp>(8b8ab)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/8b8ab28) - **vendor**: Update packaging to 24.0 - by [@​frostming](https://togithub.com/frostming) [<samp>(81836)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/8183604) - **vendors**: Update pyproject-metadata to 0.8.0rc1 - by [@​frostming](https://togithub.com/frostming) in [https://github.com/pdm-project/pdm-backend/issues/228](https://togithub.com/pdm-project/pdm-backend/issues/228) [<samp>(6b260)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/6b2601e) ##### 🐞 Bug Fixes - Change to datetime.now(tz=UTC) - by [@​frostming](https://togithub.com/frostming) [<samp>(74f7a)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/74f7a61) ##### 📝 Documentation - Add missing dep - by [@​frostming](https://togithub.com/frostming) [<samp>(feb9f)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/feb9fc7) ##### 💻 Chores - Update lockfile to the latest version - by [@​frostming](https://togithub.com/frostming) [<samp>(940d1)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/940d129) ##### [View changes on GitHub](https://togithub.com/pdm-project/pdm-backend/compare/2.1.8...2.2.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM2My4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: Nicolas Drebenstedt <[email protected]>
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pdm-backend](https://togithub.com/pdm-project/pdm-backend) | build-system.requires | minor | `==2.1.8` -> `==2.3.0` | --- ### Release Notes <details> <summary>pdm-project/pdm-backend (pdm-backend)</summary> ### [`v2.3.0`](https://togithub.com/pdm-project/pdm-backend/releases/tag/2.3.0) [Compare Source](https://togithub.com/pdm-project/pdm-backend/compare/2.2.1...2.3.0) ##### 🚀 Features - Remove support for python 3.7 and older - by [@​frostming](https://togithub.com/frostming) in [https://github.com/pdm-project/pdm-backend/issues/232](https://togithub.com/pdm-project/pdm-backend/issues/232) [<samp>(32e3a)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/32e3a33) - Add `tag_filter` as a way to pre-filter tags - by [@​mezuzza](https://togithub.com/mezuzza) in [https://github.com/pdm-project/pdm-backend/issues/225](https://togithub.com/pdm-project/pdm-backend/issues/225) [<samp>(9915c)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/9915cb6) ##### 🐞 Bug Fixes - Error about dynamic project version - by [@​cntvc](https://togithub.com/cntvc) in [https://github.com/pdm-project/pdm-backend/issues/235](https://togithub.com/pdm-project/pdm-backend/issues/235) [<samp>(146b1)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/146b170) - **ci**: CI matrix on macos latest - by [@​frostming](https://togithub.com/frostming) [<samp>(080b4)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/080b4bc) ##### 💻 Chores - Use `Literal` type for valid target values - by [@​DetachHead](https://togithub.com/DetachHead), **pre-commit-ci\[bot]** and **Frost Ming** in [https://github.com/pdm-project/pdm-backend/issues/227](https://togithub.com/pdm-project/pdm-backend/issues/227) [<samp>(a210b)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/a210b72) ##### [View changes on GitHub](https://togithub.com/pdm-project/pdm-backend/compare/2.2.1...2.3.0) ### [`v2.2.1`](https://togithub.com/pdm-project/pdm-backend/releases/tag/2.2.1) [Compare Source](https://togithub.com/pdm-project/pdm-backend/compare/2.2.0...2.2.1) ##### 🚀 Features - Add parameter `--build-number` to wheel builder - by [@​0xfabioo](https://togithub.com/0xfabioo) and **Frost Ming** in [https://github.com/pdm-project/pdm-backend/issues/229](https://togithub.com/pdm-project/pdm-backend/issues/229) [<samp>(d7d15)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/d7d15fb) - Bump pyproject-metadata to 0.8.0 - by [@​frostming](https://togithub.com/frostming) in [https://github.com/pdm-project/pdm-backend/issues/231](https://togithub.com/pdm-project/pdm-backend/issues/231) [<samp>(5f538)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/5f53873) ##### [View changes on GitHub](https://togithub.com/pdm-project/pdm-backend/compare/2.2.0...2.2.1) ### [`v2.2.0`](https://togithub.com/pdm-project/pdm-backend/releases/tag/2.2.0) [Compare Source](https://togithub.com/pdm-project/pdm-backend/compare/2.1.8...2.2.0) ##### 🚀 Features - Don't add '+editable' to the editable version - by [@​frostming](https://togithub.com/frostming) [<samp>(e6fcd)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/e6fcd5f) - Custom version format for source="scm" - by [@​frostming](https://togithub.com/frostming) in [https://github.com/pdm-project/pdm-backend/issues/217](https://togithub.com/pdm-project/pdm-backend/issues/217) [<samp>(4f20c)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/4f20cfd) - Fallback_version config for scm version - by [@​frostming](https://togithub.com/frostming) [<samp>(8b8ab)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/8b8ab28) - **vendor**: Update packaging to 24.0 - by [@​frostming](https://togithub.com/frostming) [<samp>(81836)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/8183604) - **vendors**: Update pyproject-metadata to 0.8.0rc1 - by [@​frostming](https://togithub.com/frostming) in [https://github.com/pdm-project/pdm-backend/issues/228](https://togithub.com/pdm-project/pdm-backend/issues/228) [<samp>(6b260)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/6b2601e) ##### 🐞 Bug Fixes - Change to datetime.now(tz=UTC) - by [@​frostming](https://togithub.com/frostming) [<samp>(74f7a)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/74f7a61) ##### 📝 Documentation - Add missing dep - by [@​frostming](https://togithub.com/frostming) [<samp>(feb9f)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/feb9fc7) ##### 💻 Chores - Update lockfile to the latest version - by [@​frostming](https://togithub.com/frostming) [<samp>(940d1)</samp>](https://togithub.com/pdm-project/pdm-backend/commit/940d129) ##### [View changes on GitHub](https://togithub.com/pdm-project/pdm-backend/compare/2.1.8...2.2.0) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTguMSIsInVwZGF0ZWRJblZlciI6IjM3LjM2My4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
This PR adds tag_filter as a metadata property which can be used to filter the
set of tags examined for versioning the project. More details can be found in #219.
The
git
changes in this PR are straightforward. Thehg
changes require a bit more context.In order to tags, it was necessary to use
hg log
as it provides a--template
argument to usewith the
latesttag
function. Technicallyhg
's regex is a python style regex, but I didn't thinkit prudent to depend on that exact implementation detail. Instead, I refactored the implementation
slightly so that we use
hg log
to extract the current commit andhg id
is relegated to telling usif the working tree is dirty.
This is a PR that's stacked on top of #224. For easy of review, I suggest you look at only the
most recent commit. All other changes are captured in #224.
Resolves #219