-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Poetry seems faster than PDM so I'm switching back. It also does not seem to arbitrarily change the pyproject.toml file (not yet).
- Loading branch information
1 parent
cb703be
commit f726357
Showing
17 changed files
with
94 additions
and
77 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Publish | ||
on: workflow_dispatch | ||
|
||
jobs: | ||
pypi-publish: | ||
name: ⬆️ Upload release to PyPI | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
- name: 🔔 Check out | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🏗️ python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: ⬇️ Python Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: 1.8.4 | ||
installer-parallel: true | ||
|
||
- name: ⬇️ Python Dependencies | ||
run: poetry install --sync | ||
|
||
- name: 🚧 Building distributions. | ||
run: poetry publish --build |
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[virtualenvs] | ||
in-project = true |
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,45 +1,32 @@ | ||
[project] | ||
[tool.poetry] | ||
name = "koila" | ||
version = "0.2.0" | ||
description = "Prevent PyTorch's `CUDA error out of memory` in a few lines of code" | ||
authors = [ | ||
{name = "RenChu Wang", email = "[email protected]"}, | ||
] | ||
dependencies = [ | ||
"numpy>=1.26.3", | ||
"scipy>=1.11.4", | ||
"torch>=2.1.2", | ||
"black>=24.4.2", | ||
] | ||
requires-python = "==3.10.*" | ||
description = "Prevent PyTorch's `CUDA error out of memory` in a few lines of code." | ||
authors = ["RenChu Wang <[email protected]>"] | ||
license = "MIT" | ||
readme = "README.md" | ||
license = {text = "Apache-2.0"} | ||
|
||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
[tool.poetry.dependencies] | ||
python = ">=3.10" | ||
numpy = "^2.1.3" | ||
torch = "^2.5.1" | ||
|
||
|
||
[tool.pdm] | ||
distribution = true | ||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.pdm.dev-dependencies] | ||
test = [ | ||
"coverage>=7.4.0", | ||
"pytest>=7.4.4", | ||
"pytest-cov>=4.1.0", | ||
"pytest-xdist>=3.5.0", | ||
] | ||
format = [ | ||
"autoflake>=2.2.1", | ||
"black>=23.12.1", | ||
"isort>=5.13.2", | ||
] | ||
website = [ | ||
"jupyter>=1.1.1", | ||
"jupyter-book>=1.0.3", | ||
"myst-parser>=2.0.0", | ||
] | ||
type = [ | ||
"mypy>=1.8.0", | ||
] | ||
[tool.poetry.group.dev.dependencies] | ||
autoflake = "^2.3.1" | ||
black = "^24.10.0" | ||
isort = "^5.13.2" | ||
mypy = "^1.13.0" | ||
pip = "^24.3.1" | ||
setuptools = "^75.6.0" | ||
jupyter = "^1.1.1" | ||
jupyter-book = "^1.0.3" | ||
coverage = "^7.6.7" | ||
pytest = "^8.3.3" | ||
pytest-cov = "^6.0.0" | ||
pytest-sugar = "^1.0.0" | ||
pytest-xdist = "^3.6.1" |