murineshiftwork 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
id-token: write
|
|
11
|
+
|
|
12
|
+
env:
|
|
13
|
+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
release:
|
|
17
|
+
name: Bump, build, publish
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
if: "!startsWith(github.event.head_commit.message, 'bump:')"
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v6
|
|
22
|
+
with:
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
25
|
+
|
|
26
|
+
- name: Configure git identity
|
|
27
|
+
run: |
|
|
28
|
+
git config user.name "github-actions[bot]"
|
|
29
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
30
|
+
|
|
31
|
+
- uses: actions/setup-python@v5
|
|
32
|
+
with:
|
|
33
|
+
python-version: "3.12"
|
|
34
|
+
|
|
35
|
+
- name: Install tools
|
|
36
|
+
run: pip install commitizen hatchling hatch-vcs
|
|
37
|
+
|
|
38
|
+
- name: Bump version
|
|
39
|
+
id: bump
|
|
40
|
+
run: |
|
|
41
|
+
cz bump --yes || EXIT=$?
|
|
42
|
+
if [ "${EXIT:-0}" -eq 21 ]; then
|
|
43
|
+
echo "No bumpable commits since last tag — skipping."
|
|
44
|
+
echo "skipped=true" >> "$GITHUB_OUTPUT"
|
|
45
|
+
exit 0
|
|
46
|
+
fi
|
|
47
|
+
[ "${EXIT:-0}" -eq 0 ] || exit $EXIT
|
|
48
|
+
VERSION=$(cat VERSION)
|
|
49
|
+
git push origin HEAD:main
|
|
50
|
+
git push origin "v${VERSION}"
|
|
51
|
+
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
|
|
52
|
+
|
|
53
|
+
- name: Build
|
|
54
|
+
if: steps.bump.outputs.skipped != 'true'
|
|
55
|
+
run: python -m hatchling build
|
|
56
|
+
|
|
57
|
+
- name: Create GitHub release
|
|
58
|
+
if: steps.bump.outputs.skipped != 'true'
|
|
59
|
+
uses: softprops/action-gh-release@v3
|
|
60
|
+
with:
|
|
61
|
+
tag_name: "v${{ steps.bump.outputs.version }}"
|
|
62
|
+
files: dist/*
|
|
63
|
+
generate_release_notes: true
|
|
64
|
+
|
|
65
|
+
- name: Publish to PyPI
|
|
66
|
+
if: steps.bump.outputs.skipped != 'true'
|
|
67
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright (c) 2024-present Lars B. Rollik. All rights reserved.
|
|
2
|
+
|
|
3
|
+
This package reserves the name "murineshiftwork" on PyPI.
|
|
4
|
+
All rights reserved. No use, reproduction, or distribution is permitted
|
|
5
|
+
without explicit written permission from the copyright holder.
|
|
6
|
+
|
|
7
|
+
For enquiries contact: lars@rollik.me
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: murineshiftwork
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: MurineShiftWork — behavioural neuroscience experiment control suite
|
|
5
|
+
Project-URL: Homepage, https://github.com/MurineShiftWork/murineshiftwork
|
|
6
|
+
Project-URL: Issue Tracker, https://github.com/MurineShiftWork/murineshiftwork/issues
|
|
7
|
+
Author-email: "Lars B. Rollik" <lars@rollik.me>
|
|
8
|
+
License: Copyright (c) 2024-present Lars B. Rollik. All rights reserved.
|
|
9
|
+
|
|
10
|
+
This package reserves the name "murineshiftwork" on PyPI.
|
|
11
|
+
All rights reserved. No use, reproduction, or distribution is permitted
|
|
12
|
+
without explicit written permission from the copyright holder.
|
|
13
|
+
|
|
14
|
+
For enquiries contact: lars@rollik.me
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Python: >=3.10
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
|
|
19
|
+
# murineshiftwork
|
|
20
|
+
|
|
21
|
+
Behavioural neuroscience experiment control suite. See [MurineShiftWork/murineshiftwork](https://github.com/MurineShiftWork/murineshiftwork).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.1.1
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# file generated by vcs-versioning
|
|
2
|
+
# don't change, don't track in version control
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
__all__ = [
|
|
6
|
+
"__version__",
|
|
7
|
+
"__version_tuple__",
|
|
8
|
+
"version",
|
|
9
|
+
"version_tuple",
|
|
10
|
+
"__commit_id__",
|
|
11
|
+
"commit_id",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
version: str
|
|
15
|
+
__version__: str
|
|
16
|
+
__version_tuple__: tuple[int | str, ...]
|
|
17
|
+
version_tuple: tuple[int | str, ...]
|
|
18
|
+
commit_id: str | None
|
|
19
|
+
__commit_id__: str | None
|
|
20
|
+
|
|
21
|
+
__version__ = version = '0.1.1'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 1, 1)
|
|
23
|
+
|
|
24
|
+
__commit_id__ = commit_id = None
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling", "hatch-vcs"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "murineshiftwork"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "MurineShiftWork — behavioural neuroscience experiment control suite"
|
|
9
|
+
readme = { file = "README.md", content-type = "text/markdown" }
|
|
10
|
+
license = { file = "LICENSE" }
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "Lars B. Rollik", email = "lars@rollik.me" },
|
|
13
|
+
]
|
|
14
|
+
requires-python = ">=3.10"
|
|
15
|
+
dependencies = []
|
|
16
|
+
|
|
17
|
+
[project.urls]
|
|
18
|
+
Homepage = "https://github.com/MurineShiftWork/murineshiftwork"
|
|
19
|
+
"Issue Tracker" = "https://github.com/MurineShiftWork/murineshiftwork/issues"
|
|
20
|
+
|
|
21
|
+
[tool.hatch.version]
|
|
22
|
+
source = "vcs"
|
|
23
|
+
fallback-version = "0.1.0"
|
|
24
|
+
|
|
25
|
+
[tool.hatch.build.hooks.vcs]
|
|
26
|
+
version-file = "_version.py"
|
|
27
|
+
|
|
28
|
+
[tool.commitizen]
|
|
29
|
+
name = "cz_conventional_commits"
|
|
30
|
+
version_provider = "commitizen"
|
|
31
|
+
version = "0.1.1"
|
|
32
|
+
version_files = ["VERSION"]
|
|
33
|
+
tag_format = "v$version"
|
|
34
|
+
update_changelog_on_bump = false
|