Skip to content

Commit

Permalink
Merge pull request #959 from opentargets/dev
Browse files Browse the repository at this point in the history
chore: trigger release process
  • Loading branch information
project-defiant authored Dec 17, 2024
2 parents 3d14174 + 24dfc9f commit 1528790
Show file tree
Hide file tree
Showing 9 changed files with 1,522 additions and 1,651 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
release:
runs-on: ubuntu-latest
concurrency: release
outputs:
released: ${{ steps.semrelease.outputs.released }}
permissions:
# NOTE: this enables trusted publishing.
# See https://github.com/pypa/gh-action-pypi-publish/tree/release/v1#trusted-publishing
Expand Down Expand Up @@ -46,7 +48,8 @@ jobs:

- name: Publish package to GitHub Release
uses: python-semantic-release/upload-to-gh-release@main
if: ${{ steps.semrelease.outputs.released }} == 'true'
# NOTE: semrelease output is a string, so we need to compare it to a string
if: steps.semrelease.outputs.released == 'true'
with:
# NOTE: allow to start the workflow when push action on tag gets executed
# requires using GH_APP to authenitcate, otherwise push authorised with
Expand All @@ -56,16 +59,16 @@ jobs:
tag: ${{ steps.semrelease.outputs.tag }}

- name: Store the distribution packages
if: steps.semrelease.outputs.released == 'true'
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
needs: release
name: >-
Publish 📦 in PyPI
if: github.ref == 'refs/heads/main'
name: Publish 📦 in PyPI
if: github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true'
runs-on: ubuntu-latest
environment:
name: pypi
Expand All @@ -84,7 +87,7 @@ jobs:
publish-to-testpypi:
name: Publish 📦 in TestPyPI
needs: release
if: github.ref != 'refs/heads/main'
if: github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true'
runs-on: ubuntu-latest

environment:
Expand All @@ -108,7 +111,7 @@ jobs:
documentation:
needs: release
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true'
steps:
- uses: actions/checkout@v4
with:
Expand Down
12 changes: 0 additions & 12 deletions docs/python_api/common/version_engine.md

This file was deleted.

2,713 changes: 1,426 additions & 1,287 deletions poetry.lock

Large diffs are not rendered by default.

81 changes: 40 additions & 41 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,64 +19,63 @@ packages = [{ include = "gentropy", from = "src" }]
gentropy = "gentropy.cli:main"

[tool.poetry.dependencies]
python = "^3.10, <3.11"
python = ">=3.10, <3.11"
pyspark = "3.3.4"
scipy = "^1.11.4"
hydra-core = "^1.3.2"
pyliftover = "^0.4"
numpy = "^1.26.2"
scipy = ">=1.11.4, <1.12.0"
hydra-core = ">=1.3.2, <1.4.0"
pyliftover = ">=0.4, <0.5"
numpy = ">=1.26.2, <1.27.0"
hail = "0.2.127"
wandb = ">=0.16.2,<0.19.0"
google = "^3.0.0"
omegaconf = "^2.3.0"
typing-extensions = "^4.9.0"
scikit-learn = "^1.3.2"
pandas = { extras = ["gcp", "parquet"], version = "^2.2.2" }
skops = ">=0.9,<0.11"
google-cloud-secret-manager = "^2.20.0"
shap = "^0.46.0"
matplotlib = "3.7.3"

[tool.poetry.dev-dependencies]
pre-commit = "^4.0.0"
mypy = "^1.13"
pep8-naming = "^0.14.1"
interrogate = "^1.7.0"
isort = "^5.13.2"
darglint = "^1.8.1"
ruff = "^0.8.1"
wandb = ">=0.19.0, <0.20.0"
google = ">=3.0.0, <3.1.0"
omegaconf = ">=2.3.0, <2.4.0"
typing-extensions = ">=4.9.0, <4.13.0"
scikit-learn = ">=1.6.0, <1.7.0"
pandas = { extras = ["gcp", "parquet"], version = ">=2.2.2, <2.3.0" }
skops = ">=0.11, <0.12"
google-cloud-secret-manager = ">=2.20.0, <2.22.0"
shap = ">=0.46.0, <0.47.0"
matplotlib = ">=3.7.3, <3.8.0"


[tool.poetry.group.docs.dependencies]
mkdocs = "^1.5.3"
mkdocstrings-python = "^1.8.0"
mkdocs = ">=1.5.3, <1.6.0"
mkdocstrings-python = ">=1.12.2, <1.13.0"
mkdocs-material = "*"
mkdocs-section-index = "^0.3.4"
mkdocs-git-revision-date-localized-plugin = "^1.2.2"
mkdocs-autolinks-plugin = "^0.7.1"
mkdocs-awesome-pages-plugin = "^2.9.2"
mkdocs-exclude = "^1.0.2"
mkdocs-git-committers-plugin-2 = "^2.2.3"
lxml = "^5.1.0"
pymdown-extensions = "^10.7"
mkdocs-section-index = ">=0.3.4, <0.4.0"
mkdocs-git-revision-date-localized-plugin = ">=1.2.2, <1.4.0"
mkdocs-autolinks-plugin = ">=0.7.1, <0.8.0"
mkdocs-awesome-pages-plugin = ">=2.9.2, <3.0.0"
mkdocs-exclude = ">=1.0.2, <1.1.0"
mkdocs-git-committers-plugin-2 = ">=2.2.3, <2.5.0"
lxml = ">=5.1.0, <5.4.0"
pymdown-extensions = ">=10.7, <10.13"


[tool.poetry.group.tests.dependencies]
pytest-cov = ">=4.1,<7.0"
pytest-sugar = ">=0.9.5,<1.1.0"
dbldatagen = ">=0.3.1,<0.5.0"
pyparsing = "^3.1.1"
pyparsing = ">=3.1.1, <3.3.0"
pytest = ">=7.4.4,<9.0.0"
pytest-xdist = "^3.5.0"
pytest-xdist = ">=3.5.0, <3.7.0"


[tool.poetry.group.dev.dependencies]
ipython = "^8.19.0"
ipykernel = "^6.28.0"
google-cloud-dataproc = "^5.8.0"
ipython = ">=8.19.0, <8.31.0"
ipykernel = ">=6.28.0, <6.30.0"
google-cloud-dataproc = ">=5.8.0, <5.16.0"
pydoclint = ">=0.3.8,<0.6.0"
prettier = "^0.0.7"
prettier = ">=0.0.7, <0.1.0"
deptry = ">=0.12,<0.21"
yamllint = "^1.33.0"
yamllint = ">=1.33.0, <1.36.0"
pre-commit = ">=4.0.0, <4.1.0"
mypy = ">=1.13, <1.14"
pep8-naming = ">=0.14.1, <0.15.0"
interrogate = ">=1.7.0, <1.8.0"
isort = ">=5.13.2, <5.14.0"
darglint = ">=1.8.1, <1.9.0"
ruff = ">=0.8.1, <0.9.0"

[tool.semantic_release]
logging_use_named_masks = true
Expand Down
158 changes: 0 additions & 158 deletions src/gentropy/common/version_engine.py

This file was deleted.

Loading

0 comments on commit 1528790

Please sign in to comment.