Source license_url from licenses.txt where it exists

Open
#1,941 0 comments 2 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python, sql, yaml

Research direction

Start with the code that populates license_url for feeds, probably in the Python ingestion or data-processing modules, and see where manually sourced URLs are set today. Check how a feed's licenses.txt or SPDX ID would be read and how it should take precedence over existing values. Done when licenses.txt and SPDX-supplied licenses set license_url and tests cover the override behaviour.

Written by the indexing model from the issue text.

Description

licenses.txt has been adopted into GTFS. It is a new feature that will take time to be adopted more widely.

However, we can support adoption by starting to source license_url from licenses.txt where it exists, or where an SPDX ID is supplied.

I think in cases where it is provided via licenses.txt, it would override any manually sourced URLs we've found that are already populated in license_url. Open to discussion.

Dominant language
Python
Stars
34
Forks
7
Avg merge
3d 3h
Merged PRs (30d)
22

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MobilityData/mobility-feed-api

All issues in MobilityData/mobility-feed-api

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.