itcpr 2.0.4__tar.gz → 2.0.6__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.
itcpr-2.0.6/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 ITCPR
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: itcpr
3
- Version: 2.0.4
3
+ Version: 2.0.6
4
4
  Summary: CLI tool for syncing GitHub repositories from ITCPR Cloud
5
- Home-page: https://github.com/ITCPR/itcpr
5
+ Home-page: https://itcpr.org
6
6
  Author: ITCPR
7
7
  Author-email: ITCPR <info@itcpr.org>
8
8
  License: MIT
@@ -16,6 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
17
  Requires-Python: >=3.10
18
18
  Description-Content-Type: text/markdown
19
+ License-File: LICENSE
19
20
  Requires-Dist: click>=8.0.0
20
21
  Requires-Dist: requests>=2.28.0
21
22
  Requires-Dist: keyring>=23.0.0
@@ -26,6 +27,7 @@ Requires-Dist: black; extra == "dev"
26
27
  Requires-Dist: flake8; extra == "dev"
27
28
  Dynamic: author
28
29
  Dynamic: home-page
30
+ Dynamic: license-file
29
31
  Dynamic: requires-python
30
32
 
31
33
  # ITCPR CLI
@@ -1,4 +1,4 @@
1
1
  """ITCPR Agent - CLI tool for syncing GitHub repositories."""
2
2
 
3
- __version__ = "2.0.4"
3
+ __version__ = "2.0.6"
4
4
 
@@ -2,11 +2,6 @@
2
2
 
3
3
  import click
4
4
  from pathlib import Path
5
- from .auth import Auth
6
- from .api import APIClient
7
- from .storage import Storage
8
- from .sync import SyncManager
9
- from .gitops import GitOps
10
5
  from .utils import setup_logging, print_error, print_success, print_info, get_logger
11
6
 
12
7
  logger = get_logger(__name__)
@@ -23,6 +18,7 @@ def cli(ctx, verbose):
23
18
  @cli.command()
24
19
  def login():
25
20
  """Authenticate this device with cloud.itcpr.org."""
21
+ from .auth import Auth
26
22
  auth = Auth()
27
23
  if auth.is_authenticated():
28
24
  if not click.confirm("You are already logged in. Do you want to login again?"):
@@ -36,6 +32,7 @@ def login():
36
32
  @cli.command()
37
33
  def logout():
38
34
  """Logout and clear stored credentials."""
35
+ from .auth import Auth
39
36
  auth = Auth()
40
37
  if not auth.is_authenticated():
41
38
  click.echo("Not logged in.")
@@ -47,6 +44,9 @@ def logout():
47
44
  @click.pass_context
48
45
  def status(ctx):
49
46
  """Show current status and assigned repositories."""
47
+ from .auth import Auth
48
+ from .api import APIClient
49
+ from .storage import Storage
50
50
  auth = Auth()
51
51
  if not auth.is_authenticated():
52
52
  click.echo("Not logged in. Run 'itcpr login' first.")
@@ -100,6 +100,9 @@ def status(ctx):
100
100
  @click.pass_context
101
101
  def repos(ctx):
102
102
  """List assigned repositories and their sync status."""
103
+ from .auth import Auth
104
+ from .api import APIClient
105
+ from .storage import Storage
103
106
  auth = Auth()
104
107
  if not auth.is_authenticated():
105
108
  click.echo("Not logged in. Run 'itcpr login' first.")
@@ -148,6 +151,10 @@ def repos(ctx):
148
151
  @click.pass_context
149
152
  def clone(ctx, repo, path):
150
153
  """Clone a repository from GitHub."""
154
+ from .auth import Auth
155
+ from .api import APIClient
156
+ from .storage import Storage
157
+ from .gitops import GitOps
151
158
  auth = Auth()
152
159
  if not auth.is_authenticated():
153
160
  click.echo("Not logged in. Run 'itcpr login' first.")
@@ -219,6 +226,10 @@ def clone(ctx, repo, path):
219
226
  @click.pass_context
220
227
  def sync(ctx, watch, interval):
221
228
  """Sync repositories with remote."""
229
+ from .auth import Auth
230
+ from .api import APIClient
231
+ from .storage import Storage
232
+ from .sync import SyncManager
222
233
  auth = Auth()
223
234
  if not auth.is_authenticated():
224
235
  click.echo("Not logged in. Run 'itcpr login' first.")
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: itcpr
3
- Version: 2.0.4
3
+ Version: 2.0.6
4
4
  Summary: CLI tool for syncing GitHub repositories from ITCPR Cloud
5
- Home-page: https://github.com/ITCPR/itcpr
5
+ Home-page: https://itcpr.org
6
6
  Author: ITCPR
7
7
  Author-email: ITCPR <info@itcpr.org>
8
8
  License: MIT
@@ -16,6 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
17
  Requires-Python: >=3.10
18
18
  Description-Content-Type: text/markdown
19
+ License-File: LICENSE
19
20
  Requires-Dist: click>=8.0.0
20
21
  Requires-Dist: requests>=2.28.0
21
22
  Requires-Dist: keyring>=23.0.0
@@ -26,6 +27,7 @@ Requires-Dist: black; extra == "dev"
26
27
  Requires-Dist: flake8; extra == "dev"
27
28
  Dynamic: author
28
29
  Dynamic: home-page
30
+ Dynamic: license-file
29
31
  Dynamic: requires-python
30
32
 
31
33
  # ITCPR CLI
@@ -1,3 +1,4 @@
1
+ LICENSE
1
2
  MANIFEST.in
2
3
  README.md
3
4
  pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "itcpr"
7
- version = "2.0.4"
7
+ version = "2.0.6"
8
8
  description = "CLI tool for syncing GitHub repositories from ITCPR Cloud"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -9,13 +9,13 @@ long_description = readme_file.read_text() if readme_file.exists() else ""
9
9
 
10
10
  setup(
11
11
  name="itcpr",
12
- version="2.0.4",
12
+ version="2.0.6",
13
13
  description="CLI tool for syncing GitHub repositories from ITCPR Cloud",
14
14
  long_description=long_description,
15
15
  long_description_content_type="text/markdown",
16
16
  author="ITCPR",
17
17
  author_email="info@itcpr.org",
18
- url="https://github.com/ITCPR/itcpr",
18
+ url="https://itcpr.org",
19
19
  packages=find_packages(),
20
20
  python_requires=">=3.10",
21
21
  install_requires=[
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