diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8a5a9d..fc06472 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,7 @@ jobs: - name: Install and run tests working-directory: ${{ github.workspace }} run: | - python setup.py install + pip install . cd tests; xvfb-run python test_verify.py -v # See https://github.community/t/status-check-for-a-matrix-jobs/127354/7 all-tests: diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..9fc3b62 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,43 @@ +[build-system] +requires = ["setuptools >= 61.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "PyForecastTools" +dynamic = ["version"] +requires-python = ">=3.6" +dependencies = [ + "numpy", + "matplotlib", +# "spacepy", +] +license = "BSD-3-Clause" +license-files = ["LICENSE.md"] +readme = "README.md" +classifiers = ['Development Status :: 4 - Beta', + 'Intended Audience :: Science/Research', + 'Topic :: Scientific/Engineering :: Astronomy', + 'Topic :: Scientific/Engineering :: Atmospheric Science', + 'Topic :: Scientific/Engineering :: Information Analysis', + 'Topic :: Scientific/Engineering :: Physics', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', + 'Programming Language :: Python :: 3.14', + ] + +[project.urls] +homepage = "https://drsteve.github.io/PyForecastTools" +repository = "https://github.com/drsteve/PyForecastTools" + +[tool.setuptools.dynamic] +version = {attr = "verify.__version__"} + +[tool.setuptools.packages.find] +exclude = ["tests*"] diff --git a/setup.py b/setup.py deleted file mode 100644 index e1e1bd8..0000000 --- a/setup.py +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env python - -from setuptools import setup, find_packages - -with open("README.md", "r") as fh: - long_description = fh.read() - - -setup(name='PyForecastTools', - version='1.1.1', - description='Model validation and forecast verification tools', - author='Steve Morley', - author_email='smorley@lanl.gov', - license='BSD License', - url='https://github.com/drsteve/PyForecastTools', - install_requires=['numpy', 'matplotlib'], - long_description=long_description, - long_description_content_type="text/markdown", - packages=find_packages(exclude=['tests']), - classifiers=['Development Status :: 4 - Beta', - 'License :: OSI Approved :: BSD License', - 'Intended Audience :: Science/Research', - 'Topic :: Scientific/Engineering :: Astronomy', - 'Topic :: Scientific/Engineering :: Atmospheric Science', - 'Topic :: Scientific/Engineering :: Information Analysis', - 'Topic :: Scientific/Engineering :: Physics', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - ], - test_suite='test_verify.py' - ) diff --git a/verify/__init__.py b/verify/__init__.py index 3cf0874..ae3676d 100644 --- a/verify/__init__.py +++ b/verify/__init__.py @@ -19,3 +19,5 @@ from .metrics import * from .categorical import * from . import plot + +__version__ = "1.1.1"