Skip to content

hatch, conv_info, and misc fixes#112

Merged
psi-rking merged 18 commits into
psi-rking:masterfrom
AlexHeide:hatch_string_prep1
Jun 1, 2026
Merged

hatch, conv_info, and misc fixes#112
psi-rking merged 18 commits into
psi-rking:masterfrom
AlexHeide:hatch_string_prep1

Conversation

@AlexHeide

@AlexHeide AlexHeide commented Apr 30, 2026

Copy link
Copy Markdown
Collaborator
  • Fixes test_2_hessians.py.
    check _iter=1 failing. CI didn't catch since unique to psi4 1.10.
  • Adds hatch for build system
  • Adds tests, linting, and doc building through hatch
  • Fixes frozen_cart regex for atoms > 9. https://forum.psicode.org/t/freezing-cartesian-errors/3455/4
  • package converge information with get_conv_info().
    Not used yet in any published code. I grabbed from a dev branch for strings. First step to addressing convergence info in qcsk.
  • Replace setup.py Migrate to pyproject.toml #100
  • Remove versioneer (hatch)
  • Finalize dev docs for using hatch
  • Add hatch build and publish github actions optking is not on pypi.org #111
  • use hatch test in CI

Why hatch? From pypa (pypi) so it seemed like the most stable choice, always pip compatible, and unlikely to cause issues 😄

AlexHeide and others added 8 commits April 21, 2026 13:50
…d. Adds hatch as build system in place of setuptools
Trying to fix readme
Try fix again
Fixes readme headers
…nor formatting changes. Adds (and removes) NEB keywords. Adds get_conv_info to provide convergence summary.
@AlexHeide

AlexHeide commented Apr 30, 2026

Copy link
Copy Markdown
Collaborator Author

@psi-rking Not completely finished, but if you had any feedback/questions on docs that'd be helpful. Main change is the new build system.

This PR should only add shortcuts to things, any existing workflows should be unaffected (outside building / publishing to pypi and conda)

@codecov

codecov Bot commented May 6, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 56.75676% with 64 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.35%. Comparing base (753c7c9) to head (92142d0).

Files with missing lines Patch % Lines
optking/addIntcos.py 4.44% 43 Missing ⚠️
optking/convcheck.py 40.00% 9 Missing ⚠️
optking/tests/conftest.py 82.75% 5 Missing ⚠️
optking/frag.py 42.85% 4 Missing ⚠️
optking/molsys.py 50.00% 2 Missing ⚠️
optking/stepAlgorithms.py 92.30% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #112      +/-   ##
==========================================
+ Coverage   82.12%   85.35%   +3.22%     
==========================================
  Files          36       90      +54     
  Lines        8068    10172    +2104     
==========================================
+ Hits         6626     8682    +2056     
- Misses       1442     1490      +48     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AlexHeide AlexHeide requested a review from psi-rking May 18, 2026 17:49

@psi-rking psi-rking left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great simplification.

@psi-rking psi-rking merged commit 855aa8d into psi-rking:master Jun 1, 2026
6 checks passed
AlexHeide added a commit to AlexHeide/optking that referenced this pull request Jun 5, 2026
* Switches from setup.py to pyproject.toml. setup.py no longer supported. Adds hatch as build system in place of setuptools

* Update README.rst

Trying to fix readme

* Update README.rst

Try fix again

* Update README.rst

* Update README.rst

Fixes readme headers

* Update README.rst

* Small changes made during string work. Moves make_internal_coords. Minor formatting changes. Adds (and removes) NEB keywords. Adds get_conv_info to provide convergence summary.

* Fixes ptyest test_2_hessians.py --check_iter=1. Fixes frozen_cart regex. Fixes hatch-conda environment file

* Add publish workflow and use hatch in CI

* Remove old versioning file. Replacing with hatch build hook

* Removes redundant makefile. Expands wheel ignore

* Remove manifest. Add devtools and scripts to sdist

* Update git ignore

* Updates documentation with pipx instructions

* Updates to workflows.

* Adds _version.py to vcs. Will be updated with release.yml or hatch build

* Removes check_iter from test_ranged_internal for moment. Steps_taken varies by 1 (9 or 10 steps) with python version

* Fixes mistake in removing check_iter from test_ranged_internals.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants