setuptools-git-versioning 3.0.0__py3-none-any.whl → 3.0.1__py3-none-any.whl

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.
@@ -18,7 +18,13 @@ def _exec(*cmd: str, root: str | os.PathLike | None = None) -> list[str]:
18
18
  try:
19
19
  stdout = subprocess.check_output(cmd, text=True, cwd=root) # noqa: S603
20
20
  except subprocess.CalledProcessError as e:
21
+ log.log(DEBUG, "Subprocess exited with code %d: %r", e.returncode, e.output)
21
22
  stdout = e.output
23
+ except OSError as e:
24
+ # Handle case where git executable is not found
25
+ # FileNotFoundError on Unix, OSError on some other systems
26
+ log.log(DEBUG, "Command not found: %r", e)
27
+ stdout = ""
22
28
  lines = stdout.splitlines()
23
29
  return [line.rstrip() for line in lines if line.rstrip()]
24
30
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: setuptools-git-versioning
3
- Version: 3.0.0
3
+ Version: 3.0.1
4
4
  Summary: Use git repo data for building a version number according to PEP-440
5
5
  Author-email: dolfinus <martinov.m.s.8@gmail.com>
6
6
  License: MIT
@@ -8,7 +8,6 @@ Project-URL: Homepage, https://setuptools-git-versioning.readthedocs.io
8
8
  Project-URL: Documentation, https://setuptools-git-versioning.readthedocs.io
9
9
  Project-URL: Source, https://github.com/dolfinus/setuptools-git-versioning
10
10
  Project-URL: CI/CD, https://github.com/dolfinus/setuptools-git-versioning/actions
11
- Project-URL: Coverage, https://app.codecov.io/gh/dolfinus/setuptools-git-versioning
12
11
  Project-URL: Tracker, https://github.com/dolfinus/setuptools-git-versioning/issues
13
12
  Keywords: setuptools,git,versioning,pep-440
14
13
  Classifier: Framework :: Setuptools Plugin
@@ -50,8 +49,9 @@ setuptools-git-versioning
50
49
  :target: https://setuptools-git-versioning.readthedocs.io
51
50
  .. |Build| image:: https://github.com/dolfinus/setuptools-git-versioning/workflows/Tests/badge.svg
52
51
  :target: https://github.com/dolfinus/setuptools-git-versioning/actions
53
- .. |Coverage| image:: https://codecov.io/gh/dolfinus/setuptools-git-versioning/branch/master/graph/badge.svg?token=GIMVHUTNW4
54
- :target: https://codecov.io/gh/dolfinus/setuptools-git-versioning
52
+ .. |Coverage| image:: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/
53
+ dolfinus/38b81533c2b8c389db378e3bae7df034/raw/setuptools_git_versioning_badge.json
54
+ :target: https://github.com/dolfinus/setuptools-git-versioning/actions
55
55
  .. |pre-commit.ci| image:: https://results.pre-commit.ci/badge/github/dolfinus/setuptools-git-versioning/master.svg
56
56
  :target: https://results.pre-commit.ci/latest/github/dolfinus/setuptools-git-versioning/master
57
57
 
@@ -93,13 +93,6 @@ Documentation
93
93
 
94
94
  See https://setuptools-git-versioning.readthedocs.io/en/stable/
95
95
 
96
- .. contribution
97
-
98
- Contribution Guide
99
- ------------------
100
-
101
- See ./CONTRIBUTING.rst
102
-
103
96
  .. installation
104
97
 
105
98
  Install
@@ -3,14 +3,14 @@ setuptools_git_versioning/__main__.py,sha256=6mSX6LsqmyKDEmobvZRfrxXO0kDuZH3aENz
3
3
  setuptools_git_versioning/cli.py,sha256=DQ6_OFbKXUM30dnP0wWWJbAVjt5RIjxFxUw3sfdBtFs,1132
4
4
  setuptools_git_versioning/defaults.py,sha256=PVsZd2w7pGi8jMIpnpkdlBoacDYypiG3bQK2Lh6FPBA,797
5
5
  setuptools_git_versioning/factories.py,sha256=tGJpYVJeGJC2vE5mFvuoogl3sG0H3xJbkqpPApGZXjs,4462
6
- setuptools_git_versioning/git.py,sha256=ppW9YVeekGzD8rb7GZXmkLenbIwo1wFHfHNM0yeRlAw,3225
6
+ setuptools_git_versioning/git.py,sha256=qjh-zQOx_nngl3HmlypG5kXb2vCjw75HC9IxKEUSqDY,3529
7
7
  setuptools_git_versioning/log.py,sha256=R4VPodnnRkuybYc5L2CKENyTtESXedTyz3CvqxJCJPA,515
8
8
  setuptools_git_versioning/setup.py,sha256=bQGeT96GFodgmemaOo19uuwyRiNIySleGDB1T46FQOY,5357
9
9
  setuptools_git_versioning/subst.py,sha256=thLbkXUmUvsZR84o1S7D5uXsYmK4xSldGGPBGQdwccM,2174
10
10
  setuptools_git_versioning/version.py,sha256=9D8_BOoTk9_o1WqNTZYPCK4tXd33Zx4OjCdHa7rdd30,8258
11
- setuptools_git_versioning-3.0.0.dist-info/licenses/LICENSE,sha256=YP7W0rZutEgY8ypJZeFLuZDSYsaZC-P6YxGZDjiFuL4,1060
12
- setuptools_git_versioning-3.0.0.dist-info/METADATA,sha256=XnUq0NHhPKCAsZxpXtFeEitARnrPNyh_r4uTwWncF1I,6055
13
- setuptools_git_versioning-3.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
- setuptools_git_versioning-3.0.0.dist-info/entry_points.txt,sha256=FU3QTN1qtkjTNeRGVcJZgo9jwV2z7syLEy3Fj9YUR9M,288
15
- setuptools_git_versioning-3.0.0.dist-info/top_level.txt,sha256=aP9te4bjCBVXzZRQhwrT_IdcSxOe1Dd8Mb_oFCeNyEI,26
16
- setuptools_git_versioning-3.0.0.dist-info/RECORD,,
11
+ setuptools_git_versioning-3.0.1.dist-info/licenses/LICENSE,sha256=YP7W0rZutEgY8ypJZeFLuZDSYsaZC-P6YxGZDjiFuL4,1060
12
+ setuptools_git_versioning-3.0.1.dist-info/METADATA,sha256=3HPqdILZxsUZN7wNXiX-3o0k2l7NF1LDBonLPEP2Wxw,5951
13
+ setuptools_git_versioning-3.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
+ setuptools_git_versioning-3.0.1.dist-info/entry_points.txt,sha256=FU3QTN1qtkjTNeRGVcJZgo9jwV2z7syLEy3Fj9YUR9M,288
15
+ setuptools_git_versioning-3.0.1.dist-info/top_level.txt,sha256=aP9te4bjCBVXzZRQhwrT_IdcSxOe1Dd8Mb_oFCeNyEI,26
16
+ setuptools_git_versioning-3.0.1.dist-info/RECORD,,