Skip to content

Commit

Permalink
461: move to pyproject.toml for build
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Sharples committed Sep 18, 2024
1 parent a168ff7 commit c3e0a45
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 29 deletions.
7 changes: 7 additions & 0 deletions metplotpy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from distutils.util import convert_path

main_ns = {}
version_path = convert_path('docs/version')
with open(version_path) as version_file:
exec(version_file.read(), main_ns)
__version__ = main_ns['__version__']
32 changes: 32 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "metplotpy"
dynamic = ["version"]
description = "plotting package for METplus"
authors = [
{name = "METplus", email = "[email protected]"},
]
dependencies = []
requires-python = ">=3.10.4"
readme = "README.md"
license = {text = "MIT"}
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
]

[project.urls]
Homepage = "https://github.com/dtcenter/METplotpy"

[tool.setuptools]
packages = ["metplotpy"]

[tool.pytest.ini_options]
testpaths = ["test"]

[tool.coverage.run]
source = ["metplotpy"]
29 changes: 0 additions & 29 deletions setup.py

This file was deleted.

0 comments on commit c3e0a45

Please sign in to comment.