Hi Davide I have tried to compile to the last commits with setup.py and pip and I get the same error about project. license
HEAD is now at 11623c1 Modernize build: Uninstall is no more + build + cd python-efl-1.26.1 + pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir /tmp/work/src/python-efl-1.26.1 Processing /tmp/work/src/python-efl-1.26.1 Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [91 lines of output] Python-EFL: 1.26.99a1266 Checking for Python: OK, found 3.12.7 configuration error: `project.license` must be valid exactly by one definition (2 matches found): - keys: 'file': {type: string} required: ['file'] - keys: 'text': {type: string} required: ['text'] DESCRIPTION: `Project license <https://peps.python.org/pep-0621/#license>`_. GIVEN VALUE: "LGPL-3.0-only" OFFENDING RULE: 'oneOf' DEFINITION: { "oneOf": [ { "properties": { "file": { "type": "string", "$$description": [ "Relative path to the file (UTF-8) which contains the license for the", "project." ] } }, "required": [ "file" ] }, { "properties": { "text": { "type": "string", "$$description": [ "The license of the project whose meaning is that of the", "`License field from the core metadata", "<https://packaging.python.org/specifications/core-metadata/#license>`_." ] } }, "required": [ "text" ] } ] } Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module> main() File "/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel return hook(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 376, in prepare_metadata_for_build_wheel self.run_setup() File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 319, in run_setup exec(code, locals()) File "<string>", line 379, in <module> File "/usr/lib/python3.12/site-packages/setuptools/__init__.py", line 117, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 157, in setup dist.parse_config_files() File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line 655, in parse_config_files pyprojecttoml.apply_configuration(self, filename, ignore_option_errors) File "/usr/lib/python3.12/site-packages/setuptools/config/pyprojecttoml.py", line 71, in apply_configuration config = read_configuration(filepath, True, ignore_option_errors, dist) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/setuptools/config/pyprojecttoml.py", line 139, in read_configuration validate(subset, filepath) File "/usr/lib/python3.12/site-packages/setuptools/config/pyprojecttoml.py", line 60, in validate raise ValueError(f"{error}\n{summary}") from None ValueError: invalid pyproject.toml config: `project.license`. configuration error: `project.license` must be valid exactly by one definition (2 matches found): - keys: 'file': {type: string} required: ['file'] - keys: 'text': {type: string} required: ['text'] [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. [notice] A new release of pip is available: 24.2 -> 25.2 [notice] To update, run: pip3 install --upgrade pip error: metadata-generation-failed Best regards Daniel Le mar. 19 août 2025 à 17:21, daniel antoine <univa...@gmail.com> a écrit : > > Hi Davide > my receipt for python-efl > > makedepends=(cython dbus-python efl git libsndfile pulseaudio > python-packaging python-setuptools) > > description="python 3 bindings for the Enlightenment Foundation Libraries" > url="http://www.enlightenment.org" > > packager="Grat-OS Team" > maintainer="Dania" > > name=python-efl > version=1.26.1 > release=9 > > #source=(http://download.enlightenment.org/rel/bindings/python/$name-$version.tar.xz) > > #Last commit on python-efl repo > #_commit=5accd9350bc4dc2bf1d06bde847a605264c2e78b > _commit=701c912a7baa524301d82a87fd9108d293b74664 > > prepare() { > git clone https://git.enlightenment.org/enlightenment/python-efl > $name-$version > > cd $name-$version > git checkout ${_commit} > } > > build() { > cd ${name}-$version > > python3 setup.py build > python3 setup.py install --root=$PKG --optimize=1 --skip-build > } > > Best regards > > Daniel > > Le mar. 19 août 2025 à 14:29, Davide Andreoli <d...@gurumeditation.it> a > écrit : > > > > > > > > > > > > > > lunedì 18 agosto 2025 15:16, daniel antoine <univa...@gmail.com> ha scritto: > > > > > > > > > > > Hi Dave > > > > > > I try to compile python-efl with the last commit 701c912a7b but I > > > ranil an error at [16/16] Cythonizing efl/utils/logger.pyx > > > > > > I get > > > > > > [16/16] Cythonizing efl/utils/logger.pyx > > > warning: efl/utils/logger.pyx:1:0: Dotted filenames > > > ('efl.utils.logger.pxd') are deprecated. Please use the normal Python > > > package directory layout. > > > warning: efl/utils/logger.pyx:18:0: Dotted filenames ('efl.eina.pxd') > > > are deprecated. Please use the normal Python package directory layout. > > > configuration error: `project.license` must be valid exactly by one > > > definition (2 matches found): > > > > > > - keys: > > > 'file': {type: string} > > > required: ['file'] > > > - keys: > > > 'text': {type: string} > > > required: ['text'] > > > > > > DESCRIPTION: > > > `Project license <https://peps.python.org/pep-0621/#license>`_. > > > > > > > > > GIVEN VALUE: > > > "LGPL-3.0-only" > > > > > > OFFENDING RULE: 'oneOf' > > > > > > DEFINITION: > > > { > > > "oneOf": [ > > > { > > > "properties": { > > > "file": { > > > "type": "string", > > > "$$description": [ > > > "Relative path to the file (UTF-8) which > > > contains the license for the", > > > "project." > > > ] > > > } > > > }, > > > "required": [ > > > "file" > > > ] > > > }, > > > { > > > "properties": { > > > "text": { > > > "type": "string", > > > "$$description": [ > > > "The license of the project whose meaning > > > is that of the", > > > "`License field from the core metadata", > > > "<https://packaging.python.org/specifications/core-metadata/#license>`_." > > > > > > ] > > > } > > > }, > > > "required": [ > > > "text" > > > ] > > > } > > > ] > > > } > > > Traceback (most recent call last): > > > File "/tmp/work/src/python-efl-1.26.1/setup.py", line 437, in <module> > > > > > > setup( > > > File "/usr/lib/python3.12/site-packages/setuptools/init.py", > > > line 117, in setup > > > return distutils.core.setup(**attrs) > > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > > File "/usr/lib/python3.12/site-packages/setuptools/_distutils/core.py", > > > line 157, in setup > > > dist.parse_config_files() > > > File "/usr/lib/python3.12/site-packages/setuptools/dist.py", line > > > 655, in parse_config_files > > > pyprojecttoml.apply_configuration(self, filename, ignore_option_errors) > > > File > > > "/usr/lib/python3.12/site-packages/setuptools/config/pyprojecttoml.py", > > > line 71, in apply_configuration > > > config = read_configuration(filepath, True, ignore_option_errors, dist) > > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > > File > > > "/usr/lib/python3.12/site-packages/setuptools/config/pyprojecttoml.py", > > > line 139, in read_configuration > > > validate(subset, filepath) > > > File > > > "/usr/lib/python3.12/site-packages/setuptools/config/pyprojecttoml.py", > > > line 60, in validate > > > raise ValueError(f"{error}\n{summary}") from None > > > ValueError: invalid pyproject.toml config: `project.license`. > > > configuration error: `project.license` must be valid exactly by one > > > definition (2 matches found): > > > > > > - keys: > > > 'file': {type: string} > > > required: ['file'] > > > - keys: > > > 'text': {type: string} > > > required: ['text'] > > > > > > =======> ERROR: Building 'python-efl.sources1755228613any.cards.tar.xz' > > > failed. > > > > > > > > > it refres to two licenses ? > > > > > > The compile is ok with commit 5accd9350b > > > > Hi, I'm working on the build system in these days. > > How are you building? The goal is to use modern python packaging, so you > > should be able to build using: > > python -m build > > and then install the generated wheel using pip. > > > > But I'm still working on this, will update all the docs asap. > > > > > > > > Bets regards > > > > > > Daniel _______________________________________________ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users