inspire-schemas 61.3.20 → 61.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- name: Build and release
1
+ name: bump, build and release
2
2
 
3
3
  on:
4
4
  push:
@@ -7,12 +7,11 @@ on:
7
7
  branches: [master]
8
8
 
9
9
  jobs:
10
- Test:
10
+ test:
11
11
  runs-on: ubuntu-20.04
12
12
  strategy:
13
13
  matrix:
14
14
  python-version: [2.7, 3.6]
15
-
16
15
  steps:
17
16
  - name: Checkout
18
17
  uses: actions/checkout@v2
@@ -20,12 +19,6 @@ jobs:
20
19
  python-version: ${{ matrix.python-version }}
21
20
  fetch-depth: 0
22
21
 
23
- - name: Setup nodejs
24
- uses: actions/setup-node@v1
25
- with:
26
- node-version: 10.14.0
27
- registry-url: 'https://registry.npmjs.org'
28
-
29
22
  - name: Set up Python ${{ matrix.python-version }}
30
23
  uses: actions/setup-python@v2
31
24
  with:
@@ -50,14 +43,73 @@ jobs:
50
43
  run: |
51
44
  ./run-tests.sh
52
45
 
46
+ bump-version:
47
+ needs: test
48
+ runs-on: ubuntu-latest
49
+ steps:
50
+ - name: Check out the repository
51
+ uses: actions/checkout@v2
52
+
53
+ - name: Set up Python
54
+ uses: actions/setup-python@v2
55
+ with:
56
+ python-version: 3.x
57
+
58
+ - name: Install bump2version
59
+ run: |
60
+ python -m pip install --upgrade pip
61
+ pip install bump2version
62
+
63
+ - name: Configure git
64
+ run: |
65
+ git config user.name github-actions
66
+ git config user.email github-actions@github.com
67
+
68
+ - name: Bump version
69
+ run: |
70
+ bump2version patch --tag --verbose
71
+
72
+ - name: Push changes
73
+ uses: ad-m/github-push-action@master
74
+ with:
75
+ github_token: ${{ secrets.GITHUB_TOKEN }}
76
+ branch: ${{ github.ref }}
77
+
78
+ build-and-release:
79
+ needs: bump-version
80
+ runs-on: ubuntu-latest
81
+ steps:
82
+ - name: Check out the repository
83
+ uses: actions/checkout@v2
84
+
85
+ - name: Set up Python
86
+ uses: actions/setup-python@v2
87
+ with:
88
+ python-version: 3.x
89
+
90
+ - name: Setup nodejs
91
+ uses: actions/setup-node@v1
92
+ with:
93
+ node-version: 10.14.0
94
+ registry-url: "https://registry.npmjs.org"
95
+
96
+ - name: Install npm dependencies
97
+ run: |
98
+ npm install buffer-shims
99
+ npm install --global rollup
100
+
101
+ - name: Install python dependencies
102
+ run: |
103
+ python -m pip install --upgrade pip
104
+ pip install setuptools wheel "urllib3==1.25.11"
105
+ pip install -e .[tests,docs]
106
+
53
107
  - name: Build package
54
- if: ${{ success() && github.event_name == 'push' && matrix.python-version == '2.7' }}
55
108
  run: |
56
109
  mkdir clean-build
57
110
  python setup.py sdist bdist_wheel --universal --dist-dir ./clean-build
58
111
 
59
112
  - name: Publish package
60
- if: ${{ success() && github.event_name == 'push' && matrix.python-version == '2.7' }}
61
113
  uses: pypa/gh-action-pypi-publish@v1.3.1
62
114
  with:
63
115
  verify_metadata: false
@@ -66,18 +118,15 @@ jobs:
66
118
  packages_dir: clean-build/
67
119
 
68
120
  - name: Build npm package
69
- if: ${{ success() && github.event_name == 'push' && matrix.python-version == '2.7' }}
70
121
  run: |
71
122
  npm install --dev
72
123
  npm run build
73
124
 
74
125
  - name: Version npm package
75
- if: ${{ success() && github.event_name == 'push' && matrix.python-version == '2.7' }}
76
126
  run: |
