Skip to content

Commit 574f0e5

Browse files
ci: PLT-628: Update pyproject.toml (#6912)
1 parent eed76c9 commit 574f0e5

File tree

5 files changed

+24
-19
lines changed

5 files changed

+24
-19
lines changed

.github/workflows/build_pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
run: |
8080
set -euo pipefail
8181
version=$(sed "s/^v//g" <<< ${PROVIDED_VERSION})
82-
./toml set '${{ env.PYTHON_VERSION_FILE }}' tool.poetry.version "$version" > pyproject.toml.new
82+
./toml set '${{ env.PYTHON_VERSION_FILE }}' project.version "$version" > pyproject.toml.new
8383
mv -f pyproject.toml.new pyproject.toml
8484
8585
- name: Setup frontend environment

.github/workflows/release-set-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
run: |
101101
set -euo pipefail
102102
version=$(sed "s/^v//g" <<< ${PROVIDED_VERSION})
103-
./toml set '${{ env.PYTHON_VERSION_FILE }}' tool.poetry.version "$version" > pyproject.toml.new
103+
./toml set '${{ env.PYTHON_VERSION_FILE }}' project.version "$version" > pyproject.toml.new
104104
mv -f pyproject.toml.new '${{ env.PYTHON_VERSION_FILE }}'
105105
106106
- name: Commit version file

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
[project]
2+
name = "label-studio"
3+
version = "1.16.0.dev0"
4+
description = "Label Studio annotation tool"
5+
authors = [
6+
{ name = "HumanSignal", email = "[email protected]" },
7+
]
8+
readme = "README.md"
9+
license = "Apache-2.0"
10+
classifiers = [
11+
"License :: OSI Approved :: Apache Software License",
12+
"Operating System :: OS Independent",
13+
"Programming Language :: Python :: 3",
14+
]
15+
requires-python = ">=3.10,<4"
16+
17+
[project.urls]
18+
Repository = "https://github.com/HumanSignal/label-studio"
19+
120
[tool.ruff]
221
# Enable the pycodestyle (`E`) and Pyflakes (`F`) rules by default.
322
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
@@ -103,20 +122,6 @@ target-version = ['py38']
103122

104123
[tool.poetry]
105124

106-
name = "label-studio"
107-
version = "1.16.0.dev0"
108-
description = "Label Studio annotation tool"
109-
authors = [
110-
"Heartex <[email protected]>",
111-
]
112-
readme = "README.md"
113-
license = "Apache-2.0"
114-
classifiers = [
115-
"License :: OSI Approved :: Apache Software License",
116-
"Operating System :: OS Independent",
117-
"Programming Language :: Python :: 3",
118-
]
119-
homepage = "https://github.com/HumanSignal/label-studio"
120125
packages = [
121126
{ include = "label_studio" },
122127
]

web/release.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const packageFile = fs.readFileSync(pyproject).toString();
77

88
const parsedToml = toml.parse(packageFile);
99

10-
const packageName = parsedToml.tool.poetry.name;
11-
const versionNumber = parsedToml.tool.poetry.version;
10+
const packageName = parsedToml.project.name;
11+
const versionNumber = parsedToml.project.version;
1212

1313
module.exports.name = packageName;
1414
module.exports.version = versionNumber;

0 commit comments

Comments
 (0)