Migrate scripts from requirements.txt to pyproject.toml (#7406)

* Migrate from `requirements.txt` to `pyproject.toml`

* Lower Python to 3.9 for GitHub Windows runner

* Increase timeout for valgrind

* Update ChangeLog
This commit is contained in:
Nick Bolton
2024-07-19 10:35:10 +01:00
committed by GitHub
parent 6f411e4ab8
commit f81901f633
6 changed files with 18 additions and 9 deletions

View File

@ -17,7 +17,7 @@ jobs:
valgrind-analysis:
runs-on: ubuntu-latest
container: symless/synergy-core:ubuntu-22.04-amd64
timeout-minutes: 5
timeout-minutes: 10
steps:
- name: Checkout

1
.gitignore vendored
View File

@ -13,3 +13,4 @@ Brewfile.lock.json
.DS_Store
*.code-workspace
.env*
/scripts/*.egg-info

View File

@ -56,6 +56,7 @@ Enhancements:
- #7401 Run Valgrind on unit tests in CI to detect memory leaks
- #7403 Solve low hanging reliability and maintainability issues
- #7404 Restore integtests and add to CI as warning comment on failure
- #7406 Migrate scripts from `requirements.txt` to `pyproject.toml`
# 1.14.6

View File

@ -134,7 +134,7 @@ def install_requirements():
print("Installing required modules...")
cmd_utils.run(
[sys.executable, "-m", "pip", "install", "-r", "scripts/requirements.txt"],
[sys.executable, "-m", "pip", "install", "-e", "scripts"],
shell=False,
print_cmd=True,
)

14
scripts/pyproject.toml Normal file
View File

@ -0,0 +1,14 @@
[project]
name = "scripts"
version = "0.0.1"
description = "Scripts to assist with development of Synergy"
requires-python = ">=3.9"
dependencies = [
"cmake_format",
"clang-format",
"python-dotenv",
"pyyaml",
"dmgbuild; sys_platform == 'darwin'",
"aqtinstall; sys_platform == 'win32' or sys_platform == 'darwin'",
"colorama",
]

View File

@ -1,7 +0,0 @@
cmake_format
clang-format
python-dotenv
pyyaml
dmgbuild; sys_platform == 'darwin'
aqtinstall; sys_platform == 'win32' or sys_platform == 'darwin'
colorama