Skip to content

Commit 4b1be15

Browse files
committed
docs: Convert README to markdown
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)
1 parent e67f316 commit 4b1be15

File tree

4 files changed

+83
-105
lines changed

4 files changed

+83
-105
lines changed

README.md

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
`libvcs` - abstraction layer for vcs, powers
2+
[vcspull](https://www.github.com/vcs-python/vcspull/).
3+
4+
[![Python Package](https://img.shields.io/pypi/v/libvcs.svg)](http://badge.fury.io/py/libvcs)
5+
[![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)
6+
[![Build Status](https://github.com/vcs-python/libvcs/workflows/tests/badge.svg)](https://github.com/vcs-python/libvcs/actions?query=workflow%3A%22tests%22)
7+
[![Code Coverage](https://codecov.io/gh/vcs-python/libvcs/branch/master/graph/badge.svg)](https://codecov.io/gh/vcs-python/libvcs)
8+
![License](https://img.shields.io/github/license/vcs-python/libvcs.svg)
9+
10+
# Setup
11+
12+
```sh
13+
$ pip install libvcs
14+
```
15+
16+
Open up python:
17+
18+
```sh
19+
$ python
20+
21+
# or for nice autocomplete and syntax highlighting
22+
$ pip install ptpython
23+
$ ptpython
24+
```
25+
26+
# Usage
27+
28+
Create a
29+
[Repo](https://libvcs.git-pull.com/api.html#creating-a-repo-object)
30+
object of the project to inspect / checkout / update:
31+
32+
```python
33+
>>> from libvcs.shortcuts import create_repo_from_pip_url, create_repo
34+
35+
# repo is an object representation of a vcs repository.
36+
>>> r = create_repo(url='https://www.github.com/vcs-python/libtmux',
37+
... vcs='git',
38+
... repo_dir='/tmp/libtmux')
39+
40+
# or via pip-style URL
41+
>>> r = create_repo_from_pip_url(
42+
... pip_url='git+https://www.github.com/vcs-python/libtmux',
43+
... repo_dir='/tmp/libtmux')
44+
```
45+
46+
Update / clone repo:
47+
48+
```python
49+
# it may or may not be checked out/cloned on the system yet
50+
>>> r.update_repo()
51+
```
52+
53+
Get revision:
54+
55+
```python
56+
>>> r.get_revision()
57+
u'5c227e6ab4aab44bf097da2e088b0ff947370ab8'
58+
```
59+
60+
# Donations
61+
62+
Your donations fund development of new features, testing and support.
63+
Your money will go directly to maintenance and development of the
64+
project. If you are an individual, feel free to give whatever feels
65+
right for the value you get out of the project.
66+
67+
See donation options at <https://www.git-pull.com/support.html>.
68+
69+
# More information
70+
71+
- Python support: Python 2.7, >= 3.4, pypy
72+
- VCS supported: git(1), svn(1), hg(1)
73+
- Source: <https://github.com/vcs-python/libvcs>
74+
- Docs: <https://libvcs.git-pull.com>
75+
- Changelog: <https://libvcs.git-pull.com/history.html>
76+
- API: <https://libvcs.git-pull.com/api.html>
77+
- Issues: <https://github.com/vcs-python/libvcs/issues>
78+
- Test Coverage: <https://codecov.io/gh/vcs-python/libvcs>
79+
- pypi: <https://pypi.python.org/pypi/libvcs>
80+
- Open Hub: <https://www.openhub.net/p/libvcs>
81+
- License: [MIT](https://opensource.org/licenses/MIT).

README.rst

-101
This file was deleted.

docs/index.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
# libvcs - vcs abstraction layer
44

5-
```{eval-rst}
6-
.. include:: ../README.rst
7-
:start-line: 3
5+
```{include} ../README.md
86
```
97

108
## Table of contents

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ classifiers = [
2626
"Topic :: System :: Shells"
2727
]
2828
homepage = "http://github.com/vcs-python/libvcs/"
29-
readme = "README.rst"
29+
readme = "README.md"
3030

3131
[tool.poetry.urls]
3232
"Bug Tracker" = "https://github.com/vcs-python/libvcs/issues"

0 commit comments

Comments
 (0)