mirror of
https://git.freebsd.org/ports.git
synced 2025-05-14 16:21:50 -04:00
- Use Python pep517 feature, because the upstream removed setuptools support - Compile and install Python bytecode (pending a definitive decision regarding this: see: https://reviews.freebsd.org/D38429 ) - Update build/test dependencies - Add a patch to pyproject.toml to fix the following Exception (build stage): from virtualenv.version import __version__ ImportError: cannot import name '__version__' from 'virtualenv.version' (/usr/local/poudriere/ports/default/devel/py-virtualenv/work-py39/virtualenv-20.18.0/dist/virtualenv-20.18.0-py3-none-any.whl/virtualenv/ version.py) Changes: https://github.com/pypa/virtualenv/releases/tag/20.18.0
16 lines
496 B
TOML
16 lines
496 B
TOML
--- pyproject.toml.orig 2023-02-06 17:33:30 UTC
|
|
+++ pyproject.toml
|
|
@@ -100,6 +100,13 @@ pip = "virtualenv.seed.embed.pip_invoke:PipInvoke"
|
|
|
|
[tool.hatch]
|
|
build.hooks.vcs.version-file = "src/virtualenv/version.py"
|
|
+build.hooks.vcs.template = """\
|
|
+# coding: utf-8
|
|
+# file generated by setuptools_scm
|
|
+# don't change, don't track in version control
|
|
+__version__ = {version!r}
|
|
+__version_tuple__ = {version_tuple!r}
|
|
+"""
|
|
build.targets.sdist.include = ["/src", "/tests"]
|
|
version.source = "vcs"
|
|
|