File tree Expand file tree Collapse file tree 5 files changed +27
-8
lines changed
Expand file tree Collapse file tree 5 files changed +27
-8
lines changed Original file line number Diff line number Diff line change 1+ name : Code Release Week
2+
3+ on :
4+ pull_request :
5+
6+ jobs :
7+ run-crw :
8+ if : contains(github.event.pull_request.labels.*.name, 'code release week')
9+ uses : bessagroup/.github/.github/workflows/code-release-week.yml@main
10+ with :
11+ python-version : " 3.12"
Original file line number Diff line number Diff line change 2323 - name : Install dependencies
2424 run : |
2525 python -m pip install --upgrade pip
26- python -m pip install '.[test ,all]'
26+ python -m pip install '.[tests ,all]'
2727
2828 - name : Test with pytest
2929 run : |
Original file line number Diff line number Diff line change 33PACKAGEDIR := dist
44COVERAGEREPORTDIR := coverage_html_report
55
6- .PHONY : help init init-dev test test-smoke test-smoke-html test-html build upload upload-testpypi
6+ .PHONY : help init init-dev test test-smoke test-smoke-html test-html build upload upload-testpypi docs lint
77
88help :
99 @echo " Please use \` make <target>' where <target> is one of:"
1616 @echo " build Build the package"
1717 @echo " upload Upload the package to the PyPi index"
1818 @echo " upload-testpypi Upload the package to the PyPi-test index"
19+ @echo " docs Build the documentation with mkdocs"
20+ @echo " lint Lint the code with ruff"
1921
2022init :
2123 pip install -r requirements.txt
@@ -35,8 +37,7 @@ test-html:
3537 xdg-open ./$(COVERAGEREPORTDIR ) /index.html
3638
3739build :
38- -rm -rf $(PACKAGEDIR ) /*
39- python -m build
40+ uv build
4041
4142upload-testpypi :
4243 $(MAKE ) build
@@ -45,3 +46,9 @@ upload-testpypi:
4546upload :
4647 $(MAKE ) build
4748 twine upload $(PACKAGEDIR ) /* --verbose
49+
50+ docs :
51+ mkdocs build
52+
53+ lint :
54+ ruff check
Original file line number Diff line number Diff line change @@ -36,15 +36,16 @@ maintainers = [
3636name = " f3dasm"
3737readme = " README.md"
3838requires-python = " >=3.10"
39- version = " 2.2.1 "
39+ version = " 2.2.2 "
4040
4141[project .optional-dependencies ]
4242all = [
4343 " abaqus2py>=1.0.0" ,
4444 " optuna>=4.4.0"
4545]
4646dev = [
47- " pre-commit>=4.4.0"
47+ " pre-commit>=4.4.0" ,
48+ " ruff>=0.14.10"
4849]
4950docs = [
5051 " mkdocs-gen-files>=0.5.0" ,
@@ -55,7 +56,7 @@ docs = [
5556 " mkdocstrings-python>=1.18.2" ,
5657 " pymdown-extensions>=10.16.1"
5758]
58- test = [
59+ tests = [
5960 " hypothesis>=6.138.0" ,
6061 " pytest>=8.4.1" ,
6162 " pytest-cov>=6.2.1"
Original file line number Diff line number Diff line change 1414 from mpi4py import MPI
1515
1616 MPI_AVAILABLE = True
17- except ImportError :
17+ except ( ImportError , RuntimeError ) :
1818 MPI_AVAILABLE = False
1919
2020if TYPE_CHECKING :
You can’t perform that action at this time.
0 commit comments