Skip to content

Commit

Permalink
Added DOI links (#12)
Browse files Browse the repository at this point in the history
* Added DOI links

* Added automatic versioning
  • Loading branch information
nukularrr committed Jul 15, 2023
1 parent feaf5b6 commit b99cb06
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,6 @@ dmypy.json
.pyre/

.DS_store

# setuptools_scm
src/equine/_version.py
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
![python_coverage](https://img.shields.io/badge/Coverage-97%25-green)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Tested with Hypothesis](https://img.shields.io/badge/hypothesis-tested-brightgreen.svg)](https://hypothesis.readthedocs.io/)
[![DOI](https://zenodo.org/badge/653796804.svg)](https://zenodo.org/badge/latestdoi/653796804)


## Usage
Deep neural networks (DNNs) for supervised labeling problems are known to
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
![python_coverage](https://img.shields.io/badge/Coverage-97%25-green)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Tested with Hypothesis](https://img.shields.io/badge/hypothesis-tested-brightgreen.svg)](https://hypothesis.readthedocs.io/)
[![DOI](https://zenodo.org/badge/653796804.svg)](https://zenodo.org/badge/latestdoi/653796804)

## Usage
Deep neural networks (DNNs) for supervised labeling problems are known to
Expand Down
11 changes: 8 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=61.0"]
requires = ["setuptools>=61.0","setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[project]
Expand All @@ -12,6 +12,10 @@ authors = [
{ name = "Jensen Dempsey" },
{ name = "Harry Li" },
]
maintainers = [
{ name = "Allan Wollaber"},
{ name = "Steven Jorgensen"},
]
description = "EQUINE^2: Establishing Quantified Uncertainty for Neural Networks"
readme = "README.md"
requires-python = ">=3.9"
Expand Down Expand Up @@ -58,5 +62,6 @@ docs = [
"Bug Tracker" = "https://github.com/mit-ll-responsible-ai/equine/issues"
"Source" = "https://github.com/mit-ll-responsible-ai/equine"

[tool.setuptools.dynamic]
version = {attr = "equine.__version__"}
[tool.setuptools_scm]
write_to = "src/equine/_version.py"
#version_scheme = "no-guess-dev"
10 changes: 9 additions & 1 deletion src/equine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from .equine_gp import EquineGP
from .equine_protonet import EquineProtonet, CovType

from typing import TYPE_CHECKING

from .utils import (
brier_score,
brier_skill_score,
Expand All @@ -17,7 +19,13 @@
generate_model_summary,
)

__version__ = "0.1.1rc4"
if not TYPE_CHECKING:
try:
from ._version import version as __version__
except ImportError:
__version__ = "unknown version"
else: # pragma: no cover
__version__: str

__all__ = [
"Equine",
Expand Down

0 comments on commit b99cb06

Please sign in to comment.