-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch switches the build system from setuptools (using `setup.py`) to Flit (using `pyproject.toml`).
- Loading branch information
1 parent
708b0e2
commit 163ea93
Showing
4 changed files
with
32 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,9 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: python3 -m pip install setuptools wheel | ||
run: python3 -m pip install flit | ||
- name: Build package | ||
run: python3 setup.py sdist bdist_wheel | ||
run: python3 -m flit build | ||
- name: Publish package to PyPI | ||
uses: pypa/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[project] | ||
name = "nutils" | ||
readme = "README.md" | ||
authors = [ | ||
{ name = "Evalf", email = "[email protected]" }, | ||
] | ||
requires-python = '~=3.7' | ||
dependencies = [ | ||
"appdirs~=1.0", | ||
"bottombar~=2.0.2", | ||
"numpy>=1.17", | ||
"psutil~=5.0", | ||
"stringly", | ||
"treelog>=1.0b5", | ||
] | ||
dynamic = ["description", "version"] | ||
|
||
[project.optional-dependencies] | ||
docs = ["Sphinx>=1.8"] | ||
export_mpl = ["matplotlib>=1.3", "pillow>2.6"] | ||
matrix_mkl = ["mkl"] | ||
matrix_scipy = ["scipy>=0.13"] | ||
import_gmsh = ["meshio"] | ||
|
||
[build-system] | ||
requires = ["flit_core >=3.2,<4"] | ||
build-backend = "flit_core.buildapi" |