Skip to content

Commit

Permalink
LImit Python to ">=3.10,<3.12"
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardBruskiewich committed Apr 24, 2024
1 parent 48d3a70 commit ccbad6f
Show file tree
Hide file tree
Showing 7 changed files with 355 additions and 352 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 0.0.10

- constrain Python to ">=3.10,<3.12" (discovered problem with 3.12 for some code runtime situations)

## 0.0.9

- update to reasoner-validator 4.0.2 (which updates BMT to 1.4.2 and adds Bioregistry 0.11.0)
Expand Down
8 changes: 4 additions & 4 deletions DEVELOPER_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ Steps to properly issue a new project release:

1. Run the unit test suite to ensure that nothing fails. Iterate to fix failures (in the code or in terms of revised unit tests to reflect fresh code designs)
2. Document release changes in the **CHANGELOG.md**
3. Update the **`[Tool Poetry]version =`** field in the **pyprojects.yaml**, e.g. "0.0.9"
3. Update the **`[Tool Poetry]version =`** field in the **pyprojects.yaml**, e.g. "0.0.10"
4. Run **`poetry update`** (preferably, within a **`poetry shell`**)
5. The project pip **requirements.txt** file snapshot of dependencies should also be updated at this point (type **`$ poetry export --output requirements.txt`**, assuming that the [proper poetry export plugin is installed](https://python-poetry.org/docs/pre-commit-hooks#poetry-export)). This may facilitate module deployment within environments that prefer to use pip rather than poetry to manage their deployments.
6. Commit or pull request merge all files (including the **poetry.lock** file) to the local **main** branch.
7. Add the equivalent Git **tag** to **main**. This should be the Semantic Version string from step 4 with an added 'v' prefix, e.g. "v0.0.9".
7. Add the equivalent Git **tag** to **main**. This should be the Semantic Version string from step 4 with an added 'v' prefix, e.g. "v0.0.10".
8. Push **main** to remote.
9. Check if Git Actions for testing and documentation complete successfully.
10. Create a Git package release using the same release tag, e.g. "v0.0.9".
11. Check if Git Actions for package deployment is successful and check if the new version (e.g. "v0.0.9") is now visible on **[pypy.org](https://pypi.org/search/?q=OneHopTests)**
10. Create a Git package release using the same release tag, e.g. "v0.0.10".
11. Check if Git Actions for package deployment is successful and check if the new version (e.g. "v0.0.10") is now visible on **[pypy.org](https://pypi.org/search/?q=OneHopTests)**
283 changes: 141 additions & 142 deletions poetry.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "graph-validation-tests"
version = "0.0.9"
version = "0.0.10"
description = "Validation of Translator Knowledge Graphs - TRAPI, Biolink Model and One Hop navigation"
authors = [
"Richard Bruskiewich <[email protected]>",
Expand Down Expand Up @@ -47,14 +47,14 @@ include = [
]

[tool.poetry.dependencies]
python = ">=3.10,<3.13"
python = ">=3.10,<3.12"
deepdiff = "^6.7.1"

#reasoner-validator = { git = "https://github.com/NCATSTranslator/reasoner-validator.git", branch = "graph-validation-test-revisions" }
reasoner-validator = "^4.0.2"

#translator-testing-model = { git = "https://github.com/TranslatorSRI/TranslatorTestingModel.git", rev = "ef5d68e" }
translator-testing-model = { git = "https://github.com/TranslatorSRI/TranslatorTestingModel.git", branch = "bmt-and-linkml-updates" }
translator-testing-model = { git = "https://github.com/TranslatorSRI/TranslatorTestingModel.git", branch = "main" }
#translator-testing-model = "^0.2.7"

pytest = "^7.4.2"
Expand Down
402 changes: 201 additions & 201 deletions requirements.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def test_validate_testable_resource(index: int, service: Dict, outcome: bool, ur
"component,environment,result",
[
("arax", "dev", "https://arax.ncats.io/beta/api/arax/v1.4"),
("aragorn", "ci", "https://aragorn.ci.transltr.io/aragorn"),
("aragorn", "prod", "https://aragorn.transltr.io/aragorn"),
("biothings-explorer", "test", "https://bte.test.transltr.io/v1"),
("improving-agent", "test", "https://ia.test.transltr.io/api/v1.4/"),
("molepro", "ci", "https://molepro-trapi.ci.transltr.io/molepro/trapi/v1.5"),
Expand Down
2 changes: 1 addition & 1 deletion tests/graph_validation_test/translator/trapi/test_trapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_get_get_component_infores_object_id(component: str, infores: str):
("ars", "non-environment", None),
("ars", "test", f"https://ars.test.transltr.io/ars/api/"),
("arax", "dev", "https://arax.ncats.io/beta/api/arax/v1.4"),
("aragorn", "ci", "https://aragorn.ci.transltr.io/aragorn"),
("aragorn", "prod", "https://aragorn.transltr.io/aragorn"),
("biothings-explorer", "test", "https://bte.test.transltr.io/v1"),
("improving-agent", "test", "https://ia.test.transltr.io/api/v1.4/"),
("molepro", "ci", "https://molepro-trapi.ci.transltr.io/molepro/trapi/v1.5"),
Expand Down

0 comments on commit ccbad6f

Please sign in to comment.