Skip to content

Commit 4e670a8

Browse files
committed
Update build setup: use PEP517 related tools
1 parent fd53ae3 commit 4e670a8

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ ifeq ($(VERSION),)
7777
else
7878
@echo 'Release $(VERSION)'
7979
git push --follow-tags
80-
$(PY) -m pip install -U --user pip setuptools twine wheel
81-
$(PY) setup.py sdist bdist_wheel
80+
$(PY) -m pip install -U --user pip build setuptools twine wheel
81+
$(PY) -m build
8282
$(PY) -m twine upload dist/*
8383
-rm -rf build/ dist/
8484
endif

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[build-system]
2-
requires = ["setuptools", "setuptools_scm", "wheel"]
2+
requires = ["setuptools>=45", "setuptools_scm>=6.2", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.setuptools_scm]

setup.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77

88
DEPENDENCIES = [
99
'loam>=0.3.1',
10-
'f90nml>=1.2',
11-
'setuptools_scm>=4.1',
10+
'f90nml>=1.3.1',
11+
'setuptools_scm>=6.2',
1212
]
1313
HEAVY = [
1414
'numpy>=1.19',
1515
'scipy>=1.5',
1616
'pandas>=1.1',
17-
'h5py>=3.0',
17+
'h5py>=3.1',
1818
'matplotlib>=3.3',
1919
]
2020

@@ -25,7 +25,6 @@
2525

2626
setup(
2727
name='stagpy',
28-
use_scm_version=True,
2928

3029
description='Tool for StagYY output files processing',
3130
long_description=README,

0 commit comments

Comments
 (0)