Skip to content

Commit 9cd7ca5

Browse files
committed
fix: change build system
1 parent eb3102b commit 9cd7ca5

File tree

2 files changed

+13
-32
lines changed

2 files changed

+13
-32
lines changed

ephyspy/__version__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@
1414
# You should have received a copy of the GNU General Public License
1515
# along with this program. If not, see <https://www.gnu.org/licenses/>.
1616

17-
VERSION = (0, 0, 7)
18-
19-
__version__ = ".".join(map(str, VERSION))
17+
__version__ = "0.0.8"

pyproject.toml

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
[build-system]
2-
requires = ["setuptools>=45", "wheel"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
44

55
[project]
66
name = "ephyspy"
7+
version = "0.0.8"
78
description = "Package to extract summary statistics from electrophysiological data."
89
readme = "README.md"
910
authors = [
1011
{name = "Jonas Beck"}
1112
]
1213
requires-python = ">=3.12"
13-
dynamic = ["version"]
14+
license = {text = "GPL-3.0-or-later"}
1415
classifiers = [
1516
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
1617
"Programming Language :: Python :: 3",
1718
"Programming Language :: Python :: 3.12",
1819
]
19-
2020
dependencies = [
2121
"numpy>=1.20.0",
2222
"pandas>=1.5.3",
@@ -28,40 +28,23 @@ dependencies = [
2828
[project.optional-dependencies]
2929
dev = [
3030
"black",
31+
"ipython>=8.12.3",
3132
"isort",
32-
"pytest",
33-
"pytest-cov",
33+
"jupyter>=1.1.1",
34+
"jupyter-black>=0.4.0",
35+
"pytest>=8.3.5",
36+
"pytest-cov>=6.0.0",
37+
"seaborn>=0.13.2",
3438
]
3539

36-
[tool.setuptools]
40+
[tool.hatch.build.targets.wheel]
3741
packages = ["ephyspy"]
38-
package-dir = {"" = "."}
39-
# FIX: temporary workaround until https://github.com/pypa/setuptools/issues/4759 is fixed
40-
license-files = []
41-
42-
[tool.setuptools.exclude-package-data]
43-
"*" = ["*.tests.*", "tests.*", "*.tests", "tests"]
4442

45-
[tool.setuptools.dynamic]
46-
version = {attr = "ephyspy.__version__.__version__"}
47-
48-
[tool.pytest]
43+
[tool.pytest.ini_options]
4944
pep8maxlinelength = 88
5045
markers = [
5146
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
5247
]
5348

5449
[tool.isort]
5550
profile = "black"
56-
57-
[dependency-groups]
58-
dev = [
59-
"black",
60-
"ipython>=8.12.3",
61-
"isort",
62-
"jupyter>=1.1.1",
63-
"jupyter-black>=0.4.0",
64-
"pytest>=8.3.5",
65-
"pytest-cov>=6.0.0",
66-
"seaborn>=0.13.2",
67-
]

0 commit comments

Comments
 (0)