Skip to content

Commit

Permalink
Merge pull request #21 from mdekstrand/tweak/tpl-update
Browse files Browse the repository at this point in the history
Update Copier template
  • Loading branch information
mdekstrand authored Dec 7, 2023
2 parents 83bc421 + 4091f44 commit 0cf595e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: 0e64af4
_commit: ccc299c
_src_path: https://github.com/lenskit/lk-project-template.git
package_name: seedbank
project_descr: Common infrastructure for seeding random number generators.
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ dependencies = [
dev = [
"setuptools>=64",
"setuptools_scm>=8",
"build",
"twine",
"ruff",
"copier",
"ipython",
Expand Down
10 changes: 8 additions & 2 deletions seedbank/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,21 @@
Common infrastructure for initializing random number generators.
"""

__version__ = "0.1.3"

import logging
from importlib import import_module
import numpy as np

from seedbank._state import SeedState
from seedbank._keys import make_seed

from importlib.metadata import version, PackageNotFoundError

try:
__version__ = version("seedbank")
except PackageNotFoundError:
# package is not installed
pass

_log = logging.getLogger(__name__)
_root_state = SeedState()

Expand Down

0 comments on commit 0cf595e

Please sign in to comment.