Metadata-Version: 2.4
Name: scivetra
Version: 0.1.0a1
Summary: Deterministic, read-only inventory of local PDF files
Author: tvquynh
Project-URL: Source, https://github.com/tvquynh/scivetra
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# SciVetra bootstrap

SciVetra 0.1.0a1 provides a small, standard-library-only local PDF inventory utility.
It lists relative filenames, byte sizes, and SHA-256 digests as deterministic JSON.
It does not parse or execute PDFs, contact a network service, or upload files.

```console
scivetra --version
scivetra pdf-inventory ./my-local-fixtures
scivetra pdf-inventory ./my-local-fixtures --output inventory.json
```

Choose only a local directory you are authorized to inspect. No location is scanned
by default. Keep the selected tree stable while scanning. Symlinks and Windows
reparse points are skipped; linked directory ancestors and Windows network drives
are rejected. On POSIX, use a local filesystem, not a mounted network filesystem.
Limits: 100,000 filesystem entries, 1 GB per PDF and 10 GB total PDF bytes.
Unchanged trees produce the same filename-sorted JSON. Errors exit with status 2;
no incomplete JSON is emitted. Output files must be new `.json` files; existing
files are never overwritten. This utility is not a sandbox against adversarial
concurrent filesystem changes.

This independent bootstrap does not implement SLR, RAG, AI, Crossref integration,
PDF downloading, or the future SciVetra research framework. Framework architecture
and subsequent implementation remain with the primary implementation engineer.
No software license has been selected or asserted for this bootstrap.

## Development

```console
python -m pip install -e .
python -m unittest discover -s tests -v
python -m pip install build twine
python -m build
python -m twine check dist/*
```

## One-time initial publication

The manual `publish.yml` workflow accepts exactly `scivetra==0.1.0a1` as its
confirmation and runs only on `main`. Tests, wheel/sdist build, metadata validation,
and a fresh wheel CLI smoke test must pass before a separate OIDC publishing job.
Configure the GitHub `pypi` environment with required reviewer `tvquynh` and only
`main` allowed to deploy. PyPI's pending GitHub publisher must match owner
`tvquynh`, repository `scivetra`, workflow `publish.yml`, environment `pypi`.
Use no API token. Do not rerun an uncertain upload: check production PyPI and
Actions first. A pending publisher does not reserve the name.

First run the workflow with Publish unchecked (checks only). After inspecting the
successful checks, run once with Publish checked and the exact confirmation, then
approve the protected pypi deployment. A separate clean environment verifies the
production installation after upload. If upload succeeds but verification fails,
do not publish again; investigate the existing production release.
