Skip to content

Commit 54aa910

Browse files
feat: manage project dependencies with uv and update python (#223)
Co-authored-by: Daniel Suveges <[email protected]>
1 parent c8d0b18 commit 54aa910

File tree

4 files changed

+64
-249
lines changed

4 files changed

+64
-249
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ This repository contains schema definitions of some of the data models the Open
1818
- `molecular_interactions.json`: definition of the [molecular interactions](https://platform-docs.opentargets.org/target/molecular-interactions) input.
1919
- `molecular_interactions-output.json`: Definition for the molecular interactions dataset generated by the Platform ETL.
2020
- `gene-essentiality.json`: definition of gene essentiality target annotation. Developed based on [DepMap](https://depmap.org/) CRISPR/CAS9 screens.
21+
- `pharmacogenomics.json`: definition of pharmacogenomics data model that hosts data from the [PharmGKB](https://www.pharmgkb.org/) dataset.
2122

2223
## Dev environment set up
2324
```bash
2425
# Clone the project
2526
git clone https://github.com/opentargets/json_schema
2627
cd json_schema
2728

28-
# Install Poetry
29-
curl -sSL https://install.python-poetry.org | python -
29+
# Install UV
30+
curl -LsSf https://astral.sh/uv/install.sh | sh
3031

3132
# Install the project dependencies
32-
poetry install
33-
poetry shell
33+
uv pip install .

poetry.lock

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

pyproject.toml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
[tool.poetry]
1+
[project]
22
name = "json-schema"
33
version = "23.06.1"
44
description = "Schemas describing Open Targets data models"
5-
authors = ["Open Targets Data Team <[email protected]>"]
5+
authors = [{name = "Open Targets Data Team", email = "[email protected]"}]
66
license = "Apache-2.0"
77
readme = "README.md"
8-
packages = [{include = "json_schema"}]
9-
10-
[tool.poetry.dependencies]
11-
python = "3.8.15"
12-
pydantic = "^1.10.7"
13-
14-
[tool.poetry.group.dev.dependencies]
15-
pytest = "^7.3.1"
16-
mypy = "^1.3.0"
8+
requires-python = ">=3.10.4"
9+
dependencies = [
10+
"pydantic==1.10.7",
11+
]
1712

1813
[build-system]
19-
requires = ["poetry-core"]
20-
build-backend = "poetry.core.masonry.api"
14+
requires = ["hatchling"]
15+
build-backend = "hatchling.build"
16+
17+
[tool.hatch.build.targets.wheel]
18+
packages = ["json_schema"]

0 commit comments

Comments
 (0)