Skip to content

Commit

Permalink
Added qmllib optional flag (#118)
Browse files Browse the repository at this point in the history
* Add optional flag for qmllib

* Fixed publish wheels, only only sdist (#119)

---------

Co-authored-by: David Hotham <[email protected]>
  • Loading branch information
charnley and dimbleby authored Nov 30, 2024
1 parent e1f0713 commit 0f6a7ce
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ jobs:
- run: make format python=python
- run: make build python=python
- run: make test-dist python=python
- run: pip install dist/*
- run: for x in dist/*; do pip uninstall -y rmsd && pip install $x; done
- run: pip uninstall -y rmsd && pip install $(find dist -name "*.whl" | tail -n 1)[qml]
- run: which calculate_rmsd
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ cov:
${python} -m pytest --cov=${package} --cov-config .coveragerc --cov-report html tests

build:
${python} -m build --sdist --skip-dependency-check .
${python} -m build --skip-dependency-check .

upload:
${python} -m twine upload ./dist/*.tar.gz
${python} -m twine upload ./dist/*

## Version

Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ classifiers = [
"Topic :: Scientific/Engineering :: Chemistry",
]
keywords = ["pdb", "atoms", "kabsch", "reordering", "rotation", "xyz", "rmsd"]

dependencies=["numpy", "scipy"]

[project.optional-dependencies]
qml = ["qmllib"]

[project.urls]
Homepage = "https://github.com/charnley/rmsd"

Expand Down

0 comments on commit 0f6a7ce

Please sign in to comment.