A language-agnostic dependency manager using Git.
Project description
Overview
GitMan is a language-agnostic dependency manager using Git. It aims to serve as a submodules replacement and provides advanced options for managing versions of nested Git repositories.
Setup
Requirements
- Python 3.7+
- Git 2.8+ (with stored credentials)
Installation
Install this tool globally with pipx (or pip):
$ pipx install gitman
or add it to your Poetry project:
$ poetry add gitman
Configuration
Generate a sample config file:
$ gitman init
or manually create one (gitman.yml or .gitman.yml) in the root of your working tree:
location: vendor/gitman
sources:
- repo: https://github.com/kstenerud/iOS-Universal-Framework
name: framework
rev: Mk5-end-of-life
- repo: https://github.com/jonreid/XcodeCoverage
name: coverage
links:
- target: Tools/XcodeCoverage
- repo: https://github.com/dxa4481/truffleHog
name: trufflehog
rev: master
scripts:
- chmod a+x truffleHog/truffleHog.py
- repo: https://github.com/FortAwesome/Font-Awesome
name: fontawesome
rev: master
sparse_paths:
- "webfonts/*"
- repo: https://github.com/google/material-design-icons.git
name: material-design-icons
rev: master
groups:
- name: code
members:
- framework
- trufflehog
- name: resources
members:
- fontawesome
- material-design-icons
default_group: code
Ignore the dependency storage location:
$ echo vendor/gitman >> .gitignore
Usage
See the available commands:
$ gitman --help
Updating Dependencies
Get the latest versions of all dependencies:
$ gitman update
which will essentially:
- Create a working tree at
<root>/<location>/<name> - Fetch from
repoand checkout the specifiedrev - Symbolically link each
<location>/<name>from<root>/<link>(if specified) - Repeat for all nested working trees containing a config file
- Record the actual commit SHAs that were checked out (with
--lockoption) - Run optional post-install scripts for each dependency
where rev can be:
- all or part of a commit SHA:
123def - a tag:
v1.0 - a branch:
main - a
rev-parsedate:'main@{2015-06-18 10:30:59}'
Alternatively, get the latest versions of specific dependencies:
$ gitman update framework
or named groups:
$ gitman update resources
Restoring Previous Versions
Display the versions that are currently installed:
$ gitman list
Reinstall these specific versions at a later time:
$ gitman install
Deleting Dependencies
Remove all installed dependencies:
$ gitman uninstall
Resources
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gitman-3.2a1.tar.gz.
File metadata
- Download URL: gitman-3.2a1.tar.gz
- Upload date:
- Size: 31.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.2 Darwin/20.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5dc26ef2dc01541eaa430e4868e6a0201f33a5b941df0f478cd762607c52e9d9
|
|
| MD5 |
9ecab8a6a1683fbcfcc48f1ffc765542
|
|
| BLAKE2b-256 |
598ee408548f9b8023084d3a468594036dadb09bc2ac41be072e53262d0e1d9b
|
File details
Details for the file gitman-3.2a1-py3-none-any.whl.
File metadata
- Download URL: gitman-3.2a1-py3-none-any.whl
- Upload date:
- Size: 38.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.2 Darwin/20.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d50ac5109a3e0d142046dfd1a72624ba804abb9740b19d3993fb8b5ba0afcc9
|
|
| MD5 |
4a4f51de228aa74d161e9b9fcf65efd4
|
|
| BLAKE2b-256 |
eec2728d3eeaf513b97b576be1196901ea2bbf8fd671b7d54e8410df47c65d3c
|