Skip to content

Commit ce31361

Browse files
authored
Merge pull request #74 from moshi4/develop
Bump to v1.7.0
2 parents 3c84789 + f2ffc36 commit ce31361

File tree

12 files changed

+435
-3132
lines changed

12 files changed

+435
-3132
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,26 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest, macos-latest]
17-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
17+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1818
steps:
1919
- name: Checkout
2020
uses: actions/checkout@v4
2121

22-
- name: Setup Python ${{ matrix.python-version}}
23-
uses: actions/setup-python@v5
24-
with:
25-
python-version: ${{ matrix.python-version }}
22+
- name: Install Rye
23+
run: |
24+
curl -sSf https://rye.astral.sh/get | RYE_INSTALL_OPTION="--yes" bash
25+
echo "$HOME/.rye/shims" >> $GITHUB_PATH
2626
27-
- name: Install dependencies
28-
run: pip install -e . pytest pytest-cov ruff
27+
- name: Install Python ${{ matrix.python-version }} & dependencies
28+
run: |
29+
rye pin ${{ matrix.python-version }}
30+
rye sync --update-all --all-features
2931
3032
- name: Run ruff lint check
31-
run: ruff check --diff
33+
run: rye run ruff check --diff
3234

3335
- name: Run ruff format check
34-
run: ruff format --check --diff
36+
run: rye run ruff format --check --diff
3537

3638
- name: Run pytest
37-
run: pytest
39+
run: rye run pytest

.github/workflows/publish_mkdocs.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v4
1414

15-
- name: Setup Python 3.11
16-
uses: actions/setup-python@v5
17-
with:
18-
python-version: "3.11"
19-
20-
- name: Install MkDocs & Plugins
15+
- name: Install Rye
2116
run: |
22-
pip install .
23-
pip install mkdocs mkdocs-material mkdocs-jupyter mkdocstrings[python] black
17+
curl -sSf https://rye.astral.sh/get | RYE_INSTALL_OPTION="--yes" bash
18+
echo "$HOME/.rye/shims" >> $GITHUB_PATH
19+
20+
- name: Install Python & MkDocs & Plugins
21+
run: rye sync
2422

2523
- name: Publish document
26-
run: mkdocs gh-deploy --force
24+
run: rye run mkdocs gh-deploy --force

.github/workflows/publish_to_pypi.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,13 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@v4
1717

18-
- name: Setup Python 3.11
19-
uses: actions/setup-python@v5
20-
with:
21-
python-version: "3.11"
22-
23-
- name: Install Poetry
18+
- name: Install Rye
2419
run: |
25-
curl -sSL https://install.python-poetry.org | python3 -
26-
echo "$HOME/.local/bin" >> $GITHUB_PATH
20+
curl -sSf https://rye.astral.sh/get | RYE_INSTALL_OPTION="--yes" bash
21+
echo "$HOME/.rye/shims" >> $GITHUB_PATH
2722
2823
- name: Build
29-
run: poetry build
24+
run: rye build
3025

3126
- name: Publish
32-
run: poetry publish -u $PYPI_USERNAME -p $PYPI_PASSWORD
27+
run: rye publish -u $PYPI_USERNAME --token $PYPI_PASSWORD -y

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/astral-sh/ruff-pre-commit
5-
rev: v0.4.4
5+
rev: v0.6.4
66
hooks:
77
- id: ruff
88
name: ruff lint check

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ More detailed documentation is available [here](https://moshi4.github.io/pyCircl
2929

3030
## Installation
3131

32-
`Python 3.8 or later` is required for installation.
32+
`Python 3.9 or later` is required for installation.
3333

3434
**Install PyPI package:**
3535

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pyCirclize was inspired by [circlize](https://github.com/jokergoo/circlize) and
2020

2121
## Installation
2222

23-
`Python 3.8 or later` is required for installation.
23+
`Python 3.9 or later` is required for installation.
2424

2525
**Install PyPI package:**
2626

poetry.lock

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

pyproject.toml

Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
[tool.poetry]
1+
[project]
22
name = "pyCirclize"
3-
version = "1.6.0"
3+
dynamic = ["version"]
44
description = "Circular visualization in Python"
5-
authors = ["moshi4"]
5+
authors = [{ name = "moshi4", email = "" }]
66
license = "MIT"
7-
homepage = "https://moshi4.github.io/pyCirclize/"
8-
repository = "https://github.com/moshi4/pyCirclize/"
97
readme = "README.md"
108
keywords = [
119
"matplotlib",
@@ -19,14 +17,44 @@ classifiers = [
1917
"Topic :: Scientific/Engineering :: Bio-Informatics",
2018
"Framework :: Matplotlib",
2119
]
20+
requires-python = ">=3.9"
21+
dependencies = [
22+
"matplotlib>=3.6.3",
23+
"biopython>=1.80",
24+
"numpy>=1.21",
25+
"pandas>=1.3.5",
26+
]
27+
28+
[project.urls]
29+
homepage = "https://moshi4.github.io/pyCirclize/"
30+
repository = "https://github.com/moshi4/pyCirclize/"
31+
32+
[tool.hatch.version]
33+
path = "src/pycirclize/__init__.py"
34+
35+
[tool.rye]
36+
managed = true
37+
dev-dependencies = [
38+
"ruff>=0.4.0",
39+
"pre-commit>=3.5.0",
40+
"pytest>=8.0.0",
41+
"pytest-cov>=4.0.0",
42+
"ipykernel>=6.13.0",
43+
# docs
44+
"mkdocs>=1.2",
45+
"mkdocstrings[python]>=0.19.0",
46+
"mkdocs-jupyter>=0.21.0",
47+
"mkdocs-material>=8.2",
48+
"black>=22.3.0",
49+
]
2250

2351
[tool.pytest.ini_options]
2452
minversion = "6.0"
2553
addopts = "--cov=src --tb=long -vv --cov-report=xml --cov-report=term"
2654
testpaths = ["tests"]
2755

2856
[tool.ruff]
29-
src = ["src", "tests"]
57+
include = ["src/**.py", "tests/**.py"]
3058
line-length = 88
3159

3260
# Lint Rules: https://docs.astral.sh/ruff/rules/
@@ -53,27 +81,6 @@ ignore = [
5381
[tool.ruff.lint.pydocstyle]
5482
convention = "numpy"
5583

56-
[tool.poetry.dependencies]
57-
python = "^3.8"
58-
matplotlib = ">=3.5.2"
59-
biopython = ">=1.80"
60-
numpy = ">=1.21.1"
61-
pandas = ">=1.3.5"
62-
63-
[tool.poetry.group.dev.dependencies]
64-
ruff = ">=0.1.6"
65-
pre-commit = ">=3.5.0"
66-
pytest = ">=7.1.2"
67-
pytest-cov = ">=4.0.0"
68-
ipykernel = ">=6.13.0"
69-
70-
[tool.poetry.group.docs.dependencies]
71-
mkdocs = ">=1.2"
72-
mkdocstrings = { extras = ["python"], version = ">=0.19.0" }
73-
mkdocs-jupyter = ">=0.21.0"
74-
mkdocs-material = ">=8.2"
75-
black = ">=22.10.0"
76-
7784
[build-system]
78-
requires = ["poetry-core>=1.0.0"]
79-
build-backend = "poetry.core.masonry.api"
85+
requires = ["hatchling"]
86+
build-backend = "hatchling.build"

0 commit comments

Comments
 (0)