Skip to content

Commit

Permalink
Switch to pyproject.toml (#15)
Browse files Browse the repository at this point in the history
* switch to pyproject.toml
* CODEOWNERS and history ignore
  • Loading branch information
JoschD authored Oct 28, 2024
1 parent 8c7cd3a commit 602a831
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 95 deletions.
7 changes: 7 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

# GLOBAL CODEOWNERS ---
# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence,
# they will be requested for review when someone opens a pull request.
* @pylhc/approved-reviewers
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ Temporary Items
# VSCode
.vscode
.vscode/
.history/

# Neovim
.nvimlog
Expand Down
77 changes: 77 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
[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, < 2.0; python_version < '3.10'", # first pytables compatible with numpy 2 is 3.10 but does not support python 3.9
"numpy >= 1.19; python_version >= '3.10'", # otherwise we can use numpy 2 as on python 3.10 there is a pytables which is ok with it"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",
"tables >= 3.9", # TODO: require 3.10.1 minimum when it's out and we drop python 3.9 support
]
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"
11 changes: 0 additions & 11 deletions setup.cfg

This file was deleted.

84 changes: 0 additions & 84 deletions setup.py

This file was deleted.

0 comments on commit 602a831

Please sign in to comment.