Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Update PURLDB with all ABCTK releases

Đang mở
#582 2 bình luận 0 reaction 3 người được giao Xem trên GitHub

@pombredanne đang làm issue này rồi.

Từ ngày 15/3/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Important needs design

We need an automated process to update PURLDB whenever we release a new version of any AboutCode.org package - we should start with aboutcode-toolkit. If we have each release in PURLDB then you should be able to get that data for a Product in DejaCode with the Improve Packages from PURLDB Action.
The steps seem to be:

  • Use the PURLDB API to get the current list of PURLs for aboutcode-toolkit and their data
  • Identify missing or incorrect data in the existing PURL data and correct it
  • Identify the missing PURLs and add them to PURLDB
  • Figure out how to automatically populate the PURLDB for each new release of aboutcode-toolkit

This is a pilot for a process to:

  • Clean up existing PURLDB data for all AboutCode projects
  • Automate adding PURLDB data for each new release of an AboutCode project
    The initial focus should be on AboutCode projects that are published to PyPI to keep this simple.

An open question is how to handle the different types of packages that we usually publish for aboutcode-toolkit (and most other AboutCode projects). Using v11.0.0 AboutCode Toolkit v11.0.0 as an example, we have 4 downloads:

  • aboutcode_toolkit-11.0.0-py3-none-any.whl
  • aboutcode_toolkit-11.0.0.tar.gz
  • v11.0.0.zip (Source Code)
  • v11.0.0.tar.gz (Source Code)

For patch releases like AboutCode Toolkit v11.0.1 and v11.0.2 (and many older versions) we only release the source packages.
Since each PURLDB record has one Download URL we will need some way to record the four different PURLs.
This seems to call for a qualifier so that the records will be unique. My guess is that we might want to treat the wheel as primary in the PyPI context and perhaps not use a qualifier for it.

Ngôn ngữ chính
Python
Star
100
Fork
48
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aboutcode-org/aboutcode-toolkit

Tất cả issue của aboutcode-org/aboutcode-toolkit

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.