Skip to content

Commit 806d44f

Browse files
use poetry instead of setuptools (#126)
1 parent 687a396 commit 806d44f

File tree

5 files changed

+26
-32
lines changed

5 files changed

+26
-32
lines changed

.github/workflows/pypi.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
uses: actions/setup-python@v3
1818
with:
1919
python-version: '3.x'
20+
- name: Install poetry
21+
uses: abatilo/actions-poetry@v2
2022
- name: Install dependencies
21-
run: |
22-
python -m pip install --upgrade pip
23-
pip install build
23+
run: poetry install
2424
- name: Build package
25-
run: python -m build
25+
run: poetry build
2626
- name: Publish package
27-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
27+
uses: pypa/gh-action-pypi-publish@release/v1
2828
with:
2929
user: __token__
3030
password: ${{ secrets.PYPI_API_TOKEN }}

pyproject.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[tool.poetry]
2+
name = "cyaron"
3+
version = "0.5.0"
4+
description = "CYaRon: Yet Another Random Olympic-iNformatics test data generator, A library for automatically generating test data for Online Judge, Olympic Informatics or automatic application testing"
5+
authors = ["Luogu Development Team <[email protected]>"]
6+
license = "LGPL-3.0"
7+
readme = "README.md"
8+
9+
[tool.poetry.dependencies]
10+
python = ">=3.5"
11+
xeger = "^0.4.0"
12+
colorful = "^0.5.6"
13+
14+
15+
[build-system]
16+
requires = ["poetry-core"]
17+
build-backend = "poetry.core.masonry.api"
18+
19+
[project.urls]
20+
"Homepage" = "https://github.com/luogu-dev/cyaron"
21+
"Bug Tracker" = "https://github.com/luogu-dev/cyaron/issues"

requirements.txt

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

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)