Skip to content

ENH: Added utility functions to create frozen datasets - #42

Merged
jotelha merged 8 commits into
jic-dtool:masterfrom
pastewka:25_create_frozen_datasets
Jun 14, 2026
Merged

jotelha merged 8 commits into
jic-dtool:masterfrom
pastewka:25_create_frozen_datasets

Conversation

@pastewka

@pastewka pastewka commented Dec 7, 2025 •

Copy link
Copy Markdown
Contributor

This PR implements:

  • freeze_with_manifest method that does not generate the manifest. It is used in dserver to write manifests for uploads. Manifest hashes must there be computed by the client to avoid (expensive) recomputation in the server.

  • flit migration (a simple no hassles modern build system for pure Python code)

@pastewka
pastewka marked this pull request as draft December 7, 2025 21:38
@pastewka
pastewka marked this pull request as ready for review December 8, 2025 21:29
@jotelha
jotelha merged commit 567079c into jic-dtool:master Jun 14, 2026
6 checks passed
jotelha added a commit that referenced this pull request Jun 16, 2026
Re-applies the PR #43 modernization on top of the current master, which
has since adopted the flit_scm build system (PR #42). Keeps flit; layers
on the source/tooling cleanups that master does not yet have.

Bugs:
- write_config_value_to_file set 0o700 permissions despite documenting
  0o600; now sets 0o600 via stat constants
- migrate deprecated datetime.utcnow()/utcfromtimestamp() (including the
  new freeze_with_manifest code) to timezone-aware equivalents;
  utils.timestamp() treats naive datetimes as UTC and accepts aware ones

Removals:
- Python 2 import shims (urlparse, importlib_metadata fallbacks)
- redundant requirements.txt (tox.ini no longer references it)

Tooling:
- replace flake8 with ruff (config in pyproject, lint extra,
  .pre-commit-config.yaml); rewrite raise(Error()) -> raise Error()
  throughout, including the raise() added by PR #42
- update tox (py39..py314, lint) and the GitHub Actions workflow
  (ruff step, .[test,lint] install)
- super(Cls, self) -> super(); drop (object) base classes
- refresh README supported-versions, CHANGELOG, .gitignore; add CLAUDE.md

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants