Skip to content

Commit

Permalink
switch to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
JoschD committed Oct 28, 2024
1 parent 8c7cd3a commit 74da55f
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.version]
path = "irnl_rdt_correction/__init__.py"

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

[tool.hatch.build.targets.wheel]
packages = ["irnl_rdt_correction"]

[project]
name = "irnl_rdt_correction"
readme = "README.md"
description = "Correction script to power the nonlinear correctors in the (HL-)LHC insertion regions based on RDTs."
authors = [
{name = "OMC Team", email = "[email protected]"}, # see zenodo file / commits for details
]
license = "MIT"
dynamic = ["version"]
requires-python = ">=3.9"

keywords = [
"accelerator", "nonlinear", "correction", "lhc", "hl-lhc",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]

dependencies = [
"numpy>=1.19",
"pandas>=1.0,!=1.2", # not 1.2 because of https://github.com/pandas-dev/pandas/issues/39872
"tfs-pandas>=3.0.2",
]

[project.optional-dependencies]
test = [
"pytest>=7.0",
"pytest-cov>=2.9",
"h5py>=2.9.0",
]
doc = [
"sphinx >= 7.0",
"sphinx_rtd_theme >= 2.0",
]

all = [
"irnl_rdt_correction[test]",
"irnl_rdt_correction[doc]",
]

[project.urls]
homepage = "https://github.com/pylhc/irnl_rdt_correction"
repository = "https://github.com/pylhc/irnl_rdt_correction"
documentation = "https://pylhc.github.io/irnl_rdt_correction/"
changelog = "https://github.com/pylhc/irnl_rdt_correction/releases"

0 comments on commit 74da55f

Please sign in to comment.