Skip to content

Commit 9f8b5f3

Browse files
committed
remove requirements-dev.txt
1 parent de7211f commit 9f8b5f3

4 files changed

Lines changed: 40 additions & 52 deletions

File tree

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ PY := /opt/homebrew/opt/python@$(PY_VERSION)/bin/python$(PY_VERSION
88
PYTHON := $(VENV)/bin/python
99
SERVE_PY := $(abspath $(PYTHON))
1010
PIP := $(VENV)/bin/pip
11-
REQUIREMENTS := requirements-dev.txt
11+
PYPROJECT := pyproject.toml
1212

1313
BUILD_APPS := lab
1414
DOCS_DIR := docs
@@ -76,8 +76,8 @@ help:
7676
@echo " lite-clean - Remove JupyterLite outputs"
7777
@echo " realclean - clean + remove $(VENV)"
7878

79-
# venv bootstrap (runs once, or when requirements change)
80-
$(VENV)/.ready: Makefile $(REQUIREMENTS)
79+
# venv bootstrap
80+
$(VENV)/.ready: Makefile $(PYPROJECT)
8181
@echo "==> Ensuring venv at $(VENV) using $(PY)"
8282
@if [ ! -x "$(PY)" ]; then \
8383
echo "❌ Homebrew Python $(PY_VERSION) not found at $(PY)"; \
@@ -88,8 +88,8 @@ $(VENV)/.ready: Makefile $(REQUIREMENTS)
8888
"$(PY)" -m venv "$(VENV)"; \
8989
fi
9090
@$(PYTHON) -m pip -q install --upgrade pip wheel
91-
@echo "==> Installing dev requirements from $(REQUIREMENTS)"
92-
@$(PYTHON) -m pip install -r "$(REQUIREMENTS)"
91+
@echo "==> Installing miepython + dev extras"
92+
@$(PYTHON) -m pip install -e ".[dev,docs,lite]"
9393
@touch "$(VENV)/.ready"
9494
@echo "✅ venv ready"
9595

miepython/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def i_per(m, x, mu, norm="albedo", n_pole=0):
382382
This function calculates the angular distribution of the scattered intensity from a sphere
383383
for incident light with its electric field vector perpendicular to the scattering plane
384384
(the plane defined by the incident direction and the scattered direction).
385-
This corresponds to the |S₁(θ)|² term in Mie theory.
385+
This corresponds to the :math:`|S₁(θ)|²` term in Mie theory.
386386
387387
The result is normalized according to the specified method. The normalization affects
388388
the total integrated intensity over 4π steradians. Accepted normalization options include:
@@ -411,7 +411,7 @@ def i_par(m, x, mu, norm="albedo", n_pole=0):
411411
This function calculates the angular distribution of the scattered intensity from a sphere
412412
for incident light with its electric field vector parallel to the scattering plane
413413
(the plane defined by the incident direction and the scattered direction).
414-
This corresponds to the |S₂(θ)|² term in Mie theory.
414+
This corresponds to the :math:`|S₂(θ)|²` term in Mie theory.
415415
416416
The result is normalized according to the specified method. The normalization affects
417417
the total integrated intensity over 4π steradians. Accepted normalization options include:

pyproject.toml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ classifiers = [
4040
"Programming Language :: Python :: 3.11",
4141
"Programming Language :: Python :: 3.12",
4242
]
43+
dynamic = ["version"]
4344
dependencies = [
4445
"numpy",
4546
"matplotlib",
4647
"scipy",
4748
"numba; sys_platform != 'emscripten'",
4849
]
49-
dynamic = ["version"]
5050

5151
[project.optional-dependencies]
5252
docs = [
@@ -56,6 +56,38 @@ docs = [
5656
"sphinx_rtd_theme",
5757
]
5858

59+
dev = [
60+
# Testing
61+
"pytest",
62+
"imageio",
63+
"requests",
64+
65+
# Lint / QA
66+
"ruff",
67+
"yamllint",
68+
"rstcheck",
69+
"pylint",
70+
"pyroma",
71+
"black[jupyter]",
72+
73+
# Release / packaging checks
74+
"build",
75+
"check-manifest",
76+
"libarchive-c",
77+
"pyyaml",
78+
"setuptools",
79+
80+
# Notebooks (local JupyterLab workflows)
81+
"jupyterlab",
82+
"nbconvert",
83+
"nbformat",
84+
]
85+
86+
lite = [
87+
"jupyterlite-core==0.6.4",
88+
"jupyterlite-pyodide-kernel==0.6.1",
89+
]
90+
5991
[project.urls]
6092
Homepage = "https://github.com/scottprahl/miepython"
6193
Documentation = "https://miepython.readthedocs.io"
@@ -107,7 +139,6 @@ ignore = [
107139
"jupyter_lite_config.json",
108140
"Makefile",
109141
"release.txt",
110-
"requirements*.txt",
111142
"docs/**",
112143
"miepython/examples/**",
113144
]

requirements-dev.txt

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)