requirementsのversionに幅を持たせる #211
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.







SDKに影響のないversion範囲の指定をする際の根拠
geojson==2.5.0 -> geojson>=2.0.0,<4.0
Geojsonは地理空間データを扱うためのフォーマットであるGeoJSONをPythonで操作するためのライブラリである。
使っているメソッドがそのGeoJSONをパース、シリアライズする処理だけであった。
geojsonの2系と3系はRFC 7946にしたがって作られているため、2系と3系は使えると判断。4系にアップグレードされる際どうなるか分からないので、そこは範囲外
The GeoJSON Specification (RFC 7946)
xmltodict==0.12.0 -> 変更なし
XMLをPythonの辞書に変換することで、XMLデータの読み書きや操作を簡単にするライブラリ。最新versionは0.13.0であった。このアップデートにより、リストの要素をどのようにXMLタグに変換するかなどの仕様変更があり、後方互換性がない。時間をかけて現在のSDKにおいて互換性があるかの確認もできるが、versionの幅はあまり広がらないためそのままの方が良いと判断。SDKの使用パターンが分かれば範囲をもうける調査可能。
opencv-python==4.7.0.72 -> opencv-python>=4.0.0,<5.0.0
使っている関数はリリース初期からある基本的な関数であり、基本的にはどのバージョンでも動くと思われる。
以下のリリースノートで4.x.xでは、使っている関数に破壊的な変更がなさそうであることを確認し、versionの範囲を4.x.xに拡張。
https://github.com/opencv/opencv/wiki/ChangeLog
numpy>=1.21.2 -> numpy>=1.26.0
opencv-pythonの変更により、その依存関係から変更
requests==2.25.1 -> requests>=2.4.2,<3.0
jsonパラメータが追加された2.4.2以降を指定