-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a more standard pyproject.toml file format and use uv for the Git…
…Hub actions (#36)
- Loading branch information
1 parent
4ec14c9
commit 9262f82
Showing
4 changed files
with
48 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
name: Publish | ||
on: | ||
release: | ||
types: [created] | ||
types: [ created ] | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- name: Set up Poetry | ||
uses: abatilo/actions-poetry@v3 | ||
- name: Build and publish | ||
env: | ||
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: poetry publish --build | ||
- uses: actions/checkout@v4 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v5 | ||
- name: Set up Python | ||
run: uv python install | ||
- name: Build | ||
run: uv build | ||
- name: Publish | ||
run: uv publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
build | ||
dist | ||
|
||
# codespaces: | ||
pythonenv3.9 | ||
|
||
poetry.lock | ||
uv.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
[tool.poetry] | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "krippendorff" | ||
version = "0.8.1-dev" | ||
version = "0.8.1.dev0" | ||
description = "Fast computation of the Krippendorff's alpha measure." | ||
authors = ["Santiago Castro <[email protected]>"] | ||
authors = [ | ||
{ name = "Santiago Castro", email = "[email protected]" }, | ||
] | ||
license = "GPL-3.0-or-later" | ||
license-files = ["LICENSE.txt"] | ||
|
||
readme = "README.md" | ||
|
||
homepage = "https://github.com/pln-fing-udelar/fast-krippendorff" | ||
repository = "https://github.com/pln-fing-udelar/fast-krippendorff" | ||
|
||
keywords = ["Krippendorff", "alpha", "agreement", "reliability", "coding", "coders", "units", "values"] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
|
@@ -27,16 +31,17 @@ classifiers = [ | |
"Topic :: Scientific/Engineering :: Artificial Intelligence", | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
numpy = ">=1.21" # For NumPy Typing. | ||
|
||
[tool.poetry.group.test] | ||
optional = true | ||
requires-python = ">=3.9" | ||
dependencies = [ | ||
"numpy>=1.21", # For NumPy Typing. | ||
] | ||
|
||
[tool.poetry.group.test.dependencies] | ||
pytest = ">=7,<9" | ||
[dependency-groups] | ||
dev = ["pytest>=7,<9"] | ||
|
||
[build-system] | ||
requires = ["poetry_core"] | ||
build-backend = "poetry.core.masonry.api" | ||
[project.urls] | ||
Homepage = "https://github.com/pln-fing-udelar/fast-krippendorff" | ||
Documentation = "https://github.com/pln-fing-udelar/fast-krippendorff" | ||
Repository = "https://github.com/pln-fing-udelar/fast-krippendorff" | ||
"Bug Tracker" = "https://github.com/pln-fing-udelar/fast-krippendorff/issues" | ||
Changelog = "https://github.com/pln-fing-udelar/fast-krippendorff/releases" |