Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: PLT-628: Update pyproject.toml #6912

Merged
merged 5 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading