Skip to content

Commit

Permalink
Rename extra dep to "web-api"
Browse files Browse the repository at this point in the history
  • Loading branch information
fpagnoux committed Aug 15, 2018
1 parent 3eb3b71 commit 49ff624
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
##### Only install the Web API dependencies as an opt-in:

- `pip install OpenFisca-Core` will _not_ install the Web API anymore.
- `pip install OpenFisca-Core[api]` will.
- `pip install OpenFisca-Core[web-api]` will.

Country package maintainers who still want to provide the Web API by default with their package (**recommended**) should update their `setup.py`:
- In the `install_requires` section, replace `'OpenFisca-Core >= 23.3, < 24.0'` by `'OpenFisca-Core[api] >= 24.0, < 25.0'`
Expand Down
2 changes: 1 addition & 1 deletion openfisca_web_api/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@


def handle_import_error(error):
raise ImportError("OpenFisca is missing some dependencies to run the Web API: '{}'. To install them, run `pip install openfisca_core[api]`.".format(error))
raise ImportError("OpenFisca is missing some dependencies to run the Web API: '{}'. To install them, run `pip install openfisca_core[web-api]`.".format(error))
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
'console_scripts': ['openfisca=openfisca_core.scripts.openfisca_command:main', 'openfisca-run-test=openfisca_core.scripts.run_test:main'],
},
extras_require = {
'api': api_requirements,
'web-api': api_requirements,
'dev': dev_requirements,
'tracker': [
'openfisca-tracker == 0.4.0',
Expand Down

0 comments on commit 49ff624

Please sign in to comment.