这是indexloc提供的服务,不要输入任何密码
Skip to content
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @leomaurodesenv
21 changes: 0 additions & 21 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,3 @@ jobs:
- uses: astral-sh/setup-uv@v5
- run: uv sync --all-extras
- run: uv build
- uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
# Run deploy
deploy:
if: github.ref == 'refs/heads/main'
needs:
- build
runs-on: ubuntu-22.04
env:
UV_PUBLISH_TOKEN: ${{ secrets.UV_PUBLISH_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- run: uv sync --all-extras
- run: uv publish --token $UV_PUBLISH_TOKEN
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "Release"
run-name: Publishing on "${{ github.ref }}" by "${{ github.actor }}"
on:
release:
type: published

jobs:
# Run build
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- run: uv sync --all-extras
- run: uv run semantic-release version
- uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
# Run deploy
deploy:
needs:
- build
runs-on: ubuntu-22.04
env:
UV_PUBLISH_TOKEN: ${{ secrets.UV_PUBLISH_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- run: uv sync --all-extras
- run: uv publish --token $UV_PUBLISH_TOKEN
- uses: stefanzweifel/git-auto-commit-action@v6
with:
commit_message: "release: bump version and generate changelog"
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# CHANGELOG

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

<!-- version list -->
31 changes: 27 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[build-system]
requires = ["setuptools>=80.9.0"]
build-backend = "setuptools.build_meta"

[project]
name = "scikit-sampling"
license = "MIT"
Expand Down Expand Up @@ -30,9 +26,16 @@ dependencies = [
"scipy>=1.15.0,<2",
]

[project.urls]
homepage = "https://github.com/leomaurodesenv/scikit-sampling"
source = "https://github.com/leomaurodesenv/scikit-sampling"
tracker = "https://github.com/leomaurodesenv/scikit-sampling/issues"

[project.optional-dependencies]
build = [
"setuptools>=80.9.0,<90",
"uv>=0.7.12,<0.8",
"python-semantic-release~=10.0",
]

[dependency-groups]
Expand All @@ -48,3 +51,23 @@ pythonpath = [
"."
]
addopts = "--cov=sksampling --cov-report term-missing"

[build-system]
requires = ["setuptools>=80.9.0"]
build-backend = "setuptools.build_meta"

[tool.semantic_release]
build_command = """
uv lock --offline
git add uv.lock
uv build
"""

[tool.semantic_release.branches.main]
match = "(main|master)"
prerelease = false

[tool.semantic_release.branches.feature]
match = "feat/.+"
prerelease = true
prerelease_token = "alpha"
Loading