prefect-gitlab 0.3.0__tar.gz → 0.3.1__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.
- prefect_gitlab-0.3.1/PKG-INFO +50 -0
- prefect_gitlab-0.3.1/README.md +10 -0
- {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/prefect_gitlab/_version.py +2 -2
- prefect_gitlab-0.3.1/prefect_gitlab.egg-info/PKG-INFO +50 -0
- {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/prefect_gitlab.egg-info/requires.txt +2 -2
- {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/pyproject.toml +4 -9
- prefect_gitlab-0.3.0/PKG-INFO +0 -124
- prefect_gitlab-0.3.0/README.md +0 -84
- prefect_gitlab-0.3.0/prefect_gitlab.egg-info/PKG-INFO +0 -124
- {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/LICENSE +0 -0
- {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/MANIFEST.in +0 -0
- {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/prefect_gitlab/__init__.py +0 -0
- {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/prefect_gitlab/credentials.py +0 -0
- {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/prefect_gitlab/repositories.py +0 -0
- {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/prefect_gitlab.egg-info/SOURCES.txt +0 -0
- {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/prefect_gitlab.egg-info/dependency_links.txt +0 -0
- {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/prefect_gitlab.egg-info/entry_points.txt +0 -0
- {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/prefect_gitlab.egg-info/top_level.txt +0 -0
- {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/setup.cfg +0 -0
- {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/tests/conftest.py +0 -0
- {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/tests/test_credentials.py +0 -0
- {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/tests/test_repositories.py +0 -0
- {prefect_gitlab-0.3.0 → prefect_gitlab-0.3.1}/tests/test_version.py +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: prefect-gitlab
|
|
3
|
+
Version: 0.3.1
|
|
4
|
+
Summary: A Prefect collection for working with GitLab repositories.
|
|
5
|
+
Author-email: "Prefect Technologies, Inc." <help@prefect.io>
|
|
6
|
+
License: Apache License 2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/PrefectHQ/prefect/tree/main/src/integrations/prefect-gitlab
|
|
8
|
+
Keywords: prefect
|
|
9
|
+
Classifier: Natural Language :: English
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Intended Audience :: System Administrators
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
19
|
+
Requires-Python: >=3.9
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: prefect>=3.0.0
|
|
23
|
+
Requires-Dist: python-gitlab>=3.12.0
|
|
24
|
+
Requires-Dist: tenacity>=8.2.3
|
|
25
|
+
Provides-Extra: dev
|
|
26
|
+
Requires-Dist: aiohttp; extra == "dev"
|
|
27
|
+
Requires-Dist: coverage; extra == "dev"
|
|
28
|
+
Requires-Dist: interrogate; extra == "dev"
|
|
29
|
+
Requires-Dist: mkdocs-gen-files; extra == "dev"
|
|
30
|
+
Requires-Dist: mkdocs-material; extra == "dev"
|
|
31
|
+
Requires-Dist: mkdocs; extra == "dev"
|
|
32
|
+
Requires-Dist: mkdocstrings[python]; extra == "dev"
|
|
33
|
+
Requires-Dist: mypy; extra == "dev"
|
|
34
|
+
Requires-Dist: pillow; extra == "dev"
|
|
35
|
+
Requires-Dist: pre-commit; extra == "dev"
|
|
36
|
+
Requires-Dist: pytest-asyncio; extra == "dev"
|
|
37
|
+
Requires-Dist: pytest>=8.3; extra == "dev"
|
|
38
|
+
Requires-Dist: pytest-env; extra == "dev"
|
|
39
|
+
Requires-Dist: pytest-xdist; extra == "dev"
|
|
40
|
+
|
|
41
|
+
# prefect-gitlab
|
|
42
|
+
|
|
43
|
+
<p align="center">
|
|
44
|
+
<a href="https://pypi.python.org/pypi/prefect-gitlab/" alt="PyPI version">
|
|
45
|
+
<img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-gitlab?color=26272B&labelColor=090422"></a>
|
|
46
|
+
<a href="https://pepy.tech/badge/prefect-gitlab/" alt="Downloads">
|
|
47
|
+
<img src="https://img.shields.io/pypi/dm/prefect-gitlab?color=26272B&labelColor=090422" /></a>
|
|
48
|
+
</p>
|
|
49
|
+
|
|
50
|
+
See the docs at [https://docs.prefect.io/integrations/prefect-gitlab](https://docs.prefect.io/integrations/prefect-gitlab) for more information.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# prefect-gitlab
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="https://pypi.python.org/pypi/prefect-gitlab/" alt="PyPI version">
|
|
5
|
+
<img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-gitlab?color=26272B&labelColor=090422"></a>
|
|
6
|
+
<a href="https://pepy.tech/badge/prefect-gitlab/" alt="Downloads">
|
|
7
|
+
<img src="https://img.shields.io/pypi/dm/prefect-gitlab?color=26272B&labelColor=090422" /></a>
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
See the docs at [https://docs.prefect.io/integrations/prefect-gitlab](https://docs.prefect.io/integrations/prefect-gitlab) for more information.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: prefect-gitlab
|
|
3
|
+
Version: 0.3.1
|
|
4
|
+
Summary: A Prefect collection for working with GitLab repositories.
|
|
5
|
+
Author-email: "Prefect Technologies, Inc." <help@prefect.io>
|
|
6
|
+
License: Apache License 2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/PrefectHQ/prefect/tree/main/src/integrations/prefect-gitlab
|
|
8
|
+
Keywords: prefect
|
|
9
|
+
Classifier: Natural Language :: English
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Intended Audience :: System Administrators
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
19
|
+
Requires-Python: >=3.9
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: prefect>=3.0.0
|
|
23
|
+
Requires-Dist: python-gitlab>=3.12.0
|
|
24
|
+
Requires-Dist: tenacity>=8.2.3
|
|
25
|
+
Provides-Extra: dev
|
|
26
|
+
Requires-Dist: aiohttp; extra == "dev"
|
|
27
|
+
Requires-Dist: coverage; extra == "dev"
|
|
28
|
+
Requires-Dist: interrogate; extra == "dev"
|
|
29
|
+
Requires-Dist: mkdocs-gen-files; extra == "dev"
|
|
30
|
+
Requires-Dist: mkdocs-material; extra == "dev"
|
|
31
|
+
Requires-Dist: mkdocs; extra == "dev"
|
|
32
|
+
Requires-Dist: mkdocstrings[python]; extra == "dev"
|
|
33
|
+
Requires-Dist: mypy; extra == "dev"
|
|
34
|
+
Requires-Dist: pillow; extra == "dev"
|
|
35
|
+
Requires-Dist: pre-commit; extra == "dev"
|
|
36
|
+
Requires-Dist: pytest-asyncio; extra == "dev"
|
|
37
|
+
Requires-Dist: pytest>=8.3; extra == "dev"
|
|
38
|
+
Requires-Dist: pytest-env; extra == "dev"
|
|
39
|
+
Requires-Dist: pytest-xdist; extra == "dev"
|
|
40
|
+
|
|
41
|
+
# prefect-gitlab
|
|
42
|
+
|
|
43
|
+
<p align="center">
|
|
44
|
+
<a href="https://pypi.python.org/pypi/prefect-gitlab/" alt="PyPI version">
|
|
45
|
+
<img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-gitlab?color=26272B&labelColor=090422"></a>
|
|
46
|
+
<a href="https://pepy.tech/badge/prefect-gitlab/" alt="Downloads">
|
|
47
|
+
<img src="https://img.shields.io/pypi/dm/prefect-gitlab?color=26272B&labelColor=090422" /></a>
|
|
48
|
+
</p>
|
|
49
|
+
|
|
50
|
+
See the docs at [https://docs.prefect.io/integrations/prefect-gitlab](https://docs.prefect.io/integrations/prefect-gitlab) for more information.
|
|
@@ -22,11 +22,7 @@ classifiers = [
|
|
|
22
22
|
"Programming Language :: Python :: 3.12",
|
|
23
23
|
"Topic :: Software Development :: Libraries",
|
|
24
24
|
]
|
|
25
|
-
dependencies = [
|
|
26
|
-
"prefect>=3.0.0rc1",
|
|
27
|
-
"python-gitlab>=3.12.0",
|
|
28
|
-
"tenacity>=8.2.3",
|
|
29
|
-
]
|
|
25
|
+
dependencies = ["prefect>=3.0.0", "python-gitlab>=3.12.0", "tenacity>=8.2.3"]
|
|
30
26
|
dynamic = ["version"]
|
|
31
27
|
|
|
32
28
|
[project.optional-dependencies]
|
|
@@ -42,7 +38,7 @@ dev = [
|
|
|
42
38
|
"pillow",
|
|
43
39
|
"pre-commit",
|
|
44
40
|
"pytest-asyncio",
|
|
45
|
-
"pytest",
|
|
41
|
+
"pytest >= 8.3",
|
|
46
42
|
"pytest-env",
|
|
47
43
|
"pytest-xdist",
|
|
48
44
|
]
|
|
@@ -75,7 +71,6 @@ fail_under = 80
|
|
|
75
71
|
show_missing = true
|
|
76
72
|
|
|
77
73
|
[tool.pytest.ini_options]
|
|
74
|
+
asyncio_default_fixture_loop_scope = "session"
|
|
78
75
|
asyncio_mode = "auto"
|
|
79
|
-
env = [
|
|
80
|
-
"PREFECT_TEST_MODE=1",
|
|
81
|
-
]
|
|
76
|
+
env = ["PREFECT_TEST_MODE=1"]
|
prefect_gitlab-0.3.0/PKG-INFO
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: prefect-gitlab
|
|
3
|
-
Version: 0.3.0
|
|
4
|
-
Summary: A Prefect collection for working with GitLab repositories.
|
|
5
|
-
Author-email: "Prefect Technologies, Inc." <help@prefect.io>
|
|
6
|
-
License: Apache License 2.0
|
|
7
|
-
Project-URL: Homepage, https://github.com/PrefectHQ/prefect/tree/main/src/integrations/prefect-gitlab
|
|
8
|
-
Keywords: prefect
|
|
9
|
-
Classifier: Natural Language :: English
|
|
10
|
-
Classifier: Intended Audience :: Developers
|
|
11
|
-
Classifier: Intended Audience :: System Administrators
|
|
12
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
-
Classifier: Topic :: Software Development :: Libraries
|
|
19
|
-
Requires-Python: >=3.9
|
|
20
|
-
Description-Content-Type: text/markdown
|
|
21
|
-
License-File: LICENSE
|
|
22
|
-
Requires-Dist: prefect>=3.0.0rc1
|
|
23
|
-
Requires-Dist: python-gitlab>=3.12.0
|
|
24
|
-
Requires-Dist: tenacity>=8.2.3
|
|
25
|
-
Provides-Extra: dev
|
|
26
|
-
Requires-Dist: aiohttp; extra == "dev"
|
|
27
|
-
Requires-Dist: coverage; extra == "dev"
|
|
28
|
-
Requires-Dist: interrogate; extra == "dev"
|
|
29
|
-
Requires-Dist: mkdocs-gen-files; extra == "dev"
|
|
30
|
-
Requires-Dist: mkdocs-material; extra == "dev"
|
|
31
|
-
Requires-Dist: mkdocs; extra == "dev"
|
|
32
|
-
Requires-Dist: mkdocstrings[python]; extra == "dev"
|
|
33
|
-
Requires-Dist: mypy; extra == "dev"
|
|
34
|
-
Requires-Dist: pillow; extra == "dev"
|
|
35
|
-
Requires-Dist: pre-commit; extra == "dev"
|
|
36
|
-
Requires-Dist: pytest-asyncio; extra == "dev"
|
|
37
|
-
Requires-Dist: pytest; extra == "dev"
|
|
38
|
-
Requires-Dist: pytest-env; extra == "dev"
|
|
39
|
-
Requires-Dist: pytest-xdist; extra == "dev"
|
|
40
|
-
|
|
41
|
-
# prefect-gitlab
|
|
42
|
-
|
|
43
|
-
<p align="center">
|
|
44
|
-
<a href="https://pypi.python.org/pypi/prefect-gitlab/" alt="PyPI version">
|
|
45
|
-
<img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-gitlab?color=26272B&labelColor=090422"></a>
|
|
46
|
-
<a href="https://pepy.tech/badge/prefect-gitlab/" alt="Downloads">
|
|
47
|
-
<img src="https://img.shields.io/pypi/dm/prefect-gitlab?color=26272B&labelColor=090422" /></a>
|
|
48
|
-
</p>
|
|
49
|
-
|
|
50
|
-
## Welcome!
|
|
51
|
-
|
|
52
|
-
`prefect-gitlab` is a Prefect collection for working with GitLab repositories.
|
|
53
|
-
|
|
54
|
-
## Getting Started
|
|
55
|
-
|
|
56
|
-
### Python setup
|
|
57
|
-
|
|
58
|
-
Requires an installation of Python 3.9 or higher.
|
|
59
|
-
|
|
60
|
-
We recommend using a Python virtual environment manager such as pipenv, conda, or virtualenv.
|
|
61
|
-
|
|
62
|
-
This integration is designed to work with Prefect 2.3.0 or higher. For more information about how to use Prefect, please refer to the [Prefect documentation](https://docs.prefect.io/).
|
|
63
|
-
|
|
64
|
-
### Installation
|
|
65
|
-
|
|
66
|
-
Install `prefect-gitlab` with `pip`:
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
pip install prefect-gitlab
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Then, register the [block types](https://docs.prefect.io/concepts/blocks/)) in this integration to view the storage block type on Prefect Cloud:
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
prefect block register -m prefect_gitlab
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
Note, to use the `load` method on a block, you must already have a block document [saved](https://docs.prefect.io/concepts/blocks/).
|
|
79
|
-
|
|
80
|
-
## Creating a GitLab storage block
|
|
81
|
-
|
|
82
|
-
### In Python
|
|
83
|
-
|
|
84
|
-
```python
|
|
85
|
-
from prefect_gitlab import GitLabRepository
|
|
86
|
-
|
|
87
|
-
# public GitLab repository
|
|
88
|
-
public_gitlab_block = GitLabRepository(
|
|
89
|
-
name="my-gitlab-block",
|
|
90
|
-
repository="https://gitlab.com/testing/my-repository.git"
|
|
91
|
-
)
|
|
92
|
-
|
|
93
|
-
public_gitlab_block.save()
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
# specific branch or tag of a GitLab repository
|
|
97
|
-
branch_gitlab_block = GitLabRepository(
|
|
98
|
-
name="my-gitlab-block",
|
|
99
|
-
reference="branch-or-tag-name",
|
|
100
|
-
repository="https://gitlab.com/testing/my-repository.git"
|
|
101
|
-
)
|
|
102
|
-
|
|
103
|
-
branch_gitlab_block.save()
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
# Get all history of a specific branch or tag of a GitLab repository
|
|
107
|
-
branch_gitlab_block = GitLabRepository(
|
|
108
|
-
name="my-gitlab-block",
|
|
109
|
-
reference="branch-or-tag-name",
|
|
110
|
-
git_depth=None,
|
|
111
|
-
repository="https://gitlab.com/testing/my-repository.git"
|
|
112
|
-
)
|
|
113
|
-
|
|
114
|
-
branch_gitlab_block.save()
|
|
115
|
-
|
|
116
|
-
# private GitLab repository
|
|
117
|
-
private_gitlab_block = GitLabRepository(
|
|
118
|
-
name="my-private-gitlab-block",
|
|
119
|
-
repository="https://gitlab.com/testing/my-repository.git",
|
|
120
|
-
access_token="YOUR_GITLAB_PERSONAL_ACCESS_TOKEN"
|
|
121
|
-
)
|
|
122
|
-
|
|
123
|
-
private_gitlab_block.save()
|
|
124
|
-
```
|
prefect_gitlab-0.3.0/README.md
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
# prefect-gitlab
|
|
2
|
-
|
|
3
|
-
<p align="center">
|
|
4
|
-
<a href="https://pypi.python.org/pypi/prefect-gitlab/" alt="PyPI version">
|
|
5
|
-
<img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-gitlab?color=26272B&labelColor=090422"></a>
|
|
6
|
-
<a href="https://pepy.tech/badge/prefect-gitlab/" alt="Downloads">
|
|
7
|
-
<img src="https://img.shields.io/pypi/dm/prefect-gitlab?color=26272B&labelColor=090422" /></a>
|
|
8
|
-
</p>
|
|
9
|
-
|
|
10
|
-
## Welcome!
|
|
11
|
-
|
|
12
|
-
`prefect-gitlab` is a Prefect collection for working with GitLab repositories.
|
|
13
|
-
|
|
14
|
-
## Getting Started
|
|
15
|
-
|
|
16
|
-
### Python setup
|
|
17
|
-
|
|
18
|
-
Requires an installation of Python 3.9 or higher.
|
|
19
|
-
|
|
20
|
-
We recommend using a Python virtual environment manager such as pipenv, conda, or virtualenv.
|
|
21
|
-
|
|
22
|
-
This integration is designed to work with Prefect 2.3.0 or higher. For more information about how to use Prefect, please refer to the [Prefect documentation](https://docs.prefect.io/).
|
|
23
|
-
|
|
24
|
-
### Installation
|
|
25
|
-
|
|
26
|
-
Install `prefect-gitlab` with `pip`:
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
pip install prefect-gitlab
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Then, register the [block types](https://docs.prefect.io/concepts/blocks/)) in this integration to view the storage block type on Prefect Cloud:
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
prefect block register -m prefect_gitlab
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
Note, to use the `load` method on a block, you must already have a block document [saved](https://docs.prefect.io/concepts/blocks/).
|
|
39
|
-
|
|
40
|
-
## Creating a GitLab storage block
|
|
41
|
-
|
|
42
|
-
### In Python
|
|
43
|
-
|
|
44
|
-
```python
|
|
45
|
-
from prefect_gitlab import GitLabRepository
|
|
46
|
-
|
|
47
|
-
# public GitLab repository
|
|
48
|
-
public_gitlab_block = GitLabRepository(
|
|
49
|
-
name="my-gitlab-block",
|
|
50
|
-
repository="https://gitlab.com/testing/my-repository.git"
|
|
51
|
-
)
|
|
52
|
-
|
|
53
|
-
public_gitlab_block.save()
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
# specific branch or tag of a GitLab repository
|
|
57
|
-
branch_gitlab_block = GitLabRepository(
|
|
58
|
-
name="my-gitlab-block",
|
|
59
|
-
reference="branch-or-tag-name",
|
|
60
|
-
repository="https://gitlab.com/testing/my-repository.git"
|
|
61
|
-
)
|
|
62
|
-
|
|
63
|
-
branch_gitlab_block.save()
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
# Get all history of a specific branch or tag of a GitLab repository
|
|
67
|
-
branch_gitlab_block = GitLabRepository(
|
|
68
|
-
name="my-gitlab-block",
|
|
69
|
-
reference="branch-or-tag-name",
|
|
70
|
-
git_depth=None,
|
|
71
|
-
repository="https://gitlab.com/testing/my-repository.git"
|
|
72
|
-
)
|
|
73
|
-
|
|
74
|
-
branch_gitlab_block.save()
|
|
75
|
-
|
|
76
|
-
# private GitLab repository
|
|
77
|
-
private_gitlab_block = GitLabRepository(
|
|
78
|
-
name="my-private-gitlab-block",
|
|
79
|
-
repository="https://gitlab.com/testing/my-repository.git",
|
|
80
|
-
access_token="YOUR_GITLAB_PERSONAL_ACCESS_TOKEN"
|
|
81
|
-
)
|
|
82
|
-
|
|
83
|
-
private_gitlab_block.save()
|
|
84
|
-
```
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: prefect-gitlab
|
|
3
|
-
Version: 0.3.0
|
|
4
|
-
Summary: A Prefect collection for working with GitLab repositories.
|
|
5
|
-
Author-email: "Prefect Technologies, Inc." <help@prefect.io>
|
|
6
|
-
License: Apache License 2.0
|
|
7
|
-
Project-URL: Homepage, https://github.com/PrefectHQ/prefect/tree/main/src/integrations/prefect-gitlab
|
|
8
|
-
Keywords: prefect
|
|
9
|
-
Classifier: Natural Language :: English
|
|
10
|
-
Classifier: Intended Audience :: Developers
|
|
11
|
-
Classifier: Intended Audience :: System Administrators
|
|
12
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
-
Classifier: Topic :: Software Development :: Libraries
|
|
19
|
-
Requires-Python: >=3.9
|
|
20
|
-
Description-Content-Type: text/markdown
|
|
21
|
-
License-File: LICENSE
|
|
22
|
-
Requires-Dist: prefect>=3.0.0rc1
|
|
23
|
-
Requires-Dist: python-gitlab>=3.12.0
|
|
24
|
-
Requires-Dist: tenacity>=8.2.3
|
|
25
|
-
Provides-Extra: dev
|
|
26
|
-
Requires-Dist: aiohttp; extra == "dev"
|
|
27
|
-
Requires-Dist: coverage; extra == "dev"
|
|
28
|
-
Requires-Dist: interrogate; extra == "dev"
|
|
29
|
-
Requires-Dist: mkdocs-gen-files; extra == "dev"
|
|
30
|
-
Requires-Dist: mkdocs-material; extra == "dev"
|
|
31
|
-
Requires-Dist: mkdocs; extra == "dev"
|
|
32
|
-
Requires-Dist: mkdocstrings[python]; extra == "dev"
|
|
33
|
-
Requires-Dist: mypy; extra == "dev"
|
|
34
|
-
Requires-Dist: pillow; extra == "dev"
|
|
35
|
-
Requires-Dist: pre-commit; extra == "dev"
|
|
36
|
-
Requires-Dist: pytest-asyncio; extra == "dev"
|
|
37
|
-
Requires-Dist: pytest; extra == "dev"
|
|
38
|
-
Requires-Dist: pytest-env; extra == "dev"
|
|
39
|
-
Requires-Dist: pytest-xdist; extra == "dev"
|
|
40
|
-
|
|
41
|
-
# prefect-gitlab
|
|
42
|
-
|
|
43
|
-
<p align="center">
|
|
44
|
-
<a href="https://pypi.python.org/pypi/prefect-gitlab/" alt="PyPI version">
|
|
45
|
-
<img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-gitlab?color=26272B&labelColor=090422"></a>
|
|
46
|
-
<a href="https://pepy.tech/badge/prefect-gitlab/" alt="Downloads">
|
|
47
|
-
<img src="https://img.shields.io/pypi/dm/prefect-gitlab?color=26272B&labelColor=090422" /></a>
|
|
48
|
-
</p>
|
|
49
|
-
|
|
50
|
-
## Welcome!
|
|
51
|
-
|
|
52
|
-
`prefect-gitlab` is a Prefect collection for working with GitLab repositories.
|
|
53
|
-
|
|
54
|
-
## Getting Started
|
|
55
|
-
|
|
56
|
-
### Python setup
|
|
57
|
-
|
|
58
|
-
Requires an installation of Python 3.9 or higher.
|
|
59
|
-
|
|
60
|
-
We recommend using a Python virtual environment manager such as pipenv, conda, or virtualenv.
|
|
61
|
-
|
|
62
|
-
This integration is designed to work with Prefect 2.3.0 or higher. For more information about how to use Prefect, please refer to the [Prefect documentation](https://docs.prefect.io/).
|
|
63
|
-
|
|
64
|
-
### Installation
|
|
65
|
-
|
|
66
|
-
Install `prefect-gitlab` with `pip`:
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
pip install prefect-gitlab
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Then, register the [block types](https://docs.prefect.io/concepts/blocks/)) in this integration to view the storage block type on Prefect Cloud:
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
prefect block register -m prefect_gitlab
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
Note, to use the `load` method on a block, you must already have a block document [saved](https://docs.prefect.io/concepts/blocks/).
|
|
79
|
-
|
|
80
|
-
## Creating a GitLab storage block
|
|
81
|
-
|
|
82
|
-
### In Python
|
|
83
|
-
|
|
84
|
-
```python
|
|
85
|
-
from prefect_gitlab import GitLabRepository
|
|
86
|
-
|
|
87
|
-
# public GitLab repository
|
|
88
|
-
public_gitlab_block = GitLabRepository(
|
|
89
|
-
name="my-gitlab-block",
|
|
90
|
-
repository="https://gitlab.com/testing/my-repository.git"
|
|
91
|
-
)
|
|
92
|
-
|
|
93
|
-
public_gitlab_block.save()
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
# specific branch or tag of a GitLab repository
|
|
97
|
-
branch_gitlab_block = GitLabRepository(
|
|
98
|
-
name="my-gitlab-block",
|
|
99
|
-
reference="branch-or-tag-name",
|
|
100
|
-
repository="https://gitlab.com/testing/my-repository.git"
|
|
101
|
-
)
|
|
102
|
-
|
|
103
|
-
branch_gitlab_block.save()
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
# Get all history of a specific branch or tag of a GitLab repository
|
|
107
|
-
branch_gitlab_block = GitLabRepository(
|
|
108
|
-
name="my-gitlab-block",
|
|
109
|
-
reference="branch-or-tag-name",
|
|
110
|
-
git_depth=None,
|
|
111
|
-
repository="https://gitlab.com/testing/my-repository.git"
|
|
112
|
-
)
|
|
113
|
-
|
|
114
|
-
branch_gitlab_block.save()
|
|
115
|
-
|
|
116
|
-
# private GitLab repository
|
|
117
|
-
private_gitlab_block = GitLabRepository(
|
|
118
|
-
name="my-private-gitlab-block",
|
|
119
|
-
repository="https://gitlab.com/testing/my-repository.git",
|
|
120
|
-
access_token="YOUR_GITLAB_PERSONAL_ACCESS_TOKEN"
|
|
121
|
-
)
|
|
122
|
-
|
|
123
|
-
private_gitlab_block.save()
|
|
124
|
-
```
|
|
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
|