Skip to content

Commit

Permalink
maint: move static metadata to setup.cfg; update requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
mwtoews committed May 12, 2022
1 parent 1bece69 commit f404515
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 51 deletions.
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
include LICENSE
include *.rst
include requirements*.txt
include Makefile
Expand Down
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ lint: ## check style with flake8

pretty:
find bmi_tester -name '*.py' | xargs isort
black setup.py tests bmi_tester
black tests bmi_tester

test: ## run tests quickly with the default Python
pytest
Expand Down Expand Up @@ -83,9 +83,8 @@ release: dist ## package and upload a release
twine upload dist/*

dist: clean ## builds source and wheel package
python setup.py sdist
python setup.py bdist_wheel
python -m build
ls -l dist

install: clean ## install the package to the active Python's site-packages
python setup.py develop
pip install -e .
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ From Source
+++++++++++

After downloading the *bmi-tester* source code, run the following from
the project's top-level folder (the one that contains *setup.py*) to
the project's top-level folder (the one that contains *pyproject.toml*) to
install into the current environment,

.. code:: bash
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[build-system]
requires = ["cython", "numpy", "setuptools", "wheel"]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[tool.pytest.ini_options]
minversion = "6.0.0rc1"
testpaths = ["tests"]
norecursedirs = [".*", "*.egg*", "build", "dist"]
addopts = """
--ignore setup.py
--ignore bmi_tester/bootstrap
--ignore bmi_tester/tests
--tb native
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
click
gimli.units
model_metadata
numpy
pytest
Expand Down
41 changes: 41 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
[metadata]
name = bmi-tester
version = 0.5.6.dev0
description = Test Python BMI bindings
keywords = bmi
long_description = file: README.rst, CREDITS.rst, CHANGES.rst
long_description_content_type = text/x-rst
author = Eric Hutton
author_email = [email protected]
license = MIT
license_files = LICENSE.rst
classifiers =
Development Status :: 4 - Beta
Intended Audience :: Science/Research
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: Implementation :: CPython
Topic :: Scientific/Engineering :: Physics
url = https://github.com/csdms/bmi-tester

[options]
include_package_data = True
packages = find:
install_requires =
click
gimli.units
model_metadata
numpy
pytest
pytest-dependency
standard_names

[options.entry_points]
console_scripts =
bmi-test = bmi_tester.bmipytest:main
bmi.plugins =
bmi_test = bmi_tester.bmipytest:configure_parser_test

[zest.releaser]
tag-format = v{version}

Expand Down
43 changes: 0 additions & 43 deletions setup.py

This file was deleted.

0 comments on commit f404515

Please sign in to comment.