Skip to content

Commit 877b8fb

Browse files
committed
Enable build via setuptools using pyproject.toml
Include version number in __init__.py
1 parent cc55594 commit 877b8fb

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
[build-system]
2+
requires = ["setuptools >= 61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "PyForecastTools"
7+
dynamic = ["version"]
8+
requires-python = ">=3.6"
9+
dependencies = [
10+
"numpy",
11+
"matplotlib",
12+
# "spacepy",
13+
]
14+
license = "BSD-3-Clause"
15+
license-files = ["LICENSE.md"]
16+
readme = "README.md"
17+
classifiers = ['Development Status :: 4 - Beta',
18+
'Intended Audience :: Science/Research',
19+
'Topic :: Scientific/Engineering :: Astronomy',
20+
'Topic :: Scientific/Engineering :: Atmospheric Science',
21+
'Topic :: Scientific/Engineering :: Information Analysis',
22+
'Topic :: Scientific/Engineering :: Physics',
23+
'Programming Language :: Python :: 3',
24+
'Programming Language :: Python :: 3.6',
25+
'Programming Language :: Python :: 3.7',
26+
'Programming Language :: Python :: 3.8',
27+
'Programming Language :: Python :: 3.9',
28+
'Programming Language :: Python :: 3.10',
29+
'Programming Language :: Python :: 3.11',
30+
'Programming Language :: Python :: 3.12',
31+
'Programming Language :: Python :: 3.13',
32+
'Programming Language :: Python :: 3.14',
33+
]
34+
35+
[project.urls]
36+
homepage = "https://drsteve.github.io/PyForecastTools"
37+
repository = "https://github.com/drsteve/PyForecastTools"
38+
39+
[tool.setuptools.dynamic]
40+
version = {attr = "verify.__version__"}
41+
42+
[tool.setuptools.packages.find]
43+
exclude = ["tests*"]

verify/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@
1919
from .metrics import *
2020
from .categorical import *
2121
from . import plot
22+
23+
__version__ = "1.1.1"

0 commit comments

Comments
 (0)