-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⬆️ Update to aiida-core v1.4.2 (#48)
This commit updates the aiida-core version to 1.4.2 It also introduces the generation/use of a constraint file, to ensure that plugin installs do not break the aiida-core dependency requirements, and also adds more testing of the virtualenv consistency (using pip check). Lastly, it updates the ansible/molecule version pinnings, which have recently been updated.
- Loading branch information
1 parent
c709088
commit 3c89fc0
Showing
24 changed files
with
145 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.swp | ||
.DS_Store | ||
.galaxy_install_info | ||
.vscode/ | ||
.tox/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env python | ||
"""Script to convert aiida setup.json to pip constraints file. | ||
Usage:: | ||
python aiida-core-constraints.py path/to/setup.json extras1 extras2 ... | ||
""" | ||
import json | ||
from pathlib import Path | ||
import sys | ||
|
||
def remove_extra(req): | ||
"""Extras are not allowed in constraints files, e.g. dep[extra]>0.1 -> dep>0.1 """ | ||
if "[" not in req or "]" not in req: | ||
return req | ||
start, end = req.split("[", 1) | ||
return start + end.split("]", 1)[1] | ||
|
||
|
||
def main(path, *extras): | ||
path = Path(path) | ||
data = json.loads(path.read_text("utf8")) | ||
|
||
output = ["# aiida-core requirements: v" + data["version"]] | ||
# we can't add this when using the file as a constraint file for actually installing aiida-core | ||
# output.append("aiida-core==" + data["version"]) | ||
output.extend([remove_extra(req) for req in data["install_requires"]]) | ||
|
||
for extra in extras: | ||
output.append("# " + extra) | ||
output.extend([remove_extra(req) for req in data["extras_require"][extra]]) | ||
|
||
print("\n".join(output)) | ||
|
||
if __name__ == "__main__": | ||
assert len(sys.argv) > 1, "JSON path required" | ||
main(sys.argv[1], *sys.argv[2:]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# for running | ||
ansible~=2.9 | ||
ansible~=2.10.0 | ||
# for testing | ||
docker | ||
molecule~=3.0 | ||
molecule[docker]~=3.1.0 | ||
docker~=4.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.