python-semantic-release 7.33.4__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.4/python_semantic_release.egg-info → python-semantic-release-7.34.0}/PKG-INFO +1 -1
  2. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/README.rst +10 -2
  3. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0/python_semantic_release.egg-info}/PKG-INFO +1 -1
  4. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/python_semantic_release.egg-info/requires.txt +1 -1
  5. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/__init__.py +1 -1
  6. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/defaults.cfg +3 -2
  7. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/settings.py +1 -0
  8. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/vcs_helpers.py +4 -1
  9. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/setup.py +1 -1
  10. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/parsers/test_tag.py +4 -4
  11. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/AUTHORS.rst +0 -0
  12. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/LICENSE +0 -0
  13. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/MANIFEST.in +0 -0
  14. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/python_semantic_release.egg-info/SOURCES.txt +0 -0
  15. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/python_semantic_release.egg-info/dependency_links.txt +0 -0
  16. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/python_semantic_release.egg-info/entry_points.txt +0 -0
  17. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/python_semantic_release.egg-info/top_level.txt +0 -0
  18. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/__main__.py +0 -0
  19. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/changelog/__init__.py +0 -0
  20. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/changelog/changelog.py +0 -0
  21. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/changelog/compare.py +0 -0
  22. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/ci_checks.py +0 -0
  23. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/cli.py +0 -0
  24. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/dist.py +0 -0
  25. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/errors.py +0 -0
  26. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/helpers.py +0 -0
  27. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/history/__init__.py +0 -0
  28. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/history/logs.py +0 -0
  29. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/history/parser_angular.py +0 -0
  30. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/history/parser_emoji.py +0 -0
  31. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/history/parser_helpers.py +0 -0
  32. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/history/parser_scipy.py +0 -0
  33. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/history/parser_tag.py +0 -0
  34. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/hvcs.py +0 -0
  35. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/pre_commit.py +0 -0
  36. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/semantic_release/repository.py +0 -0
  37. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/setup.cfg +0 -0
  38. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/ci_checks/__init__.py +0 -0
  39. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/ci_checks/test_bitbucket.py +0 -0
  40. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/ci_checks/test_checker.py +0 -0
  41. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/ci_checks/test_circle.py +0 -0
  42. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/ci_checks/test_frigg.py +0 -0
  43. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/ci_checks/test_gitlab.py +0 -0
  44. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/ci_checks/test_jenkins.py +0 -0
  45. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/ci_checks/test_semaphore.py +0 -0
  46. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/ci_checks/test_travis.py +0 -0
  47. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/history/__init__.py +0 -0
  48. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/history/test_changelog.py +0 -0
  49. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/history/test_version.py +0 -0
  50. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/history/test_version_bump.py +0 -0
  51. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/mocks/__init__.py +0 -0
  52. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/mocks/mock_gitlab.py +0 -0
  53. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/parsers/__init__.py +0 -0
  54. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/parsers/conftest.py +0 -0
  55. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/parsers/test_angular.py +0 -0
  56. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/parsers/test_emoji.py +0 -0
  57. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/parsers/test_helpers.py +0 -0
  58. {python-semantic-release-7.33.4 → python-semantic-release-7.34.0}/tests/parsers/test_scipy.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-semantic-release
3
- Version: 7.33.4
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
@@ -30,7 +30,15 @@ Read more about the setup and configuration in our `getting started guide`_.
30
30
  .. _GitHub Action: https://python-semantic-release.readthedocs.io/en/latest/automatic-releases/github-actions.html
31
31
  .. _conda-forge: https://anaconda.org/conda-forge/python-semantic-release
32
32
 
33
- .. |Test Status| image:: https://img.shields.io/github/workflow/status/relekang/python-semantic-release/Test%20%26%20Release?label=Tests&logo=github
33
+ .. |Test Status| image:: https://img.shields.io/github/actions/workflow/status/python-semantic-release/python-semantic-release/main.yml?branch=master&label=Test%20Status&logo=github
34
+ :target: https://github.com/python-semantic-release/python-semantic-release/actions/workflows/main.yml
35
+ :alt: test-status
34
36
  .. |PyPI Version| image:: https://img.shields.io/pypi/v/python-semantic-release?label=PyPI&logo=pypi
37
+ :target: https://pypi.org/project/python-semantic-release/
38
+ :alt: pypi
35
39
  .. |conda-forge Version| image:: https://img.shields.io/conda/vn/conda-forge/python-semantic-release?logo=anaconda
36
- .. |Read the Docs Status| image:: https://img.shields.io/readthedocs/python-semantic-release?label=Read%20the%20Docs&logo=read-the-docs
40
+ :target: https://anaconda.org/conda-forge/python-semantic-release
41
+ :alt: conda-forge
42
+ .. |Read the Docs Status| image:: https://img.shields.io/readthedocs/python-semantic-release?label=Read%20the%20Docs&logo=Read%20the%20Docs
43
+ :target: https://python-semantic-release.readthedocs.io/en/latest/
44
+ :alt: docs
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-semantic-release
3
- Version: 7.33.4
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
@@ -20,7 +20,7 @@ isort
20
20
  black
