-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pandoc 2.14, prettier 2.3.1, myst-parser 0.15.0 executablebooks/MyST-Parser#388 (comment) pandoc --from rst --to gfm README.rst --markdown-headings=atx | \ sed s/"<"/"\("/g | sed s/">"/"\)"/g | \ sed s/"- "/"- "/g > tmp; mv tmp README.md prettier --parser=markdown -w README.md Inside of docs/index.md: ```{include} ../README.md ``` See also: executablebooks/MyST-Parser#388 (comment)
- Loading branch information
Showing
4 changed files
with
83 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
`libvcs` - abstraction layer for vcs, powers | ||
[vcspull](https://www.github.com/vcs-python/vcspull/). | ||
|
||
[![Python Package](https://img.shields.io/pypi/v/libvcs.svg)](http://badge.fury.io/py/libvcs) | ||
[![Docs](https://github.com/vcs-python/libvcs/workflows/Publish%20Docs/badge.svg)](https://github.com/vcs-python/libvcs/actions?query=workflow%3A%22Publish+Docs%22) | ||
[![Build Status](https://github.com/vcs-python/libvcs/workflows/tests/badge.svg)](https://github.com/vcs-python/libvcs/actions?query=workflow%3A%22tests%22) | ||
[![Code Coverage](https://codecov.io/gh/vcs-python/libvcs/branch/master/graph/badge.svg)](https://codecov.io/gh/vcs-python/libvcs) | ||
![License](https://img.shields.io/github/license/vcs-python/libvcs.svg) | ||
|
||
# Setup | ||
|
||
```sh | ||
$ pip install libvcs | ||
``` | ||
|
||
Open up python: | ||
|
||
```sh | ||
$ python | ||
|
||
# or for nice autocomplete and syntax highlighting | ||
$ pip install ptpython | ||
$ ptpython | ||
``` | ||
|
||
# Usage | ||
|
||
Create a | ||
[Repo](https://libvcs.git-pull.com/api.html#creating-a-repo-object) | ||
object of the project to inspect / checkout / update: | ||
|
||
```python | ||
>>> from libvcs.shortcuts import create_repo_from_pip_url, create_repo | ||
|
||
# repo is an object representation of a vcs repository. | ||
>>> r = create_repo(url='https://www.github.com/vcs-python/libtmux', | ||
... vcs='git', | ||
... repo_dir='/tmp/libtmux') | ||
|
||
# or via pip-style URL | ||
>>> r = create_repo_from_pip_url( | ||
... pip_url='git+https://www.github.com/vcs-python/libtmux', | ||
... repo_dir='/tmp/libtmux') | ||
``` | ||
|
||
Update / clone repo: | ||
|
||
```python | ||
# it may or may not be checked out/cloned on the system yet | ||
>>> r.update_repo() | ||
``` | ||
|
||
Get revision: | ||
|
||
```python | ||
>>> r.get_revision() | ||
u'5c227e6ab4aab44bf097da2e088b0ff947370ab8' | ||
``` | ||
|
||
# Donations | ||
|
||
Your donations fund development of new features, testing and support. | ||
Your money will go directly to maintenance and development of the | ||
project. If you are an individual, feel free to give whatever feels | ||
right for the value you get out of the project. | ||
|
||
See donation options at <https://www.git-pull.com/support.html>. | ||
|
||
# More information | ||
|
||
- Python support: Python 2.7, >= 3.4, pypy | ||
- VCS supported: git(1), svn(1), hg(1) | ||
- Source: <https://github.com/vcs-python/libvcs> | ||
- Docs: <https://libvcs.git-pull.com> | ||
- Changelog: <https://libvcs.git-pull.com/history.html> | ||
- API: <https://libvcs.git-pull.com/api.html> | ||
- Issues: <https://github.com/vcs-python/libvcs/issues> | ||
- Test Coverage: <https://codecov.io/gh/vcs-python/libvcs> | ||
- pypi: <https://pypi.python.org/pypi/libvcs> | ||
- Open Hub: <https://www.openhub.net/p/libvcs> | ||
- License: [MIT](https://opensource.org/licenses/MIT). |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters