version-query 1.5.4__tar.gz → 1.5.5rc1__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.
Files changed (32) hide show
  1. {version-query-1.5.4 → version_query-1.5.5rc1}/NOTICE +1 -1
  2. {version-query-1.5.4/version_query.egg-info → version_query-1.5.5rc1}/PKG-INFO +9 -4
  3. version_query-1.5.5rc1/requirements.txt +4 -0
  4. {version-query-1.5.4 → version_query-1.5.5rc1}/setup.py +1 -0
  5. {version-query-1.5.4 → version_query-1.5.5rc1}/test/__init__.py +1 -1
  6. {version-query-1.5.4 → version_query-1.5.5rc1}/version_query/__main__.py +1 -1
  7. {version-query-1.5.4 → version_query-1.5.5rc1}/version_query/main.py +6 -5
  8. {version-query-1.5.4 → version_query-1.5.5rc1/version_query.egg-info}/PKG-INFO +9 -4
  9. version_query-1.5.5rc1/version_query.egg-info/requires.txt +4 -0
  10. version-query-1.5.4/requirements.txt +0 -4
  11. version-query-1.5.4/version_query.egg-info/requires.txt +0 -4
  12. {version-query-1.5.4 → version_query-1.5.5rc1}/LICENSE +0 -0
  13. {version-query-1.5.4 → version_query-1.5.5rc1}/MANIFEST.in +0 -0
  14. {version-query-1.5.4 → version_query-1.5.5rc1}/README.rst +0 -0
  15. {version-query-1.5.4 → version_query-1.5.5rc1}/pyproject.toml +0 -0
  16. {version-query-1.5.4 → version_query-1.5.5rc1}/requirements_test.txt +0 -0
  17. {version-query-1.5.4 → version_query-1.5.5rc1}/setup.cfg +0 -0
  18. {version-query-1.5.4 → version_query-1.5.5rc1}/test/examples.py +0 -0
  19. {version-query-1.5.4 → version_query-1.5.5rc1}/test/test_git.py +0 -0
  20. {version-query-1.5.4 → version_query-1.5.5rc1}/test/test_packaging.py +0 -0
  21. {version-query-1.5.4 → version_query-1.5.5rc1}/test/test_query.py +0 -0
  22. {version-query-1.5.4 → version_query-1.5.5rc1}/test/test_version.py +0 -0
  23. {version-query-1.5.4 → version_query-1.5.5rc1}/version_query/__init__.py +0 -0
  24. {version-query-1.5.4 → version_query-1.5.5rc1}/version_query/_version.py +0 -0
  25. {version-query-1.5.4 → version_query-1.5.5rc1}/version_query/git_query.py +0 -0
  26. {version-query-1.5.4 → version_query-1.5.5rc1}/version_query/py.typed +0 -0
  27. {version-query-1.5.4 → version_query-1.5.5rc1}/version_query/py_query.py +0 -0
  28. {version-query-1.5.4 → version_query-1.5.5rc1}/version_query/query.py +0 -0
  29. {version-query-1.5.4 → version_query-1.5.5rc1}/version_query/version.py +0 -0
  30. {version-query-1.5.4 → version_query-1.5.5rc1}/version_query.egg-info/SOURCES.txt +0 -0
  31. {version-query-1.5.4 → version_query-1.5.5rc1}/version_query.egg-info/dependency_links.txt +0 -0
  32. {version-query-1.5.4 → version_query-1.5.5rc1}/version_query.egg-info/top_level.txt +0 -0
@@ -1,5 +1,5 @@
1
1
  version-query
2
- Copyright (c) 2017-2023 Mateusz Bysiek https://mbdevpl.github.io/
2
+ Copyright (c) 2017-2024 Mateusz Bysiek https://mbdevpl.github.io/
3
3
  Copyright (c) 2020 John Vandenberg https://github.com/jayvdb
4
4
 
5
5
  Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: version-query
3
- Version: 1.5.4
3
+ Version: 1.5.5rc1
4
4
  Summary: Zero-overhead package versioning for Python.
5
5
  Home-page: https://github.com/mbdevpl/version-query
6
6
  Download-URL:
@@ -22,6 +22,7 @@ Classifier: Programming Language :: Python :: 3.8
22
22
  Classifier: Programming Language :: Python :: 3.9
23
23
  Classifier: Programming Language :: Python :: 3.10
