Skip to content

Commit 7cc8008

Browse files
authored
Merge pull request #65 from ComputationalPhysiology/remove-setup-py
Remove setup py
2 parents 30ecd0c + de76073 commit 7cc8008

File tree

6 files changed

+82
-97
lines changed

6 files changed

+82
-97
lines changed

.bumpversion.cfg

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

.github/workflows/pre-commit.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Pre-commit
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
9+
10+
jobs:
11+
check-code:
12+
runs-on: ubuntu-24.04
13+
steps:
14+
# This action sets the current path to the root of your github repo
15+
- uses: actions/checkout@v6
16+
17+
- name: Install pre-commit
18+
run: python3 -m pip install pre-commit
19+
20+
- name: Run hooks
21+
run: pre-commit run --all

.github/workflows/pypi.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: PyPI
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
tags:
8+
- "v*"
9+
pull_request:
10+
branches:
11+
- "main"
12+
13+
14+
jobs:
15+
dist:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v6
19+
20+
- name: Build SDist and wheel
21+
run: pipx run build
22+
23+
- uses: actions/upload-artifact@v5
24+
with:
25+
path: dist/*
26+
27+
- name: Check metadata
28+
run: pipx run twine check dist/*
29+
30+
publish:
31+
needs: [dist]
32+
runs-on: ubuntu-latest
33+
if: startsWith(github.ref, 'refs/tags')
34+
environment: pypi
35+
permissions:
36+
id-token: write
37+
38+
steps:
39+
- uses: actions/download-artifact@v6
40+
with:
41+
name: artifact
42+
path: dist
43+
44+
- uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,20 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
153153
[tool.ruff.lint.mccabe]
154154
# Unlike Flake8, default to a complexity level of 10.
155155
max-complexity = 10
156+
157+
158+
[tool.bumpversion]
159+
allow_dirty = false
160+
commit = true
161+
message = "Bump version: {current_version} → {new_version}"
162+
tag = true
163+
sign_tags = false
164+
tag_name = "v{new_version}"
165+
tag_message = "Bump version: {current_version} → {new_version}"
166+
current_version = "1.0.1"
167+
168+
169+
[[tool.bumpversion.files]]
170+
filename = "pyproject.toml"
171+
search = 'version = "{current_version}"'
172+
replace = 'version = "{new_version}"'

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)