1 |
Hello *, |
2 |
|
3 |
I'm trying to bump dev-python/rpyc to 5.2.3, and I get |
4 |
|
5 |
>>> Compiling source in |
6 |
/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3 ... |
7 |
* python3_9: running distutils-r1_run_phase distutils-r1_python_compile |
8 |
python3.9 -c from setuptools import setup; setup() build -j 6 |
9 |
configuration error: `project.license` must be valid exactly by one |
10 |
definition (2 matches found): |
11 |
|
12 |
- keys: |
13 |
'file': {type: string} |
14 |
required: ['file'] |
15 |
- keys: |
16 |
'text': {type: string} |
17 |
required: ['text'] |
18 |
|
19 |
DESCRIPTION: |
20 |
`Project license |
21 |
<https://www.python.org/dev/peps/pep-0621/#license>`_. |
22 |
|
23 |
GIVEN VALUE: |
24 |
"MIT" |
25 |
|
26 |
OFFENDING RULE: 'oneOf' |
27 |
|
28 |
DEFINITION: |
29 |
{ |
30 |
"oneOf": [ |
31 |
{ |
32 |
"properties": { |
33 |
"file": { |
34 |
"type": "string", |
35 |
"$$description": [ |
36 |
"Relative path to the file (UTF-8) which |
37 |
contains the license for the", |
38 |
"project." |
39 |
] |
40 |
} |
41 |
}, |
42 |
"required": [ |
43 |
"file" |
44 |
] |
45 |
}, |
46 |
{ |
47 |
"properties": { |
48 |
"text": { |
49 |
"type": "string", |
50 |
"$$description": [ |
51 |
"The license of the project whose meaning is |
52 |
that of the", |
53 |
"`License field from the core metadata", |
54 |
|
55 |
"<https://packaging.python.org/specifications/core-metadata/#license>`_." |
56 |
] |
57 |
} |
58 |
}, |
59 |
"required": [ |
60 |
"text" |
61 |
] |
62 |
} |
63 |
] |
64 |
} |
65 |
Traceback (most recent call last): |
66 |
File "<string>", line 1, in <module> |
67 |
File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 87, |
68 |
in setup |
69 |
return distutils.core.setup(**attrs) |
70 |
File "/usr/lib/python3.9/distutils/core.py", line 121, in setup |
71 |
dist.parse_config_files() |
72 |
File "/usr/lib/python3.9/site-packages/setuptools/dist.py", line 868, in |
73 |
parse_config_files |
74 |
pyprojecttoml.apply_configuration(self, filename, |
75 |
ignore_option_errors) |
76 |
File |
77 |
"/usr/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py", |
78 |
line 62, in apply_configuration |
79 |
config = read_configuration(filepath, True, ignore_option_errors, |
80 |
dist) |
81 |
File |
82 |
"/usr/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py", |
83 |
line 126, in read_configuration |
84 |
validate(subset, filepath) |
85 |
File |
86 |
"/usr/lib/python3.9/site-packages/setuptools/config/pyprojecttoml.py", |
87 |
line 51, in validate |
88 |
raise ValueError(f"{error}\n{summary}") from None |
89 |
ValueError: invalid pyproject.toml config: `project.license`. |
90 |
configuration error: `project.license` must be valid exactly by one |
91 |
definition (2 matches found): |
92 |
|
93 |
- keys: |
94 |
'file': {type: string} |
95 |
required: ['file'] |
96 |
- keys: |
97 |
'text': {type: string} |
98 |
required: ['text'] |
99 |
|
100 |
Any idea what has gone wrong? By googling I've found |
101 |
https://github.com/vanheeringen-lab/seq2science/issues/851 |
102 |
https://bytemeta.vip/repo/jdtuck/fdasrsf_python/issues/23 |
103 |
which seem similar. |
104 |
|
105 |
Thanks in advance, |
106 |
Andrey |