Skip to content

Commit 0534f43

Browse files
authored
chore: update pip workflow (#67)
1 parent e23e154 commit 0534f43

File tree

3 files changed

+12
-76
lines changed

3 files changed

+12
-76
lines changed

.github/workflows/release-package.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ jobs:
4040
- name: Build wheel
4141
run: poetry build
4242

43+
- name: Upload to PIP
44+
run: |
45+
poetry config pypi-token.pypi "${PYPI_TOKEN}"
46+
poetry publish
47+
4348
- name: Get tag name
4449
id: get_tag
4550
run: echo "TAG_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV

pyproject.toml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,14 @@ authors = [
88
{name="Xuan Zhou",email="<zhouxss@amazon.com>"}
99
]
1010
readme = "README.md"
11+
12+
[tool.poetry]
1113
packages = [
1214
{ include = "**/*", from = "src/emd", to = "emd" },
1315
{ include = "pipeline", from = "src", to = "emd" },
1416
{ include = "s5cmd", from = "assets", to = "emd/pipeline" }
1517
]
1618
exclude = [".venv"]
17-
classifiers = [
18-
"Programming Language :: Python :: 3",
19-
"License :: OSI Approved :: MIT License",
20-
"Operating System :: OS Independent",
21-
]
22-
23-
[build-system]
24-
requires = ["poetry-core"]
25-
build-backend = "poetry.core.masonry.api"
2619

2720
[tool.poetry.dependencies]
2821
python = "^3.9"
@@ -49,6 +42,10 @@ modelscope = "^1.21.1"
4942

5043
[tool.poetry.group.dev.dependencies]
5144
pytest = "^8.0.0"
52-
45+
[build-system]
46+
requires = ["poetry-core"]
47+
build-backend = "poetry.core.masonry.api"
5348
[tool.poetry.scripts]
5449
emd = "emd.cli:app"
50+
[project.scripts]
51+
emd = "emd.cli:app"

releaseToPypi.sh

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)