* [gentoo-dev] setuptools problem
@ 2022-10-10 8:08 Andrey Grozin
2022-10-10 8:23 ` parona
0 siblings, 1 reply; 2+ messages in thread
From: Andrey Grozin @ 2022-10-10 8:08 UTC (permalink / raw
To: gentoo-dev
Hello *,
I'm trying to bump dev-python/rpyc to 5.2.3, and I get
>>> Compiling source in
/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3 ...
* python3_9: running distutils-r1_run_phase distutils-r1_python_compile
python3.9 -c from setuptools import setup; setup() build -j 6
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://www.python.org/dev/peps/pep-0621/#license>`_.
GIVEN VALUE:
"MIT"
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 "<string>", line 1, in <module>
File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 87,
in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.9/distutils/core.py", line 121, in setup
dist.parse_config_files()
File "/usr/lib/python3.9/site-packages/setuptools/dist.py", line 868, in
parse_config_files
pyprojecttoml.apply_configuration(self, filename,
ignore_option_errors)
File
"/usr/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py",
line 62, in apply_configuration
config = read_configuration(filepath, True, ignore_option_errors,
dist)
File
"/usr/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py",
line 126, in read_configuration
validate(subset, filepath)
File
"/usr/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py",
line 51, 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']
Any idea what has gone wrong? By googling I've found
https://github.com/vanheeringen-lab/seq2science/issues/851
https://bytemeta.vip/repo/jdtuck/fdasrsf_python/issues/23
which seem similar.
Thanks in advance,
Andrey
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-dev] setuptools problem
2022-10-10 8:08 [gentoo-dev] setuptools problem Andrey Grozin
@ 2022-10-10 8:23 ` parona
0 siblings, 0 replies; 2+ messages in thread
From: parona @ 2022-10-10 8:23 UTC (permalink / raw
To: gentoo-dev
Hello,
You should add DISTUTILS_USE_PEP517=hatchling.
A good resource for python ebuilds is here https://projects.gentoo.org/python/guide/distutils.html?highlight=pep517#the-pep-517-and-legacy-modes
------- Original Message -------
On Monday, October 10th, 2022 at 11:08, Andrey Grozin <grozin@woodpecker.gentoo.org> wrote:
> Hello *,
>
> I'm trying to bump dev-python/rpyc to 5.2.3, and I get
>
> > > > Compiling source in
>
> /var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3 ...
> * python3_9: running distutils-r1_run_phase distutils-r1_python_compile
> python3.9 -c from setuptools import setup; setup() build -j 6
> 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://www.python.org/dev/peps/pep-0621/#license>`_.
>
>
> GIVEN VALUE:
> "MIT"
>
> 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 "<string>", line 1, in <module>
>
> File "/usr/lib/python3.9/site-packages/setuptools/init.py", line 87,
> in setup
> return distutils.core.setup(**attrs)
> File "/usr/lib/python3.9/distutils/core.py", line 121, in setup
> dist.parse_config_files()
> File "/usr/lib/python3.9/site-packages/setuptools/dist.py", line 868, in
> parse_config_files
> pyprojecttoml.apply_configuration(self, filename,
> ignore_option_errors)
> File
> "/usr/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py",
> line 62, in apply_configuration
> config = read_configuration(filepath, True, ignore_option_errors,
> dist)
> File
> "/usr/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py",
> line 126, in read_configuration
> validate(subset, filepath)
> File
> "/usr/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py",
> line 51, 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']
>
> Any idea what has gone wrong? By googling I've found
> https://github.com/vanheeringen-lab/seq2science/issues/851
> https://bytemeta.vip/repo/jdtuck/fdasrsf_python/issues/23
> which seem similar.
>
> Thanks in advance,
> Andrey
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-10 8:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-10 8:08 [gentoo-dev] setuptools problem Andrey Grozin
2022-10-10 8:23 ` parona
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox