Skip to content

Commit 1481b9c

Browse files
committed
Release v0.8.7
- Fix protein plddt bfactor - Unify build with hatch-conda-build
1 parent 16c4394 commit 1481b9c

File tree

4 files changed

+8
-49
lines changed

4 files changed

+8
-49
lines changed

anaconda_build/conda_build_config.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

anaconda_build/meta.yaml

Lines changed: 0 additions & 38 deletions
This file was deleted.

openprotein/protein.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -561,15 +561,9 @@ def _use_bfactor_as_plddt(structure: gemmi.Structure) -> bool:
561561
This heuristic decides whether to use B-factor as pLDDT.
562562
It uses B-factor as pLDDT when all of the following fields are *not* set:
563563
- structure resolution
564-
- _pdbx_database_status.recvd_initial_deposition_date
565564
This heuristic may be changed in the future.
566565
"""
567-
return (structure.resolution == 0.0) and (
568-
structure.make_mmcif_block(
569-
groups=gemmi.MmcifOutputGroups(False, database_status=True)
570-
).find_value("_pdbx_database_status.recvd_initial_deposition_date")
571-
is None
572-
)
566+
return structure.resolution == 0.0
573567

574568

575569
def calc_rmsd(

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies = [
2424
"numpy>=1.9,<3",
2525
"gemmi>=0.7.0,<0.8",
2626
]
27-
requires-python = ">=3.10"
27+
requires-python = ">=3.10,<3.13"
2828

2929
[dependency-groups]
3030
dev = [
@@ -52,12 +52,17 @@ python = ">=3.10,<3.13"
5252
[tool.pixi.feature.dev.tasks]
5353
postinstall = "pip install --no-build-isolation --no-deps --disable-pip-version-check -e ."
5454
jupyterinstall = "python -m ipykernel install --user --name=openprotein-python"
55+
build = """
56+
pixi global install -q --no-progress -e conda-build --expose conda --expose conda-verify --expose conda-build --expose anaconda anaconda-client conda-build conda-verify > /dev/null;
57+
pixi global install -q --no-progress --expose hatch hatch > /dev/null;
58+
hatch build; hatch publish; hatch build -t conda
59+
"""
5560

5661
[tool.pixi.environments]
5762
dev = ["dev"]
5863

5964
[build-system]
60-
requires = ["hatchling>=1.26.1", "hatch-vcs>=0.5.0"]
65+
requires = ["hatchling>=1.26.1", "hatch-vcs>=0.5.0", "hatch-conda-build>=0.1.2"]
6166
build-backend = "hatchling.build"
6267

6368
[tool.hatch.version]

0 commit comments

Comments
 (0)