git-recap 0.1.2__tar.gz → 0.1.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-recap
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: A modular Python tool that aggregates and formats user-authored messages from repositories.
5
5
  Author: Bruno V.
6
6
  Author-email: bruno.vitorino@tecnico.ulisboa.pt
@@ -36,13 +36,13 @@ class URLFetcher(BaseFetcher):
36
36
  )
37
37
  self.url = self._normalize_url(url)
38
38
  self.temp_dir = None
39
- self._validate_url()
39
+ # self._validate_url()
40
40
  self._clone_repo()
41
41
 
42
42
  def _normalize_url(self, url: str) -> str:
43
43
  """Normalize the Git URL to ensure consistent format."""
44
44
  url = url.strip()
45
- if not url.endswith('.git'):
45
+ if not url.endswith('.git') and "_git" not in url:
46
46
  url += '.git'
47
47
  if not any(url.startswith(proto) for proto in ('http://', 'https://', 'git://', 'ssh://')):
48
48
  url = f'https://{url}'
@@ -116,7 +116,8 @@ class URLFetcher(BaseFetcher):
116
116
 
117
117
  match = self.GIT_URL_PATTERN.match(self.url)
118
118
  if not match:
119
- return []
119
+ repo_name = self.url.split('/')[-1]
120
+ return [repo_name]
120
121
 
121
122
  repo_name = match.group(2).split('/')[-1]
122
123
  if repo_name.endswith(".git"):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-recap
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: A modular Python tool that aggregates and formats user-authored messages from repositories.
5
5
  Author: Bruno V.
6
6
  Author-email: bruno.vitorino@tecnico.ulisboa.pt
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setup(
7
7
  name="git-recap",
8
- version="0.1.2",
8
+ version="0.1.3",
9
9
  packages=find_packages(),
10
10
  install_requires=[
11
11
  "PyGithub==2.6.1",
File without changes
File without changes
File without changes
File without changes