Skip to content

Commit

Permalink
docs: Convert README to markdown
Browse files Browse the repository at this point in the history
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
tony committed Jun 16, 2021
1 parent e67f316 commit 4b1be15
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 105 deletions.
81 changes: 81 additions & 0 deletions README.md
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).
101 changes: 0 additions & 101 deletions README.rst

This file was deleted.

4 changes: 1 addition & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

# libvcs - vcs abstraction layer

```{eval-rst}
.. include:: ../README.rst
:start-line: 3
```{include} ../README.md
```

## Table of contents
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
"Topic :: System :: Shells"
]
homepage = "http://github.com/vcs-python/libvcs/"
readme = "README.rst"
readme = "README.md"

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

0 comments on commit 4b1be15

Please sign in to comment.