Skip to content

feat/shimming package metadata#315

Merged
blast-hardcheese merged 8 commits intomainfrom
dstewart/feat/shimming-package-metadata
Dec 8, 2024
Merged

feat/shimming package metadata#315
blast-hardcheese merged 8 commits intomainfrom
dstewart/feat/shimming-package-metadata

Conversation

@blast-hardcheese
Copy link
Contributor

@blast-hardcheese blast-hardcheese commented Dec 8, 2024

Why

Adding version and summary field for popular packages.

$ make upm && PYPI_MAP_DB=./internal/backends/python/pypi_map.sqlite ./cmd/upm/upm -l python search flask --format json | jq .
cd cmd/upm && go build -ldflags "-X 'github.com/replit/upm/internal/cli.version=${VERSION:-development version}'"
[
  {
    "name": "Flask",
    "description": "A simple framework for building complex web applications.",
    "version": "3.1.0"
  },
  {
    "name": "Flask-Caching",
    "description": "Adds caching support to Flask applications.",
    "version": "2.3.0"
  },
  {
    "name": "Flask-WTF",
    "description": "Form rendering, validation, and CSRF protection for Flask with WTForms.",
    "version": "1.2.2"
  },
  {
    "name": "Flask-Session",
    "description": "Server-side session support for Flask",
    "version": "0.8.0"
  },
  {
    "name": "Flask-SQLAlchemy",
    "description": "Add SQLAlchemy support to your Flask application.",
    "version": "3.1.1"
  },

What changed

  • Altered gen_pypi_map to index summary and version field
  • Adjusting threshold from 10k to 5k so we pull more packages
  • Reindexed BQ to get all the data
  • Emitting full data into

Test plan

Describe what you did to test this change to a level of detail that allows your reviewer to test it

@blast-hardcheese blast-hardcheese requested a review from a team as a code owner December 8, 2024 06:28
@blast-hardcheese blast-hardcheese requested review from vlinkz and removed request for a team December 8, 2024 06:28
@blast-hardcheese blast-hardcheese merged commit 9f8d08f into main Dec 8, 2024
@blast-hardcheese blast-hardcheese deleted the dstewart/feat/shimming-package-metadata branch December 8, 2024 06:43
@blast-hardcheese blast-hardcheese added the enhancement New feature or request label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants