Skip to content

Commit 0071db7

Browse files
committed
[deps] special casing pyproject.toml is no longer necessary
1 parent 882eb7a commit 0071db7

File tree

5 files changed

+23
-25
lines changed

5 files changed

+23
-25
lines changed

.ci/PYPI_MIRROR_TAG

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
1+
82a1891bc39e3f67d5009e9383f16abd44bc871c

.ci/gitlab/ci.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ stages:
2121
except:
2222
- /^staging/.*$/i
2323
variables:
24-
PYPI_MIRROR_TAG: e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
24+
PYPI_MIRROR_TAG: 82a1891bc39e3f67d5009e9383f16abd44bc871c
2525

2626

2727
.pytest:
@@ -149,7 +149,7 @@ ci setup:
149149
minimal_cpp_demo:
150150
extends: .pytest
151151
services:
152-
- name: pymor/pypi-mirror_stable_py3.7:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
152+
- name: pymor/pypi-mirror_stable_py3.7:82a1891bc39e3f67d5009e9383f16abd44bc871c
153153

154154
alias: pypi_mirror
155155
image: pymor/testing_py3.7:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
@@ -158,7 +158,7 @@ minimal_cpp_demo:
158158
mpi 3 6:
159159
extends: .pytest
160160
services:
161-
- name: pymor/pypi-mirror_stable_py3.6:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
161+
- name: pymor/pypi-mirror_stable_py3.6:82a1891bc39e3f67d5009e9383f16abd44bc871c
162162

163163
alias: pypi_mirror
164164
image: pymor/testing_py3.6:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
@@ -167,7 +167,7 @@ mpi 3 6:
167167
mpi 3 7:
168168
extends: .pytest
169169
services:
170-
- name: pymor/pypi-mirror_stable_py3.7:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
170+
- name: pymor/pypi-mirror_stable_py3.7:82a1891bc39e3f67d5009e9383f16abd44bc871c
171171

172172
alias: pypi_mirror
173173
image: pymor/testing_py3.7:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
@@ -176,7 +176,7 @@ mpi 3 7:
176176
mpi 3 8:
177177
extends: .pytest
178178
services:
179-
- name: pymor/pypi-mirror_stable_py3.8:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
179+
- name: pymor/pypi-mirror_stable_py3.8:82a1891bc39e3f67d5009e9383f16abd44bc871c
180180

181181
alias: pypi_mirror
182182
image: pymor/testing_py3.8:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
@@ -185,7 +185,7 @@ mpi 3 8:
185185
notebooks_dir 3 6:
186186
extends: .pytest
187187
services:
188-
- name: pymor/pypi-mirror_stable_py3.6:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
188+
- name: pymor/pypi-mirror_stable_py3.6:82a1891bc39e3f67d5009e9383f16abd44bc871c
189189

190190
alias: pypi_mirror
191191
image: pymor/testing_py3.6:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
@@ -194,7 +194,7 @@ notebooks_dir 3 6:
194194
notebooks_dir 3 7:
195195
extends: .pytest
196196
services:
197-
- name: pymor/pypi-mirror_stable_py3.7:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
197+
- name: pymor/pypi-mirror_stable_py3.7:82a1891bc39e3f67d5009e9383f16abd44bc871c
198198

199199
alias: pypi_mirror
200200
image: pymor/testing_py3.7:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
@@ -203,7 +203,7 @@ notebooks_dir 3 7:
203203
notebooks_dir 3 8:
204204
extends: .pytest
205205
services:
206-
- name: pymor/pypi-mirror_stable_py3.8:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
206+
- name: pymor/pypi-mirror_stable_py3.8:82a1891bc39e3f67d5009e9383f16abd44bc871c
207207

208208
alias: pypi_mirror
209209
image: pymor/testing_py3.8:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
@@ -212,7 +212,7 @@ notebooks_dir 3 8:
212212
pip_installed 3 6:
213213
extends: .pytest
214214
services:
215-
- name: pymor/pypi-mirror_stable_py3.6:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
215+
- name: pymor/pypi-mirror_stable_py3.6:82a1891bc39e3f67d5009e9383f16abd44bc871c
216216

217217
alias: pypi_mirror
218218
image: pymor/testing_py3.6:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
@@ -221,7 +221,7 @@ pip_installed 3 6:
221221
pip_installed 3 7:
222222
extends: .pytest
223223
services:
224-
- name: pymor/pypi-mirror_stable_py3.7:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
224+
- name: pymor/pypi-mirror_stable_py3.7:82a1891bc39e3f67d5009e9383f16abd44bc871c
225225

226226
alias: pypi_mirror
227227
image: pymor/testing_py3.7:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
@@ -230,7 +230,7 @@ pip_installed 3 7:
230230
pip_installed 3 8:
231231
extends: .pytest
232232
services:
233-
- name: pymor/pypi-mirror_stable_py3.8:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
233+
- name: pymor/pypi-mirror_stable_py3.8:82a1891bc39e3f67d5009e9383f16abd44bc871c
234234

235235
alias: pypi_mirror
236236
image: pymor/testing_py3.8:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
@@ -239,7 +239,7 @@ pip_installed 3 8:
239239
vanilla 3 6:
240240
extends: .pytest
241241
services:
242-
- name: pymor/pypi-mirror_stable_py3.6:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
242+
- name: pymor/pypi-mirror_stable_py3.6:82a1891bc39e3f67d5009e9383f16abd44bc871c
243243

244244
alias: pypi_mirror
245245
image: pymor/testing_py3.6:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
@@ -248,7 +248,7 @@ vanilla 3 6:
248248
vanilla 3 7:
249249
extends: .pytest
250250
services:
251-
- name: pymor/pypi-mirror_stable_py3.7:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
251+
- name: pymor/pypi-mirror_stable_py3.7:82a1891bc39e3f67d5009e9383f16abd44bc871c
252252

