Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New error in types-tqdm-feedstock: "configuration error: project.license must be valid exactly by one definition" #2489

Open
1 task done
sobolevn opened this issue Apr 1, 2025 · 0 comments
Labels

Comments

@sobolevn
Copy link
Member

sobolevn commented Apr 1, 2025

Conda-forge documentation

I started to experience a new CI failure for https://github.com/conda-forge/types-tqdm-feedstock

It happed in conda-forge/types-tqdm-feedstock#18

Looks like for some reason, my license definition is not valid.
But, there's no explicit license difinion on my end.

  • I could not solve my problem using the conda-forge documentation.

Installed packages

types-tqdm

Environment info

https://dev.azure.com/conda-forge/84710dde-1620-425b-80d0-4cf5baca359d/_apis/build/builds/1212930/logs/16

Issue

Link: conda-forge/types-tqdm-feedstock#18
And: https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=1212930&view=logs&j=7b6f2c87-f3a7-5133-8d84-7c03a75d9dfc&t=9eb77fd2-8ddd-5444-8fc0-71cb28dcb736

Rendered as:

package:
  name: types-tqdm
  version: 4.67.0.20250401
source:
  sha256: 773f8f85add7e5ffe880c8cceb94f59acf53e5923da024c91757d6a39ee9b83f
  url: https://pypi.org/packages/source/t/types-tqdm/types_tqdm-4.67.0.20250401.tar.gz
build:
  noarch: python
  number: '0'
  script: /home/conda/feedstock_root/build_artifacts/types-tqdm_1743502119346/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/bin/python
    -m pip install . -vv
requirements:
  host:
    - _libgcc_mutex 0.1 conda_forge
    - ca-certificates 2025.1.31 hbcca054_0
    - ld_impl_linux-64 2.43 h712a8e2_4
    - libgomp 14.2.0 h767d61c_2
    - tzdata 2025b h78e105d_0
    - _openmp_mutex 4.5 2_gnu
    - libgcc 14.2.0 h767d61c_2
    - libffi 3.4.6 h2dba641_1
    - libgcc-ng 14.2.0 h69a702a_2
    - liblzma 5.6.4 hb9d3cd8_0
                  ]
              }
          ]
      }

Error:

2025-04-01T10:10:28.1065563Z Processing $SRC_DIR
2025-04-01T10:10:28.1072485Z   Added file://$SRC_DIR to build tracker '/tmp/pip-build-tracker-9gzxcql2'
2025-04-01T10:10:28.1097957Z   Created temporary directory: /tmp/pip-modern-metadata-3c_10ogw
2025-04-01T10:10:28.1108112Z   Preparing metadata (pyproject.toml): started
2025-04-01T10:10:28.1110663Z   Running command Preparing metadata (pyproject.toml)
2025-04-01T10:10:28.2792784Z   configuration error: `project.license` must be valid exactly by one definition (2 matches found):
2025-04-01T10:10:28.2793598Z 
2025-04-01T10:10:28.2798108Z       - keys:
2025-04-01T10:10:28.2801500Z           'file': {type: string}
2025-04-01T10:10:28.2807913Z         required: ['file']
2025-04-01T10:10:28.2808140Z       - keys:
2025-04-01T10:10:28.2808331Z           'text': {type: string}
2025-04-01T10:10:28.2808582Z         required: ['text']
2025-04-01T10:10:28.2816664Z 
2025-04-01T10:10:28.2823683Z   DESCRIPTION:
2025-04-01T10:10:28.2833160Z       `Project license <https://peps.python.org/pep-0621/#license>`_.
2025-04-01T10:10:28.2839635Z 
2025-04-01T10:10:28.2842458Z   GIVEN VALUE:
2025-04-01T10:10:28.2849867Z       "Apache-2.0"
2025-04-01T10:10:28.2853438Z 
2025-04-01T10:10:28.2854522Z   OFFENDING RULE: 'oneOf'
2025-04-01T10:10:28.2862176Z 
2025-04-01T10:10:28.2871080Z   DEFINITION:
2025-04-01T10:10:28.2872267Z       {
2025-04-01T10:10:28.2883463Z           "oneOf": [
2025-04-01T10:10:28.2887399Z               {
2025-04-01T10:10:28.2889420Z                   "properties": {
2025-04-01T10:10:28.2897161Z                       "file": {
2025-04-01T10:10:28.2897515Z                           "type": "string",
2025-04-01T10:10:28.2907312Z                           "$$description": [
2025-04-01T10:10:28.2917609Z                               "Relative path to the file (UTF-8) which contains the license for the",
2025-04-01T10:10:28.2919628Z                               "project."
2025-04-01T10:10:28.2925197Z                           ]
2025-04-01T10:10:28.2925817Z                       }
2025-04-01T10:10:28.2931109Z                   },
2025-04-01T10:10:28.2937523Z                   "required": [
2025-04-01T10:10:28.2949302Z                       "file"
2025-04-01T10:10:28.2949698Z                   ]
2025-04-01T10:10:28.2955016Z               },
2025-04-01T10:10:28.2963806Z               {
2025-04-01T10:10:28.2966369Z                   "properties": {
2025-04-01T10:10:28.2977142Z                       "text": {
2025-04-01T10:10:28.2977660Z                           "type": "string",
2025-04-01T10:10:28.2978421Z                           "$$description": [
2025-04-01T10:10:28.2978679Z                               "The license of the project whose meaning is that of the",
2025-04-01T10:10:28.2978962Z                               "`License field from the core metadata",
2025-04-01T10:10:28.2982419Z                               "<https://packaging.python.org/specifications/core-metadata/#license>`_."
2025-04-01T10:10:28.2992769Z                           ]
2025-04-01T10:10:28.2997730Z                       }
2025-04-01T10:10:28.3005989Z                   },
2025-04-01T10:10:28.3006352Z                   "required": [
2025-04-01T10:10:28.3013188Z                       "text"
2025-04-01T10:10:28.3020835Z                   ]
2025-04-01T10:10:28.3028699Z               }
2025-04-01T10:10:28.3036487Z           ]
2025-04-01T10:10:28.3037104Z       }
@sobolevn sobolevn added the bug label Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant