Skip to content

Commit 63e3bfd

Browse files
committed
add description for pypi
1 parent 97acc98 commit 63e3bfd

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

Diff for: README.md

+32
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,35 @@ that you can put anywhere in your path.
1414
* [repo Manifest Format](./docs/manifest-format.md)
1515
* [repo Hooks](./docs/repo-hooks.md)
1616
* [Submitting patches](./SUBMITTING_PATCHES.md)
17+
18+
19+
# About pypi version
20+
21+
Version in pypi is not the official version from google, but a friendly fork, with support for normal setup.py style installation
22+
23+
- local imports replaced by module imports, "repo" being the name of the python module
24+
- subcommand discovery uses the python entrypoint system
25+
- support for custom repo subcommand in an separate python package
26+
27+
## Installation
28+
29+
```
30+
pip3 install --user gitrepo
31+
```
32+
33+
## Custom commands
34+
35+
- create a python module starting from any example in the repo/subcmds directory
36+
37+
- add an entrypoint to your setup.py module:
38+
39+
```python
40+
setup(...,
41+
install_requires=["gitrepo"],
42+
entry_points={
43+
'repo.subcmds': [
44+
'my_custom_cmd = mycustomrepo.my_custom_cmd:CustomCmd',
45+
}
46+
)
47+
```
48+
Then you can ask your developers to install your own `mycustomrepo` package instead of the `gitrepo` package.

Diff for: setup.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
from setuptools import setup, find_packages
2+
with open("README.md", "r") as fh:
3+
long_description = fh.read()
4+
25
setup(
36
name="gitrepo",
4-
version="1.13.2",
7+
version="1.13.2-1",
58
packages=find_packages(),
69

710
package_data={
@@ -14,6 +17,8 @@
1417
author="git-repo contributors",
1518
author_email="[email protected]",
1619
description="Repo helps manage many Git repositories, does the uploads to revision control systems, and automates parts of the development workflow.",
20+
long_description=long_description,
21+
long_description_content_type="text/markdown",
1722
license="Apache",
1823
keywords="git repo android workflow",
1924
url="https://gerrit.googlesource.com/git-repo/",

0 commit comments

Comments
 (0)