Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @kraken-tech/laboratory-maintainers @kraken-tech/open-source-maintainers
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
35 changes: 35 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: tests

on:
pull_request:
push:
branches: [master]

# Only allow one instance of this workflow for each PR.
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true

jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: |
3.9
3.10
3.11
3.12
3.13
3.14
allow-prereleases: true
cache-dependency-path: |
pyproject.toml
- run: pip install tox tox-uv
- run: tox run-parallel --parallel-no-spinner
env:
FORCE_COLOR: "1"
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion LICENCE
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Copyright (c) 2016 Joe Alcorn
Copyright (c) 2016, Joe Alcorn
Copyright (c) 2025, Kraken Technologies Limited

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
53 changes: 53 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Project
# -------

[project]
name = "laboratory"
version = "1.0.2"
authors = [
{name = "Joe Alcorn"},
]
description = "Sure-footed refactoring achieved through experimenting"
license = "MIT"
license-files = ["LICENSE"]
readme = "README.rst"
requires-python = ">=3.9"
dependencies = []
classifiers = [ # pragma: alphabetize
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Typing :: Typed",
]

[project.urls]
Source = "https://github.com/kraken-tech/laboratory"
Changelog = "https://github.com/kraken-tech/laboratory/blob/main/CHANGELOG"


# Packaging
# ---------

[build-system]
requires = ["setuptools>=77.0.3"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
# This is the default but we include it to be explicit.
include-package-data = true


# Development
# -----------

[dependency-groups]
test = [
"pytest",
"mock",
]
6 changes: 0 additions & 6 deletions setup.cfg

This file was deleted.

46 changes: 0 additions & 46 deletions setup.py

This file was deleted.

2 changes: 1 addition & 1 deletion tests/test_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def test_repr():
def test_repr_with_exception():
obs = Observation("an observation")
obs.set_exception(ValueError("something is wrong"))
assert repr(obs) == """Observation(name='an observation', value=Unrecorded, exception=ValueError('something is wrong',))"""
assert repr(obs) == """Observation(name='an observation', value=Unrecorded, exception=ValueError('something is wrong'))"""


def test_functions_executed_in_random_order():
Expand Down
10 changes: 8 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
[tox]
envlist = py26,py27,py30,py31,py33,py34
envlist = py3{9,10,11,12,13,14}

[testenv]
commands=python setup.py test
# Install wheels instead of source distributions for faster execution.
package = wheel
# Share the build environment between tox environments.
wheel_build_env = .pkg

dependency_groups = test
commands = python -m pytest {posargs:tests}