FFFF chore: prepare unpublished FlahaX 0.7.0 candidate by rafatahmed · Pull Request #279 · rafatahmed/Flahax · GitHub
[go: up one dir, main page]

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
390 changes: 91 additions & 299 deletions CHANGELOG.md

Large diffs are not rendered by default.

42 changes: 22 additions & 20 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
cff-version: 1.2.0
message: "If you use FlahaX, please cite it as below, and credit the data sources listed under references."
message: "If you use FlahaX, cite the version used. This checkout prepares unpublished 0.7.0; no new version DOI or release date is assigned. Credit the data sources listed under references."
title: "FlahaX: plant-nutrient chemistry engine for fertilizer formulation and delivery planning"
abstract: >-
FlahaX turns a water analysis, a crop formula and the fertilizers at hand
into a batch: the fertilizer recipe, the calculated pH, the acid-adjusted
recipe and the A/B stock tanks to prepare. Growers and agronomists use the
interactive `flahax mix` command; developers use the Python API. Underneath,
it chooses fertilizer grams by non-negative least squares so the crop
formula is met after the water's contribution; models the solution with
fertilizer-specific aqueous equilibrium chemistry (speciation, saturation
and pH) at the water's measured pH; plans the acid or base dose to a
target pH with the reagent's nutrients counted; groups products into two
concentrate tanks and checks their solubility; and records units, sources
and hashes for audit. Materials are defined by formula, ions or label
analysis. Chemistry is checked against PHREEQC 3.8.6. Pure Python, no
runtime dependencies.
FlahaX turns crop-feed targets, source-water analyses and available products
into candidate fertilizer and pH-reagent recipes for grower or agronomist
review. Targets can be supplied directly or designed with Sonneveld's A-D
sequence and explicit, approved feed corrections from root-zone observations.
Nutrient fitting and coupled fertilizer/reagent search retain achieved
concentrations, target residuals, declared limits and bounded-search evidence.
Rounded dry and separate-stock doses can be checked with declared product,
dispensing and reagent uncertainty. The software reports calculated pH,
conductivity estimates and saturation assessments within stated model limits.
Tank assignments depend on the supplied equipment and compatibility evidence;
a proposed A/B layout does not certify mixed-stock preparation. TUI, batch and
Python interfaces preserve units, inputs, source hashes and result identity.
Numerical chemistry is checked against pinned PHREEQC 3.8.6 references sharing
thermodynamic data. This is not independent physical validation, a guarantee
of exact target matching or a global optimum, or operational dosing control.
Pure Python, with no runtime dependencies.

type: software
authors:
- family-names: Al Khashan
Expand All @@ -28,16 +32,15 @@ contact:
given-names: Rafat A.
email: rafat.khashan82@gmail.com
affiliation: Flaha Agri Tech
version: 0.6.0
date-released: "2026-10-24"
version: 0.7.0
doi: 10.5281/zenodo.23605678
identifiers:
- type: doi
value: 10.5281/zenodo.23605678
description: Concept DOI, all versions (Zenodo)
- type: doi
value: 10.5281/zenodo.23605679
description: Version 0.6.0 (Zenodo)
description: Historical published version 0.6.0 (Zenodo)
url: https://flahax.readthedocs.io/
repository-code: https://github.com/rafatahmed/Flahax
repository-artifact: https://pypi.org/project/flahax/
Expand Down Expand Up @@ -66,9 +69,8 @@ preferred-citation:
affiliation: Flaha Agri Tech
orcid: https://orcid.org/0009-0009-4692-4552
year: 2026
version: 0.6.0
doi: 10.5281/zenodo.23605679
url: https://pypi.org/project/flahax/
version: 0.7.0
url: https://github.com/rafatahmed/Flahax
repository-code: https://github.com/rafatahmed/Flahax
license: Apache-2.0
references:
Expand Down
8 changes: 5 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,18 @@ release:
(a yanked release adds `[YANKED]` and keeps its section);
- each release opens with a short paragraph: what it is, any breaking change, the supported
Python and known limits;
- bullets are grouped under the six change types only: **Added**, **Changed**, **Deprecated**,
- each applicable change type appears once per release; every bullet belongs to
a category. Bullets are grouped under the six change types only: **Added**, **Changed**, **Deprecated**,
**Removed**, **Fixed**, **Security**; each bullet names its issues and is at most 400
characters, and related changes share one bullet;
characters after joining wrapped continuation lines, and related changes share one bullet;
- the bottom of the file has a comparison link for every version and for `unreleased`.

The full text of unreleased changes belongs in `docs/releases/unreleased.md` until
a release version is selected. Released change details (numbers, sources, decisions)
belong in `docs/releases/<version>.md`,
linked with a full GitHub URL, because the docs site includes the changelog. `tests/test_changelog.py`
checks all of this.
checks heading/link syntax, category uniqueness, categorized bullets and complete
entry length. Factual completeness, compatibility and source/issue mapping require review.

## Code style

