Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax version constraint of prance #1409

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

tetsuok
Copy link
Contributor

@tetsuok tetsuok commented Jul 5, 2023

This PR proposes relaxing the version constraint of prance (https://pypi.org/project/prance/). This is to avoid transitive dependency issues caused by prance: Currently, users can't use this fantastic datamodel-code-generator along with Python packages that require packaging 22.0 or newer.

One example of such packages is Black: Black 23.1.0 or newer require packaging 22.0 or newer (commit) (NOTE: in organizations that adopt monorepo, they often need to use a single centralized requirements file that contain Black and datamodel-code-generator that require different versions of packaging).

There are two reasons why the dependency issue happens:

A solution to the issues would be to relax the version constraint of prance so that users can install prance 23.06.21.0.

@codecov
Copy link

codecov bot commented Jul 5, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (e9b6edf) 100.00% compared to head (64d20a2) 100.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##            master     #1409     +/-   ##
===========================================
  Coverage   100.00%   100.00%             
===========================================
  Files           11        32     +21     
  Lines         1020      3540   +2520     
  Branches       201       831    +630     
===========================================
+ Hits          1020      3540   +2520     
Flag Coverage Δ
unittests 99.63% <99.57%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
datamodel_code_generator/__init__.py 100.00% <100.00%> (ø)
datamodel_code_generator/__main__.py 100.00% <100.00%> (ø)
datamodel_code_generator/format.py 100.00% <100.00%> (ø)
datamodel_code_generator/http.py 100.00% <100.00%> (ø)
datamodel_code_generator/imports.py 100.00% <100.00%> (ø)
datamodel_code_generator/model/__init__.py 100.00% <100.00%> (ø)
datamodel_code_generator/model/base.py 100.00% <100.00%> (ø)
datamodel_code_generator/model/dataclass.py 100.00% <100.00%> (ø)
datamodel_code_generator/model/enum.py 100.00% <100.00%> (ø)
datamodel_code_generator/model/improts.py 100.00% <100.00%> (ø)
... and 22 more

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@koxudaxi koxudaxi merged commit 5d44bf2 into koxudaxi:master Jul 6, 2023
73 checks passed
@koxudaxi
Copy link
Owner

koxudaxi commented Aug 5, 2023

@tetsuok
Sorry for the delay in thanking you.
Thank you for your contribution!

@tetsuok
Copy link
Contributor Author

tetsuok commented Aug 5, 2023

@koxudaxi Thank you for merging the pull request, and quickly releasing 0.21.1 at PyPI.

@tetsuok tetsuok deleted the update-prance-ver branch August 5, 2023 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants