Skip to content

Commit ea2baef

Browse files
authored
Merge branch 'master' into gridue-to-bout
2 parents 091d34b + ae04a86 commit ea2baef

27 files changed

Lines changed: 2131 additions & 516 deletions

File tree

.flake8

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ ignore =
1212
exclude =
1313
hypnotoad/gui/hypnotoad_mainWindow.py,
1414
hypnotoad/gui/hypnotoad_preferences.py,
15-
hypnotoad/gui/__init__.py
16-
hypnotoad/__version__.py
17-
versioneer.py
15+
hypnotoad/gui/__init__.py,
16+
hypnotoad/__version__.py,
17+
versioneer.py,
18+
build,
19+
.venv

.github/workflows/pythonpackage.yml

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
name: Python package
55

66
on:
7-
[push, pull_request]
7+
push:
8+
pull_request:
9+
schedule:
10+
- cron: '25 1 3 * *'
811

912
concurrency:
1013
group: ${{ github.workflow}}-${{ github.ref }}
@@ -18,23 +21,21 @@ jobs:
1821
if: always()
1922
strategy:
2023
matrix:
21-
python-version: [3.8, 3.9, '3.10']
24+
python-version: ['3.10', '3.11', '3.12', '3.13']
2225
fail-fast: false
2326

2427
steps:
25-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v4
2629
- name: Set up Python ${{ matrix.python-version }}
27-
uses: actions/setup-python@v1
30+
uses: actions/setup-python@v5
2831
with:
2932
python-version: ${{ matrix.python-version }}
3033
- name: Install dependencies
3134
run: |
3235
python -m pip install --upgrade pip
33-
pip install -r requirements.txt
36+
pip install .[tests]
3437
- name: Test with pytest
35-
run: |
36-
pip install pytest
37-
pytest
38+
run: pytest
3839

3940

4041
integrated-tests:
@@ -44,21 +45,21 @@ jobs:
4445
if: always()
4546
strategy:
4647
matrix:
47-
python-version: [3.8, 3.9, '3.10']
48+
python-version: ['3.10', '3.11', '3.12', '3.13']
4849
fail-fast: false
4950

5051
steps:
51-
- uses: actions/checkout@v2
52+
- uses: actions/checkout@v4
5253
with:
5354
lfs: true
5455
- name: Set up Python ${{ matrix.python-version }}
55-
uses: actions/setup-python@v1
56+
uses: actions/setup-python@v5
5657
with:
5758
python-version: ${{ matrix.python-version }}
5859
- name: Install dependencies
5960
run: |
6061
python -m pip install --upgrade pip
61-
pip install -r requirements.txt
62+
pip install .[tests]
6263
- name: Integrated tests
6364
run: |
6465
pip install pytest xarray
@@ -75,13 +76,13 @@ jobs:
7576
fail-fast: false
7677

7778
steps:
78-
- uses: actions/checkout@v2
79+
- uses: actions/checkout@v4
7980
with:
8081
lfs: true
8182
- name: Set up Python
82-
uses: actions/setup-python@v1
83+
uses: actions/setup-python@v5
8384
with:
84-
python-version: 3.9
85+
python-version: "3.x"
8586
- name: Install dependencies
8687
run: |
8788
python -m pip install --upgrade pip
@@ -112,13 +113,13 @@ jobs:
112113
fail-fast: false
113114

114115
steps:
115-
- uses: actions/checkout@v2
116+
- uses: actions/checkout@v4
116117
with:
117118
lfs: true
118119
- name: Set up Python
119-
uses: actions/setup-python@v1
120+
uses: actions/setup-python@v5
120121
with:
121-
python-version: 3.9
122+
python-version: "3.x"
122123
- name: Install dependencies
123124
run: |
124125
python -m pip install --upgrade pip
@@ -153,15 +154,15 @@ jobs:
153154
if: always()
154155

155156
steps:
156-
- uses: actions/checkout@v2
157+
- uses: actions/checkout@v4
157158
- name: Set up Python
158-
uses: actions/setup-python@v1
159+
uses: actions/setup-python@v5
159160
with:
160-
python-version: 3.9
161+
python-version: "3.x"
161162
- name: Install dependencies
162163
run: |
163164
python -m pip install --upgrade pip
164-
pip install -r requirements.txt
165+
pip install .
165166
- name: Lint with flake8
166167
run: |
167168
pip install flake8
@@ -175,11 +176,11 @@ jobs:
175176
if: always()
176177

177178
steps:
178-
- uses: actions/checkout@v2
179+
- uses: actions/checkout@v4
179180
- name: Set up Python
180-
uses: actions/setup-python@v1
181+
uses: actions/setup-python@v5
181182
with:
182-
python-version: 3.9
183+
python-version: "3.x"
183184
- name: Install dependencies
184185
run: |
185186
python -m pip install --upgrade pip

.github/workflows/pythonpublish.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,20 @@ jobs:
1515
timeout-minutes: 30
1616
strategy:
1717
matrix:
18-
python-version: [3.8, 3.9, '3.10']
18+
python-version: ['3.10', '3.11', '3.12']
1919

2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v4
2222
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v1
23+
uses: actions/setup-python@v5
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
29-
pip install -r requirements.txt
29+
pip install .[tests]
3030
- name: Test with pytest
3131
run: |
32-
pip install pytest
3332
pytest
3433
3534
@@ -39,15 +38,15 @@ jobs:
3938
timeout-minutes: 30
4039

4140
steps:
42-
- uses: actions/checkout@v2
41+
- uses: actions/checkout@v4
4342
- name: Set up Python
44-
uses: actions/setup-python@v1
43+
uses: actions/setup-python@v5
4544
with:
46-
python-version: 3.9
45+
python-version: "3.x"
4746
- name: Install dependencies
4847
run: |
4948
python -m pip install --upgrade pip
50-
pip install -r requirements.txt
49+
pip install .
5150
- name: Lint with flake8
5251
run: |
5352
pip install flake8
@@ -60,11 +59,11 @@ jobs:
6059
timeout-minutes: 30
6160

6261
steps:
63-
- uses: actions/checkout@v2
62+
- uses: actions/checkout@v4
6463
- name: Set up Python
65-
uses: actions/setup-python@v1
64+
uses: actions/setup-python@v5
6665
with:
67-
python-version: 3.9
66+
python-version: "3.x"
6867
- name: Install dependencies
6968
run: |
7069
python -m pip install --upgrade pip
@@ -82,9 +81,9 @@ jobs:
8281
needs: [pytest, flake8, black]
8382

8483
steps:
85-
- uses: actions/checkout@v2
84+
- uses: actions/checkout@v4
8685
- name: Set up Python
87-
uses: actions/setup-python@v1
86+
uses: actions/setup-python@v5
8887
with:
8988
python-version: '3.x'
9089
- name: Install dependencies

.gitignore

Lines changed: 128 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,128 @@
1-
.*.sw*
2-
*.nc
3-
__pycache__
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.nox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
.hypothesis/
51+
.pytest_cache/
52+
53+
# Translations
54+
*.mo
55+
*.pot
56+
57+
# Django stuff:
58+
*.log
59+
local_settings.py
60+
db.sqlite3
61+
62+
# Flask stuff:
63+
instance/
64+
.webassets-cache
65+
66+
# Scrapy stuff:
67+
.scrapy
68+
69+
# Sphinx documentation
70+
docs/_build/
71+
72+
# PyBuilder
73+
target/
74+
75+
# Jupyter Notebook
76+
.ipynb_checkpoints
77+
78+
# IPython
79+
profile_default/
80+
ipython_config.py
81+
82+
# pyenv
83+
.python-version
84+
85+
# pipenv
86+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
87+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
88+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
89+
# install all needed dependencies.
90+
#Pipfile.lock
91+
92+
# celery beat schedule file
93+
celerybeat-schedule
94+
95+
# SageMath parsed files
96+
*.sage.py
97+
98+
# Environments
99+
.env
100+
.venv
101+
env/
102+
venv/
103+
ENV/
104+
env.bak/
105+
venv.bak/
106+
107+
# Spyder project settings
108+
.spyderproject
109+
.spyproject
110+
111+
# Rope project settings
112+
.ropeproject
113+
114+
# mkdocs documentation
115+
/site
116+
117+
# mypy
118+
.mypy_cache/
119+
.dmypy.json
120+
dmypy.json
121+
122+
# Pyre type checker
123+
.pyre/
124+
125+
# Other
126+
.DS_Store
127+
.idea/
128+
*.sw[po]

0 commit comments

Comments
 (0)