Skip to content

Commit

Permalink
Merge pull request #4 from getwilds/to-uv
Browse files Browse the repository at this point in the history
change to using uv
  • Loading branch information
sckott authored Jan 7, 2025
2 parents a4ec9da + a263c50 commit 0e43134
Show file tree
Hide file tree
Showing 7 changed files with 136 additions and 131 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: 3.12
- name: Install dependencies
version: "0.5.15"
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
run: uv python install
- name: Install projecct
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
uv sync --all-extras --dev
- name: Build registry
id: build
run: python code.py
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.13
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ The registry is in: [registry.json](registry.json)
How it works locally for testing purposes:

```
# Install uv if you don't have it
# https://docs.astral.sh/uv/getting-started/installation/
# create a virtualenv and source it
python -m venv .venv
uv venv
source .venv/bin/activate
# generate registry
pip install -r requirements.txt
python code.py
uv sync
uv run python code.py
# deactivate virtualenv
deactivate
Expand Down
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[project]
name = "registry"
version = "0.1.0"
description = "WILDS package registry"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"beautifulsoup4==4.12.3",
"fastcore==1.5.29",
"ghapi==1.0.4",
"markdown==3.6",
]
130 changes: 12 additions & 118 deletions registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,7 @@
"wdl-workflow",
"wilds-wdl"
],
"badges": [
{
"href": "https://getwilds.org/badges/#experimental",
"alt": "Project Status: Experimental \u2013 Useable, some support, not open to feedback, unstable API.",
"src": "https://getwilds.org/badges/badges/experimental.svg"
}
]
"badges": []
},
{
"name": "sixtyfour",
Expand All @@ -101,23 +95,7 @@
"rstats",
"wilds-r"
],
"badges": [
{
"href": "https://getwilds.org/badges/#prototype",
"alt": "Project Status: Prototype \u2013 Useable, some support, open to feedback, unstable API.",
"src": "https://getwilds.org/badges/badges/prototype.svg"
},
{
"href": "https://github.com/getwilds/sixtyfour/actions/workflows/R-CMD-check.yaml",
"alt": "R-CMD-check",
"src": "https://github.com/getwilds/sixtyfour/actions/workflows/R-CMD-check.yaml/badge.svg"
},
{
"href": "https://codecov.io/gh/getwilds/sixtyfour",
"alt": "codecov",
"src": "https://codecov.io/gh/getwilds/sixtyfour/graph/badge.svg?token=BMER9MWIDN"
}
]
"badges": []
},
{
"name": "guide",
Expand Down Expand Up @@ -173,13 +151,7 @@
"topics": [
"utilities"
],
"badges": [
{
"href": "https://getwilds.github.io/badges/#prototype",
"alt": "Project Status: Prototype \u2013 Useable, some support, open to feedback, unstable API.",
"src": "https://getwilds.github.io/badges/badges/prototype.svg"
}
]
"badges": []
},
{
"name": "getwilds.github.io",
Expand Down Expand Up @@ -208,23 +180,7 @@
"topics": [
"wilds-r"
],
"badges": [
{
"href": "https://getwilds.github.io/badges/#concept",
"alt": "Project Status: Concept \u2013 Not useable, no support, not open to feedback, unstable API.",
"src": "https://getwilds.github.io/badges/badges/concept.svg"
},
{
"href": "https://github.com/getwilds/cancerprof/actions/workflows/R-CMD-check.yaml",
"alt": "R-CMD-check",
"src": "https://github.com/getwilds/cancerprof/actions/workflows/R-CMD-check.yaml/badge.svg"
},
{
"href": "https://github.com/ropensci/software-review/issues/637",
"alt": "Status at rOpenSci Software Peer Review",
"src": "https://badges.ropensci.org/637_status.svg"
}
]
"badges": []
},
{
"name": "proofr",
Expand All @@ -236,23 +192,7 @@
"r-package",
"wilds-r"
],
"badges": [
{
"href": "https://getwilds.github.io/badges/#concept",
"alt": "Project Status: Concept \u2013 Not useable, no support, not open to feedback, unstable API.",
"src": "https://getwilds.github.io/badges/badges/concept.svg"
},
{
"href": "https://github.com/getwilds/proofr/actions/workflows/R-CMD-check.yaml",
"alt": "R-CMD-check",
"src": "https://github.com/getwilds/proofr/actions/workflows/R-CMD-check.yaml/badge.svg"
},
{
"href": "https://codecov.io/gh/getwilds/proofr",
"alt": "codecov",
"src": "https://codecov.io/gh/getwilds/proofr/graph/badge.svg?token=G5QFLURUZ4"
}
]
"badges": []
},
{
"name": "ww-fastq-to-cram",
Expand All @@ -264,13 +204,7 @@
"wdl-workflow",
"wilds-wdl"
],
"badges": [
{
"href": "https://getwilds.org/badges/#experimental",
"alt": "Project Status: Experimental \u2013 Useable, some support, not open to feedback, unstable API.",
"src": "https://getwilds.org/badges/badges/experimental.svg"
}
]
"badges": []
},
{
"name": "shinyauthr",
Expand All @@ -291,18 +225,7 @@
"utilities",
"wilds-r"
],
"badges": [
{
"href": "https://getwilds.github.io/badges/#concept",
"alt": "Project Status: Concept \u2013 Not useable, no support, not open to feedback, unstable API.",
"src": "https://getwilds.github.io/badges/badges/concept.svg"
},
{
"href": "https://github.com/getwilds/bs/actions/workflows/R-CMD-check.yaml",
"alt": "R-CMD-check",
"src": "https://github.com/getwilds/bs/actions/workflows/R-CMD-check.yaml/badge.svg"
}
]
"badges": []
},
{
"name": "wilds-docker-library",
Expand All @@ -314,13 +237,7 @@
"containers",
"wilds-docker"
],
"badges": [
{
"href": "https://getwilds.org/badges/#prototype",
"alt": "Project Status: Prototype \u2013 Useable, some support, open to feedback, unstable API.",
"src": "https://getwilds.github.io/badges/badges/prototype.svg"
}
]
"badges": []
},
{
"name": "ww-demo-workflows",
Expand Down Expand Up @@ -371,13 +288,7 @@
"description": "Variant calling WDL workflow using a trio of variant callers and analyzing consensus among them",
"html_url": "https://github.com/getwilds/ww-vc-trio",
"topics": [],
"badges": [
{
"href": "https://getwilds.org/badges/#experimental",
"alt": "Project Status: Experimental \u2013 Useable, some support, not open to feedback, unstable API.",
"src": "https://getwilds.org/badges/badges/experimental.svg"
}
]
"badges": []
},
{
"name": "proof",
Expand Down Expand Up @@ -428,18 +339,7 @@
"rstats",
"wilds-r"
],
"badges": [
{
"href": "https://getwilds.org/badges/#concept",
"alt": "Project Status: Concept \u2013 Not useable, no support, not open to feedback, unstable API.",
"src": "https://getwilds.org/badges/badges/concept.svg"
},
{
"href": "https://github.com/getwilds/rls/actions/workflows/R-check.yml",
"alt": "R-check",
"src": "https://github.com/getwilds/rls/actions/workflows/R-check.yml/badge.svg"
}
]
"badges": []
},
{
"name": "ww-sourmash",
Expand All @@ -448,14 +348,8 @@
"description": "Self-contained WDL workflow that uses Sourmash to perform similarity searches between sequence files.",
"html_url": "https://github.com/getwilds/ww-sourmash",
"topics": [],
"badges": [
{
"href": "https://getwilds.org/badges/#experimental",
"alt": "Project Status: Experimental \u2013 Useable, some support, not open to feedback, unstable API.",
"src": "https://getwilds.org/badges/badges/experimental.svg"
}
]
"badges": []
}
],
"updated": "2025-01-06T23:34:42.009965+00:00"
"updated": "2025-01-07T20:49:04.835763+00:00"
}
4 changes: 0 additions & 4 deletions requirements.txt

This file was deleted.

96 changes: 96 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0e43134

Please sign in to comment.