Skip to content

Commit cbd6708

Browse files
authored
maint: use declarative setuptools configuration setup.cfg (#21)
1 parent c0843bc commit cbd6708

4 files changed

Lines changed: 36 additions & 30 deletions

File tree

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ lint: ## check style with flake8
5555

5656
pretty:
5757
find heat -name '*.py' | xargs isort
58-
black setup.py tests heat
58+
black tests heat
5959

6060
test: ## run tests quickly with the default Python
6161
pytest
@@ -84,9 +84,8 @@ release: dist ## package and upload a release
8484
twine upload dist/*
8585

8686
dist: clean ## builds source and wheel package
87-
python setup.py sdist
88-
python setup.py bdist_wheel
87+
python -m build
8988
ls -l dist
9089

9190
install: clean ## install the package to the active Python's site-packages
92-
python setup.py develop
91+
pip install -e .

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel"]
3+
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
[metadata]
2+
name = bmi-heat
3+
version = 2.1.2.dev0
4+
description = BMI Python example
5+
long_description = file: README.rst
6+
long_description_content_type = text/x-rst
7+
author = Eric Hutton
8+
author_email = eric.hutton@colorado.edu
9+
license = MIT
10+
license_files = LICENSE
11+
classifiers =
12+
Intended Audience :: Science/Research
13+
License :: OSI Approved :: MIT License
14+
Operating System :: OS Independent
15+
Programming Language :: Python :: 3
16+
Programming Language :: Python :: 3.6
17+
Programming Language :: Python :: 3.7
18+
Programming Language :: Python :: 3.8
19+
Programming Language :: Python :: Implementation :: CPython
20+
Topic :: Scientific/Engineering :: Physics
21+
url = https://github.com/csdms/bmi-example-python
22+
23+
[options]
24+
packages = find:
25+
install_requires =
26+
bmipy
27+
numpy
28+
pyyaml
29+
scipy
30+
131
[tool:pytest]
232
minversion = 3.0
333
testpaths = heat tests

setup.py

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

0 commit comments

Comments
 (0)