elseware-repo-sync
elseware-repo-sync is a command-line tool for managing a multi-repository
development workspace from a workspace.yaml file.
Features
- Clone all configured repositories
- Pull repositories with fast-forward-only Git updates
- Display repository branches and working-tree status
- Install npm dependencies for selected repositories
- Run selected development commands concurrently
- Discover
workspace.yamlfrom nested workspace directories - Validate configuration before running workspace commands
- Emit configurable text or JSON diagnostics through
elseware-py
Requirements
- Python 3.11 or newer
- Git
- npm for dependency installation and the default development command
Installation
Install the latest release with pipx:
pipx install elseware-repo-sync
Confirm the installation:
elseware-repo-sync --version
Upgrade to the latest release:
pipx upgrade elseware-repo-sync
Uninstall:
pipx uninstall elseware-repo-sync
Usage
Run commands from the workspace root or any nested directory:
elseware-repo-sync clone
elseware-repo-sync install
elseware-repo-sync status
elseware-repo-sync pull
elseware-repo-sync dev
Use a different workspace or configuration file:
elseware-repo-sync --workspace /path/to/workspace status
elseware-repo-sync --config /path/to/workspace/workspace.yaml status
The tool searches the current directory and its parents for workspace.yaml.
An explicit --config path takes precedence over automatic discovery.
Logging
Normal command output and status tables use stdout. Diagnostics and errors use
stderr through the shared elseware-py logger.
elseware-repo-sync \
--log-level debug \
--log-format text \
--log-color auto \
status
Available values:
--log-level:debug,info,warning,error, orcritical--log-format:textor newline-delimitedjson--log-color:auto,always, ornever
The corresponding environment variables are:
ELSEWARE_REPO_SYNC_LOG_LEVEL
ELSEWARE_REPO_SYNC_LOG_FORMAT
ELSEWARE_REPO_SYNC_LOG_COLOR
Command-line options override environment variables. Defaults are warning,
text, and auto.
Workspace Configuration
Create workspace.yaml in the workspace root:
groups:
libraries:
- name: example-ui
path: libraries/example-ui
url: https://github.com/example/example-ui.git
branch: main
install: true
dev: false
services:
- name: example-service
path: services/example-service
url: https://github.com/example/example-service.git
branch: main
install: true
dev: true
devCommand: npm run dev
Required repository fields:
name: unique repository namepath: unique path relative to the workspaceurl: Git clone URL
Optional fields:
branch: defaults tomaininstall: defaults tofalsedev: defaults tofalsedevCommand: defaults tonpm run dev
Repository paths must remain within the workspace.
Development Setup
Clone the repository:
git clone https://github.com/elsewaretechnology/elseware-repo-sync.git
cd elseware-repo-sync
Create a virtual environment:
python3 -m venv .venv
Activate it on macOS or Linux:
source .venv/bin/activate
Activate it on Windows:
.venv\Scripts\activate
Install the package and development tools:
python -m pip install --editable ".[dev]"
When developing both workspace projects before publishing elseware-py,
install the local library first:
python -m pip install --editable ../../libs/elseware-py
python -m pip install --editable ".[dev]"
Run the development version:
elseware-repo-sync --help
python -m elseware_repo_sync --help
Run code-quality checks:
ruff check .
ruff format --check .
mypy
Run tests:
pytest --cov --cov-report=term-missing
Build Package
Remove previous files from dist/, then build the wheel and source
distribution:
python -m build
Validate the generated distributions:
twine check --strict dist/*
The build produces:
dist/elseware_repo_sync-<version>-py3-none-any.whl
dist/elseware_repo_sync-<version>.tar.gz
Publish to PyPI
Upload the validated wheel and source distribution manually:
twine upload dist/*
When using a PyPI API token:
- Username:
__token__ - Password: the complete token, including the
pypi-prefix
The PyPI account must own or maintain the elseware-repo-sync project.
Credentials must not be committed to the repository.
Release a New Version
-
Update
versioninpyproject.toml. -
Update
__version__insrc/elseware_repo_sync/__init__.pyto the same value. -
Run the quality checks and tests.
-
Remove old files from
dist/. -
Build and validate the distributions:
python -m build twine check --strict dist/*
-
Upload the release:
twine upload dist/*
-
Tag the published version:
git tag -a v1.1.0 -m "Release 1.1.0" git push origin v1.1.0
-
Upgrade and verify the installed release:
pipx upgrade elseware-repo-sync elseware-repo-sync --version
PyPI release files cannot be replaced. Increment the version before publishing a corrected release.
License
MIT License
Metadata
Release files for elseware-repo-sync 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| elseware_repo_sync-1.1.0.tar.gz | 17.1 kB | Without provenance | Details for elseware_repo_sync-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| elseware_repo_sync-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for elseware_repo_sync-1.1.0-py3-none-any.whl |
Total release size: 33.0 kB
Release files / elseware_repo_sync-1.1.0.tar.gz
| Download URL | elseware_repo_sync-1.1.0.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
834e85717e1c3643663965314d78e9d576c39ecdeed702304570a64ee139deb1
|
|
BLAKE2b-256 checksum How to use checksums |
5d829948de51758dc1d92bad3931a8b0ff7110682b1803d78dd673ef4c5e8b1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / elseware_repo_sync-1.1.0-py3-none-any.whl
| Download URL | elseware_repo_sync-1.1.0-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a7159d5cbd1fef4db8fec757b8c3ee67675ecbb1c262394b477ea6f72e365fc
|
|
BLAKE2b-256 checksum How to use checksums |
e9cfcee73640f36fef602ff42c219ffdef5a8d6fd3eaaefc632e7dbac9a921c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for elseware-repo-sync 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.