Skip to content

Commit 89317b1

Browse files
committed
Use setup.cfg instead of setup.py
1 parent 53d0d22 commit 89317b1

File tree

5 files changed

+47
-47
lines changed

5 files changed

+47
-47
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ VERSION=$(shell git describe --exact-match HEAD 2>/dev/null)
1414

1515
all: $(STAGPY) info
1616

17-
$(STAGPY): setup.py pyproject.toml
17+
$(STAGPY): setup.cfg pyproject.toml
1818
$(PY) -m venv $(VENV_DIR)
1919
$(VPIP) install -U pip
2020
$(VPIP) install -e .

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=45", "setuptools_scm>=6.2", "wheel"]
2+
requires = ["setuptools>=51", "setuptools_scm>=6.3.2", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.setuptools_scm]

setup.cfg

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
[metadata]
2+
name = stagpy
3+
4+
description = Tool for StagYY output files processing
5+
long_description = file: README.rst
6+
7+
url = https://github.com/StagPython/StagPy
8+
9+
author = Adrien Morison, Martina Ulvrova, Stéphane Labrosse
10+
author_email = [email protected]
11+
maintainer = Adrien Morison
12+
maintainer_email = Adrien Morison
13+
14+
license = Apache
15+
16+
classifiers =
17+
Development Status :: 3 - Alpha
18+
Intended Audience :: Science/Research
19+
License :: OSI Approved :: Apache Software License
20+
Programming Language :: Python :: 3 :: Only
21+
Programming Language :: Python :: 3.7
22+
Programming Language :: Python :: 3.8
23+
Programming Language :: Python :: 3.9
24+
Programming Language :: Python :: 3.10
25+
26+
[options]
27+
python_requires = >=3.7
28+
include_package_data = true
29+
packages =
30+
stagpy
31+
install_requires =
32+
loam>=0.5.0,<0.6.0
33+
f90nml>=1.3.1
34+
setuptools_scm>=6.3.2
35+
numpy>=1.19
36+
scipy>=1.5
37+
pandas>=1.3
38+
h5py>=3.1
39+
matplotlib>=3.3
40+
41+
[options.entry_points]
42+
console_scripts =
43+
stagpy = stagpy.__main__:main

setup.py

Lines changed: 0 additions & 44 deletions
This file was deleted.

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ envlist =
77
flake8
88
mypy
99
skip_missing_interpreters = True
10+
isolated_build = True
1011

1112
[testenv]
1213
deps =
@@ -24,7 +25,7 @@ deps =
2425
flake8>=3.8
2526
flake8-docstrings>=1.5
2627
commands =
27-
flake8 setup.py stagpy/ tests/
28+
flake8 stagpy/ tests/
2829

2930
[testenv:mypy]
3031
deps =

0 commit comments

Comments
 (0)