Skip to content

Commit

Permalink
build: Switch build backend to PDM (again)
Browse files Browse the repository at this point in the history
Seems PDM is the only build backend allowing one to supply package version externally without writing version string somewhere. setuptools_scm forces version change if repository is modified.
  • Loading branch information
abelcheung committed May 11, 2024
1 parent 363bf69 commit b1fd775
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

11 changes: 7 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#:schema https://json.schemastore.org/pyproject.json

[build-system]
requires = ['setuptools >= 64', 'setuptools_scm ~= 8.0']
build-backend = 'setuptools.build_meta'
requires = ['pdm-backend ~= 2.3']
build-backend = 'pdm.backend'

[project]
name = 'types-lxml'
Expand Down Expand Up @@ -58,10 +58,13 @@ includes = [
]
excludes = [
'**/*.bak',
'*.patch',
'*.py',
'**/.mypy_cache',
'**/.pytest_cache',
]
source-includes = [
'LICENSE',
'README.md',
'requirements.txt',
'test-rt/',
'test-stub/',
'tox.ini',
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ package = skip
commands = pyright {posargs:lxml-stubs}

[testenv:build]
passenv =
PDM_BUILD_SCM_VERSION
deps =
build
package = skip
Expand Down

0 comments on commit b1fd775

Please sign in to comment.