77
- npm version $(git describe --always --tags) --no-git-tag-version
127
+ npm version $(git describe --tags)
78
128
 
79
129
  - name: Publish npm package
80
- if: ${{ success() && github.event_name == 'push' && matrix.python-version == '2.7' }}
81
130
  run: npm publish
82
131
  env:
83
132
  NODE_AUTH_TOKEN: ${{secrets.npm_token}}
package/README.rst CHANGED
@@ -1,6 +1,6 @@
1
1
  ..
2
2
  This file is part of INSPIRE-SCHEMAS.
3
- Copyright (C) 2016 CERN.
3
+ Copyright (C) 2023 CERN.
4
4
 
5
5
  INSPIRE-SCHEMAS is free software; you can redistribute it
6
6
  and/or modify it under the terms of the GNU General Public License as
@@ -83,280 +83,280 @@
83
83
  },
84
84
  "country_code": {
85
85
  "enum": [
86
- "BD",
86
+ "AI",
87
+ "AN",
88
+ "BQ",
89
+ "BU",
90
+ "BY",
91
+ "CS",
92
+ "CT",
93
+ "DD",
94
+ "DY",
95
+ "FQ",
96
+ "FX",
97
+ "GE",
98
+ "HV",
99
+ "JT",
100
+ "MI",
101
+ "NH",
102
+ "NQ",
103
+ "NT",
104
+ "PC",
105
+ "PU",
106
+ "PZ",
107
+ "RH",
108
+ "SK",
109
+ "SU",
110
+ "TP",
111
+ "VD",
112
+ "WK",
113
+ "YD",
114
+ "YU",
115
+ "ZR",
116
+ "AW",
117
+ "AF",
118
+ "AO",
119
+ "AX",
120
+ "AL",
121
+ "AD",
122
+ "AE",
123
+ "AR",
124
+ "AM",
125
+ "AS",
126
+ "AQ",
127
+ "TF",
128
+ "AG",
129
+ "AU",
130
+ "AT",
131
+ "AZ",
132
+ "BI",
87
133
  "BE",
134
+ "BJ",
88
135
  "BF",
136
+ "BD",
89
137
  "BG",
138
+ "BH",
139
+ "BS",
90
140
  "BA",
91
- "BB",
92
- "WF",
93
- "JT",
141
+ "BL",
142
+ "BZ",
94
143
  "BM",
95
- "BN",
96
144
  "BO",
97
- "WK",
98
- "BI",
99
- "BJ",
145
+ "BR",
146
+ "BB",
147
+ "BN",
100
148
  "BT",
101
- "BU",
102
149
  "BV",
103
150
  "BW",
104
- "WS",
105
- "BQ",
106
- "BR",
107
- "BS",
108
- "JE",
109
- "BY",
110
- "BZ",
111
- "RU",
112
- "RW",
113
- "RS",
114
- "TL",
115
- "BL",
116
- "TM",
117
- "TJ",
118
- "RO",
119
- "RH",
120
- "TK",
121
- "GW",
122
- "GU",
123
- "GT",
124
- "GS",
125
- "GR",
126
- "GQ",
127
- "GP",
128
- "BH",
129
- "GY",
130
- "GG",
131
- "GF",
132
- "GE",
133
- "GD",
134
- "GB",
151
+ "CF",
152
+ "CA",
153
+ "CC",
154
+ "CH",
155
+ "CL",
156
+ "CN",
157
+ "CI",
158
+ "CM",
159
+ "CD",
160
+ "CG",
161
+ "CK",
162
+ "CO",
163
+ "KM",
164
+ "CV",
165
+ "CR",
166
+ "CU",
167
+ "CW",
168
+ "CX",
169
+ "KY",
170
+ "CY",
171
+ "CZ",
172
+ "DE",
173
+ "DJ",
174
+ "DM",
175
+ "DK",
176
+ "DO",
177
+ "DZ",
178
+ "EC",
179
+ "EG",
180
+ "ER",
181
+ "EH",
182
+ "ES",
183
+ "EE",
184
+ "ET",
185
+ "FI",
186
+ "FJ",
187
+ "FK",
188
+ "FR",
189
+ "FO",
190
+ "FM",
135
191
  "GA",
136
- "SV",
192
+ "GB",
193
+ "GG",
194
+ "GH",
195
+ "GI",
137
196
  "GN",
197
+ "GP",
138
198
  "GM",
199
+ "GW",
200
+ "GQ",
201
+ "GR",
202
+ "GD",
139
203
  "GL",
140
- "GI",
141
- "GH",
142
- "OM",
143
- "TN",
144
- "JM",
145
- "JO",
204
+ "GT",
205
+ "GF",
206
+ "GU",
207
+ "GY",
208
+ "HK",
209
+ "HM",
210
+ "HN",
146
211
  "HR",
147
- "HV",
148
212
  "HT",
149
213
  "HU",
150
- "HK",
151
- "HN",
152
- "SU",
153
- "HM",
154
- "VD",
155
- "VE",
156
- "PR",
157
- "PS",
158
- "PW",
159
- "PT",
160
- "PU",
161
- "PZ",
162
- "PY",
163
- "PC",
164
- "PA",
165
- "PF",
166
- "PG",
167
- "PE",
168
- "PK",
169
- "PH",
170
- "PN",
171
- "PL",
172
- "PM",
173
- "ZM",
174
- "EH",
175
- "EE",
176
- "EG",
177
- "ZA",
178
- "EC",
214
+ "ID",
215
+ "IM",
216
+ "IN",
217
+ "IO",
218
+ "IE",
219
+ "IR",
220
+ "IQ",
221
+ "IS",
222
+ "IL",
179
223
  "IT",
180
- "VN",
181
- "SB",
182
- "ET",
183
- "SO",
184
- "ZW",
185
- "SA",
186
- "ZR",
187
- "ER",
188
- "ME",
189
- "MD",
190
- "MG",
224
+ "JM",
225
+ "JE",
226
+ "JO",
227
+ "JP",
228
+ "KZ",
229
+ "KE",
230
+ "KG",
231
+ "KH",
232
+ "KI",
233
+ "KN",
234
+ "KR",
235
+ "KW",
236
+ "LA",
237
+ "LB",
238
+ "LR",
239
+ "LY",
240
+ "LC",
241
+ "LI",
242
+ "LK",
243
+ "LS",
244
+ "LT",
245
+ "LU",
246
+ "LV",
247
+ "MO",
191
248
  "MF",
192
- "IQ",
249
+ "MA",
193
250
  "MC",
194
- "UZ",
195
- "MM",
196
- "ML",
197
- "MO",
198
- "MN",
199
- "MI",
251
+ "MD",
252
+ "MG",
253
+ "MV",
254
+ "MX",
200
255
  "MH",
201
256
  "MK",
202
- "MU",
257
+ "ML",
203
258
  "MT",
204
- "MW",
205
- "MV",
206
- "MQ",
259
+ "MM",
260
+ "ME",
261
+ "MN",
207
262
  "MP",
208
- "MS",
263
+ "MZ",
209
264
  "MR",
210
- "IM",
211
- "UG",
212
- "TZ",
265
+ "MS",
266
+ "MQ",
267
+ "MU",
268
+ "MW",
213
269
  "MY",
214
- "MX",
215
- "IL",
216
- "FQ",
217
- "FR",
218
- "IO",
219
- "FX",
220
- "SH",
221
- "JP",
222
- "RE",
223
- "SJ",
224
- "FI",
225
- "FJ",
226
- "FK",
227
- "MA",
228
- "FM",
229
- "FO",
230
- "NH",
231
- "NI",
232
- "NL",
233
- "NO",
270
+ "YT",
234
271
  "NA",
235
- "VU",
236
272
  "NC",
237
273
  "NE",
238
274
  "NF",
239
275
  "NG",
240
- "NZ",
241
- "ES",
276
+ "NI",
277
+ "NU",
278
+ "NL",
279
+ "NO",
242
280
  "NP",
243
- "NQ",
244
281
  "NR",
245
- "NT",
246
- "NU",
247
- "CK",
248
- "CI",
249
- "CH",
250
- "CO",
251
- "CN",
252
- "CM",
253
- "CL",
254
- "CC",
255
- "CA",
256
- "CG",
257
- "CF",
258
- "CD",
259
- "CZ",
260
- "CY",
261
- "CX",
262
- "CS",
263
- "CR",
264
- "CW",
265
- "CV",
266
- "CU",
267
- "CT",
268
- "SZ",
269
- "SY",
270
- "SX",
271
- "KG",
272
- "KE",
273
- "SS",
274
- "SR",
275
- "KI",
276
- "KH",
277
- "KN",
278
- "KM",
279
- "ST",
280
- "SK",
281
- "KR",
282
- "SI",
282
+ "NZ",
283
+ "OM",
284
+ "PK",
285
+ "PA",
286
+ "PN",
287
+ "PE",
288
+ "PH",
289
+ "PW",
290
+ "PG",
291
+ "PL",
292
+ "PR",
283
293
  "KP",
284
- "KW",
294
+ "PT",
295
+ "PY",
296
+ "PS",
297
+ "PF",
298
+ "QA",
299
+ "RE",
300
+ "RO",
301
+ "RU",
302
+ "RW",
303
+ "SA",
304
+ "SD",
285
305
  "SN",
286
- "SM",
287
- "SL",
288
- "SC",
289
- "KZ",
290
- "KY",
291
306
  "SG",
307
+ "GS",
308
+ "SH",
309
+ "SJ",
310
+ "SB",
311
+ "SL",
312
+ "SV",
313
+ "SM",
314
+ "SO",
315
+ "PM",
316
+ "RS",
317
+ "SS",
318
+ "ST",
319
+ "SR",
320
+ "SI",
292
321
  "SE",
293
- "SD",
294
- "DO",
295
- "DM",
296
- "DJ",
297
- "DK",
298
- "VG",
299
- "DD",
300
- "DE",
301
- "YE",
302
- "YD",
303
- "DZ",
304
- "US",
305
- "DY",
306
- "UY",
307
- "YU",
308
- "YT",
309
- "UM",
310
- "LB",
311
- "LC",
312
- "LA",
313
- "TV",
314
- "TW",
322
+ "SZ",
323
+ "SX",
324
+ "SC",
325
+ "SY",
326
+ "TC",
327
+ "TD",
328
+ "TG",
329
+ "TH",
330
+ "TJ",
331
+ "TK",
332
+ "TM",
333
+ "TL",
334
+ "TO",
315
335
  "TT",
336
+ "TN",
316
337
  "TR",
317
- "LK",
318
- "TP",
319
- "LI",
320
- "LV",
321
- "TO",
322
- "LT",
323
- "LU",
324
- "LR",
325
- "LS",
326
- "TH",
327
- "TF",
328
- "TG",
329
- "TD",
330
- "TC",
331
- "LY",
338
+ "TV",
339
+ "TW",
340
+ "TZ",
341
+ "UG",
342
+ "UA",
343
+ "UM",
344
+ "UY",
345
+ "US",
346
+ "UZ",
332
347
  "VA",
333
348
  "VC",
334
- "AE",
335
- "AD",
336
- "AG",
337
- "AF",
338
- "AI",
349
+ "VE",
350
+ "VG",
339
351
  "VI",
340
- "IS",
341
- "IR",
342
- "AM",
343
- "AL",
344
- "AO",
345
- "AN",
346
- "AQ",
347
- "AS",
348
- "AR",
349
- "AU",
350
- "AT",
351
- "AW",
352
- "IN",
353
- "AX",
354
- "AZ",
355
- "IE",
356
- "ID",
357
- "UA",
358
- "QA",
359
- "MZ"
352
+ "VN",
353
+ "VU",
354
+ "WF",
355
+ "WS",
356
+ "YE",
357
+ "ZA",
358
+ "ZM",
359
+ "ZW"
360
360
  ],
361
361
  "maxLength": 2,
362
362
  "minLength": 2,