swagger-api / swagger-api/swagger-codegen
[Python] Generated requirements.txt specifies python-dateutil incorrectly
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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