[Python] Remove nose support from server generators

未关闭
#25,401 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
活跃
技术栈
java, python

调研方向

Start by locating the Flask, aiohttp, and BluePlanet server generator templates and Java options that define useNose, then trace their generated requirements, tox and CI configuration, documentation, samples, and ignore files. Compare the pytest settings across those generators and preserve the current Python support settings and dependency versions. Done when nose support and the option are removed throughout the affected generators, pytest is configured unconditionally, and the Flask Travis configuration installs test requirements and runs pytest.

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

描述

Enhancement: Feature
Is your feature request related to a problem? Please describe.

The Python Flask, aiohttp, and BluePlanet server generators still support nose through a useNose option, generated requirements and tox configuration, and CI setup. Nose has been in maintenance mode for years, and its last release was in 2015. Keeping this option adds an obsolete test-runner path and leaves generated projects with inconsistent test configuration.

Describe the solution you'd like

Remove nose support completely from the Flask, aiohttp, and BluePlanet server generators. Generate pytest requirements and runner configuration unconditionally, remove the useNose option and Java API, and update the affected CI templates, documentation, samples, and ignore files. Preserve the existing Python support settings and dependency versions.

Describe alternatives you've considered

Keeping nose as an optional runner would preserve an outdated path and continue carrying its configuration through the generators. Upgrading pytest and standardizing its versions across all Python projects could be done separately; this change should preserve the current versions.

Additional context

This is a breaking change: users who set useNose will need to remove that property. Custom templates or generated projects that provide their own nose configuration may need manual updates. The change also fixes the Flask Travis configuration to install test requirements and run pytest.

主要语言
Java
星标
26.9k
派生
7.8k
平均合并
2 天 10 小时
30 天内合并 PR
180

环境准备

在 Codespaces 中打开

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

从这里开始

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

OpenAPITools/openapi-generator 的其他 Issue

查看 OpenAPITools/openapi-generator 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

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