Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Document licensing and copyright for reused code

Aperta
#202 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python
Ambito
documentation

Direzione di ricerca

Inizia esaminando i commenti copied-from e gli esempi in _compat.py, quindi confronta il codice riutilizzato del repository con la REUSE Specification e le indicazioni SPDX collegate nell'issue. Documenta le informazioni sul copyright e sulla licenza nel formato leggibile dalle macchine proposto per ogni snippet identificato, assicurandoti che l'attribuzione e la copertura delle licenze siano complete per tutto il codice riutilizzato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hello,

I noticed that part of the code in this repo is copied from other projects, with comments for attribution, for instance:

https://github.com/runwayml/sdk-python/blob/b28a4525782e8675e316dff460f23b7d3ff1a593/src/runwayml/_streaming.py#L1

https://github.com/runwayml/sdk-python/blob/b28a4525782e8675e316dff460f23b7d3ff1a593/src/runwayml/_compat.py#L196

This makes it difficult to vendor this repo, as one has to track all sources and their licenses / copyright information to ensure compliance with their licenses.
Would you consider standardizing this in a machine-readable format? I recommend using REUSE Specification, which enforces the SPDX license open standard.

For instance, _compat.py could look like:

+ # SPDX-FileCopyrightText: 2026 RunwayML
+ #
+ # SPDX-License-Identifier: Apache-2.0

...

     # we define a separate type (copied from typeshed)
     # that represents that `cached_property` is `set`able
     # at runtime, which differs from `@property`.
     #
     # this is a separate type as editors likely special case
     # `@property` and we don't want to cause issues just to have
     # more helpful internal types.

+   # SPDX-SnippetBegin
+   # SPDX-SnippetCopyrightText: Contributors to typeshed <https://github.com/python/typeshed>
+   # SPDX-SnippetCopyrightText: 2015 Jukka Lehtosalo and contributors
+   # SPDX-License-Identifier: Apache-2.0 AND MIT
    class typed_cached_property(Generic[_T]):
      ...
+   # SPDX-SnippetEnd

If you are ok with that I could help with a PR (just based on the "copied from ..." comments).

Thanks!

Lingua principale
Python
Stelle
26
Fork
10
Merge medio
1h 38m
PR unite (30g)
4

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di runwayml/sdk-python

Tutte le issue di runwayml/sdk-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.