Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[flake8]
exclude =
.git
__pycache__
build
dist
examples
autotest
ignore =
# https://flake8.pycqa.org/en/latest/user/error-codes.html
F401,
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
# Indentation
E121, E122, E126, E127, E128,
# Whitespace
E203, E221, E222, E226, E231, E241,
# Import
E402,
# Line length
E501, E502,
# Statement
E722, E741,
# Whitespace warning
W291, W292, W293,
# Blank line warning
W391,
# Line break warning
W503, W504
statistics = True
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
python-version: 3.8
cache: 'pip'
cache-dependency-path: setup.cfg
cache-dependency-path: pyproject.toml

- name: Install Python packages
run: |
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
python-version: ${{ matrix.python }}
cache: 'pip'
cache-dependency-path: |
modflow-devtools/setup.cfg
modflow-devtools/pyproject.toml
modflow6-examples/etc/requirements*.txt

- name: Install Python packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
python-version: 3.8
cache: 'pip'
cache-dependency-path: setup.cfg
cache-dependency-path: pyproject.toml

- name: Install Python dependencies
run: |
Expand Down Expand Up @@ -214,7 +214,7 @@ jobs:
with:
python-version: 3.8
cache: 'pip'
cache-dependency-path: setup.cfg
cache-dependency-path: pyproject.toml

- name: Install Python dependencies
run: |
Expand Down
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
global-exclude .DS_Store *.pyc *.pyo *.pyd *.swp *.bak *~ .* *.sh *.yml *.md *.toml
exclude autotest/*
include pyproject.toml
include version.txt
include version.txt
include README.md
80 changes: 78 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,80 @@
[build-system]
# Minimum requirements for the build system to execute
requires = [
"setuptools>=45",
"wheel",
"setuptools>=61",
]
build-backend = "setuptools.build_meta"

[project]
name = "modflow-devtools"
description = "Python tools for MODFLOW development"
authors = [
{name = "Joseph D. Hughes", email = "modflow@usgs.gov"},
]
maintainers = [
{name = "Joseph D. Hughes", email = "modflow@usgs.gov"},
]
keywords = [
"MODFLOW",
"development",
"utilities",
"groundwater",
"hydrogeology"
]
readme = "README.md"
license = {text = "CC0"}
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Hydrology"
]
requires-python = ">=3.8"
dependencies = [
"numpy",
"pytest"
]
dynamic = ["version"]

[project.optional-dependencies]
lint = [
"black",
"cffconvert",
"flake8",
"isort",
"pylint"
]
test = [
"modflow-devtools[lint]",
"coverage",
"flaky",
"filelock",
"meson!=0.63.0",
"ninja",
"pytest-cases",
"pytest-cov",
"pytest-dotenv",
"pytest-xdist",
"PyYaml"
]
docs = [
"sphinx",
"sphinx-rtd-theme",
"myst-parser"
]

[project.urls]
"Documentation" = "https://modflow-devtools.readthedocs.io/en/latest/"
"Bug Tracker" = "https://github.com/MODFLOW-USGS/modflow-devtools/issues"
"Source Code" = "https://github.com/MODFLOW-USGS/modflow-devtools"


[tool.black]
line-length = 79
target_version = ["py37"]
Expand All @@ -19,6 +88,13 @@ profile = "black"
src_paths = ["src/modflow_devtools"]
line_length = 79

[tool.setuptools]
include-package-data = true
zip-safe = false

[tool.setuptools.dynamic]
version = {file = "version.txt"}

[tool.setuptools_scm]
fallback_version = "999"

Expand Down
99 changes: 0 additions & 99 deletions setup.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from setuptools import setup

setup()
setup(name="modflow-devtools")