Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Document licensing and copyright for reused code

未关闭
#202 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
冷清
技术栈
python
领域
documentation

调研方向

首先检查 _compat.py 中的 copied-from 注释和示例,然后将仓库中复用的代码与 issue 中链接的 REUSE Specification 和 SPDX guidance 进行比较。针对每个已识别的 snippet,按照提议的机器可读格式记录版权和许可证信息,确保整个复用代码的归属信息和许可证覆盖完整。

由索引模型根据 Issue 内容生成。

描述

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!

主要语言
Python
星标
26
派生
10
平均合并
1 小时 38 分钟
30 天内合并 PR
4

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

runwayml/sdk-python 的其他 Issue

查看 runwayml/sdk-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。