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:
2
.github/workflows/valgrind-analysis.yml
vendored
2
.github/workflows/valgrind-analysis.yml
vendored
@ -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
1
.gitignore
vendored
@ -13,3 +13,4 @@ Brewfile.lock.json
|
||||
.DS_Store
|
||||
*.code-workspace
|
||||
.env*
|
||||
/scripts/*.egg-info
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
14
scripts/pyproject.toml
Normal 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",
|
||||
]
|
||||
@ -1,7 +0,0 @@
|
||||
cmake_format
|
||||
clang-format
|
||||
python-dotenv
|
||||
pyyaml
|
||||
dmgbuild; sys_platform == 'darwin'
|
||||
aqtinstall; sys_platform == 'win32' or sys_platform == 'darwin'
|
||||
colorama
|
||||
Reference in New Issue
Block a user