Skip to content

Commit

Permalink
add hatch build
Browse files Browse the repository at this point in the history
  • Loading branch information
timonmerk committed Apr 18, 2024
1 parent c1f91a1 commit ffb5516
Showing 1 changed file with 11 additions and 31 deletions.
42 changes: 11 additions & 31 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
[build-system]
requires = ["setuptools>=61.2", "wheel"]
#build-backend = "flit_core.buildapi"
#requires = ["flit_core >=3.2,<4"]
build-backend = "hatchling.build"
requires = ["hatchling"]

[project]
name = "py_neuromodulation"
version = "0.0.3"
version = "0.0.4"
authors = [{ name = "Timon Merk", email = "[email protected]" }]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: MIT License ",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
]
Expand Down Expand Up @@ -58,6 +57,7 @@ dependencies = [
"black>=24.2.0",
"pytest>=8.0.2",
"wget",
"hatch>=1.9.4",
]

[project.optional-dependencies]
Expand All @@ -68,35 +68,15 @@ bugtracker = "https://github.com/neuromodulation/py_neuromodulation/issues"
repository = "https://github.com/neuromodulation/py_neuromodulation"

[tool.black]
exclude = '''
/(
__pycache__
)/
'''
include = '''
(
/src/
# | /tests
)
'''
line-length = 80
target-version = ['py310']

[tool.hatch.build.targets.sdist]
exclude = ["/.github", "/docs"]

[tool.setuptools.packages.find]
[tool.hatch.build.targets.wheel]
packages = ["py_neuromodulation"]
exclude = [
"py_neuromodulation.ConnectivityDecoding",
"py_neuromodulation.ConnectivityDecoding.connectome_folder",
"py_neuromodulation.data.derivatives.*",
"py_neuromodulation/data/derivatives",
"py_neuromodulation/ConnectivityDecoding/connectome_folder",
]


# [tool.flit.module]
# name = "py_neuromodulation"
#
# [tool.flit.sdist]
# exclude = [
# "py_neuromodulation.ConnectivityDecoding",
# "py_neuromodulation.ConnectivityDecoding.connectome_folder",
# "py_neuromodulation.data.derivatives.*",
# ]

0 comments on commit ffb5516

Please sign in to comment.