24
24
  Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
25
26
  Classifier: Programming Language :: Python :: 3 :: Only
26
27
  Classifier: Topic :: Software Development :: Version Control
27
28
  Classifier: Topic :: Software Development :: Version Control :: Git
@@ -32,6 +33,10 @@ Requires-Python: >=3.8
32
33
  Description-Content-Type: text/x-rst; charset=UTF-8
33
34
  License-File: LICENSE
34
35
  License-File: NOTICE
36
+ Requires-Dist: boilerplates[cli,logging]~=1.0
37
+ Requires-Dist: GitPython~=3.1
38
+ Requires-Dist: packaging>=23.0
39
+ Requires-Dist: semver<3.1,>=2.13
35
40
 
36
41
  .. role:: bash(code)
37
42
  :language: bash
@@ -63,7 +68,7 @@ Zero-overhead package versioning for Python.
63
68
  :alt: grade from Codacy
64
69
 
65
70
  .. image:: https://img.shields.io/github/license/mbdevpl/version-query.svg
66
- :target: https://github.com/mbdevpl/version-query/blob/v1.5.4/NOTICE
71
+ :target: https://github.com/mbdevpl/version-query/blob/v1.5.5rc1/NOTICE
67
72
  :alt: license
68
73
 
69
74
  Package versioning toolkit for Python which relies on git tags, git history traversal
@@ -473,8 +478,8 @@ Requirements
473
478
 
474
479
  Python version 3.8 or later.
475
480
 
476
- Python libraries as specified in `requirements.txt <https://github.com/mbdevpl/version-query/blob/v1.5.4/requirements.txt>`_.
481
+ Python libraries as specified in `requirements.txt <https://github.com/mbdevpl/version-query/blob/v1.5.5rc1/requirements.txt>`_.
477
482
 
478
- Building and running tests additionally requires packages listed in `requirements_test.txt <https://github.com/mbdevpl/version-query/blob/v1.5.4/requirements_test.txt>`_.
483
+ Building and running tests additionally requires packages listed in `requirements_test.txt <https://github.com/mbdevpl/version-query/blob/v1.5.5rc1/requirements_test.txt>`_.
479
484
 
480
485
  Tested on Linux, macOS and Windows.
@@ -0,0 +1,4 @@
1
+ boilerplates[cli,logging] ~= 1.0
2
+ GitPython ~= 3.1
3
+ packaging >= 23.0
4
+ semver >= 2.13, < 3.1
@@ -24,6 +24,7 @@ class Package(boilerplates.setup.Package):
24
24
  'Programming Language :: Python :: 3.9',
25
25
  'Programming Language :: Python :: 3.10',
26
26
  'Programming Language :: Python :: 3.11',
27
+ 'Programming Language :: Python :: 3.12',
27
28
  'Programming Language :: Python :: 3 :: Only',
28
29
  'Topic :: Software Development :: Version Control',
29
30
  'Topic :: Software Development :: Version Control :: Git',
@@ -8,7 +8,7 @@ from version_query.__main__ import Logging
8
8
  class TestsLogging(Logging):
9
9
  """Logging configuration."""
10
10
 
11
- level_package = logging.DEBUG
11
+ level_global = logging.DEBUG
12
12
 
13
13
 
14
14
  TestsLogging.configure()
@@ -11,7 +11,7 @@ class Logging(boilerplates.logging.Logging):
11
11
  """Logging configuration."""
12
12
 
13
13
  packages = ['version_query']
14
- level_package = logging.INFO
14
+ level_global = logging.INFO
15
15
 
16
16
 
17
17
  if __name__ == '__main__':
@@ -2,7 +2,8 @@
2
2
 
3
3
  import argparse
4
4
  import pathlib
5
- import sys
5
+
6
+ from boilerplates.cli import make_copyright_notice, add_version_option
6
7
 
7
8
  from ._version import VERSION
8
9
  from .version import VersionComponent
@@ -18,17 +19,17 @@ def main(args=None, namespace=None) -> None:
18
19
  prog='version_query',
19
20
  description='''Tool for querying current versions of Python packages. Use LOGGING_LEVEL
20
21
  environment variable to adjust logging level.''',
