File tree Expand file tree Collapse file tree 3 files changed +19
-25
lines changed Expand file tree Collapse file tree 3 files changed +19
-25
lines changed Original file line number Diff line number Diff line change @@ -93,4 +93,4 @@ python_package_import_name:
93
93
python_package_requires_python :
94
94
type : str
95
95
help : The python version range your project supports
96
- default : " >=3.11 "
96
+ default : " >=3.10 "
Original file line number Diff line number Diff line change 7
7
- " **.md"
8
8
push :
9
9
branches :
10
- - master
11
10
- main
12
11
paths-ignore :
13
12
- " docs/**"
@@ -21,23 +20,18 @@ jobs:
21
20
python-version : ['3.10']
22
21
os : [ubuntu-latest]
23
22
24
- steps :
25
- - name : Checkout branch
26
- uses : actions/checkout@v3
23
+ steps :
24
+ - name : Checkout branch
25
+ uses : actions/checkout@v3
27
26
28
- - name : Set up PDM
29
- uses : pdm-project/setup-pdm@main
30
- with :
31
- python-version : ${{ matrix.python-version }}
32
- cache : true
27
+ - name : Set up PDM
28
+ uses : pdm-project/setup-pdm@main
29
+ with :
30
+ python-version : ${{ matrix.python-version }}
31
+ cache : true
33
32
34
- - name : Setup ssh key
35
- uses : webfactory/ssh-agent@v0.5.1
36
- with :
37
- ssh-private-key : ${{ secrets.SSH_KEY }}
33
+ - name : Install dependencies
34
+ run : pdm install
38
35
39
- - name : Install dependencies
40
- run : pdm install
41
-
42
- - name : Run Tests
43
- run : pdm test
36
+ - name : Run Tests
37
+ run : pdm test
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ readme = "README.md"
13
13
requires-python = "{{ python_package_requires_python }}"
14
14
dependencies = [
15
15
# keep-sorted start
16
- "aeromancy @ git+ssh ://git@ github.com/quant-aq/aeromancy.git ",
16
+ "aeromancy @ git+https ://github.com/quant-aq/aeromancy@v0.3.0 ",
17
17
] # keep-sorted end
18
18
dynamic = ["version"]
19
19
@@ -65,6 +65,10 @@ doc.shell = "cd docs && mkdocs serve -a localhost:8010"
65
65
lint.help = "Run linters over all files"
66
66
lint.cmd = "pre-commit run --all-files"
67
67
68
+ # PDM hook to automatically sort dependencies when they change.
69
+ # "true" is there since GitHub Actions will fail if this returns a non-zero exit code.
70
+ post_install.shell = "pre-commit run keep-sorted --files pyproject.toml > /dev/null 2> /dev/null; true"
71
+
68
72
#
69
73
# Standard Aeromancy scripts.
70
74
#
@@ -87,11 +91,7 @@ help.help = "Show the combined help menu (Aeromancy runtime + job selection + pr
87
91
help.cmd = "python src/main.py --help"
88
92
89
93
aeroset.help = "Use a specific reference/tag/version of Aeromancy"
90
- aeroset.shell = """pdm remove aeromancy ;
91
- pdm add 'git+ssh://git@github.com/quant-aq/aeromancy.git@{args}' &&
92
- pdm install &&
93
- pre-commit run keep-sorted --files pyproject.toml > /dev/null
94
- """
94
+ aeroset.shell = "pdm add 'git+https://github.com/quant-aq/aeromancy@{args}' && pdm install"
95
95
96
96
[tool.black]
97
97
line-length = 88
You can’t perform that action at this time.
0 commit comments