Skip to content

Commit 0952a65

Browse files
authored
Merge pull request #245 from fastlabel/fix/release-build-2
PEP 517/518推奨ビルド方法へ変更
2 parents 976fbdc + 354d661 commit 0952a65

File tree

3 files changed

+33
-25
lines changed

3 files changed

+33
-25
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ jobs:
2020
- name: Install dependencies
2121
run: |
2222
python -m pip install --upgrade pip
23-
pip install setuptools>=61.0.0 wheel
23+
pip install build
2424
2525
- name: Build
2626
run: |
27-
python setup.py sdist
28-
python setup.py bdist_wheel
27+
python -m build
2928
3029
- name: Check
3130
run: |

pyproject.toml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0.0", "wheel", "setuptools_scm>=8.0.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "fastlabel"
7+
description = "The official Python SDK for FastLabel API, the Data Platform for AI"
8+
readme = "README.md"
9+
requires-python = ">=3.8"
10+
authors = [
11+
{ name = "eisuke-ueta", email = "eisuke.ueta@fastlabel.ai" }
12+
]
13+
dependencies = [
14+
"requests>=2.4.2,<3.0",
15+
"numpy>=1.26.0,<2.0.0",
16+
"geojson>=2.0.0,<4.0",
17+
"xmltodict==0.12.0",
18+
"Pillow>=10.0.0,<11.0.0",
19+
"opencv-python>=4.0.0,<5.0.0",
20+
"aiohttp>=3.8.5"
21+
]
22+
23+
dynamic = ["version"]
24+
25+
[tool.setuptools]
26+
include-package-data = true
27+
28+
[tool.setuptools.packages.find]
29+
where = ["."]
30+
31+
[tool.setuptools_scm]

setup.py

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

0 commit comments

Comments
 (0)