Skip to content

Commit 71988b8

Browse files
authored
Merge pull request #2 from ARMmbed/fix-clone
Fix for clones of private repositories
2 parents 4489e39 + 77c81af commit 71988b8

File tree

104 files changed

+128
-108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+128
-108
lines changed

Pipfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ pytest = "*"
1616
pyfakefs = "*"
1717
pytest-cov = "*"
1818
wheel = "*"
19-
continuous-delivery-scripts = {editable = true, path = "."}
19+
continuous-delivery-scripts = {path = "."}
2020
pre-commit = "*"
2121

2222
[pipenv]
2323
allow_prereleases = true
24+
25+
[packages]
26+
continuous-delivery-scripts = {path = "."}

continuous_delivery_scripts/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2020 Arm. All rights reserved.
2+
# Copyright (C) 2020-2021 Arm. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
"""Scripts and utilities used by the CI pipeline."""

continuous_delivery_scripts/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2020 Arm. All rights reserved.
2+
# Copyright (C) 2020-2021 Arm. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
"""The version number is based on semantic versioning.

continuous_delivery_scripts/assert_news.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2020 Arm. All rights reserved.
2+
# Copyright (C) 2020-2021 Arm. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
"""Checks if valid news files are created for changes in the project."""

continuous_delivery_scripts/create_news_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2020 Arm. All rights reserved.
2+
# Copyright (C) 2020-2021 Arm. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
"""Easy news files generation.

continuous_delivery_scripts/generate_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2020 Arm. All rights reserved.
2+
# Copyright (C) 2020-2021 Arm. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
"""Generates documentation."""

continuous_delivery_scripts/generate_news.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2020 Arm. All rights reserved.
2+
# Copyright (C) 2020-2021 Arm. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
"""Handles usage of towncrier for automated changelog generation and pyautoversion for versioning."""
@@ -57,7 +57,7 @@ def _calculate_version(commit_type: CommitType, use_news_files: bool) -> Tuple[b
5757
new_version: Optional[str] = None
5858
is_new_version: bool = False
5959
with cd(os.path.dirname(project_config_path)):
60-
old, _, updates = auto_version_tool.main(
60+
old, new_version, updates = auto_version_tool.main(
6161
release=is_release,
6262
enable_file_triggers=enable_file_triggers,
6363
commit_count_as=bump,
@@ -66,7 +66,9 @@ def _calculate_version(commit_type: CommitType, use_news_files: bool) -> Tuple[b
6666
# Autoversion second returned value is not actually the new version
6767
# There seem to be a bug in autoversion.
6868
# This is why the following needs to be done to determine the version
69-
new_version = updates["__version__"]
69+
for k, v in updates.items():
70+
if "version" in str(k).lower():
71+
new_version = updates[k]
7072
is_new_version = old != new_version
7173
logger.info(":: Determining the new version")
7274
logger.info(f"Version: {new_version}")

continuous_delivery_scripts/get_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2020 Arm. All rights reserved.
2+
# Copyright (C) 2020-2021 Arm. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
"""Retrieves configuration values."""

continuous_delivery_scripts/language_specifics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2020 Arm. All rights reserved.
2+
# Copyright (C) 2020-2021 Arm. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
"""Language plugins Loader."""

continuous_delivery_scripts/license_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2020 Arm. All rights reserved.
2+
# Copyright (C) 2020-2021 Arm. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
"""Apply copyright and licensing to all source files present in a project.

0 commit comments

Comments
 (0)