Skip to content

Commit

Permalink
changed buildsystem to setuptools
Browse files Browse the repository at this point in the history
bump version to 0.3.0
uploaded to pypi
  • Loading branch information
LuukBlom committed Apr 19, 2024
1 parent 0ac57bb commit c7d2afc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion hydromt_fiat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
from pathlib import Path

# NOTE version number without "v"
__version__ = "0.2.1.dev"
__version__ = "0.3.0"

DATADIR = Path().absolute() / "data"
22 changes: 14 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[build-system]
requires = ["flit_core >=3.4.0,<4"]
build-backend = "flit_core.buildapi"
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"

[project]
name = "hydromt_fiat"
# TODO description = "Hydrological model for flood impact assessment and adaptation planning"
authors = [
{name = "Dirk Eilander", email = "[email protected]"},
{name = "Frederique de Groen", email = "[email protected]"},
Expand All @@ -15,7 +16,6 @@ authors = [
requires-python = ">=3.8"
dependencies = [
"hydromt",
"hydromt_sfincs",
"geopandas",
"geopy",
"numpy",
Expand All @@ -37,11 +37,20 @@ classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Climate impact",
"Topic :: Scientific/Engineering :: Information Analysis",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
dynamic = ['version', 'description']
dynamic = ["version"]

[tool.setuptools]
zip-safe = false

[tool.setuptools.dynamic]
version = { attr = "hydromt_fiat.__version__" }

[tool.setuptools.packages.find]
include = ["hydromt_fiat", "hydromt_fiat.*"]

[project.optional-dependencies]
test = [
Expand All @@ -67,6 +76,3 @@ fiat = "hydromt_fiat.fiat:FiatModel"
line-length = 88
target-version = ['py38']

[tool.flit.sdist]
include = ["hydromt_fiat"]
exclude = ["docs", "examples", "envs", "tests", "binder", ".github"]

0 comments on commit c7d2afc

Please sign in to comment.