ynqa / pandavro

Apache Avro <-> pandas DataFrame
MIT License
134 stars 32 forks source link

Loosen the pinned fastavro dependency #42

Closed deleted closed 1 year ago

deleted commented 1 year ago

Previously the fastavro dependency was pinned to exactly match v1.5.1.

This would make pandavro unable to coexists with other libraries that depend on even slightly newer versions of fastavro, for example marcosschroh/dataclasses-avroschema], which requires fastavro v1.5.4.

Loosening this dependency to ~=1.5.1 should allow pandavro to continue working with newer versions of fastavro up until a major version increment.

Tests still appear to pass.

rabbit72 commented 1 year ago

Loosening this dependency to ~=1.5.1 should allow pandavro to continue working with newer versions of fastavro up until a major version increment.

I believe it means until a minor version of fastavro update

~=3.1.2: version 3.1.2 or later, but not version 3.2.0 or later.

https://peps.python.org/pep-0440/#examples

deleted commented 1 year ago

@rabbit72 I stand corrected. ~=1.5.1 solves my immediate problem. I'll leave it up to the project maintainers whether it can be loosened further.