Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register solvation-analysis as MDAKit #67

Merged
merged 5 commits into from
Sep 19, 2023
Merged
Changes from 1 commit
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
58 changes: 58 additions & 0 deletions mdakits/solvation-analysis/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Required entries
## str: name of the project (the respository name)
project_name: solvation-analysis
## List(str): a list of authors (or a link to the authors file)
authors:
- orionarcher
IAlibay marked this conversation as resolved.
Show resolved Hide resolved
- hmacdope
- laurlee
- IAlibay
## List(str): a list of maintainers
maintainers:
- orionarcher
- hmacdope
## str: a free form description of the mdakit
description:
A comprehensive tool for analyzing liquid solvation structure.
## List(str): a list of keywords which describe the mdakit
keywords:
- chemistry
- electrolytes
- solvation structure
## str: the license the mdakit falls under
license: GPL-2.0-or-later
## str: the link to the project's code
project_home: https://github.com/MDAnalysis/solvation-analysis
## str: the link to the project's documentation
documentation_home: https://solvation-analysis.readthedocs.io/en/latest/
## str: the type of documentation available [UserGuide, API, README]
documentation_type: UserGuide + API

# Optional entries
## List(str): a list of commands to use when installing the latest
## release of the code. Note: only one installation method can currently
## be defined. We suggest using conda/mamba where possible.
install:
- conda install -c conda-forge solvation_analysis
orionarcher marked this conversation as resolved.
Show resolved Hide resolved
## List(str): a list of commands to use when installing the mdakit from its
## source code.
src_install:
- pip install git+https://github.com/MDAnalysis/solvation-analysis@main
## str: the package name used to import the mdakit
import_name: solvation_analysis
## str: a specification for the range of Python versions supported by this MDAKit
python_requires: ">=3.9"
## str: a specification for the range of MDAnalysis versions supported by this MDAKit
mdanalysis_requires: ">=2.0.0"
## List(str): a list of commands to use when attempting to run the MDAKit's tests
run_tests:
- pytest solvation_analysis/tests
Copy link
Member

Choose a reason for hiding this comment

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

We do not necessarily have your checked-out sources available when the package was conda- or pip-installed. Given that you have the tests included in your package as solvation_analysis.tests try and have pytest find them using --pyargs:

pytest -n auto --pyargs solvation_analysis.tests

(There are shortcomings to using --pyargs in specific cases that @IAlibay knows more about but let's try it for right now. We use it for a bunch of other mdakits.)

Copy link
Member

Choose a reason for hiding this comment

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

If you package your tests then yes, here you should try to use --pyargs, the issue with using pyargs is mostly limited to if you're using custom plugins, but those are usually for internal testing use.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it to work and changed in the commit, thanks y'all.

## List(str): a list of commands to use to install the necessary dependencies required
## to run the MDAKit's tests
test_dependencies:
- conda install pytest
orionarcher marked this conversation as resolved.
Show resolved Hide resolved
## str: the development status of the MDAKit
development_status: Beta
## List(str) a list of publications to cite when using the MDAKit
publications:
- https://doi.org/10.21105/joss.05183