Skip to content

Commit 2c864d1

Browse files
committed
Switch from setup.py to pyproject.toml
Fix build dependencies along the way. Add missing maintainers. Update versioneer to work with pyproject.toml.
1 parent a3681f0 commit 2c864d1

10 files changed

Lines changed: 1028 additions & 490 deletions

File tree

.flake8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
max-line-length = 120
3+
ignore = E221,E226,E241,E242,W0105,N803,N806
4+
exclude = __init__.py

.github/workflows/test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,15 @@ jobs:
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
29-
python -m pip install -r requirements.txt
30-
python -m pip install -e .
29+
python -m pip install -e ".[dev]"
3130
- name: Test with pytest
3231
run: |
3332
python -m pytest
3433
codecov
35-
- name: Test with pytest
34+
- name: Build and validate
3635
run: |
37-
python setup.py bdist_wheel
38-
python setup.py sdist -d ${SDIST_DIR}/ --format=gztar
36+
python -m build --wheel
37+
python -m build --sdist --outdir ${SDIST_DIR}/
3938
twine check ${SDIST_DIR}/*
4039
check-manifest -p python ${PWD}
4140
cd ${SDIST_DIR}

MANIFEST.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
include *.txt
22
include *.md
33
include MANIFEST.in
4+
include .flake8
45
recursive-include examples *.py
56
recursive-include tests *.py
6-
include versioneer.py
7-
include pyevtk/_version.py
87
exclude .pre-commit-config.yaml
98
prune .github

examples/structured.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@
105105
"sphere.0",
106106
*sphere(XX1_1, XX2_1, XX3_1),
107107
start=(0, 0, 0),
108-
pointData={"R": XX1_1, "Theta": XX2_1, "Phi": XX3_1}
108+
pointData={"R": XX1_1, "Theta": XX2_1, "Phi": XX3_1},
109109
)
110110
# Second Half sphere
111111
gridToVTK(
112112
"sphere.1",
113113
*sphere(XX1_2, XX2_2, XX3_2),
114114
start=(0, 9, 0),
115-
pointData={"R": XX1_2, "Theta": XX2_2, "Phi": XX3_2}
115+
pointData={"R": XX1_2, "Theta": XX2_2, "Phi": XX3_2},
116116
)
117117

118118
# Write parallel file

0 commit comments

Comments
 (0)