Skip to content

Comments

Change pypi license priority order#288

Merged
dd-jy merged 2 commits intomainfrom
pypi
Feb 5, 2026
Merged

Change pypi license priority order#288
dd-jy merged 2 commits intomainfrom
pypi

Conversation

@dd-jy
Copy link
Contributor

@dd-jy dd-jy commented Feb 5, 2026

Description

Change pypi license priority order

metadata의 아래 필드 우선순위에 따라 license 결정

  1. license_expression (PEP 639 표준)
  2. classifier (PyPI Trove Classifier)
    • License :: OSI Approved :: MIT License → MIT License 추출
    • ' :: '로 split 후 마지막 부분 사용 ("OSI Approved"는 스킵)
  3. license (레거시 텍스트 필드)
    • 멀티라인: askalono 분석하여 license명 추출
    • 단일라인: 그대로 사용
  4. license_file
    • {package}-{version}.dist-info/ 경로 찾기
    • 각 파일 위치:
      • 메타데이터 경로 우선 (예: licenses/LICENSE)
      • Fallback: 파일명만 있으면 하위 디렉토리 재귀 검색
    • 각 파일을 askalono 분석하여 license명 추출

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation update
  • Refactoring, Maintenance
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Signed-off-by: 석지영/책임연구원/SW공학(연)Open Source TP <jiyeong.seok@lge.com>
@dd-jy dd-jy self-assigned this Feb 5, 2026
@dd-jy dd-jy added the chore [PR/Issue] Refactoring, maintenance the code label Feb 5, 2026
@soimkim
Copy link
Contributor

soimkim commented Feb 5, 2026

@dd-jy 어떤 순서로 바뀌었는지 PR description에 작성 부탁드립니다.
release note에서 링크로 진입하면 상세 내용을 확인하기 위해 요청드립니다.

Signed-off-by: 석지영/책임연구원/SW공학(연)Open Source TP <jiyeong.seok@lge.com>
@dd-jy
Copy link
Contributor Author

dd-jy commented Feb 5, 2026

@soimkim
description에 업데이트하였습니다.

@dd-jy dd-jy merged commit c0525df into main Feb 5, 2026
12 checks passed
@dd-jy dd-jy deleted the pypi branch February 5, 2026 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore [PR/Issue] Refactoring, maintenance the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants