Skip to content

Commit

Permalink
Passe conda dep en jinja
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainipp committed Aug 18, 2023
1 parent 9069293 commit ea58f4d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
29 changes: 10 additions & 19 deletions .conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
###############################################################################
## Fichier de description du package pour Anaconda.org
## Le numéro de version est mis à jour automatiquement par BumpVer
## File for Anaconda.org
## It use Jinja2 templating code to retreive information from setup.py
###############################################################################

{% set name = "openfisca-france-data" %}
{% set version = "2.0.1" %}
{% set data = load_setup_py_data() %}
{% set version = data.get('version') %}

package:
name: {{ name|lower }}
Expand All @@ -23,13 +24,9 @@ requirements:
- python
- pip
run:
- python >=3.7,<4.0
- click >=8.0.0,<9.0.0
- matplotlib >=3.1.1,<4.0.0
- multipledispatch >=0.6.0,<1.0.0
- openFisca-france >=113.0.0,<120.0.0 # Max 120 because of a bug in OF : https://github.com/openfisca/openfisca-france/issues/1996
- openFisca-survey-manager >=0.44.2,<1.0.0
- wquantiles >=0.3.0,<1.0.0
{% for req in data.get('install_requires', []) %}
- {{ req }}
{% endfor %}

test:
imports:
Expand All @@ -50,15 +47,9 @@ outputs:
host:
- python
run:
- autopep8 >=1.4.0,<1.5.0
- flake8 >=3.7.0,<3.8.0
- ipython >=7.5.0,<8.0.0
- mypy >=0.670,<1.0.0
- pytest >=4.3.0,<5.0.0
- pytest-cov >=2.6.0,<3.0.0
- scipy >=1.2.1,<2.0.0
- toolz >=0.9.0,<1.0.0
- bumpver
{% for req in data.get('extras_require', []) %}
- {{ req }}
{% endfor %}
- {{ pin_subpackage('openfisca-france-data', exact=True) }}

about:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 2.0.3 [#235](https://github.com/openfisca/openfisca-france-data/pull/235)
* Technical changes
- Passe conda dep en Jinja en suivant Openfisca-France

### 2.0.2 [#234](https://github.com/openfisca/openfisca-france-data/pull/234)
* Technical changes
- Update autopep8 et flake8 pour avoir des requirements compatibles avec les dernières versions d'openfisca-france et openfisca-survey-manager
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name = "OpenFisca-France-Data",
version = "2.0.2",
version = "2.0.3",
description = "OpenFisca-France-Data module to work with French survey data",
long_description = long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit ea58f4d

Please sign in to comment.