|
1 | 1 | [build-system]
|
2 |
| -requires = ["setuptools", "wheel", "numpy>=1.19", "cython"] |
| 2 | +build-backend = "setuptools.build_meta" |
| 3 | +requires = [ |
| 4 | + "setuptools >=64", |
| 5 | + "setuptools-git-versioning", |
| 6 | + "wheel", |
| 7 | + "cffi", |
| 8 | + "cython", |
| 9 | + "oldest-supported-numpy", |
| 10 | +] |
| 11 | + |
| 12 | +[project] |
| 13 | +name = "suitesparse-graphblas" |
| 14 | +dynamic = ["version"] |
| 15 | +description = "SuiteSparse:GraphBLAS Python bindings." |
| 16 | +readme = "README.md" |
| 17 | +requires-python = ">=3.8" |
| 18 | +license = {file = "LICENSE"} |
| 19 | +authors = [ |
| 20 | + {name = "Erik Welch"}, |
| 21 | + {name = "Jim Kitchen"}, |
| 22 | + {name = "Michel Pelletier"}, |
| 23 | +] |
| 24 | +maintainers = [ |
| 25 | + { name = "Erik Welch", email = "[email protected]"}, |
| 26 | + { name = "Jim Kitchen", email = "[email protected]"}, |
| 27 | + { name = "Michel Pelletier", email = "[email protected]"}, |
| 28 | +] |
| 29 | +classifiers = [ |
| 30 | + "Development Status :: 4 - Beta", |
| 31 | + "License :: OSI Approved :: Apache Software License", |
| 32 | + "Operating System :: MacOS :: MacOS X", |
| 33 | + "Operating System :: POSIX :: Linux", |
| 34 | + "Operating System :: Microsoft :: Windows", |
| 35 | + "Programming Language :: Python", |
| 36 | + "Programming Language :: Python :: 3", |
| 37 | + "Programming Language :: Python :: 3.8", |
| 38 | + "Programming Language :: Python :: 3.9", |
| 39 | + "Programming Language :: Python :: 3.10", |
| 40 | + "Programming Language :: Python :: 3.11", |
| 41 | + "Programming Language :: Python :: 3 :: Only", |
| 42 | + "Intended Audience :: Science/Research", |
| 43 | + "Topic :: Scientific/Engineering", |
| 44 | + "Topic :: Scientific/Engineering :: Mathematics", |
| 45 | +] |
| 46 | +dependencies = [ |
| 47 | + # These are super-old; can/should we update them? |
| 48 | + "cffi>=1.0.0", |
| 49 | + "numpy>=1.19", |
| 50 | +] |
| 51 | +[project.urls] |
| 52 | +homepage = "https://github.com/GraphBLAS/python-suitesparse-graphblas" |
| 53 | +repository = "https://github.com/GraphBLAS/python-suitesparse-graphblas" |
| 54 | +changelog = "https://github.com/GraphBLAS/python-suitesparse-graphblas/releases" |
| 55 | + |
| 56 | +[project.optional-dependencies] |
| 57 | +test = [ |
| 58 | + "pytest", |
| 59 | +] |
| 60 | + |
| 61 | +[tool.setuptools] |
| 62 | +packages = [ |
| 63 | + 'suitesparse_graphblas', |
| 64 | + # 'suitesparse_graphblas.tests', |
| 65 | + 'suitesparse_graphblas.io', |
| 66 | +] |
| 67 | + |
| 68 | +[tool.setuptools-git-versioning] |
| 69 | +enabled = true |
| 70 | +dev_template = "{tag}+{ccount}.g{sha}" |
| 71 | +dirty_template = "{tag}+{ccount}.g{sha}.dirty" |
3 | 72 |
|
4 | 73 | [tool.black]
|
5 | 74 | line-length = 100
|
| 75 | +target-version = ["py38", "py39", "py310", "py311"] |
| 76 | + |
| 77 | +[tool.isort] |
| 78 | +sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] |
| 79 | +profile = "black" |
| 80 | +skip_gitignore = true |
| 81 | +float_to_top = true |
| 82 | +default_section = "THIRDPARTY" |
| 83 | +known_first_party = "suitesparse_graphblas" |
| 84 | +line_length = 100 |
| 85 | +skip_glob = ["*.pxd", "*.pyx"] |
| 86 | + |
| 87 | +[tool.coverage.run] |
| 88 | +branch = true |
| 89 | +source = ["suitesparse_graphblas"] |
| 90 | +omit = [] |
| 91 | +plugins = ["Cython.Coverage"] |
| 92 | + |
| 93 | +[tool.coverage.report] |
| 94 | +ignore_errors = false |
| 95 | +precision = 1 |
| 96 | +fail_under = 0 |
| 97 | +skip_covered = true |
| 98 | +skip_empty = true |
| 99 | +exclude_lines = [ |
| 100 | + "pragma: no cover", |
| 101 | + "raise AssertionError", |
| 102 | + "raise NotImplementedError", |
| 103 | +] |
| 104 | + |
| 105 | +[tool.pytest] |
| 106 | +testpaths = ["suitesparse_graphblas/tests"] |
0 commit comments