Skip to content

Commit

Permalink
ci: PLT-628: Update pyproject.toml (#6912)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabelonogov authored Jan 16, 2025
1 parent eed76c9 commit 574f0e5
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
run: |
set -euo pipefail
version=$(sed "s/^v//g" <<< ${PROVIDED_VERSION})
./toml set '${{ env.PYTHON_VERSION_FILE }}' tool.poetry.version "$version" > pyproject.toml.new
./toml set '${{ env.PYTHON_VERSION_FILE }}' project.version "$version" > pyproject.toml.new
mv -f pyproject.toml.new pyproject.toml
- name: Setup frontend environment
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-set-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
run: |
set -euo pipefail
version=$(sed "s/^v//g" <<< ${PROVIDED_VERSION})
./toml set '${{ env.PYTHON_VERSION_FILE }}' tool.poetry.version "$version" > pyproject.toml.new
./toml set '${{ env.PYTHON_VERSION_FILE }}' project.version "$version" > pyproject.toml.new
mv -f pyproject.toml.new '${{ env.PYTHON_VERSION_FILE }}'
- name: Commit version file
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 19 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
[project]
name = "label-studio"
version = "1.16.0.dev0"
description = "Label Studio annotation tool"
authors = [
{ name = "HumanSignal", email = "[email protected]" },
]
readme = "README.md"
license = "Apache-2.0"
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
]
requires-python = ">=3.10,<4"

[project.urls]
Repository = "https://github.com/HumanSignal/label-studio"

[tool.ruff]
# Enable the pycodestyle (`E`) and Pyflakes (`F`) rules by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
Expand Down Expand Up @@ -103,20 +122,6 @@ target-version = ['py38']

[tool.poetry]

name = "label-studio"
version = "1.16.0.dev0"
description = "Label Studio annotation tool"
authors = [
"Heartex <[email protected]>",
]
readme = "README.md"
license = "Apache-2.0"
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
]
homepage = "https://github.com/HumanSignal/label-studio"
packages = [
{ include = "label_studio" },
]
Expand Down
4 changes: 2 additions & 2 deletions web/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const packageFile = fs.readFileSync(pyproject).toString();

const parsedToml = toml.parse(packageFile);

const packageName = parsedToml.tool.poetry.name;
const versionNumber = parsedToml.tool.poetry.version;
const packageName = parsedToml.project.name;
const versionNumber = parsedToml.project.version;

module.exports.name = packageName;
module.exports.version = versionNumber;
Expand Down

0 comments on commit 574f0e5

Please sign in to comment.