python-semantic-release 7.33.5__tar.gz → 7.34.0__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 (58) hide show
  1. {python-semantic-release-7.33.5/python_semantic_release.egg-info → python-semantic-release-7.34.0}/PKG-INFO +1 -1
  2. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0/python_semantic_release.egg-info}/PKG-INFO +1 -1
  3. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/__init__.py +1 -1
  4. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/defaults.cfg +1 -0
  5. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/settings.py +1 -0
  6. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/vcs_helpers.py +4 -1
  7. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/AUTHORS.rst +0 -0
  8. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/LICENSE +0 -0
  9. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/MANIFEST.in +0 -0
  10. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/README.rst +0 -0
  11. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/python_semantic_release.egg-info/SOURCES.txt +0 -0
  12. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/python_semantic_release.egg-info/dependency_links.txt +0 -0
  13. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/python_semantic_release.egg-info/entry_points.txt +0 -0
  14. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/python_semantic_release.egg-info/requires.txt +0 -0
  15. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/python_semantic_release.egg-info/top_level.txt +0 -0
  16. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/__main__.py +0 -0
  17. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/changelog/__init__.py +0 -0
  18. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/changelog/changelog.py +0 -0
  19. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/changelog/compare.py +0 -0
  20. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/ci_checks.py +0 -0
  21. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/cli.py +0 -0
  22. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/dist.py +0 -0
  23. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/errors.py +0 -0
  24. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/helpers.py +0 -0
  25. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/history/__init__.py +0 -0
  26. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/history/logs.py +0 -0
  27. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/history/parser_angular.py +0 -0
  28. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/history/parser_emoji.py +0 -0
  29. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/history/parser_helpers.py +0 -0
  30. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/history/parser_scipy.py +0 -0
  31. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/history/parser_tag.py +0 -0
  32. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/hvcs.py +0 -0
  33. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/pre_commit.py +0 -0
  34. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/semantic_release/repository.py +0 -0
  35. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/setup.cfg +0 -0
  36. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/setup.py +0 -0
  37. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/ci_checks/__init__.py +0 -0
  38. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/ci_checks/test_bitbucket.py +0 -0
  39. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/ci_checks/test_checker.py +0 -0
  40. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/ci_checks/test_circle.py +0 -0
  41. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/ci_checks/test_frigg.py +0 -0
  42. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/ci_checks/test_gitlab.py +0 -0
  43. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/ci_checks/test_jenkins.py +0 -0
  44. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/ci_checks/test_semaphore.py +0 -0
  45. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/ci_checks/test_travis.py +0 -0
  46. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/history/__init__.py +0 -0
  47. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/history/test_changelog.py +0 -0
  48. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/history/test_version.py +0 -0
  49. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/history/test_version_bump.py +0 -0
  50. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/mocks/__init__.py +0 -0
  51. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/mocks/mock_gitlab.py +0 -0
  52. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/parsers/__init__.py +0 -0
  53. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/parsers/conftest.py +0 -0
  54. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/parsers/test_angular.py +0 -0
  55. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/parsers/test_emoji.py +0 -0
  56. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/parsers/test_helpers.py +0 -0
  57. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/parsers/test_scipy.py +0 -0
  58. {python-semantic-release-7.33.5 → python-semantic-release-7.34.0}/tests/parsers/test_tag.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-semantic-release
3
- Version: 7.33.5
3
+ Version: 7.34.0
4
4
  Summary: Automatic Semantic Versioning for Python projects
5
5
  Home-page: http://github.com/relekang/python-semantic-release
6
6
  Author: Rolf Erik Lekang
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-semantic-release
3
- Version: 7.33.5
3
+ Version: 7.34.0
4
4
  Summary: Automatic Semantic Versioning for Python projects
5
5
  Home-page: http://github.com/relekang/python-semantic-release
6
6
  Author: Rolf Erik Lekang
@@ -1,6 +1,6 @@
1
1
  """Semantic Release
2
2
  """
3
- __version__ = "7.33.5"
3
+ __version__ = "7.34.0"
4
4
 
5
5
 
6
6
  from .errors import UnknownCommitMessageStyleError # noqa; noqa
@@ -46,3 +46,4 @@ upload_to_pypi=true
46
46
  upload_to_release=true
47
47
  version_source=commit
48
48
  prerelease_tag=beta
49
+ use_only_cwd_commits=false
@@ -50,6 +50,7 @@ def _config_from_ini(paths):
50
50
  "upload_to_repository",
51
51
  "upload_to_release",
52
52
  "tag_commit",
53
+ "use_only_cwd_commits",
53
54
  }
54
55
 
55
56
  # Iterate through the sections so that default values are applied
@@ -17,8 +17,11 @@ from .helpers import LoggedFunction
17
17
  from .settings import config
18
18
 
19
19
  _repo: Optional[Repo]
20
+ _sub_directory = "."
20
21
  try:
21
22
  _repo = Repo(".", search_parent_directories=True)
23
+ if config.get("use_only_cwd_commits") and config.get("version_source") == "commit":
24
+ _sub_directory = os.path.relpath(os.getcwd(), _repo.working_dir)
22
25
  except InvalidGitRepositoryError:
23
26
  _repo = None
24
27
 
@@ -79,7 +82,7 @@ def get_commit_log(from_rev=None, to_rev=None):
79
82
  elif to_rev:
80
83
  rev = f"{to_rev}..."
81
84
 
82
- for commit in repo().iter_commits(rev):
85
+ for commit in repo().iter_commits(rev, paths=_sub_directory):
83
86
  yield (commit.hexsha, commit.message.replace("\r\n", "\n"))
84
87
 
85
88