swagger-api / swagger-api/swagger-codegen

[Python] Generated requirements.txt specifies python-dateutil incorrectly

Open
#11,226 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

Everytime I regenerate a client I have to set:

python_dateutil >= 2.5.3

to instead be: python-dateutil >= 2.5.3

Swagger-codegen version

2.4.*

Swagger declaration file content or url

Any spec with dates.

Command line used for generation

Same as in https://github.com/swagger-api/swagger-codegen/issues/11225

Steps to reproduce
  • Create api with datetimes
  • Generate client
  • Inspect requirements.txt
Related issues/PRs

Not that I could see.

Suggest a fix/enhancement

The proper name is: python-dateutil >= 2.5.3

Contributor guide

Open the 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.

Research direction

Start by locating the Python client generation template or entry point that produces requirements.txt, using a specification containing date or datetime fields. Reproduce the issue with the command from issue 11225 and inspect the generated dependency name. Done means generated requirements.txt uses python-dateutil >= 2.5.3.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.