Skip to content

Commit

Permalink
refactor(setup): convert project to use pyproject.toml; bump supporte…
Browse files Browse the repository at this point in the history
…d python versions to 3.11 and 3.12
  • Loading branch information
aleaf committed Jan 12, 2024
1 parent 7e372b0 commit 95c2080
Show file tree
Hide file tree
Showing 13 changed files with 129 additions and 312 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
python-version: ['3.11', '3.10']
python-version: ['3.12', '3.11']
exclude:
# tests with ubuntu-latest, python latest
# are executed by build_docs.yaml
- os: ubuntu-latest
python-version: 3.11
python-version: 3.12

steps:
- name: Checkout source
Expand Down
13 changes: 0 additions & 13 deletions AUTHORS.rst

This file was deleted.

104 changes: 0 additions & 104 deletions CONTRIBUTING.rst

This file was deleted.

27 changes: 0 additions & 27 deletions LICENSE

This file was deleted.

46 changes: 46 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
License
=======

Unless otherwise noted, This project is in the public domain in the United
States because it contains materials that originally came from the United
States Geological Survey, an agency of the United States Department of
Interior. For more information, see the official USGS copyright policy at
https://www.usgs.gov/information-policies-and-instructions/copyrights-and-credits

Additionally, we waive copyright and related rights in the work
worldwide through the CC0 1.0 Universal public domain dedication.


CC0 1.0 Universal Summary
-------------------------

This is a human-readable summary of the
[Legal Code (read the full text)][1].


### No Copyright

The person who associated a work with this deed has dedicated the work to
the public domain by waiving all of his or her rights to the work worldwide
under copyright law, including all related and neighboring rights, to the
extent allowed by law.

You can copy, modify, distribute and perform the work, even for commercial
purposes, all without asking permission.


### Other Information

In no way are the patent or trademark rights of any person affected by CC0,
nor are the rights that other persons may have in the work or in how the
work is used, such as publicity or privacy rights.

Unless expressly stated otherwise, the person who associated a work with
this deed makes no warranties about the work, and disclaims liability for
all uses of the work, to the fullest extent permitted by applicable law.
When using or citing the work, you should not imply endorsement by the
author or the affirmer.



[1]: https://creativecommons.org/publicdomain/zero/1.0/legalcode
16 changes: 0 additions & 16 deletions MANIFEST.in

This file was deleted.

73 changes: 73 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
[build-system]
requires = [
"setuptools >= 61",
#'tomli; python_version < "3.11"',
]
build-backend = "setuptools.build_meta"

[project]
name = "modflow-export"
dynamic = ["version"]
authors = [
{ name = "Andrew Leaf", email = "aleaf@usgs.gov" },
{ name = "Mike Fienen", email = "mnfienen@usgs.gov" },
]
description = "Fast & easy summarizing of MODFLOW data and export to GIS file formats"
readme = "Readme.md"
keywords = ["MODFLOW", "groundwater", "hydrogeology"]
license = {file = "LICENSE.md"}
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: Hydrology",
]
requires-python = ">=3.11"
dependencies = [
"gis-utils",
"fiona",
"flopy",
"matplotlib",
"numpy",
"pandas",
"pyproj",
"pyyaml",
"rasterio",
"shapely",
"xarray",
]

[project.optional-dependencies]
optional = [
]
test = [
"codecov",
"coverage",
"pytest",
]
docs = [
"modflow-export[optional]",
"ipython[kernel]",
"sphinx",
"numpydoc",
"nbsphinx",
"sphinx-copybutton",
"sphinx-rtd-theme"
]

[project.scripts]
get-modflow = "flopy.utils.get_modflow:cli_main"

[project.urls]
documentation = "https://aleaf.github.io/modflow-export/latest/"
repository = "https://github.com/aleaf/modflow-export"

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

[tool.versioneer]
VCS = "git"
style = "pep440-post"
versionfile_source = "mfexport/_version.py"
versionfile_build = "mfexport/_version.py"
tag_prefix = "v"
26 changes: 0 additions & 26 deletions requirements-dev.txt

This file was deleted.

30 changes: 0 additions & 30 deletions requirements-dev.yml

This file was deleted.

12 changes: 0 additions & 12 deletions requirements.txt

This file was deleted.

19 changes: 0 additions & 19 deletions requirements.yml

This file was deleted.

6 changes: 0 additions & 6 deletions setup.cfg

This file was deleted.

Loading

0 comments on commit 95c2080

Please sign in to comment.