git2py 0.0.3__tar.gz → 0.0.5__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.
- git2py-0.0.5/.gitattributes +1 -0
- git2py-0.0.5/.github/workflows/ci.yml +256 -0
- git2py-0.0.5/.gitignore +115 -0
- git2py-0.0.5/LICENSE +201 -0
- git2py-0.0.5/PKG-INFO +47 -0
- git2py-0.0.5/README.md +23 -0
- git2py-0.0.5/docsrc/.gitignore +1 -0
- git2py-0.0.5/docsrc/Makefile +33 -0
- git2py-0.0.5/docsrc/conf.py +60 -0
- git2py-0.0.5/docsrc/index.rst +13 -0
- git2py-0.0.5/docsrc/make.bat +35 -0
- git2py-0.0.5/git2py/__init__.py +24 -0
- git2py-0.0.3/git2py/gitlab.py → git2py-0.0.5/git2py/gitlab_utils.py +15 -23
- git2py-0.0.5/git2py/migration.py +175 -0
- git2py-0.0.5/pyproject.toml +162 -0
- git2py-0.0.5/tests/test_smoke.py +5 -0
- git2py-0.0.3/PKG-INFO +0 -16
- git2py-0.0.3/README.md +0 -6
- git2py-0.0.3/git2py/__init__.py +0 -1
- git2py-0.0.3/git2py.egg-info/PKG-INFO +0 -16
- git2py-0.0.3/git2py.egg-info/SOURCES.txt +0 -11
- git2py-0.0.3/git2py.egg-info/dependency_links.txt +0 -1
- git2py-0.0.3/git2py.egg-info/not-zip-safe +0 -1
- git2py-0.0.3/git2py.egg-info/requires.txt +0 -2
- git2py-0.0.3/git2py.egg-info/top_level.txt +0 -1
- git2py-0.0.3/setup.cfg +0 -27
- git2py-0.0.3/setup.py +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*.ipynb linguist-documentation
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
name: Continuous Integration (uv)
|
|
2
|
+
# MIGRATION NOTE: Old CI uses pylint - new CI uses ruff for linting
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
# Workflow-level env vars from [tool.wads.ci.env] in pyproject.toml.
|
|
6
|
+
# Populated by wads-migrate / wads init via template substitution.
|
|
7
|
+
# Includes PROJECT_NAME, literal defaults from env.defaults, and secret-
|
|
8
|
+
# backed vars from required_envvars / test_envvars / extra_envvars,
|
|
9
|
+
# rendered as `KEY: secrets.KEY || ''` so missing secrets don't fail parsing.
|
|
10
|
+
env:
|
|
11
|
+
PROJECT_NAME: git2py
|
|
12
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN || '' }}
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
# First job: Read configuration from pyproject.toml
|
|
16
|
+
setup:
|
|
17
|
+
name: Read Configuration
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
outputs:
|
|
20
|
+
project-name: ${{ steps.config.outputs.project-name }}
|
|
21
|
+
python-versions: ${{ steps.config.outputs.python-versions }}
|
|
22
|
+
pytest-args: ${{ steps.config.outputs.pytest-args }}
|
|
23
|
+
coverage-enabled: ${{ steps.config.outputs.coverage-enabled }}
|
|
24
|
+
exclude-paths: ${{ steps.config.outputs.exclude-paths }}
|
|
25
|
+
test-on-windows: ${{ steps.config.outputs.test-on-windows }}
|
|
26
|
+
tests-enabled: ${{ steps.config.outputs.tests-enabled }}
|
|
27
|
+
build-sdist: ${{ steps.config.outputs.build-sdist }}
|
|
28
|
+
build-wheel: ${{ steps.config.outputs.build-wheel }}
|
|
29
|
+
metrics-enabled: ${{ steps.config.outputs.metrics-enabled }}
|
|
30
|
+
metrics-config-path: ${{ steps.config.outputs.metrics-config-path }}
|
|
31
|
+
metrics-storage-branch: ${{ steps.config.outputs.metrics-storage-branch }}
|
|
32
|
+
metrics-python-version: ${{ steps.config.outputs.metrics-python-version }}
|
|
33
|
+
metrics-force-run: ${{ steps.config.outputs.metrics-force-run }}
|
|
34
|
+
ruff-enabled: ${{ steps.config.outputs.ruff-enabled }}
|
|
35
|
+
black-enabled: ${{ steps.config.outputs.black-enabled }}
|
|
36
|
+
mypy-enabled: ${{ steps.config.outputs.mypy-enabled }}
|
|
37
|
+
docs-enabled: ${{ steps.config.outputs.docs-enabled }}
|
|
38
|
+
publish-enabled: ${{ steps.config.outputs.publish-enabled }}
|
|
39
|
+
skip-ci-marker: ${{ steps.config.outputs.skip-ci-marker }}
|
|
40
|
+
publish-marker: ${{ steps.config.outputs.publish-marker }}
|
|
41
|
+
|
|
42
|
+
steps:
|
|
43
|
+
- uses: actions/checkout@v6
|
|
44
|
+
|
|
45
|
+
- name: Set up uv
|
|
46
|
+
uses: astral-sh/setup-uv@v7
|
|
47
|
+
|
|
48
|
+
- name: Set up Python
|
|
49
|
+
run: uv python install 3.11
|
|
50
|
+
|
|
51
|
+
- name: Read CI Config
|
|
52
|
+
id: config
|
|
53
|
+
uses: i2mint/wads/actions/read-ci-config@master
|
|
54
|
+
with:
|
|
55
|
+
pyproject-path: .
|
|
56
|
+
|
|
57
|
+
# Second job: Validation using the config
|
|
58
|
+
validation:
|
|
59
|
+
name: Validation
|
|
60
|
+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
|
61
|
+
needs: setup
|
|
62
|
+
runs-on: ubuntu-latest
|
|
63
|
+
strategy:
|
|
64
|
+
matrix:
|
|
65
|
+
python-version: ${{ fromJson(needs.setup.outputs.python-versions) }}
|
|
66
|
+
|
|
67
|
+
steps:
|
|
68
|
+
- uses: actions/checkout@v6
|
|
69
|
+
|
|
70
|
+
- name: Set up uv
|
|
71
|
+
uses: astral-sh/setup-uv@v7
|
|
72
|
+
with:
|
|
73
|
+
enable-cache: true
|
|
74
|
+
|
|
75
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
76
|
+
uses: i2mint/wads/actions/setup-python-uv@master
|
|
77
|
+
with:
|
|
78
|
+
python-version: ${{ matrix.python-version }}
|
|
79
|
+
|
|
80
|
+
- name: Install System Dependencies
|
|
81
|
+
uses: i2mint/wads/actions/install-system-deps@master
|
|
82
|
+
with:
|
|
83
|
+
pyproject-path: .
|
|
84
|
+
|
|
85
|
+
- name: Install Dependencies
|
|
86
|
+
uses: i2mint/wads/actions/install-deps-uv@master
|
|
87
|
+
|
|
88
|
+
- name: Format Source Code
|
|
89
|
+
if: needs.setup.outputs.ruff-enabled != 'false'
|
|
90
|
+
run: uvx ruff format .
|
|
91
|
+
|
|
92
|
+
- name: Format Source Code (black)
|
|
93
|
+
if: needs.setup.outputs.black-enabled == 'true'
|
|
94
|
+
run: uvx black .
|
|
95
|
+
|
|
96
|
+
- name: Lint Validation
|
|
97
|
+
if: needs.setup.outputs.ruff-enabled != 'false'
|
|
98
|
+
run: uvx ruff check --output-format=github ${{ needs.setup.outputs.project-name }}
|
|
99
|
+
|
|
100
|
+
- name: Type Check (mypy)
|
|
101
|
+
if: needs.setup.outputs.mypy-enabled == 'true'
|
|
102
|
+
run: uvx mypy ${{ needs.setup.outputs.project-name }}
|
|
103
|
+
|
|
104
|
+
- name: Run Tests
|
|
105
|
+
if: needs.setup.outputs.tests-enabled != 'false'
|
|
106
|
+
uses: i2mint/wads/actions/run-tests-uv@master
|
|
107
|
+
with:
|
|
108
|
+
root-dir: ${{ needs.setup.outputs.project-name }}
|
|
109
|
+
pytest-args: ${{ needs.setup.outputs.pytest-args }}
|
|
110
|
+
exclude-paths: ${{ needs.setup.outputs.exclude-paths }}
|
|
111
|
+
coverage: ${{ needs.setup.outputs.coverage-enabled }}
|
|
112
|
+
|
|
113
|
+
- name: Track Code Metrics
|
|
114
|
+
if: needs.setup.outputs.metrics-enabled == 'true'
|
|
115
|
+
uses: i2mint/umpyre/actions/track-metrics@master
|
|
116
|
+
continue-on-error: true
|
|
117
|
+
with:
|
|
118
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
119
|
+
config-path: ${{ needs.setup.outputs.metrics-config-path }}
|
|
120
|
+
storage-branch: ${{ needs.setup.outputs.metrics-storage-branch }}
|
|
121
|
+
python-version: ${{ needs.setup.outputs.metrics-python-version }}
|
|
122
|
+
force-run: ${{ needs.setup.outputs.metrics-force-run }}
|
|
123
|
+
|
|
124
|
+
# Optional Windows testing (if enabled in config)
|
|
125
|
+
windows-validation:
|
|
126
|
+
name: Windows Tests
|
|
127
|
+
if: "!contains(github.event.head_commit.message, '[skip ci]') && needs.setup.outputs.test-on-windows == 'true' && needs.setup.outputs.tests-enabled != 'false'"
|
|
128
|
+
needs: setup
|
|
129
|
+
runs-on: windows-latest
|
|
130
|
+
continue-on-error: true
|
|
131
|
+
env:
|
|
132
|
+
# PEP 540 UTF-8 mode: avoid cp1252 UnicodeDecode/EncodeError when test
|
|
133
|
+
# code reads source files or scripts print non-ASCII characters.
|
|
134
|
+
PYTHONUTF8: "1"
|
|
135
|
+
PYTHONIOENCODING: "utf-8"
|
|
136
|
+
|
|
137
|
+
steps:
|
|
138
|
+
- uses: actions/checkout@v6
|
|
139
|
+
|
|
140
|
+
- name: Set up uv
|
|
141
|
+
uses: astral-sh/setup-uv@v7
|
|
142
|
+
with:
|
|
143
|
+
enable-cache: true
|
|
144
|
+
|
|
145
|
+
- name: Set up Python
|
|
146
|
+
uses: i2mint/wads/actions/setup-python-uv@master
|
|
147
|
+
with:
|
|
148
|
+
python-version: ${{ fromJson(needs.setup.outputs.python-versions)[0] }}
|
|
149
|
+
|
|
150
|
+
- name: Install System Dependencies
|
|
151
|
+
uses: i2mint/wads/actions/install-system-deps@master
|
|
152
|
+
with:
|
|
153
|
+
pyproject-path: .
|
|
154
|
+
|
|
155
|
+
- name: Install Dependencies
|
|
156
|
+
uses: i2mint/wads/actions/install-deps-uv@master
|
|
157
|
+
|
|
158
|
+
- name: Run Tests
|
|
159
|
+
uses: i2mint/wads/actions/run-tests-uv@master
|
|
160
|
+
with:
|
|
161
|
+
root-dir: ${{ needs.setup.outputs.project-name }}
|
|
162
|
+
pytest-args: ${{ needs.setup.outputs.pytest-args }}
|
|
163
|
+
exclude-paths: ${{ needs.setup.outputs.exclude-paths }}
|
|
164
|
+
|
|
165
|
+
# Publishing job
|
|
166
|
+
#
|
|
167
|
+
# Gated by [tool.wads.ci.publish] in pyproject.toml (read via the setup job):
|
|
168
|
+
# - skip-ci-marker : when publishing is enabled, a commit message containing
|
|
169
|
+
# this substring skips the publish job (default "[skip ci]").
|
|
170
|
+
# - publish-enabled : whether publishing runs at all (default true).
|
|
171
|
+
# - publish-marker : when publishing is disabled, a commit message containing
|
|
172
|
+
# this substring forces the publish job (default "[publish]").
|
|
173
|
+
# The publish-enabled check uses `== 'true'` (fail-closed): if an older wads
|
|
174
|
+
# without these outputs is installed by read-ci-config, publishing is skipped
|
|
175
|
+
# rather than run unintentionally.
|
|
176
|
+
publish:
|
|
177
|
+
name: Publish
|
|
178
|
+
permissions:
|
|
179
|
+
contents: write
|
|
180
|
+
if: "!contains(github.event.head_commit.message, needs.setup.outputs.skip-ci-marker) && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') && (needs.setup.outputs.publish-enabled == 'true' || contains(github.event.head_commit.message, needs.setup.outputs.publish-marker))"
|
|
181
|
+
needs: [setup, validation]
|
|
182
|
+
runs-on: ubuntu-latest
|
|
183
|
+
|
|
184
|
+
steps:
|
|
185
|
+
- uses: actions/checkout@v6
|
|
186
|
+
with:
|
|
187
|
+
fetch-depth: 0
|
|
188
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
189
|
+
|
|
190
|
+
- name: Set up uv
|
|
191
|
+
uses: astral-sh/setup-uv@v7
|
|
192
|
+
|
|
193
|
+
- name: Set up Python
|
|
194
|
+
uses: i2mint/wads/actions/setup-python-uv@master
|
|
195
|
+
with:
|
|
196
|
+
python-version: ${{ fromJson(needs.setup.outputs.python-versions)[0] }}
|
|
197
|
+
create-venv: "false"
|
|
198
|
+
|
|
199
|
+
- name: Format Source Code
|
|
200
|
+
if: needs.setup.outputs.ruff-enabled != 'false'
|
|
201
|
+
run: uvx ruff format .
|
|
202
|
+
|
|
203
|
+
- name: Format Source Code (black)
|
|
204
|
+
if: needs.setup.outputs.black-enabled == 'true'
|
|
205
|
+
run: uvx black .
|
|
206
|
+
|
|
207
|
+
- name: Update Version Number
|
|
208
|
+
id: version
|
|
209
|
+
uses: i2mint/isee/actions/bump-version-number@master
|
|
210
|
+
|
|
211
|
+
- name: Build Distribution
|
|
212
|
+
uses: i2mint/wads/actions/build-dist-uv@master
|
|
213
|
+
with:
|
|
214
|
+
sdist: ${{ needs.setup.outputs.build-sdist }}
|
|
215
|
+
wheel: ${{ needs.setup.outputs.build-wheel }}
|
|
216
|
+
|
|
217
|
+
- name: Publish to PyPI
|
|
218
|
+
uses: i2mint/wads/actions/pypi-publish-uv@master
|
|
219
|
+
with:
|
|
220
|
+
pypi-token: ${{ secrets.PYPI_PASSWORD }}
|
|
221
|
+
|
|
222
|
+
- name: Force SSH for git remote
|
|
223
|
+
run: git remote set-url origin git@github.com:${{ github.repository }}.git
|
|
224
|
+
|
|
225
|
+
- name: Commit Changes
|
|
226
|
+
uses: i2mint/wads/actions/git-commit@master
|
|
227
|
+
with:
|
|
228
|
+
commit-message: "**CI** Formatted code + Updated version to ${{ env.VERSION }} [skip ci]"
|
|
229
|
+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
230
|
+
push: true
|
|
231
|
+
|
|
232
|
+
- name: Tag Repository
|
|
233
|
+
uses: i2mint/wads/actions/git-tag@master
|
|
234
|
+
with:
|
|
235
|
+
tag: ${{ env.VERSION }}
|
|
236
|
+
message: "Release version ${{ env.VERSION }}"
|
|
237
|
+
push: true
|
|
238
|
+
|
|
239
|
+
# Optional GitHub Pages (skipped when [tool.wads.ci.docs].enabled = false)
|
|
240
|
+
# Depends on validation (not publish) so docs still publish when the publish
|
|
241
|
+
# job is disabled via [tool.wads.ci.publish].enabled = false.
|
|
242
|
+
github-pages:
|
|
243
|
+
name: Publish GitHub Pages
|
|
244
|
+
permissions:
|
|
245
|
+
contents: write
|
|
246
|
+
pages: write
|
|
247
|
+
id-token: write
|
|
248
|
+
if: "!contains(github.event.head_commit.message, '[skip ci]') && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && needs.setup.outputs.docs-enabled != 'false'"
|
|
249
|
+
needs: [setup, validation]
|
|
250
|
+
runs-on: ubuntu-latest
|
|
251
|
+
|
|
252
|
+
steps:
|
|
253
|
+
- uses: i2mint/epythet/actions/publish-github-pages@master
|
|
254
|
+
with:
|
|
255
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
256
|
+
ignore: "tests/,scrap/,examples/"
|
git2py-0.0.5/.gitignore
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
docs/*
|
|
2
|
+
wads_configs.json
|
|
3
|
+
data/wads_configs.json
|
|
4
|
+
wads/data/wads_configs.json
|
|
5
|
+
|
|
6
|
+
# Byte-compiled / optimized / DLL files
|
|
7
|
+
__pycache__/
|
|
8
|
+
*.py[cod]
|
|
9
|
+
*$py.class
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
.DS_Store
|
|
13
|
+
# C extensions
|
|
14
|
+
*.so
|
|
15
|
+
|
|
16
|
+
# Distribution / packaging
|
|
17
|
+
.Python
|
|
18
|
+
build/
|
|
19
|
+
develop-eggs/
|
|
20
|
+
dist/
|
|
21
|
+
downloads/
|
|
22
|
+
eggs/
|
|
23
|
+
.eggs/
|
|
24
|
+
lib/
|
|
25
|
+
lib64/
|
|
26
|
+
parts/
|
|
27
|
+
sdist/
|
|
28
|
+
var/
|
|
29
|
+
wheels/
|
|
30
|
+
*.egg-info/
|
|
31
|
+
.installed.cfg
|
|
32
|
+
*.egg
|
|
33
|
+
MANIFEST
|
|
34
|
+
_build
|
|
35
|
+
|
|
36
|
+
# PyInstaller
|
|
37
|
+
# Usually these files are written by a python script from a template
|
|
38
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
39
|
+
*.manifest
|
|
40
|
+
*.spec
|
|
41
|
+
|
|
42
|
+
# Installer logs
|
|
43
|
+
pip-log.txt
|
|
44
|
+
pip-delete-this-directory.txt
|
|
45
|
+
|
|
46
|
+
# Unit test / coverage reports
|
|
47
|
+
htmlcov/
|
|
48
|
+
.tox/
|
|
49
|
+
.coverage
|
|
50
|
+
.coverage.*
|
|
51
|
+
.cache
|
|
52
|
+
nosetests.xml
|
|
53
|
+
coverage.xml
|
|
54
|
+
*.cover
|
|
55
|
+
.hypothesis/
|
|
56
|
+
.pytest_cache/
|
|
57
|
+
|
|
58
|
+
# Translations
|
|
59
|
+
*.mo
|
|
60
|
+
*.pot
|
|
61
|
+
|
|
62
|
+
# Django stuff:
|
|
63
|
+
*.log
|
|
64
|
+
local_settings.py
|
|
65
|
+
db.sqlite3
|
|
66
|
+
|
|
67
|
+
# Flask stuff:
|
|
68
|
+
instance/
|
|
69
|
+
.webassets-cache
|
|
70
|
+
|
|
71
|
+
# Scrapy stuff:
|
|
72
|
+
.scrapy
|
|
73
|
+
|
|
74
|
+
# Sphinx documentation
|
|
75
|
+
docs/_build/
|
|
76
|
+
|
|
77
|
+
# PyBuilder
|
|
78
|
+
target/
|
|
79
|
+
|
|
80
|
+
# Jupyter Notebook
|
|
81
|
+
.ipynb_checkpoints
|
|
82
|
+
|
|
83
|
+
# pyenv
|
|
84
|
+
.python-version
|
|
85
|
+
|
|
86
|
+
# celery beat schedule file
|
|
87
|
+
celerybeat-schedule
|
|
88
|
+
|
|
89
|
+
# SageMath parsed files
|
|
90
|
+
*.sage.py
|
|
91
|
+
|
|
92
|
+
# Environments
|
|
93
|
+
.env
|
|
94
|
+
.venv
|
|
95
|
+
env/
|
|
96
|
+
venv/
|
|
97
|
+
ENV/
|
|
98
|
+
env.bak/
|
|
99
|
+
venv.bak/
|
|
100
|
+
|
|
101
|
+
# Spyder project settings
|
|
102
|
+
.spyderproject
|
|
103
|
+
.spyproject
|
|
104
|
+
|
|
105
|
+
# Rope project settings
|
|
106
|
+
.ropeproject
|
|
107
|
+
|
|
108
|
+
# mkdocs documentation
|
|
109
|
+
/site
|
|
110
|
+
|
|
111
|
+
# mypy
|
|
112
|
+
.mypy_cache/
|
|
113
|
+
|
|
114
|
+
# PyCharm
|
|
115
|
+
.idea
|
git2py-0.0.5/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
git2py-0.0.5/PKG-INFO
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: git2py
|
|
3
|
+
Version: 0.0.5
|
|
4
|
+
Summary: Mapping git operation to a dict-like Data Object Layer
|
|
5
|
+
Project-URL: Homepage, https://github.com/i2mint/git2py
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Requires-Python: >=3.10
|
|
9
|
+
Requires-Dist: dol
|
|
10
|
+
Requires-Dist: hubcap
|
|
11
|
+
Requires-Dist: i2
|
|
12
|
+
Requires-Dist: py2store
|
|
13
|
+
Requires-Dist: pygithub
|
|
14
|
+
Requires-Dist: python-gitlab
|
|
15
|
+
Requires-Dist: requests
|
|
16
|
+
Provides-Extra: dev
|
|
17
|
+
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
|
|
18
|
+
Requires-Dist: pytest>=7.0; extra == 'dev'
|
|
19
|
+
Requires-Dist: ruff>=0.1.0; extra == 'dev'
|
|
20
|
+
Provides-Extra: docs
|
|
21
|
+
Requires-Dist: sphinx-rtd-theme>=1.0; extra == 'docs'
|
|
22
|
+
Requires-Dist: sphinx>=6.0; extra == 'docs'
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# git2py
|
|
27
|
+
|
|
28
|
+
Some git (gitlab and github) tools.
|
|
29
|
+
|
|
30
|
+
To install: ```pip install git2py```
|
|
31
|
+
|
|
32
|
+
Note: The intent of this package was to provide a simple, high-level interface to git.
|
|
33
|
+
Namely to github and gitlab, allowing for easy access to the resources of these
|
|
34
|
+
platforms, and that would be easy to extend to other platforms.
|
|
35
|
+
|
|
36
|
+
What ended up happening is that we accumulated some useful tools, but stopped
|
|
37
|
+
development after our main purpose was acheived (migrating from gitlab to github).
|
|
38
|
+
|
|
39
|
+
We may pick this project up again in the future, but for now, it's in a state of
|
|
40
|
+
"good enough for now", and we're keeping it around to use the tools we've built.
|
|
41
|
+
|
|
42
|
+
You may want to check out some other projects that may have more active development:
|
|
43
|
+
- [hubcap](https://github.com/thorwhalen/hubcap): A mapping interface to github
|
|
44
|
+
- [ps](https://github.com/thorwhalen/ps): Call any available system command from python
|
|
45
|
+
- some bits of
|
|
46
|
+
[wads](https://github.com/i2mint/wads/blob/b82a534bfc9c3f20713e0768291c67c9c2467e01/wads/util.py#L39) and
|
|
47
|
+
[isee](https://github.com/i2mint/isee/blob/54fa4b2343cb2510f7a9cc34fe4e512ef6050795/isee/common.py#L17)
|
git2py-0.0.5/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
|
|
2
|
+
# git2py
|
|
3
|
+
|
|
4
|
+
Some git (gitlab and github) tools.
|
|
5
|
+
|
|
6
|
+
To install: ```pip install git2py```
|
|
7
|
+
|
|
8
|
+
Note: The intent of this package was to provide a simple, high-level interface to git.
|
|
9
|
+
Namely to github and gitlab, allowing for easy access to the resources of these
|
|
10
|
+
platforms, and that would be easy to extend to other platforms.
|
|
11
|
+
|
|
12
|
+
What ended up happening is that we accumulated some useful tools, but stopped
|
|
13
|
+
development after our main purpose was acheived (migrating from gitlab to github).
|
|
14
|
+
|
|
15
|
+
We may pick this project up again in the future, but for now, it's in a state of
|
|
16
|
+
"good enough for now", and we're keeping it around to use the tools we've built.
|
|
17
|
+
|
|
18
|
+
You may want to check out some other projects that may have more active development:
|
|
19
|
+
- [hubcap](https://github.com/thorwhalen/hubcap): A mapping interface to github
|
|
20
|
+
- [ps](https://github.com/thorwhalen/ps): Call any available system command from python
|
|
21
|
+
- some bits of
|
|
22
|
+
[wads](https://github.com/i2mint/wads/blob/b82a534bfc9c3f20713e0768291c67c9c2467e01/wads/util.py#L39) and
|
|
23
|
+
[isee](https://github.com/i2mint/isee/blob/54fa4b2343cb2510f7a9cc34fe4e512ef6050795/isee/common.py#L17)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
_build/
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Minimal makefile for Sphinx documentation
|
|
2
|
+
#
|
|
3
|
+
|
|
4
|
+
# You can set these variables from the command line, and also
|
|
5
|
+
# from the environment for the first two.
|
|
6
|
+
SPHINXOPTS ?=
|
|
7
|
+
SPHINXBUILD ?= sphinx-build
|
|
8
|
+
SOURCEDIR = .
|
|
9
|
+
BUILDDIR = _build
|
|
10
|
+
GITHUBPAGESDIR = ../docs
|
|
11
|
+
GITLABPAGESDIR = ../public
|
|
12
|
+
|
|
13
|
+
# Put it first so that "make" without argument is like "make help".
|
|
14
|
+
help:
|
|
15
|
+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
16
|
+
|
|
17
|
+
.PHONY: help Makefile
|
|
18
|
+
|
|
19
|
+
github:
|
|
20
|
+
@make html
|
|
21
|
+
@cp -a "$(BUILDDIR)"/html/. $(GITHUBPAGESDIR)
|
|
22
|
+
|
|
23
|
+
gitlab:
|
|
24
|
+
@make html
|
|
25
|
+
@cp -a "$(BUILDDIR)"/html/. $(GITLABPAGESDIR)
|
|
26
|
+
|
|
27
|
+
clean:
|
|
28
|
+
rm -rfv $(BUILDDIR) $(GITHUBPAGESDIR) $(GITLABPAGESDIR)
|
|
29
|
+
|
|
30
|
+
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
31
|
+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
32
|
+
%: Makefile
|
|
33
|
+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|