Skip to content

Commit

Permalink
Merge pull request #226 from altheaden/switch-to-pyproject
Browse files Browse the repository at this point in the history
Switch setup configurations to `pyproject.toml`
  • Loading branch information
xylar authored Jan 8, 2025
2 parents 0b45cc9 + 2a938e7 commit afd97b2
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 65 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-${{ matrix.python-version }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('dev-spec.txt,setup.py') }}
hashFiles('dev-spec.txt,pyproject.toml') }}

- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
name: Set up Conda Environment
Expand Down
85 changes: 85 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
[project]
name = "geometric_features"
dynamic = ["version"]
authors = [
{ name="Xylar Asay-Davis", email="[email protected]" },
{ name="Milena Veneziani" },
{ name="Althea Denlinger" },
{ name="Phillip J. Wolfram" },
{ name="Alex Hager" },
{ name="Doug Jacobsen" },
{ name="Carolyn Begeman" },
{ name="Mark Petersen" },
{ name="Stephen Price" },
]
description = """\
Tools for manipulating regions, transects, and points in geojson format
associated with climate modeling.\
"""
license = {file = "LICENSE"}
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
# these are only for searching/browsing projects on PyPI
"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",

"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
]

dependencies = [
"numpy",
"matplotlib",
"cartopy",
"shapely >=2.0,<3.0",
"requests",
"progressbar2",
]

[tool.isort]
multi_line_output = "3"
include_trailing_comma = true
force_grid_wrap = "0"
use_parentheses = true
line_length = "79"

[tool.mypy]
python_version = "3.10"
check_untyped_defs = true
ignore_missing_imports = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true

[build-system]
requires = ["setuptools>=60"]
build-backend = "setuptools.build_meta"

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

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

# evolution of options.entry-points
[project.scripts]
combine_features = "geometric_features.__main__:combine_features"
difference_features = "geometric_features.__main__:difference_features"
fix_features_at_antimeridian = "geometric_features.__main__:fix_features_at_antimeridian"
merge_features = "geometric_features.__main__:merge_features"
plot_features = "geometric_features.__main__:plot_features"
set_group_name = "geometric_features.__main__:set_group_name"
simplify_features = "geometric_features.__main__:simplify_features"
split_features = "geometric_features.__main__:split_features"
tag_features = "geometric_features.__main__:tag_features"

[project.urls]
Documentation = "http://mpas-dev.github.io/geometric_features/main/"
"Bug Tracker" = "https://github.com/MPAS-Dev/geometric_features/issues"
64 changes: 0 additions & 64 deletions setup.py

This file was deleted.

0 comments on commit afd97b2

Please sign in to comment.