Skip to content

Commit

Permalink
Include optional build tag
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Jun 16, 2023
1 parent 1a267ad commit d06bcf6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ackg|0.0.5||0|0|2021-01-21 04:37:10
- Extra requirements (`requires_extras`)
- Python requirements (`requires_python`)
- Yanked versions (`yanked`)
- Wheel data (`python_tags`, `abi_tags`, `platform_tags`)
- Wheel data (`build_tag`, `python_tags`, `abi_tags`, `platform_tags`)
- Maintainers on PyPI
- URLs used by packages
- OpenSSF scorecard data
Expand Down Expand Up @@ -64,6 +64,7 @@ CREATE TABLE deps (
CREATE TABLE wheels (
package_name STRING,
filename STRING,
build STRING,
python STRING,
abi STRING,
platform STRING,
Expand Down
7 changes: 4 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,10 @@ def update_data_for_package(package: str) -> None:
db.execute(
"""
INSERT INTO wheels (
package_name, filename, python, abi, platform
) VALUES (?, ?, ?, ?, ?);
package_name, filename, build, python, abi, platform
) VALUES (?, ?, ?, ?, ?, ?);
""",
(package, filename, py, abi, plat),
(package, filename, whl.build, py, abi, plat),
)

if abi_tags == ["none"] and platform_tags == ["any"]:
Expand Down Expand Up @@ -504,6 +504,7 @@ def get_google_assured_oss_packages(http: urllib3.PoolManager) -> set[str]:
package_name TEXT,
version TEXT,
filename TEXT,
build TEXT,
python TEXT,
abi TEXT,
platform TEXT,
Expand Down

0 comments on commit d06bcf6

Please sign in to comment.