pygitmirror 0.0.1__tar.gz → 0.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/PKG-INFO +55 -11
- pygitmirror-0.0.2/README.md +94 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/pyproject.toml +3 -3
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/arguments/process_arguments.py +1 -1
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror.egg-info/PKG-INFO +55 -11
- pygitmirror-0.0.1/README.md +0 -50
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/.github/workflows/python-publish.yml +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/.github/workflows/python-test.yml +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/.gitignore +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/.pylintrc +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/.vscode/settings.json +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/LICENSE +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/setup.cfg +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/__init__.py +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/__main__.py +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/arguments/__init__.py +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/arguments/arguments.py +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/arguments/check_repos.py +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/arguments/check_url.py +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/arguments/py.typed +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/arguments/read_json.py +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/py.typed +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/sync/__init__.py +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/sync/add_destination_remote.py +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/sync/clone_repo.py +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/sync/constants.py +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/sync/fetch_repo.py +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/sync/get_reference_by_name.py +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/sync/push_origin_destination.py +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/sync/py.typed +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror/sync/sync_repo.py +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror.egg-info/SOURCES.txt +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror.egg-info/dependency_links.txt +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror.egg-info/entry_points.txt +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror.egg-info/requires.txt +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/src/pygitmirror.egg-info/top_level.txt +0 -0
- {pygitmirror-0.0.1 → pygitmirror-0.0.2}/tests/test_import.py +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pygitmirror
|
|
3
|
-
Version: 0.0.
|
|
4
|
-
Summary: An executable to clone git repos from one
|
|
3
|
+
Version: 0.0.2
|
|
4
|
+
Summary: An executable to clone git repos from one git server to another.
|
|
5
5
|
Author-email: Bassem Girgis <brgirgis@gmail.com>
|
|
6
6
|
Maintainer-email: Bassem Girgis <brgirgis@gmail.com>
|
|
7
|
-
License:
|
|
7
|
+
License: MIT
|
|
8
8
|
Project-URL: Homepage, https://github.com/pygitmirror/pygitmirror
|
|
9
9
|
Project-URL: Documentation, https://github.com/pygitmirror/pygitmirror
|
|
10
10
|
Project-URL: Repository, https://github.com/pygitmirror/pygitmirror.git
|
|
11
11
|
Project-URL: Issues, https://github.com/pygitmirror/pygitmirror/issues
|
|
12
|
-
Keywords: git,clone,gitea
|
|
12
|
+
Keywords: git,clone,gitea,github,gitlab,mirror,server
|
|
13
13
|
Classifier: Development Status :: 5 - Production/Stable
|
|
14
14
|
Classifier: Environment :: Console
|
|
15
15
|
Classifier: Operating System :: Microsoft :: Windows
|
|
@@ -32,7 +32,7 @@ Requires-Dist: pytest; extra == "dev"
|
|
|
32
32
|
Requires-Dist: twine; extra == "dev"
|
|
33
33
|
Requires-Dist: pylint; extra == "dev"
|
|
34
34
|
|
|
35
|
-
#
|
|
35
|
+
# Git Mirror
|
|
36
36
|
|
|
37
37
|
[](https://pypi.org/project/pygitmirror/)
|
|
38
38
|

|
|
@@ -41,15 +41,63 @@ Requires-Dist: pylint; extra == "dev"
|
|
|
41
41
|
[](https://pepy.tech/project/pygitmirror)
|
|
42
42
|
[](https://pepy.tech/project/pygitmirror)
|
|
43
43
|
|
|
44
|
+
`git-mirror` is part of the `pygitmirror` Python package. `git-mirror` is an executable to clone git repos from one git server to another.
|
|
45
|
+
|
|
46
|
+
## Installation
|
|
47
|
+
|
|
48
|
+
To install `pygitmirror` into your Python environment:
|
|
49
|
+
|
|
50
|
+
pip install -U pygitmirror
|
|
51
|
+
|
|
52
|
+
The package exposes a single executable `git-mirror` which is used to systematically mirror your git repos from one `git` server to another.
|
|
53
|
+
|
|
54
|
+
## Usage
|
|
55
|
+
|
|
56
|
+
After installing `pygitmirror`, you can call the `git-mirror` executable to clone/mirror your `git` repository between two git servers:
|
|
57
|
+
|
|
58
|
+
git-mirror --source_url <source git server URL> --destination_url <destination git server URL> --org <organization or project name> --repo <repo name>
|
|
59
|
+
|
|
60
|
+
`git-mirror` will use the current directory to check out your source repository and pushes **all branches** in it to its new location at the destination. Note, the destination repository needs to **_already exist_** at the destination server, albeit being empty!
|
|
61
|
+
|
|
62
|
+
To use a custom sync/temporary path:
|
|
63
|
+
|
|
64
|
+
git-mirror --sync_path <custom sync path> ..
|
|
65
|
+
|
|
66
|
+
To mirror multiple repositories at once, you should use the `JSON` file option:
|
|
67
|
+
|
|
68
|
+
```json
|
|
69
|
+
{
|
|
70
|
+
"sync_path": "<local path for sync>",
|
|
71
|
+
"source_url": "ssh://<source-git-server>:<source port> or https://<source-server>",
|
|
72
|
+
"destination_url": "ssh://<destination-git-server> or https://<destination-server>",
|
|
73
|
+
"repos": {
|
|
74
|
+
// comments are allowed at the beginning
|
|
75
|
+
"organization-1": [
|
|
76
|
+
// comments are allowed at the beginning
|
|
77
|
+
"repo-1",
|
|
78
|
+
"repo-2",
|
|
79
|
+
"..."
|
|
80
|
+
],
|
|
81
|
+
"organization-2": ["repo-3", "repo-4", "..."]
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Note: `JSON` file entries supersede the other command line arguments.
|
|
87
|
+
|
|
88
|
+
To get a list of all available parameters:
|
|
89
|
+
|
|
90
|
+
git-mirror -h
|
|
91
|
+
|
|
44
92
|
## Development
|
|
45
93
|
|
|
46
94
|
To clone the library for development:
|
|
47
95
|
|
|
48
|
-
git clone
|
|
96
|
+
git clone https://github.com/pygitmirror/pygitmirror.git
|
|
49
97
|
|
|
50
98
|
or
|
|
51
99
|
|
|
52
|
-
git clone
|
|
100
|
+
git clone git@github.com:pygitmirror/pygitmirror.git
|
|
53
101
|
|
|
54
102
|
### Build The Virtual Environment
|
|
55
103
|
|
|
@@ -78,7 +126,3 @@ Once you have created your virtual environment and made sure it is active in you
|
|
|
78
126
|
This should all the dependencies you need for developing into the library and also allow you to run the unit tests:
|
|
79
127
|
|
|
80
128
|
pytest
|
|
81
|
-
|
|
82
|
-
### Debugging
|
|
83
|
-
|
|
84
|
-
WIP
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Git Mirror
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/pygitmirror/)
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
[](https://pepy.tech/project/pygitmirror)
|
|
7
|
+
[](https://pepy.tech/project/pygitmirror)
|
|
8
|
+
[](https://pepy.tech/project/pygitmirror)
|
|
9
|
+
|
|
10
|
+
`git-mirror` is part of the `pygitmirror` Python package. `git-mirror` is an executable to clone git repos from one git server to another.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
To install `pygitmirror` into your Python environment:
|
|
15
|
+
|
|
16
|
+
pip install -U pygitmirror
|
|
17
|
+
|
|
18
|
+
The package exposes a single executable `git-mirror` which is used to systematically mirror your git repos from one `git` server to another.
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
After installing `pygitmirror`, you can call the `git-mirror` executable to clone/mirror your `git` repository between two git servers:
|
|
23
|
+
|
|
24
|
+
git-mirror --source_url <source git server URL> --destination_url <destination git server URL> --org <organization or project name> --repo <repo name>
|
|
25
|
+
|
|
26
|
+
`git-mirror` will use the current directory to check out your source repository and pushes **all branches** in it to its new location at the destination. Note, the destination repository needs to **_already exist_** at the destination server, albeit being empty!
|
|
27
|
+
|
|
28
|
+
To use a custom sync/temporary path:
|
|
29
|
+
|
|
30
|
+
git-mirror --sync_path <custom sync path> ..
|
|
31
|
+
|
|
32
|
+
To mirror multiple repositories at once, you should use the `JSON` file option:
|
|
33
|
+
|
|
34
|
+
```json
|
|
35
|
+
{
|
|
36
|
+
"sync_path": "<local path for sync>",
|
|
37
|
+
"source_url": "ssh://<source-git-server>:<source port> or https://<source-server>",
|
|
38
|
+
"destination_url": "ssh://<destination-git-server> or https://<destination-server>",
|
|
39
|
+
"repos": {
|
|
40
|
+
// comments are allowed at the beginning
|
|
41
|
+
"organization-1": [
|
|
42
|
+
// comments are allowed at the beginning
|
|
43
|
+
"repo-1",
|
|
44
|
+
"repo-2",
|
|
45
|
+
"..."
|
|
46
|
+
],
|
|
47
|
+
"organization-2": ["repo-3", "repo-4", "..."]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Note: `JSON` file entries supersede the other command line arguments.
|
|
53
|
+
|
|
54
|
+
To get a list of all available parameters:
|
|
55
|
+
|
|
56
|
+
git-mirror -h
|
|
57
|
+
|
|
58
|
+
## Development
|
|
59
|
+
|
|
60
|
+
To clone the library for development:
|
|
61
|
+
|
|
62
|
+
git clone https://github.com/pygitmirror/pygitmirror.git
|
|
63
|
+
|
|
64
|
+
or
|
|
65
|
+
|
|
66
|
+
git clone git@github.com:pygitmirror/pygitmirror.git
|
|
67
|
+
|
|
68
|
+
### Build The Virtual Environment
|
|
69
|
+
|
|
70
|
+
The current earliest Python version supported is `3.9`. You need to be able to create a virtual environment at this version to make sure any changes you make is compatible.
|
|
71
|
+
|
|
72
|
+
If you are using `conda`:
|
|
73
|
+
|
|
74
|
+
conda create --prefix=.venv python=3.9 --yes
|
|
75
|
+
|
|
76
|
+
If you are using `venv`, make sure you have the right base package:
|
|
77
|
+
|
|
78
|
+
>> python --version
|
|
79
|
+
Python 3.9.x
|
|
80
|
+
|
|
81
|
+
Once you verify your base Python, you can then create a virtual environment using:
|
|
82
|
+
|
|
83
|
+
virtualenv -p py3.9 .venv
|
|
84
|
+
|
|
85
|
+
### Setup
|
|
86
|
+
|
|
87
|
+
Once you have created your virtual environment and made sure it is active in your current command line:
|
|
88
|
+
|
|
89
|
+
python3 -m pip install --upgrade pip
|
|
90
|
+
pip install -e .[dev]
|
|
91
|
+
|
|
92
|
+
This should all the dependencies you need for developing into the library and also allow you to run the unit tests:
|
|
93
|
+
|
|
94
|
+
pytest
|
|
@@ -6,11 +6,11 @@ build-backend = "setuptools.build_meta"
|
|
|
6
6
|
name = "pygitmirror"
|
|
7
7
|
authors = [{ name = "Bassem Girgis", email = "brgirgis@gmail.com" }]
|
|
8
8
|
maintainers = [{ name = "Bassem Girgis", email = "brgirgis@gmail.com" }]
|
|
9
|
-
description = "An executable to clone git repos from one
|
|
9
|
+
description = "An executable to clone git repos from one git server to another."
|
|
10
10
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
11
11
|
requires-python = ">=3.9"
|
|
12
|
-
keywords = ["git", "clone", "gitea"]
|
|
13
|
-
license = { text = "
|
|
12
|
+
keywords = ["git", "clone", "gitea", "github", "gitlab", "mirror", "server"]
|
|
13
|
+
license = { text = "MIT" }
|
|
14
14
|
classifiers = [
|
|
15
15
|
'Development Status :: 5 - Production/Stable',
|
|
16
16
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pygitmirror
|
|
3
|
-
Version: 0.0.
|
|
4
|
-
Summary: An executable to clone git repos from one
|
|
3
|
+
Version: 0.0.2
|
|
4
|
+
Summary: An executable to clone git repos from one git server to another.
|
|
5
5
|
Author-email: Bassem Girgis <brgirgis@gmail.com>
|
|
6
6
|
Maintainer-email: Bassem Girgis <brgirgis@gmail.com>
|
|
7
|
-
License:
|
|
7
|
+
License: MIT
|
|
8
8
|
Project-URL: Homepage, https://github.com/pygitmirror/pygitmirror
|
|
9
9
|
Project-URL: Documentation, https://github.com/pygitmirror/pygitmirror
|
|
10
10
|
Project-URL: Repository, https://github.com/pygitmirror/pygitmirror.git
|
|
11
11
|
Project-URL: Issues, https://github.com/pygitmirror/pygitmirror/issues
|
|
12
|
-
Keywords: git,clone,gitea
|
|
12
|
+
Keywords: git,clone,gitea,github,gitlab,mirror,server
|
|
13
13
|
Classifier: Development Status :: 5 - Production/Stable
|
|
14
14
|
Classifier: Environment :: Console
|
|
15
15
|
Classifier: Operating System :: Microsoft :: Windows
|
|
@@ -32,7 +32,7 @@ Requires-Dist: pytest; extra == "dev"
|
|
|
32
32
|
Requires-Dist: twine; extra == "dev"
|
|
33
33
|
Requires-Dist: pylint; extra == "dev"
|
|
34
34
|
|
|
35
|
-
#
|
|
35
|
+
# Git Mirror
|
|
36
36
|
|
|
37
37
|
[](https://pypi.org/project/pygitmirror/)
|
|
38
38
|

|
|
@@ -41,15 +41,63 @@ Requires-Dist: pylint; extra == "dev"
|
|
|
41
41
|
[](https://pepy.tech/project/pygitmirror)
|
|
42
42
|
[](https://pepy.tech/project/pygitmirror)
|
|
43
43
|
|
|
44
|
+
`git-mirror` is part of the `pygitmirror` Python package. `git-mirror` is an executable to clone git repos from one git server to another.
|
|
45
|
+
|
|
46
|
+
## Installation
|
|
47
|
+
|
|
48
|
+
To install `pygitmirror` into your Python environment:
|
|
49
|
+
|
|
50
|
+
pip install -U pygitmirror
|
|
51
|
+
|
|
52
|
+
The package exposes a single executable `git-mirror` which is used to systematically mirror your git repos from one `git` server to another.
|
|
53
|
+
|
|
54
|
+
## Usage
|
|
55
|
+
|
|
56
|
+
After installing `pygitmirror`, you can call the `git-mirror` executable to clone/mirror your `git` repository between two git servers:
|
|
57
|
+
|
|
58
|
+
git-mirror --source_url <source git server URL> --destination_url <destination git server URL> --org <organization or project name> --repo <repo name>
|
|
59
|
+
|
|
60
|
+
`git-mirror` will use the current directory to check out your source repository and pushes **all branches** in it to its new location at the destination. Note, the destination repository needs to **_already exist_** at the destination server, albeit being empty!
|
|
61
|
+
|
|
62
|
+
To use a custom sync/temporary path:
|
|
63
|
+
|
|
64
|
+
git-mirror --sync_path <custom sync path> ..
|
|
65
|
+
|
|
66
|
+
To mirror multiple repositories at once, you should use the `JSON` file option:
|
|
67
|
+
|
|
68
|
+
```json
|
|
69
|
+
{
|
|
70
|
+
"sync_path": "<local path for sync>",
|
|
71
|
+
"source_url": "ssh://<source-git-server>:<source port> or https://<source-server>",
|
|
72
|
+
"destination_url": "ssh://<destination-git-server> or https://<destination-server>",
|
|
73
|
+
"repos": {
|
|
74
|
+
// comments are allowed at the beginning
|
|
75
|
+
"organization-1": [
|
|
76
|
+
// comments are allowed at the beginning
|
|
77
|
+
"repo-1",
|
|
78
|
+
"repo-2",
|
|
79
|
+
"..."
|
|
80
|
+
],
|
|
81
|
+
"organization-2": ["repo-3", "repo-4", "..."]
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Note: `JSON` file entries supersede the other command line arguments.
|
|
87
|
+
|
|
88
|
+
To get a list of all available parameters:
|
|
89
|
+
|
|
90
|
+
git-mirror -h
|
|
91
|
+
|
|
44
92
|
## Development
|
|
45
93
|
|
|
46
94
|
To clone the library for development:
|
|
47
95
|
|
|
48
|
-
git clone
|
|
96
|
+
git clone https://github.com/pygitmirror/pygitmirror.git
|
|
49
97
|
|
|
50
98
|
or
|
|
51
99
|
|
|
52
|
-
git clone
|
|
100
|
+
git clone git@github.com:pygitmirror/pygitmirror.git
|
|
53
101
|
|
|
54
102
|
### Build The Virtual Environment
|
|
55
103
|
|
|
@@ -78,7 +126,3 @@ Once you have created your virtual environment and made sure it is active in you
|
|
|
78
126
|
This should all the dependencies you need for developing into the library and also allow you to run the unit tests:
|
|
79
127
|
|
|
80
128
|
pytest
|
|
81
|
-
|
|
82
|
-
### Debugging
|
|
83
|
-
|
|
84
|
-
WIP
|
pygitmirror-0.0.1/README.md
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# pygitmirror
|
|
2
|
-
|
|
3
|
-
[](https://pypi.org/project/pygitmirror/)
|
|
4
|
-

|
|
5
|
-

|
|
6
|
-
[](https://pepy.tech/project/pygitmirror)
|
|
7
|
-
[](https://pepy.tech/project/pygitmirror)
|
|
8
|
-
[](https://pepy.tech/project/pygitmirror)
|
|
9
|
-
|
|
10
|
-
## Development
|
|
11
|
-
|
|
12
|
-
To clone the library for development:
|
|
13
|
-
|
|
14
|
-
git clone
|
|
15
|
-
|
|
16
|
-
or
|
|
17
|
-
|
|
18
|
-
git clone
|
|
19
|
-
|
|
20
|
-
### Build The Virtual Environment
|
|
21
|
-
|
|
22
|
-
The current earliest Python version supported is `3.9`. You need to be able to create a virtual environment at this version to make sure any changes you make is compatible.
|
|
23
|
-
|
|
24
|
-
If you are using `conda`:
|
|
25
|
-
|
|
26
|
-
conda create --prefix=.venv python=3.9 --yes
|
|
27
|
-
|
|
28
|
-
If you are using `venv`, make sure you have the right base package:
|
|
29
|
-
|
|
30
|
-
>> python --version
|
|
31
|
-
Python 3.9.x
|
|
32
|
-
|
|
33
|
-
Once you verify your base Python, you can then create a virtual environment using:
|
|
34
|
-
|
|
35
|
-
virtualenv -p py3.9 .venv
|
|
36
|
-
|
|
37
|
-
### Setup
|
|
38
|
-
|
|
39
|
-
Once you have created your virtual environment and made sure it is active in your current command line:
|
|
40
|
-
|
|
41
|
-
python3 -m pip install --upgrade pip
|
|
42
|
-
pip install -e .[dev]
|
|
43
|
-
|
|
44
|
-
This should all the dependencies you need for developing into the library and also allow you to run the unit tests:
|
|
45
|
-
|
|
46
|
-
pytest
|
|
47
|
-
|
|
48
|
-
### Debugging
|
|
49
|
-
|
|
50
|
-
WIP
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|