Skip to content

feat: manage project dependencies with uv and update python #223

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

Merged
merged 2 commits into from
May 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ This repository contains schema definitions of some of the data models the Open
- `molecular_interactions.json`: definition of the [molecular interactions](https://platform-docs.opentargets.org/target/molecular-interactions) input.
- `molecular_interactions-output.json`: Definition for the molecular interactions dataset generated by the Platform ETL.
- `gene-essentiality.json`: definition of gene essentiality target annotation. Developed based on [DepMap](https://depmap.org/) CRISPR/CAS9 screens.
- `pharmacogenomics.json`: definition of pharmacogenomics data model that hosts data from the [PharmGKB](https://www.pharmgkb.org/) dataset.

## Dev environment set up
```bash
# Clone the project
git clone https://github.com/opentargets/json_schema
cd json_schema

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

# Install the project dependencies
poetry install
poetry shell
uv pip install .
232 changes: 0 additions & 232 deletions poetry.lock

This file was deleted.

24 changes: 11 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
[tool.poetry]
[project]
name = "json-schema"
version = "23.06.1"
description = "Schemas describing Open Targets data models"
authors = ["Open Targets Data Team <[email protected]>"]
authors = [{name = "Open Targets Data Team", email = "[email protected]"}]
license = "Apache-2.0"
readme = "README.md"
packages = [{include = "json_schema"}]

[tool.poetry.dependencies]
python = "3.8.15"
pydantic = "^1.10.7"

[tool.poetry.group.dev.dependencies]
pytest = "^7.3.1"
mypy = "^1.3.0"
requires-python = ">=3.10.4"
dependencies = [
"pydantic==1.10.7",
]

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["json_schema"]
Loading