Skip to content

Commit b4cb217

Browse files
authored
Remove setup.cfg (#625)
* Remove setup.cfg * Add missing optional dep. * Syntax fix * Fix packages * Update packages * Fix typo * Fix order
1 parent e3fbbc8 commit b4cb217

File tree

3 files changed

+62
-82
lines changed

3 files changed

+62
-82
lines changed

.flake8

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[flake8]
2+
max-line-length = 120
3+
exclude = .git,__pycache__,docs/source/conf.py,build,dist,libs
4+
ignore =
5+
# Line length
6+
W503,
7+
# Variable names l, O, I, ...
8+
E741,

pyproject.toml

+54-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,61 @@
11
[build-system]
22
requires = ["setuptools>=62", "wheel"]
3-
43
build-backend = "setuptools.build_meta"
54

5+
[project]
6+
name = "fenics-ffcx"
7+
version = "0.8.0.dev0"
8+
description = "The FEniCSx Form Compiler"
9+
readme = "README.md"
10+
requires-python = ">=3.8.0"
11+
license = {file = "LICENSE"}
12+
authors = [{email="[email protected]"}, {name="FEniCS Project"}]
13+
dependencies = [
14+
"numpy>=1.21",
15+
"cffi",
16+
"fenics-basix >= 0.8.0.dev0, <0.9.0",
17+
"fenics-ufl >= 2023.3.0.dev0, <2023.4.0",
18+
]
19+
20+
[project.urls]
21+
homepage = "https://fenicsproject.org"
22+
repository = "https://github.com/fenics/ffcx.git"
23+
documentation = "https://docs.fenicsproject.org"
24+
25+
[project.scripts]
26+
ffcx = "ffcx.__main__:main"
27+
28+
[project.optional-dependencies]
29+
lint = ["flake8", "pydocstyle[toml]"]
30+
docs = ["sphinx", "sphinx_rtd_theme"]
31+
optional = ["pygraphviz==1.7"]
32+
test = ["pytest >= 6.0", "sympy"]
33+
ci = [
34+
"coveralls",
35+
"coverage",
36+
"isort",
37+
"pytest-cov",
38+
"pytest-xdist",
39+
"types-setuptools",
40+
"mypy",
41+
"fenics-ffcx[docs]",
42+
"fenics-ffcx[optional]",
43+
"fenics-ffcx[lint]",
44+
"fenics-ffcx[test]",
45+
]
46+
47+
[options.entry_points]
48+
ffcx = "ffcx.__main__:main"
49+
50+
[tool.setuptools]
51+
packages = [
52+
"ffcx",
53+
"ffcx.codegeneration",
54+
"ffcx.codegeneration.C",
55+
"ffcx.ir",
56+
"ffcx.ir.analysis",
57+
]
58+
659
[tool.pytest.ini_options]
760
minversion = "6.0"
861
addopts = "-ra"

setup.cfg

-81
This file was deleted.

0 commit comments

Comments
 (0)