Skip to content

Commit

Permalink
Merge pull request #1 from gsd-authors/hatch
Browse files Browse the repository at this point in the history
Switch hatch
  • Loading branch information
krzysztofrusek authored Sep 14, 2023
2 parents 5d776a3 + 5b332ca commit 5d0d3ae
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 21 deletions.
41 changes: 27 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
[tool.poetry]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "ref_gsd"
version = "0.0.2"
dynamic = ["version"]
description = "Reference implementation of generalised score distribution in python"
authors = ["Krzysztof Rusek <krusek@agh.edu.pl>"]
license = "Apache License 2.0"
authors = [{ name = "Krzysztof Rusek", email = "krussek@gmail.com" }]
license = {file = "LICENSE"}
readme = "README.md"

keywords = ["jax", "distribution", "QoE", "test"]
Expand All @@ -20,17 +24,26 @@ classifiers = [
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
]
requires-python = ">=3.9"
dependencies=["jax>=0.4.6"]

packages=[{include="gsd", from="src"}]
[project.urls]
Homepage = "https://github.com/krzysztofrusek/queuinx"

[tool.poetry.dependencies]
python = "^3.9"
jax = "^0.4.6"
[tool.hatch.version]
path = "src/gsd/__init__.py"

[tool.poetry.group.dev.dependencies]
pytest = "^7.1.3"
jaxlib = "^0.4.6"
[tool.hatch.build]
sources = ["src"]

[tool.hatch.build.targets]
include = [
"/src/*",
]

[tool.hatch.envs.default]
dependencies=["pytest","jaxlib>=0.4.6"]

[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
11 changes: 4 additions & 7 deletions src/gsd/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
from gsd.gsd import (
log_prob,
sample,
mean,
variance
)
from gsd.ref_prob import gsd_prob
__version__ = '0.0.3'

from gsd.gsd import (log_prob, sample, mean, variance)
from gsd.ref_prob import gsd_prob

0 comments on commit 5d0d3ae

Please sign in to comment.