Expand Down
30 changes: 19 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ reagent doses against their preparation tolerances and nutrient ceilings.
The grower or agronomist reviews the result and its qualifications before preparation.
Tank assignments use the supplied equipment and compatibility evidence. Each plan retains
units, inputs, model identifiers and source hashes for review and reproduction.
The [scope and limits](docs/site/explanation/scope-and-limits.md) explain the supported workflows
The [scope and limits](https://flahax.readthedocs.io/en/latest/explanation/scope-and-limits.html) explain the supported workflows
and the measurements needed to qualify a prepared batch.

**Who it is for**
Expand All @@ -47,9 +47,16 @@ For changes from published recipes to this development checkout, see the
[migration guide](https://flahax.readthedocs.io/en/latest/start/migration.html).
Recalculate and review saved results; acceptance does not transfer to changed inputs or sources.

**Prepared version: 0.7.0, not yet published.** Use the source checkout for this
candidate. The latest verified PyPI publication during preparation is 0.6.0;
its DOI and artifacts do not identify this candidate. See the
[0.7.0 notes](https://github.com/rafatahmed/Flahax/blob/main/docs/releases/0.7.0.md).

## Installation

Python 3.11 or newer. There are no third-party runtime dependencies.
From a reviewed 0.7.0 candidate source checkout, install with `python -m pip install .`.
To use the separately published 0.6.0 instead:

```bash
python -m pip install flahax==0.6.0
Expand Down Expand Up @@ -80,7 +87,8 @@ python -m pip install --force-reinstall --no-deps "git+https://github.com/rafata

`flahax mix` asks five things in order: tank sizes and injection ratio, the water analysis as
printed by the lab, the crop formula, the fertilizers you have, and the target pH. It shows what
to weigh into tank A and tank B and how much acid goes in the acid container, writes a batch
to weigh into the proposed nutrient tanks and how much selected acid or base goes in the
separate reagent container, writes a batch
sheet, and saves the answers so the next batch is one command:

```bash
Expand Down Expand Up @@ -171,10 +179,10 @@ exit 3 for a blocked result. Always inspect the returned qualifications and limi
The manual can also be read offline from an installed package through `importlib.resources`
(`flahax/data/USER_GUIDE.md`).

For the current source documentation, [choose a workflow](docs/site/start/choose-workflow.md),
follow the [grower Sonneveld walkthrough](docs/site/grower/sonneveld-walkthrough.md),
or review the [complete Appendix I calculation](docs/site/agronomist/sonneveld-appendix-i.md).
The [profile and session reference](docs/site/reference/file-formats.md#sonneveld-import-profile)
For the current source documentation, [choose a workflow](https://flahax.readthedocs.io/en/latest/start/choose-workflow.html),
follow the [grower Sonneveld walkthrough](https://flahax.readthedocs.io/en/latest/grower/sonneveld-walkthrough.html),
or review the [complete Appendix I calculation](https://flahax.readthedocs.io/en/latest/agronomist/sonneveld-appendix-i.html).
The [profile and session reference](https://flahax.readthedocs.io/en/latest/reference/file-formats.html#sonneveld-import-profile)
describes the reusable inputs and saved evidence.

## Troubleshooting
Expand Down Expand Up @@ -241,17 +249,17 @@ Live PHREEQC replay and distribution verification are described in

## Citation

Al Khashan, R. A. (2026). *FlahaX* (Version 0.6.0) [Computer software]. Zenodo.
https://doi.org/10.5281/zenodo.23605679
Al Khashan, R. A. (2026). *FlahaX* (Version 0.7.0, unpublished candidate)
[Computer software]. Cite the reviewed source revision as well as the version.
The 0.6.0 version DOI identifies the historical publication, not this candidate.

```bibtex
@software{alkhashan2026flahax,
author = {Al Khashan, Rafat A.},
title = {FlahaX: plant-nutrient chemistry engine for fertilizer formulation and delivery planning},
year = {2026},
version = {0.6.0},
doi = {10.5281/zenodo.23605679},
url = {https://pypi.org/project/flahax/},
version = {0.7.0},
url = {https://github.com/rafatahmed/Flahax},
license = {Apache-2.0}
}
```
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ not patched; upgrade with `python -m pip install --upgrade flahax`.

| Version | Supported |
|---|---|
| Latest release on PyPI (0.5.x today) | Yes |
| Latest published release on PyPI | Yes |
| `main` | Yes |
| Earlier releases | No |

Expand Down
29 changes: 21 additions & 8 deletions docs/publishing.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,22 @@ pushing a tag.
reference; write the changelog section; record readiness and evidence.
Merge it by pull request after CI passes.
2. Confirm the publication decision with the maintainer. Merging is not approval.
3. **Finalize the wording before tagging** (#71): on a short branch, date the
changelog section and change the manual's version line from "release
candidate ... not yet published" to "released <date>"; merge it after CI
passes. The tag must point at this commit, because the packaged manual and
the sdist changelog are fixed at upload.
3. **Finalize the artifact before tagging** (#71): after publication approval,
use a short branch to date the changelog and align the manual's version line
with that date (`released YYYY-MM-DD`). Review every candidate notice in the
README (including installation and citation instructions), `CITATION.cff`,
the manual, version release notes, documentation index, readiness page and
installation pages. Replace candidate wording consistently; set any citation
release date to the same declared date. Merge after CI passes. The tag must
point at this commit: packaged documentation cannot change after upload.

These are three separate states: **candidate**, **finalized artifact awaiting
upload**, and **verified publication**. A dated changelog and matching manual
declare the artifact's release date; they do not prove an upload happened.
Lifecycle tests allow the finalized artifact before publication. Do not add
a publication receipt to make CI pass. Record external publication only after
checking the actual registry or archive, even if its date differs from the
artifact's declared date.
4. Create the GitHub Release for tag `v<version>` on that merged `main`
commit, with the changelog section as its notes. Publishing it starts the
workflow.
Expand Down Expand Up @@ -157,9 +168,11 @@ guard would skip it anyway.
## PyPI README validation

The built metadata declares `Description-Content-Type: text/markdown`. README
links use absolute repository URLs so they work on the PyPI project page.
`twine check --strict` validates the metadata; it does not show that a
package was uploaded.
links use absolute documentation or repository URLs so they work on PyPI.
The clean wheel and sdist installation checks reject repository-relative links
in the installed metadata's README description. Render that description to
inspect Markdown presentation as well: `twine check --strict` alone does not
check Markdown links or demonstrate that a package was uploaded.

## Release history

Expand Down
Loading
Loading
0