chronocratic-datasets 0.1.0a1__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.
- chronocratic_datasets-0.1.0a1/.github/workflows/build-and-test.yml +78 -0
- chronocratic_datasets-0.1.0a1/.github/workflows/ff-merge-check.yml +46 -0
- chronocratic_datasets-0.1.0a1/.github/workflows/ff-merge-do.yml +95 -0
- chronocratic_datasets-0.1.0a1/.github/workflows/main-pre-merge-gate.yml +61 -0
- chronocratic_datasets-0.1.0a1/.github/workflows/pypi-publish.yml +30 -0
- chronocratic_datasets-0.1.0a1/.gitignore +230 -0
- chronocratic_datasets-0.1.0a1/.readthedocs.yaml +16 -0
- chronocratic_datasets-0.1.0a1/.vscode/settings.json +25 -0
- chronocratic_datasets-0.1.0a1/LICENSE +29 -0
- chronocratic_datasets-0.1.0a1/PKG-INFO +104 -0
- chronocratic_datasets-0.1.0a1/README.md +70 -0
- chronocratic_datasets-0.1.0a1/docs/_static/custom.css +30 -0
- chronocratic_datasets-0.1.0a1/docs/api/datatypes.md +25 -0
- chronocratic_datasets-0.1.0a1/docs/api/enums.md +13 -0
- chronocratic_datasets-0.1.0a1/docs/api/index.md +12 -0
- chronocratic_datasets-0.1.0a1/docs/api/modules.md +29 -0
- chronocratic_datasets-0.1.0a1/docs/api/utils.md +12 -0
- chronocratic_datasets-0.1.0a1/docs/changelog.md +30 -0
- chronocratic_datasets-0.1.0a1/docs/classification.md +124 -0
- chronocratic_datasets-0.1.0a1/docs/conf.py +50 -0
- chronocratic_datasets-0.1.0a1/docs/contributing.md +174 -0
- chronocratic_datasets-0.1.0a1/docs/forecasting.md +154 -0
- chronocratic_datasets-0.1.0a1/docs/index.md +48 -0
- chronocratic_datasets-0.1.0a1/docs/quickstart.md +69 -0
- chronocratic_datasets-0.1.0a1/pyproject.toml +76 -0
- chronocratic_datasets-0.1.0a1/ruff.toml +65 -0
- chronocratic_datasets-0.1.0a1/setup.cfg +4 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/.gitkeep +0 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/__init__.py +125 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/_version.py +24 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/datatypes/__init__.py +27 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/datatypes/_base/__init__.py +39 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/datatypes/_base/base.py +112 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/datatypes/_base/fixed.py +179 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/datatypes/_base/flexible.py +326 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/datatypes/_base/strategies.py +218 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/datatypes/electricity.py +79 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/datatypes/ett.py +67 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/datatypes/ucr.py +53 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/datatypes/uea.py +54 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/datatypes/weather.py +74 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/enums/__init__.py +23 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/enums/data.py +107 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/maps/__init__.py +8 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/maps/loader_to_dataset.py +25 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/modules/__init__.py +23 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/modules/_base/__init__.py +13 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/modules/_base/base.py +492 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/modules/_base/classification.py +247 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/modules/_base/forecasting.py +665 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/modules/electricity.py +316 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/modules/ett.py +338 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/modules/ucr.py +423 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/modules/uea.py +445 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/modules/weather.py +302 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/utils/__init__.py +46 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/utils/arff.py +55 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/utils/cache.py +188 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/utils/common.py +106 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/utils/features.py +35 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/utils/general.py +101 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/utils/scaling.py +244 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic/datasets/utils/transformations.py +62 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic_datasets.egg-info/PKG-INFO +104 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic_datasets.egg-info/SOURCES.txt +93 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic_datasets.egg-info/dependency_links.txt +1 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic_datasets.egg-info/requires.txt +11 -0
- chronocratic_datasets-0.1.0a1/src/chronocratic_datasets.egg-info/top_level.txt +1 -0
- chronocratic_datasets-0.1.0a1/tests/__init__.py +0 -0
- chronocratic_datasets-0.1.0a1/tests/conftest.py +95 -0
- chronocratic_datasets-0.1.0a1/tests/test_datatypes_fixed_length.py +89 -0
- chronocratic_datasets-0.1.0a1/tests/test_datatypes_flexible_length.py +129 -0
- chronocratic_datasets-0.1.0a1/tests/test_datatypes_strategies.py +129 -0
- chronocratic_datasets-0.1.0a1/tests/test_datatypes_weather_electricity.py +247 -0
- chronocratic_datasets-0.1.0a1/tests/test_ddp_compliance.py +397 -0
- chronocratic_datasets-0.1.0a1/tests/test_enums_mode_mapping.py +159 -0
- chronocratic_datasets-0.1.0a1/tests/test_ett_dataset.py +44 -0
- chronocratic_datasets-0.1.0a1/tests/test_fixtures.py +40 -0
- chronocratic_datasets-0.1.0a1/tests/test_modules_base_datamodule.py +794 -0
- chronocratic_datasets-0.1.0a1/tests/test_modules_classification_forecasting.py +458 -0
- chronocratic_datasets-0.1.0a1/tests/test_modules_forecasting.py +1777 -0
- chronocratic_datasets-0.1.0a1/tests/test_modules_ucr.py +353 -0
- chronocratic_datasets-0.1.0a1/tests/test_modules_uea.py +399 -0
- chronocratic_datasets-0.1.0a1/tests/test_public_api_exports.py +72 -0
- chronocratic_datasets-0.1.0a1/tests/test_ucr_dataset.py +53 -0
- chronocratic_datasets-0.1.0a1/tests/test_uea_dataset.py +66 -0
- chronocratic_datasets-0.1.0a1/tests/test_utils_arff.py +101 -0
- chronocratic_datasets-0.1.0a1/tests/test_utils_cache.py +284 -0
- chronocratic_datasets-0.1.0a1/tests/test_utils_common.py +62 -0
- chronocratic_datasets-0.1.0a1/tests/test_utils_common_separate_target.py +155 -0
- chronocratic_datasets-0.1.0a1/tests/test_utils_features.py +64 -0
- chronocratic_datasets-0.1.0a1/tests/test_utils_general_helpers.py +150 -0
- chronocratic_datasets-0.1.0a1/tests/test_utils_scaling.py +241 -0
- chronocratic_datasets-0.1.0a1/tests/test_utils_transformations.py +79 -0
- chronocratic_datasets-0.1.0a1/uv.lock +3104 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
name: Build and Test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [main, dev]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v4
|
|
12
|
+
with:
|
|
13
|
+
fetch-depth: 0
|
|
14
|
+
fetch-tags: true
|
|
15
|
+
- name: Set up Python
|
|
16
|
+
uses: actions/setup-python@v5
|
|
17
|
+
with:
|
|
18
|
+
python-version: "3.12"
|
|
19
|
+
- name: Install uv
|
|
20
|
+
run: pip install uv
|
|
21
|
+
- name: Install dependencies
|
|
22
|
+
run: uv sync --all-extras
|
|
23
|
+
- name: Run tests
|
|
24
|
+
run: uv run pytest tests/ --cov=src/chronocratic/datasets --cov-report=xml
|
|
25
|
+
|
|
26
|
+
lint:
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v4
|
|
30
|
+
with:
|
|
31
|
+
fetch-depth: 0
|
|
32
|
+
fetch-tags: true
|
|
33
|
+
- name: Set up Python
|
|
34
|
+
uses: actions/setup-python@v5
|
|
35
|
+
with:
|
|
36
|
+
python-version: "3.12"
|
|
37
|
+
- name: Install ruff
|
|
38
|
+
run: pip install ruff
|
|
39
|
+
- name: Run ruff check
|
|
40
|
+
run: ruff check src/
|
|
41
|
+
- name: Run ruff format check
|
|
42
|
+
run: ruff format --check src/ tests/
|
|
43
|
+
|
|
44
|
+
build:
|
|
45
|
+
runs-on: ubuntu-latest
|
|
46
|
+
needs: [test, lint]
|
|
47
|
+
steps:
|
|
48
|
+
- uses: actions/checkout@v4
|
|
49
|
+
with:
|
|
50
|
+
fetch-depth: 0
|
|
51
|
+
fetch-tags: true
|
|
52
|
+
- name: Set up Python
|
|
53
|
+
uses: actions/setup-python@v5
|
|
54
|
+
with:
|
|
55
|
+
python-version: "3.12"
|
|
56
|
+
- name: Install build
|
|
57
|
+
run: pip install build
|
|
58
|
+
- name: Build package
|
|
59
|
+
run: python -m build
|
|
60
|
+
- name: Validate with twine
|
|
61
|
+
run: pip install twine && twine check dist/*
|
|
62
|
+
|
|
63
|
+
docs:
|
|
64
|
+
runs-on: ubuntu-latest
|
|
65
|
+
needs: [test, lint]
|
|
66
|
+
steps:
|
|
67
|
+
- uses: actions/checkout@v4
|
|
68
|
+
with:
|
|
69
|
+
fetch-depth: 0
|
|
70
|
+
fetch-tags: true
|
|
71
|
+
- name: Set up Python
|
|
72
|
+
uses: actions/setup-python@v5
|
|
73
|
+
with:
|
|
74
|
+
python-version: "3.12"
|
|
75
|
+
- name: Install dependencies
|
|
76
|
+
run: pip install -e ".[docs]"
|
|
77
|
+
- name: Build docs
|
|
78
|
+
run: sphinx-build -b html docs/ docs/_build/
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: Check Fast-Forward
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
issue_comment:
|
|
5
|
+
types: [created]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
check-fast-forward:
|
|
9
|
+
if: ${{ contains(github.event.comment.body, '/check-fast-forward')
|
|
10
|
+
&& github.event.issue.pull_request }}
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
pull-requests: write
|
|
15
|
+
issues: write
|
|
16
|
+
steps:
|
|
17
|
+
- name: Verify target branch
|
|
18
|
+
uses: actions/github-script@v7
|
|
19
|
+
with:
|
|
20
|
+
script: |
|
|
21
|
+
const { data: pr } = await github.rest.pulls.get({
|
|
22
|
+
owner: context.repo.owner,
|
|
23
|
+
repo: context.repo.repo,
|
|
24
|
+
pull_number: context.issue.number
|
|
25
|
+
});
|
|
26
|
+
if (pr.base.ref !== 'main' || pr.head.ref !== 'dev') {
|
|
27
|
+
await github.rest.issues.createComment({
|
|
28
|
+
owner: context.repo.owner,
|
|
29
|
+
repo: context.repo.repo,
|
|
30
|
+
issue_number: context.issue.number,
|
|
31
|
+
body: `❌ \`/check-fast-forward\` only works on \`dev → main\` PRs `
|
|
32
|
+
+ `(this PR: \`${pr.head.ref} → ${pr.base.ref}\`).`
|
|
33
|
+
});
|
|
34
|
+
core.setFailed('Fast-forward check is only allowed for dev → main PRs.');
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
- name: Checkout repo
|
|
38
|
+
uses: actions/checkout@v6
|
|
39
|
+
with:
|
|
40
|
+
fetch-depth: 0
|
|
41
|
+
|
|
42
|
+
- name: Check if fast-forward is possible
|
|
43
|
+
uses: sequoia-pgp/fast-forward@v1
|
|
44
|
+
with:
|
|
45
|
+
merge: false
|
|
46
|
+
comment: always
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
name: Fast Forward Merge
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
issue_comment:
|
|
5
|
+
types: [created]
|
|
6
|
+
|
|
7
|
+
concurrency:
|
|
8
|
+
group: fast-forward-${{ github.event.issue.number }}
|
|
9
|
+
cancel-in-progress: false
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
fast-forward:
|
|
13
|
+
if: ${{ contains(github.event.comment.body, '/fast-forward')
|
|
14
|
+
&& github.event.issue.pull_request }}
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
environment: ff_merge
|
|
17
|
+
permissions:
|
|
18
|
+
contents: write
|
|
19
|
+
pull-requests: write
|
|
20
|
+
issues: write
|
|
21
|
+
steps:
|
|
22
|
+
- name: Checkout repo
|
|
23
|
+
uses: actions/checkout@v6
|
|
24
|
+
with:
|
|
25
|
+
fetch-depth: 0
|
|
26
|
+
token: ${{ secrets.FF_MERGE_TOKEN }}
|
|
27
|
+
|
|
28
|
+
- name: Configure git
|
|
29
|
+
run: |
|
|
30
|
+
git config user.name "github-actions[bot]"
|
|
31
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
32
|
+
|
|
33
|
+
- name: Verify PR and actor permissions
|
|
34
|
+
uses: actions/github-script@v7
|
|
35
|
+
with:
|
|
36
|
+
script: |
|
|
37
|
+
const { data: pr } = await github.rest.pulls.get({
|
|
38
|
+
owner: context.repo.owner,
|
|
39
|
+
repo: context.repo.repo,
|
|
40
|
+
pull_number: context.issue.number
|
|
41
|
+
});
|
|
42
|
+
if (pr.base.ref !== 'main') {
|
|
43
|
+
core.setFailed('Fast-forward is only allowed for PRs targeting main.');
|
|
44
|
+
}
|
|
45
|
+
if (pr.head.ref !== 'dev') {
|
|
46
|
+
core.setFailed('Fast-forward is only allowed for PRs from dev to main.');
|
|
47
|
+
}
|
|
48
|
+
const { data: perm } = await github.rest.repos.getCollaboratorPermissionLevel({
|
|
49
|
+
owner: context.repo.owner,
|
|
50
|
+
repo: context.repo.repo,
|
|
51
|
+
username: context.actor
|
|
52
|
+
});
|
|
53
|
+
if (!['admin', 'maintain'].includes(perm.permission)) {
|
|
54
|
+
core.setFailed(`@${context.actor} (role: ${perm.permission}) — only admin/maintainer can fast-forward.`);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
# Disabled while repo is a personal fork with no org reviewers — a
|
|
58
|
+
# solo maintainer cannot approve their own PR. Re-enable once moved
|
|
59
|
+
# to an org with a second reviewer (or branch-protection approval rule).
|
|
60
|
+
# - name: Check PR is approved
|
|
61
|
+
# uses: actions/github-script@v7
|
|
62
|
+
# with:
|
|
63
|
+
# script: |
|
|
64
|
+
# const { data: reviews } = await github.rest.pulls.listReviews({
|
|
65
|
+
# owner: context.repo.owner,
|
|
66
|
+
# repo: context.repo.repo,
|
|
67
|
+
# pull_number: context.issue.number
|
|
68
|
+
# });
|
|
69
|
+
# const approved = reviews.filter(r => r.state === 'APPROVED');
|
|
70
|
+
# if (approved.length === 0) {
|
|
71
|
+
# core.setFailed('PR must have at least one approval before fast-forward merge.');
|
|
72
|
+
# }
|
|
73
|
+
|
|
74
|
+
- name: Backup main before merge
|
|
75
|
+
run: |
|
|
76
|
+
BACKUP="main.backup.${{ github.event.issue.number }}.$(date +%Y%m%d-%H%M%S)"
|
|
77
|
+
git branch "$BACKUP" origin/main
|
|
78
|
+
git push origin "$BACKUP"
|
|
79
|
+
echo "Created backup: $BACKUP"
|
|
80
|
+
|
|
81
|
+
- name: Fast-forward merge
|
|
82
|
+
uses: sequoia-pgp/fast-forward@v1
|
|
83
|
+
with:
|
|
84
|
+
merge: true
|
|
85
|
+
comment: always
|
|
86
|
+
github_token: ${{ secrets.FF_MERGE_TOKEN }}
|
|
87
|
+
|
|
88
|
+
- name: Clean up old backups
|
|
89
|
+
run: |
|
|
90
|
+
git fetch --prune origin
|
|
91
|
+
# Sort by the trailing YYYYMMDD-HHMMSS timestamp (4th dot field) so
|
|
92
|
+
# retention is chronological regardless of PR-number digit width.
|
|
93
|
+
git branch -r | grep 'origin/main.backup.' | sed 's| *origin/||' | \
|
|
94
|
+
sort -t. -k4 | head -n -5 | \
|
|
95
|
+
xargs -I {} git push origin --delete {} || true
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
name: Main Pre-merge Gate
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [main]
|
|
6
|
+
types: [opened, synchronize, reopened]
|
|
7
|
+
|
|
8
|
+
concurrency:
|
|
9
|
+
group: pre-merge-gate-${{ github.event.pull_request.number }}
|
|
10
|
+
cancel-in-progress: true
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
forbidden-files:
|
|
14
|
+
name: Check forbidden paths
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- name: Reject non-dev PRs
|
|
18
|
+
if: ${{ github.head_ref != 'dev' }}
|
|
19
|
+
run: |
|
|
20
|
+
echo "::error::PRs from '${{ github.head_ref }}' to main are not allowed. Only dev→main merges are permitted."
|
|
21
|
+
exit 1
|
|
22
|
+
|
|
23
|
+
- name: Checkout
|
|
24
|
+
uses: actions/checkout@v6
|
|
25
|
+
with:
|
|
26
|
+
fetch-depth: 0
|
|
27
|
+
|
|
28
|
+
- name: Scan PR for forbidden files
|
|
29
|
+
run: |
|
|
30
|
+
FORBIDDEN=(
|
|
31
|
+
".claude/"
|
|
32
|
+
".remember/"
|
|
33
|
+
".planning/"
|
|
34
|
+
"MEMORY.md"
|
|
35
|
+
"CLAUDE.md"
|
|
36
|
+
"CONTEXT.md"
|
|
37
|
+
"STATE.md"
|
|
38
|
+
"ROADMAP.md"
|
|
39
|
+
".continue-here.md"
|
|
40
|
+
"HANDOFF.json"
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
CHANGED=$(git diff --diff-filter=ACMR --name-only ${{ github.event.pull_request.base.sha }}..HEAD)
|
|
44
|
+
MATCHED=()
|
|
45
|
+
|
|
46
|
+
for path in "${FORBIDDEN[@]}"; do
|
|
47
|
+
# Anchor to a path boundary (start of path or after a '/') so e.g.
|
|
48
|
+
# CLAUDE.md does not match NOTCLAUDE.md.
|
|
49
|
+
while IFS= read -r f; do
|
|
50
|
+
[ -n "$f" ] && MATCHED+=("$f")
|
|
51
|
+
done < <(printf '%s\n' "$CHANGED" | grep -E "(^|/)$path" || true)
|
|
52
|
+
done
|
|
53
|
+
|
|
54
|
+
if [ "${#MATCHED[@]}" -gt 0 ]; then
|
|
55
|
+
echo "::error::Forbidden files detected:"
|
|
56
|
+
for f in "${MATCHED[@]}"; do
|
|
57
|
+
echo "::error:: - $f"
|
|
58
|
+
done
|
|
59
|
+
exit 1
|
|
60
|
+
fi
|
|
61
|
+
echo "All clear."
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
pypi-publish:
|
|
9
|
+
name: Upload release to PyPI
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
environment:
|
|
12
|
+
name: pypi
|
|
13
|
+
url: https://pypi.org/p/chronocratic-datasets
|
|
14
|
+
permissions:
|
|
15
|
+
id-token: write
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
fetch-tags: true
|
|
21
|
+
- name: Set up Python
|
|
22
|
+
uses: actions/setup-python@v5
|
|
23
|
+
with:
|
|
24
|
+
python-version: "3.12"
|
|
25
|
+
- name: Install build
|
|
26
|
+
run: pip install build
|
|
27
|
+
- name: Build package
|
|
28
|
+
run: python -m build
|
|
29
|
+
- name: Publish to PyPI
|
|
30
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
# Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
# poetry.lock
|
|
109
|
+
# poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
# pdm.lock
|
|
116
|
+
# pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
# pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# Redis
|
|
135
|
+
*.rdb
|
|
136
|
+
*.aof
|
|
137
|
+
*.pid
|
|
138
|
+
|
|
139
|
+
# RabbitMQ
|
|
140
|
+
mnesia/
|
|
141
|
+
rabbitmq/
|
|
142
|
+
rabbitmq-data/
|
|
143
|
+
|
|
144
|
+
# ActiveMQ
|
|
145
|
+
activemq-data/
|
|
146
|
+
|
|
147
|
+
# SageMath parsed files
|
|
148
|
+
*.sage.py
|
|
149
|
+
|
|
150
|
+
# Environments
|
|
151
|
+
.env
|
|
152
|
+
.envrc
|
|
153
|
+
.venv
|
|
154
|
+
env/
|
|
155
|
+
venv/
|
|
156
|
+
ENV/
|
|
157
|
+
env.bak/
|
|
158
|
+
venv.bak/
|
|
159
|
+
|
|
160
|
+
# Spyder project settings
|
|
161
|
+
.spyderproject
|
|
162
|
+
.spyproject
|
|
163
|
+
|
|
164
|
+
# Rope project settings
|
|
165
|
+
.ropeproject
|
|
166
|
+
|
|
167
|
+
# mkdocs documentation
|
|
168
|
+
/site
|
|
169
|
+
|
|
170
|
+
# mypy
|
|
171
|
+
.mypy_cache/
|
|
172
|
+
.dmypy.json
|
|
173
|
+
dmypy.json
|
|
174
|
+
|
|
175
|
+
# Pyre type checker
|
|
176
|
+
.pyre/
|
|
177
|
+
|
|
178
|
+
# pytype static type analyzer
|
|
179
|
+
.pytype/
|
|
180
|
+
|
|
181
|
+
# Cython debug symbols
|
|
182
|
+
cython_debug/
|
|
183
|
+
|
|
184
|
+
# PyCharm
|
|
185
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
186
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
188
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
189
|
+
# .idea/
|
|
190
|
+
|
|
191
|
+
# Abstra
|
|
192
|
+
# Abstra is an AI-powered process automation framework.
|
|
193
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
194
|
+
# Learn more at https://abstra.io/docs
|
|
195
|
+
.abstra/
|
|
196
|
+
|
|
197
|
+
# Visual Studio Code
|
|
198
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
199
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
200
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
201
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
202
|
+
# .vscode/
|
|
203
|
+
# Temporary file for partial code execution
|
|
204
|
+
tempCodeRunnerFile.py
|
|
205
|
+
|
|
206
|
+
# Ruff stuff:
|
|
207
|
+
.ruff_cache/
|
|
208
|
+
|
|
209
|
+
# PyPI configuration file
|
|
210
|
+
.pypirc
|
|
211
|
+
|
|
212
|
+
# Marimo
|
|
213
|
+
marimo/_static/
|
|
214
|
+
marimo/_lsp/
|
|
215
|
+
__marimo__/
|
|
216
|
+
|
|
217
|
+
# Streamlit
|
|
218
|
+
.streamlit/secrets.toml
|
|
219
|
+
|
|
220
|
+
# _sources
|
|
221
|
+
_sources/
|
|
222
|
+
|
|
223
|
+
# planning
|
|
224
|
+
.planning/
|
|
225
|
+
|
|
226
|
+
# setuptools-scm generated version file
|
|
227
|
+
src/chronocratic/datasets/_version.py
|
|
228
|
+
|
|
229
|
+
# serena
|
|
230
|
+
.serena/
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"python.analysis.extraPaths": [
|
|
3
|
+
"./src"
|
|
4
|
+
],
|
|
5
|
+
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
|
|
6
|
+
"files.autoSave": "onFocusChange",
|
|
7
|
+
"python.languageServer": "None",
|
|
8
|
+
"ty.disableLanguageServices": false,
|
|
9
|
+
"editor.defaultFormatter": "charliermarsh.ruff",
|
|
10
|
+
"editor.formatOnSave": true,
|
|
11
|
+
"notebook.defaultFormatter": "charliermarsh.ruff",
|
|
12
|
+
"notebook.formatOnSave.enabled": true,
|
|
13
|
+
"ruff.nativeServer": "on",
|
|
14
|
+
"ruff.configuration": "../ruff.toml",
|
|
15
|
+
"ruff.path": ["${workspaceFolder}/.venv/bin/ruff"],
|
|
16
|
+
"[python]": {
|
|
17
|
+
"editor.codeActionsOnSave": {
|
|
18
|
+
"source.organizeImports.ruff": "explicit",
|
|
19
|
+
"source.fixAll.ruff": "explicit"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files.exclude": {
|
|
23
|
+
"**/.git": false,
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026-Present, The Chronocratic Developers
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
17
|
+
contributors may be used to endorse or promote products derived from
|
|
18
|
+
this software without specific prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
24
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
25
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
26
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
27
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
28
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|