253253
alias: pypi_mirror
254254
image: pymor/testing_py3.7:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
@@ -257,7 +257,7 @@ vanilla 3 7:
257257
vanilla 3 8:
258258
extends: .pytest
259259
services:
260-
- name: pymor/pypi-mirror_stable_py3.8:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
260+
- name: pymor/pypi-mirror_stable_py3.8:82a1891bc39e3f67d5009e9383f16abd44bc871c
261261

262262
alias: pypi_mirror
263263
image: pymor/testing_py3.8:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
@@ -266,7 +266,7 @@ vanilla 3 8:
266266
numpy_git 3 8:
267267
extends: .pytest
268268
services:
269-
- name: pymor/pypi-mirror_stable_py3.8:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
269+
- name: pymor/pypi-mirror_stable_py3.8:82a1891bc39e3f67d5009e9383f16abd44bc871c
270270

271271
alias: pypi_mirror
272272
image: pymor/testing_py3.8:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
@@ -275,7 +275,7 @@ numpy_git 3 8:
275275
oldest 3 6:
276276
extends: .pytest
277277
services:
278-
- name: pymor/pypi-mirror_oldest_py3.6:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e
278+
- name: pymor/pypi-mirror_oldest_py3.6:82a1891bc39e3f67d5009e9383f16abd44bc871c
279279

280280
alias: pypi_mirror
281281
image: pymor/testing_py3.6:e51f12f3ab2a6d9e7d472fb6ce8d89db41af126e

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ docs:
5656
PYTHONPATH=${PWD}/src/:${PYTHONPATH} make -C docs html
5757

5858
template: docker_file
59+
./dependencies.py
5960
./.ci/gitlab/template.ci.py
6061

6162
# Docker targets

dependencies.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,14 @@ def _pymess(rev, major, minor, marker=True):
1616
return '{url} ; python_version == "{major}.{minor}" and "linux" in sys_platform'.format(url=url, major=major, minor=minor)
1717
return url
1818

19-
# for pyproject.toml we require equality to build compatible wheels in pep 517 mode
20-
def setup_requires(toml=False):
19+
def setup_requires():
2120
NUMPY = '1.16.0'
2221
# numpy versions with filters according to minimal version with a wheel
2322
numpys = ['numpy>={};python_version == "3.6"'.format(NUMPY),
2423
'numpy>=1.15.4;python_version == "3.7"',
2524
'numpy>=1.17.5;python_version == "3.8"',
2625
'numpy>={};python_version != "3.6" and python_version != "3.7" and python_version != "3.8"'.format(NUMPY),]
2726
other = ['setuptools>=40.8.0', 'wheel', 'pytest-runner>=2.9', 'cython>=0.28', 'packaging',]
28-
if toml:
29-
numpys = [f.replace('numpy>=', 'numpy==') for f in numpys]
3027
return numpys + other
3128

3229
install_requires = ['scipy>=1.1;python_version < "3.8"','scipy>=1.3.3;python_version >= "3.8"', 'Qt.py>=1.2.4', 'packaging','diskcache', 'docopt-ng'] + setup_requires()
@@ -46,8 +43,8 @@ def setup_requires(toml=False):
4643
'pillow': 'image library used for bitmap data functions'}
4744
doc_requires = ['sphinx>=1.7', 'pymor-nb2plots>=0.7', 'matplotlib', 'PySide2', 'ipyparallel',
4845
'ipywidgets', 'sphinx-qt-documentation'] + install_requires
49-
ci_requires = [_PYTEST, 'pytest-cov', 'pytest-xdist', 'check-manifest', 'nbconvert', 'pytest-parallel', 'virtualenv',
50-
'readme_renderer[md]', 'rstcheck', 'codecov', 'twine', 'pytest-memprof', 'pytest-timeout',
46+
ci_requires = [_PYTEST, 'pytest-cov', 'pytest-xdist', 'check-manifest', 'nbconvert', 'pytest-parallel', 'virtualenv',
47+
'readme_renderer[md]', 'rstcheck', 'codecov', 'twine', 'pytest-memprof', 'pytest-timeout',
5148
'testipynb', "pypi-oldest-requirements>=2020.2", 'pytest-deadfixtures']
5249
import_names = {'ipython': 'IPython',
5350
'pytest-cache': 'pytest_cache',
@@ -131,4 +128,4 @@ def _candidates(blacklist):
131128
req.write(module+'\n')
132129
with open(os.path.join(os.path.dirname(__file__), 'pyproject.toml'), 'wt') as toml:
133130
toml.write(note)
134-
toml.write(toml_tpl.format(str(setup_requires(toml=True))))
131+
toml.write(toml_tpl.format(str(setup_requires())))

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# This file is autogenerated. Edit dependencies.py instead
22
[build-system]
3-
requires = ['numpy==1.16.0;python_version == "3.6"', 'numpy==1.15.4;python_version == "3.7"', 'numpy==1.17.5;python_version == "3.8"', 'numpy==1.16.0;python_version != "3.6" and python_version != "3.7" and python_version != "3.8"', 'setuptools>=40.8.0', 'wheel', 'pytest-runner>=2.9', 'cython>=0.28', 'packaging']
3+
requires = ['numpy>=1.16.0;python_version == "3.6"', 'numpy>=1.15.4;python_version == "3.7"', 'numpy>=1.17.5;python_version == "3.8"', 'numpy>=1.16.0;python_version != "3.6" and python_version != "3.7" and python_version != "3.8"', 'setuptools>=40.8.0', 'wheel', 'pytest-runner>=2.9', 'cython>=0.28', 'packaging']
44
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)