这是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
30 changes: 0 additions & 30 deletions .github/workflows/continuous-integration.yml

This file was deleted.

63 changes: 63 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: "Deployment"
run-name: Running on "${{ github.ref }}" by "${{ github.actor }}"
on:
push:
branches:
- 'main'
pull_request:
types:
- opened
- reopened
- synchronize
workflow_dispatch:

jobs:
# Run pre-commit hooks
pre-commit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- run: uv sync --all-extras
- run: uv run pre-commit run --all-files
# Run tests
tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- run: uv sync --all-extras
- run: uv run pytest
# Run build
build:
if: github.ref == 'refs/heads/main'
needs:
- pre-commit
- tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- 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
2 changes: 0 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ repos:
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-json
- id: check-ast
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![GitHub](https://img.shields.io/static/v1?label=Code&message=GitHub&color=blue&style=flat-square)](https://github.com/leomaurodesenv/scikit-sampling)
[![MIT license](https://img.shields.io/static/v1?label=License&message=MIT&color=blue&style=flat-square)](LICENSE)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/leomaurodesenv/scikit-sampling/continuous-integration.yml?label=Build&style=flat-square)](https://github.com/leomaurodesenv/scikit-sampling/actions/workflows/continuous-integration.yml)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/leomaurodesenv/scikit-sampling/deployment.yml?label=Build&style=flat-square)](https://github.com/leomaurodesenv/scikit-sampling/actions/workflows/deployment.yml)


Scikit-Sampling (or `sksampling`) is a Python library for dataset sampling techniques. It provides a unified API for common sampling strategies, making it easy to integrate into your data science and machine learning workflows.
Expand Down
12 changes: 10 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
[build-system]
requires = ["setuptools>=80.9.0"]
build-backend = "setuptools.build_meta"

[project]
name = "scikit-sampling"
license = "MIT"
license-files = ["LICENSE"]
readme = "README.md"
version = "0.1.0"
requires-python = ">=3.10"
description = "A set of python modules for dataset sampling"
url = "https://github.com/leomaurodesenv/scikit-sampling"
authors = [
{name = "Leonardo Moraes", email = "leomaurodesenv@users.noreply.github.com"}
]
Expand All @@ -15,7 +19,6 @@ classifiers=[
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand All @@ -27,6 +30,11 @@ dependencies = [
"scipy>=1.15.0,<2",
]

[project.optional-dependencies]
build = [
"setuptools>=80.9.0,<90",
]

[dependency-groups]
dev = [
"commitizen>=4.8.3,<5",
Expand Down
22 changes: 20 additions & 2 deletions uv.lock

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