-
Notifications
You must be signed in to change notification settings - Fork 82
build: add pyproject.toml, poetry, and tox #1015
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
Closed
Closed
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
927263a
Extract general requirements to file
027256a
Extract api requirements to file
0076c6f
Extract ci requirements to file
98fe43a
Extract dev requirements to file
cc2dccd
Pin dev requirements
9fbb223
Pin api requirements
65207fe
Relax sortedcontainers
024400c
Relax psutil
83a53be
Relax dpath
e167093
Drop support for numexpr < 2.7.1
caf1c85
Drop support for pytest < 5.4.2
b31aec2
Drop support for PyYAML < 5.1
7edbe62
Drop support for NumPy < 1.17
a38458b
Add integrity test for NumPy
62c0585
Improve phrasing in README.md
7b90b14
Remove debug requirements
8b1b84b
Do not pin deps/tracker
73eaac8
Clarify requirements/install
a2103a6
Delete duplicated numpy rule
d865888
Add link to issue in dpath
9bec4de
Improve message in tracker deps
65855e8
Improve wording in web-api deps
4fbf18a
Remove legacy resolver
d0bd511
Update README.md
0818f57
Apply suggestions from code review
e346c09
Rename constraints => compatibility
e5b803e
Update dependencies
c0a654e
Use make as task-manager
5801347
Update README.md
65c4621
Expire deprecations
6872ae7
Fix failing tests after expire
64007a2
Remove outdated instruction from circle
6d2c415
Update to major version 36.0.0
6f73e98
Fix circleci config
23f4aff
Remove deprecation leftovers
2b322a3
Update tracker installation instructions
2452241
Update to major version 36.0.0
d088e40
chore: backport changes
bonjourmauko bae180d
chore: merge branch 'master' into improve-deps
bonjourmauko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# These are dependencies to build the library, so we always want the latest | ||
# versions. | ||
|
||
# For managing dependencies. | ||
pip | ||
|
||
# For packaging the package. | ||
setuptools |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# These are constraint versions to ensure the compatibility of distributions. | ||
# | ||
# Normally, we want to add here the pinned lower-bound supported versions of | ||
# dependencies critical to OpenFisca's usability. | ||
|
||
numpy == 1.17 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# These are dependencies to upload test coverage statistics, so we always want | ||
# the latest versions. | ||
|
||
# For sending test statistics to the Coveralls third-party service. | ||
coveralls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Please make sure to pin all dependency versions, in order to avoid unwanted | ||
# functional and integration breaks caused by external code updates. | ||
# | ||
# General Rule | ||
# ============ | ||
# | ||
# * Pin them. | ||
# | ||
# Exceptions | ||
# ========== | ||
# | ||
# * openfisca-country-template should not be constrained (circular dep). | ||
# * openfisca-extension-template should not be constrained (circular dep). | ||
bonjourmauko marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
# For automatic style formatting. | ||
autopep8 == 1.6.0 | ||
|
||
# For style & code checking. | ||
darglint == 1.8.0 | ||
flake8 == 4.0.1 | ||
flake8-bugbear == 21.9.2 | ||
flake8-docstrings == 1.6.0 | ||
flake8-print == 4.0.0 | ||
flake8-rst-docstrings == 0.2.3 | ||
pylint == 2.11.1 | ||
|
||
# For PyTest test coverage integration. | ||
pytest-cov == 3.0.0 | ||
|
||
# For optional duck & static type checking. | ||
mypy == 0.910 | ||
|
||
# For testing: parameters, variables, etc. | ||
openfisca-country-template | ||
openfisca-extension-template | ||
|
||
# Include Web API dependencies for development | ||
-r web-api |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Please make sure to cap all dependency versions, in order to avoid unwanted | ||
# functional and integration breaks caused by external code updates. | ||
# | ||
# These dependencies are always installed, so: | ||
# | ||
# * the ranges should be broad, and | ||
# * the number of them kept low. | ||
# | ||
# If a dependency seems redundant, please propose a pull request to remove it. | ||
# | ||
# General Rule | ||
# ============ | ||
# | ||
# * Cap to latest major. | ||
# | ||
# Exceptions | ||
# ========== | ||
# | ||
# * Avoiding a version (document why). | ||
# * Pinning a version (document why). | ||
|
||
# For globbing over dictionaries as if they were filesystems. | ||
# | ||
# We support from 1.3.2 on because it is the first version published | ||
# following the semantic versioning specification. | ||
# | ||
# We do not support 2 yet because of a bug introduced to period parsing in | ||
# OpenFisca's Web API: https://github.com/openfisca/openfisca-core/pull/948 | ||
dpath >= 1.3.2, < 2 | ||
|
||
# For Numpy type-hints. | ||
nptyping >= 1, < 2 | ||
|
||
# For evaluating numerical expressions | ||
# | ||
# We support numexpr >= 2.7.1 because it is the first version compatible with | ||
# Python 3.7. | ||
numexpr >= 2.7.1, < 3 | ||
|
||
# For vectorial support | ||
# | ||
# We support the latest four minors because NumPy is generally a transitive | ||
# dependency that users rely on within the projects where OpenFisca is | ||
# depended on by. | ||
numpy >= 1.17, < 1.21 | ||
|
||
# Memory monitoring for caching. | ||
# | ||
# We support psutil >= 5.4.7 because it is the first version compatible with | ||
# Python 3.7. | ||
psutil >= 5.4.7, < 6 | ||
|
||
# For openfisca test | ||
# | ||
# We support pytest >= 5.4.2 because `openfisca test` relies on the signature of | ||
# `pytest.Item.from_module()` introduced since 5.4.2. | ||
# | ||
# We do not support 6 yet because it requires fixing some tests before. | ||
# See: https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent | ||
pytest >= 5.4.2, < 6 | ||
|
||
# For parameters and tests parsing. | ||
PyYAML >= 5.1, < 6 | ||
|
||
# For sorting formulas by period. | ||
sortedcontainers >= 2, < 3 | ||
|
||
# For typing backports. | ||
typing-extensions >= 3, < 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# These are dependencies to publish the library, so we always want the latest | ||
# versions. | ||
|
||
# For publishing on PyPI. | ||
twine | ||
|
||
# For building the package. | ||
build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Dependencies for tracking are optional, so we always want the latest | ||
# versions. | ||
|
||
# For sending usage statistics to the Matomo third-party service. | ||
# | ||
# We start from the currently supported version forward. | ||
openfisca-tracker >= 0.4.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# These are dependencies to serve the Web-API, so we always want to support | ||
# the latest versions. | ||
|
||
# For OpenFisca's Web API. | ||
# | ||
# We start from the currently supported versions forward. | ||
flask >= 1.1.2 | ||
gunicorn >= 20.1.0 | ||
|
||
# For OpenFisca's Web API users requiring CORS. | ||
# | ||
# We start from the currently supported versions forward. | ||
flask-cors >= 3.0.10 | ||
werkzeug >= 1.0.1 |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.