Skip to content

Commit b68a2d1

Browse files
authored
use build in publish workflow (#33)
* use build in publish workflow * add dependency
1 parent 4aeb3ff commit b68a2d1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/python-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
with:
3030
python-version: "3.10"
3131

32-
- name: Install wheel
33-
run: pip install wheel
32+
- name: Install build
33+
run: pip install build
3434

3535
- name: Build dist
36-
run: python setup.py sdist bdist_wheel
36+
run: python -m build
3737

3838
- name: Publish to PyPI
3939
run: |

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ authors = [
66
]
77
# uncomment this after adding a readme
88
# readme = "README.md"
9-
license = { file = "LICENSE" }
9+
license-files = ["LICENSE"]
1010
classifiers = [
1111
"Programming Language :: Python :: 3",
12-
"License :: OSI Approved :: Apache Software License",
1312
"Operating System :: OS Independent",
1413
]
1514
requires-python = ">=3.10"
@@ -37,6 +36,7 @@ dependencies = [
3736
dev = [
3837
"diffusers == 0.31.0",
3938
"transformers == 4.45.2",
39+
"build",
4040
"ruff",
4141
"scikit-image",
4242
"pytest",

0 commit comments

Comments
 (0)