File tree Expand file tree Collapse file tree 12 files changed +54
-67
lines changed
openfisca-country-template
openfisca-extension-template Expand file tree Collapse file tree 12 files changed +54
-67
lines changed Original file line number Diff line number Diff line change
1
+ numpy :
2
+ - 1.24
3
+ - 1.25
4
+ - 1.26
5
+
6
+ python :
7
+ - 3.9
8
+ - 3.10
9
+ - 3.11
Original file line number Diff line number Diff line change @@ -24,23 +24,22 @@ build:
24
24
25
25
requirements :
26
26
host :
27
- - python
28
27
- pip
28
+ - python
29
+ - setuptools >=61.0
29
30
run :
31
+ - numpy
32
+ - python
30
33
{% for req in data['install_requires'] %}
34
+ {% if not req.startswith('numpy') %}
31
35
- {{ req }}
36
+ {% endif %}
32
37
{% endfor %}
33
38
34
39
test :
35
40
imports :
36
41
- openfisca_core
37
42
- openfisca_core.commons
38
- requires :
39
- - pip
40
- commands :
41
- - pip check
42
- - openfisca --help
43
- - openfisca-run-test --help
44
43
45
44
outputs :
46
45
- name : openfisca-core
@@ -52,7 +51,7 @@ outputs:
52
51
host :
53
52
- python
54
53
run :
55
- - python >=3.9,<4.0
54
+ - python
56
55
{% for req in data['extras_require']['web-api'] %}
57
56
- {{ req }}
58
57
{% endfor %}
@@ -65,9 +64,7 @@ outputs:
65
64
host :
66
65
- python
67
66
run :
68
- - python >=3.9,<4.0
69
- - openfisca-country-template
70
- - openfisca-extension-template
67
+ - python
71
68
{% for req in data['extras_require']['dev'] %}
72
69
- {{ req }}
73
70
{% endfor %}
Original file line number Diff line number Diff line change @@ -18,20 +18,19 @@ build:
18
18
19
19
requirements :
20
20
host :
21
- - python
21
+ - numpy
22
22
- pip
23
+ - python
24
+ - setuptools >=61.0
23
25
run :
26
+ - numpy
24
27
- python
28
+ - openfisca-core >=42,<43
25
29
26
30
tests :
27
31
- python :
28
32
imports :
29
33
- openfisca_country_template
30
- - requirements :
31
- run :
32
- - pip
33
- script :
34
- - pip check
35
34
36
35
about :
37
36
summary : OpenFisca Rules as Code model for Country-Template.
Original file line number Diff line number Diff line change
1
+ numpy :
2
+ - " 1.26"
3
+
1
4
python :
2
- - 3.9
3
- - 3.10
4
- - 3.11
5
+ - " 3.10"
Original file line number Diff line number Diff line change @@ -18,21 +18,19 @@ build:
18
18
19
19
requirements :
20
20
host :
21
+ - numpy
22
+ - pip
21
23
- python
22
24
- setuptools >=61.0
23
- - pip
24
25
run :
26
+ - numpy
25
27
- python
28
+ - openfisca-country-template >=7,<8
26
29
27
30
tests :
28
31
- python :
29
32
imports :
30
33
- openfisca_extension_template
31
- - requirements :
32
- run :
33
- - pip
34
- script :
35
- - pip check
36
34
37
35
about :
38
36
summary : An OpenFisca extension that adds some variables to an already-existing
Original file line number Diff line number Diff line change
1
+ numpy :
2
+ - " 1.26"
3
+
1
4
python :
2
- - 3.9
3
- - 3.10
4
- - 3.11
5
+ - " 3.10"
Original file line number Diff line number Diff line change @@ -30,11 +30,6 @@ tests:
30
30
- python :
31
31
imports :
32
32
- pylint_per_file_ignores
33
- - requirements :
34
- run :
35
- - pip
36
- script :
37
- - pip check
38
33
39
34
about :
40
35
summary : A pylint plugin to ignore error codes per file.
Original file line number Diff line number Diff line change 1
1
python :
2
- - 3.9
3
- - 3.10
4
- - 3.11
2
+ - " 3.10"
Original file line number Diff line number Diff line change 79
79
environment-file : .env.yaml
80
80
if : steps.cache-env.outputs.cache-hit == 'true'
81
81
82
- - name : Build country template package
83
- run : |
84
- rattler-build build \
85
- --recipe .conda/openfisca-country-template \
86
- --output-dir ~/conda-rel \
87
- --no-test
88
-
89
- - name : Build extension template package
90
- run : |
91
- rattler-build build \
92
- --recipe .conda/openfisca-extension-template \
93
- --output-dir ~/conda-rel \
94
- --no-test
95
-
96
82
- name : Build pylint plugin package
97
83
run : |
98
84
rattler-build build \
@@ -101,13 +87,24 @@ jobs:
101
87
102
88
- name : Build core package
103
89
run : |
104
- mkdir -p ~/conda-rel
105
90
conda build .conda/openfisca-core \
106
91
--use-local \
107
92
--no-anaconda-upload \
108
93
--output-folder ~/conda-rel \
109
94
--numpy ${{ inputs.numpy }} \
110
95
--python ${{ inputs.python }}
111
96
97
+ - name : Build country template package
98
+ run : |
99
+ rattler-build build \
100
+ --recipe .conda/openfisca-country-template \
101
+ --output-dir ~/conda-rel \
102
+
103
+ - name : Build extension template package
104
+ run : |
105
+ rattler-build build \
106
+ --recipe .conda/openfisca-extension-template \
107
+ --output-dir ~/conda-rel
108
+
112
109
- name : Export env
113
110
run : conda env export --name openfisca > .env.yaml
Original file line number Diff line number Diff line change 58
58
auto-update-conda : true
59
59
environment-file : .env.yaml
60
60
61
- - name : Install core
62
- run : conda install openfisca-core-dev --channel file:///home/runner/conda-rel
61
+ - name : Install packages
62
+ run : |
63
+ conda install --channel file:///home/runner/conda-rel \
64
+ openfisca-core-dev \
65
+ openfisca-country-template \
66
+ openfisca-extension-template
63
67
64
68
- name : Run core tests
65
69
run : make test-core
Original file line number Diff line number Diff line change @@ -209,18 +209,6 @@ jobs:
209
209
- name : Publish to conda
210
210
shell : bash -l {0}
211
211
run : |
212
- anaconda upload ~/conda-rel/noarch/openfisca-extension-template-* \
213
- --token ${{ secrets.ANACONDA_TOKEN }}
214
- --user openfisca
215
- --force
216
- anaconda upload ~/conda-rel/noarch/openfisca-country-template-* \
217
- --token ${{ secrets.ANACONDA_TOKEN }}
218
- --user openfisca
219
- --force
220
- anaconda upload ~/conda-rel/noarch/pylint-per-file-ignores-* \
221
- --token ${{ secrets.ANACONDA_TOKEN }}
222
- --user openfisca
223
- --force
224
212
anaconda upload ~/conda-rel/noarch/openfisca-core-* \
225
213
--token ${{ secrets.ANACONDA_TOKEN }}
226
214
--user openfisca
Original file line number Diff line number Diff line change 17
17
numpy : [1.26.4, 1.24.2]
18
18
# Patch version must be specified to avoid any cache confusion, since
19
19
# the cache key depends on the full Python version. If left unspecified,
20
- # different patch versions could be allocated between jobs, and any
20
+ # different patch versions could be allocated between jobs, and any
21
21
# such difference would lead to a cache not found error.
22
22
python : [3.11.9, 3.9.13]
23
23
include :
You can’t perform that action at this time.
0 commit comments