21
21
 
22
22
  [docs]
23
- Sphinx==1.3.6
23
+ Sphinx==1.8.6
24
24
  Jinja2==3.0.3
25
25
 
26
26
  [mypy]
@@ -1,6 +1,6 @@
1
1
  """Semantic Release
2
2
  """
3
- __version__ = "7.33.4"
3
+ __version__ = "7.34.0"
4
4
 
5
5
 
6
6
  from .errors import UnknownCommitMessageStyleError # noqa; noqa
@@ -10,7 +10,7 @@ changelog_components=semantic_release.changelog.changelog_headers
10
10
  changelog_file=CHANGELOG.md
11
11
  changelog_placeholder=<!--next-version-placeholder-->
12
12
  changelog_scope=true
13
- changelog_sections=feature,fix,breaking,documentation,performance,:boom:,:sparkles:,:children_crossing:,:lipstick:,:iphone:,:egg:,:chart_with_upwards_trend:,:ambulance:,:lock:,:bug:,:zap:,:goal_net:,:alien:,:wheelchair:,:speech_balloon:,:mag:,:apple:,:penguin:,:checkered_flag:,:robot:,:green_apple:,Other
13
+ changelog_sections=feature,fix,breaking,documentation,performance,:boom:,:sparkles:,:zap:,:bug:,:ambulance:,:lipstick:,:lock:,:arrow_down:,:arrow_up:,:pushpin:,:chart_with_upwards_trend:,:heavy_plus_sign:,:heavy_minus_sign:,:wrench:,:globe_with_meridians:,:pencil2:,:rewind:,:package:,:alien:,:bento:,:wheelchair:,:speech_balloon:,:card_file_box:,:children_crossing:,:iphone:,:egg:,:alembic:,:mag:,:label:,:triangular_flag_on_post:,:goal_net:,:dizzy:,:wastebasket:,:passport_control:,:adhesive_bandage:,:necktie:,Other
14
14
  use_textual_changelog_sections=false
15
15
  check_build_status=false
16
16
  include_additional_files=
@@ -18,7 +18,7 @@ commit_message=Automatically generated by python-semantic-release
18
18
  commit_parser=semantic_release.history.angular_parser
19
19
  commit_subject={version}
20
20
  dist_path=dist
21
- fix_tag=:nut_and_bolt:
21
+ fix_tag=:wrench:
22
22
  github_token_var=GH_TOKEN
23
23
  gitlab_token_var=GL_TOKEN
24
24
  gitea_token_var=GITEA_TOKEN
@@ -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
 
@@ -62,7 +62,7 @@ setup(
62
62
  "responses==0.13.3",
63
63
  "mock==1.3.0",
64
64
  ],
65
- "docs": ["Sphinx==1.3.6", "Jinja2==3.0.3"],
65
+ "docs": ["Sphinx==1.8.6", "Jinja2==3.0.3"],
66
66
  "dev": ["tox", "isort", "black"],
67
67
  "mypy": ["mypy", "types-requests"],
68
68
  },
@@ -24,7 +24,7 @@ def test_parser_return_minor_bump_level():
24
24
 
25
25
 
26
26
  def test_parser_return_patch_bump_level():
27
- assert tag_parser(":nut_and_bolt: Fix regex in angular parser")[0] == 1
27
+ assert tag_parser(":wrench: Fix regex in angular parser")[0] == 1
28
28
 
29
29
 
30
30
  def test_parser_return_type_breaking_from_commit_message():
@@ -37,7 +37,7 @@ def test_parser_return_type_feature_from_commit_message():
37
37
 
38
38
 
39
39
  def test_parser_return_type_fix_from_commit_message():
40
- assert tag_parser(":nut_and_bolt: ...")[1] == "fix"
40
+ assert tag_parser(":wrench: ...")[1] == "fix"
41
41
 
42
42
 
43
43
  def test_parser_return_subject_from_commit_message():
@@ -45,10 +45,10 @@ def test_parser_return_subject_from_commit_message():
45
45
 
46
46
 
47
47
  def test_parser_return_text_from_commit_message():
48
- commit = ":nut_and_bolt: Fix regex in an parser\n\n{}".format(text)
48
+ commit = ":wrench: Fix regex in an parser\n\n{}".format(text)
49
49
  assert tag_parser(commit)[3][1] == text
50
50
 
51
51
 
52
52
  def test_parser_return_footer_from_commit_message():
53
- commit = ":nut_and_bolt: Fix env \n\n{t[text]}\n\n{t[footer]}".format(t=globals())
53
+ commit = ":wrench: Fix env \n\n{t[text]}\n\n{t[footer]}".format(t=globals())
54
54
  assert tag_parser(commit)[3][2] == footer