Skip to content

Commit

Permalink
update project build
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzennio committed Nov 28, 2023
1 parent 3530a90 commit 4f9a60e
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 25 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
python -m pip install --upgrade --pre -r requirements.txt
python -m pip install -e ./
python -m pip install --upgrade pip wheel setuptools
python -m pip install -e .
- name: List installed Python packages
run: python -m pip list
Expand Down
68 changes: 68 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[build-system]
requires = [
"hatchling>=1.13.0",
"hatch-vcs>=0.3.0",
]
build-backend = "hatchling.build"

[project]
name = "redist"
dynamic = ["version"]
description = "Package for reinterpretation of particle physics results"
readme = "README.md"
license = { text = "MIT" } # SPDX short identifier
authors = [
{ name = "Lorenz Gaertner", email = "[email protected]" },
]
maintainers = [
{ name = "Lorenz Gaertner", email = "[email protected]" },
]
requires-python = ">=3.8"

dependencies = [
"pip>=23.0",
"eoshep>=1.0.11.dev",
"dynesty==2.0.3",
"jsonschema",
"pyhf",
"requests",
"seaborn",
"numexpr",
"iminuit",
"pytest",
"jinja2",
"ipykernel",
"corner"
]

classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Physics",
]

[project.urls]
Homepage = "https://github.com/lorenzennio/redist"
Documentation = "https://github.com/lorenzennio/redist"
"Issue Tracker" = "https://github.com/lorenzennio/redist/issues"

[tool.hatch.version]
source = "vcs"

[tool.hatch.version.raw-options]
local_scheme = "no-local-version"

[tool.hatch.build.targets.sdist]
# hatchling always includes:
# pyproject.toml, .gitignore, any README, any LICENSE, AUTHORS
only-include = [
"/redist",
]

[tool.hatch.build.targets.wheel]
packages = ["redist"]
13 changes: 0 additions & 13 deletions requirements.txt

This file was deleted.

9 changes: 0 additions & 9 deletions setup.py

This file was deleted.

0 comments on commit 4f9a60e

Please sign in to comment.