21
- epilog='''Copyright 2017-2023 by the contributors, Apache License 2.0,
22
- https://github.com/mbdevpl/version-query''',
22
+ epilog=make_copyright_notice(
23
+ 2017, 2024, author='the contributors', url='https://github.com/mbdevpl/version-query'),
23
24
  formatter_class=argparse.ArgumentDefaultsHelpFormatter)
25
+ add_version_option(parser, VERSION)
26
+
24
27
  parser.add_argument('-i', '--increment', action='store_true', help='''output version string for
25
28
  next patch release, i.e. if version is 1.0.3, output 1.0.4''')
26
29
  parser.add_argument('-p', '--predict', action='store_true', help='''operate in prediction mode,
27
30
  i.e. assume existence of git repository and infer current version from
28
31
  its tags, history and working tree status''')
29
32
  parser.add_argument('path', type=pathlib.Path)
30
- parser.add_argument('--version', action='version',
31
- version=f'{parser.prog} {VERSION},\nPython {sys.version}')
32
33
  parsed_args = parser.parse_args(args=args, namespace=namespace)
33
34
  if parsed_args.predict and parsed_args.increment:
34
35
  raise ValueError(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: version-query
3
- Version: 1.5.4
3
+ Version: 1.5.5rc1
4
4
  Summary: Zero-overhead package versioning for Python.
5
5
  Home-page: https://github.com/mbdevpl/version-query
6
6
  Download-URL:
@@ -22,6 +22,7 @@ Classifier: Programming Language :: Python :: 3.8
22
22
  Classifier: Programming Language :: Python :: 3.9
23
23
  Classifier: Programming Language :: Python :: 3.10
24
24
  Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
25
26
  Classifier: Programming Language :: Python :: 3 :: Only
26
27
  Classifier: Topic :: Software Development :: Version Control
27
28
  Classifier: Topic :: Software Development :: Version Control :: Git
@@ -32,6 +33,10 @@ Requires-Python: >=3.8
32
33
  Description-Content-Type: text/x-rst; charset=UTF-8
33
34
  License-File: LICENSE
34
35
  License-File: NOTICE
36
+ Requires-Dist: boilerplates[cli,logging]~=1.0
37
+ Requires-Dist: GitPython~=3.1
38
+ Requires-Dist: packaging>=23.0
39
+ Requires-Dist: semver<3.1,>=2.13
35
40
 
36
41
  .. role:: bash(code)
37
42
  :language: bash
@@ -63,7 +68,7 @@ Zero-overhead package versioning for Python.
63
68
  :alt: grade from Codacy
64
69
 
65
70
  .. image:: https://img.shields.io/github/license/mbdevpl/version-query.svg
66
- :target: https://github.com/mbdevpl/version-query/blob/v1.5.4/NOTICE
71
+ :target: https://github.com/mbdevpl/version-query/blob/v1.5.5rc1/NOTICE
67
72
  :alt: license
68
73
 
69
74
  Package versioning toolkit for Python which relies on git tags, git history traversal
@@ -473,8 +478,8 @@ Requirements
473
478
 
474
479
  Python version 3.8 or later.
475
480
 
476
- Python libraries as specified in `requirements.txt <https://github.com/mbdevpl/version-query/blob/v1.5.4/requirements.txt>`_.
481
+ Python libraries as specified in `requirements.txt <https://github.com/mbdevpl/version-query/blob/v1.5.5rc1/requirements.txt>`_.
477
482
 
478
- Building and running tests additionally requires packages listed in `requirements_test.txt <https://github.com/mbdevpl/version-query/blob/v1.5.4/requirements_test.txt>`_.
483
+ Building and running tests additionally requires packages listed in `requirements_test.txt <https://github.com/mbdevpl/version-query/blob/v1.5.5rc1/requirements_test.txt>`_.
479
484
 
480
485
  Tested on Linux, macOS and Windows.
@@ -0,0 +1,4 @@
1
+ boilerplates[cli,logging]~=1.0
2
+ GitPython~=3.1
3
+ packaging>=23.0
4
+ semver<3.1,>=2.13
@@ -1,4 +0,0 @@
1
- boilerplates[logging] ~= 1.0
2
- GitPython ~= 3.1
3
- packaging >= 23.0
4
- semver ~= 2.13
@@ -1,4 +0,0 @@
1
- boilerplates[logging]~=1.0
2
- GitPython~=3.1
3
- packaging>=23.0
4
- semver~=2.13
File without changes