summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-31 06:49:50 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-31 06:49:50 +0000
commit1f653146ccf7ef27e5fc43e1b4734532a9af1692 (patch)
treec5181f82c73eb748d9ce7937982ab9fd22cebd24
parentf879eabce4b5c22b41441bf890b0809d2260d74f (diff)
automatic import of python-continuous-delivery-scripts
-rw-r--r--.gitignore1
-rw-r--r--python-continuous-delivery-scripts.spec438
-rw-r--r--sources1
3 files changed, 440 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b3ad6de 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/continuous-delivery-scripts-3.2.0.tar.gz
diff --git a/python-continuous-delivery-scripts.spec b/python-continuous-delivery-scripts.spec
new file mode 100644
index 0000000..6480458
--- /dev/null
+++ b/python-continuous-delivery-scripts.spec
@@ -0,0 +1,438 @@
+%global _empty_manifest_terminate_build 0
+Name: python-continuous-delivery-scripts
+Version: 3.2.0
+Release: 1
+Summary: Continuous Delivery scripts to increase automation
+License: Apache 2.0
+URL: https://github.com/ARMmbed/continuous-delivery-scripts
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ca/4a/4a0cfde9716ca0906cf8796e6ab67aebafec49024ac8596d186b7d15439f/continuous-delivery-scripts-3.2.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-gitpython
+Requires: python3-towncrier
+Requires: python3-pyautoversion
+Requires: python3-pdoc3
+Requires: python3-toml
+Requires: python3-semver
+Requires: python3-dotenv
+Requires: python3-twine
+Requires: python3-boto3
+Requires: python3-packaging
+Requires: python3-licenseheaders
+Requires: python3-spdx-tools
+Requires: python3-license-expression
+Requires: python3-wcmatch
+Requires: python3-jellyfish
+Requires: python3-jinja2
+Requires: python3-markupsafe
+Requires: python3-dataclasses
+
+%description
+<!--
+Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+SPDX-License-Identifier: Apache-2.0
+-->
+# Automation Scripts for CI/CD
+
+![Package](https://badgen.net/badge/Package/continuous-delivery-scripts/grey)
+[![Documentation](https://badgen.net/badge/Documentation/GitHub%20Pages/blue?icon=github)](https://armmbed.github.io/continuous-delivery-scripts)
+[![PyPI](https://badgen.net/pypi/v/continuous-delivery-scripts)](https://pypi.org/project/continuous-delivery-scripts/)
+[![PyPI - Status](https://img.shields.io/pypi/status/continuous-delivery-scripts)](https://pypi.org/project/continuous-delivery-scripts/)
+[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/continuous-delivery-scripts)](https://pypi.org/project/continuous-delivery-scripts/)
+[![Downloads](https://pepy.tech/badge/continuous-delivery-scripts)](https://pepy.tech/project/continuous-delivery-scripts)
+
+[![License](https://badgen.net/pypi/license/continuous-delivery-scripts)](https://github.com/ARMmbed/continuous-delivery-scripts/blob/master/LICENSE)
+[![Compliance](https://badgen.net/badge/License%20Report/compliant/green?icon=libraries)](https://armmbed.github.io/continuous-delivery-scripts/third_party_IP_report.html)
+
+[![Build Status](https://github.com/ARMmbed/continuous-delivery-scripts/actions/workflows/ci.yml/badge.svg)](https://github.com/ARMmbed/continuous-delivery-scripts/actions/workflows/ci.yml)
+
+[![Test Coverage](https://codecov.io/gh/ARMmbed/continuous-delivery-scripts/branch/main/graph/badge.svg?token=EAW9owYyjW)](https://codecov.io/gh/ARMmbed/continuous-delivery-scripts)
+[![Maintainability](https://api.codeclimate.com/v1/badges/41301e959f22986b7b2b/maintainability)](https://codeclimate.com/github/ARMmbed/continuous-delivery-scripts/maintainability)
+
+## Overview
+
+Project initially forked from [ARMmbed/mbed-tools-ci-scripts](https://github.com/ARMmbed/continuous-delivery-scripts) but modified so that it can be used for any projects and any languages.
+
+Continuous Delivery scripts for any projects:
+- Automated release flows (i.e. changelog generation, git tags, versioning)
+- third party IP auditing and reporting
+
+
+## Releases
+
+For release notes and a history of changes of all **production** releases, please see the following:
+
+- [Changelog](https://github.com/ARMmbed/continuous-delivery-scripts/blob/master/CHANGELOG.md)
+
+For a the list of all available versions please, please see the:
+
+- [PyPI Release History](https://pypi.org/project/continuous-delivery-scripts/#history)
+
+## Versioning
+
+The version scheme used follows [PEP440](https://www.python.org/dev/peps/pep-0440/) and
+[Semantic Versioning](https://semver.org/). For production quality releases the version will look as follows:
+
+- `<major>.<minor>.<patch>`
+
+Beta releases are used to give early access to new functionality, for testing and to get feedback on experimental
+features. As such these releases may not be stable and should not be used for production. Additionally any interfaces
+introduced in a beta release may be removed or changed without notice. For **beta** releases the version will look as
+follows:
+
+- `<major>.<minor>.<patch>-beta.<pre-release-number>`
+
+## Installation
+
+It is recommended that a virtual environment such as [Pipenv](https://github.com/pypa/pipenv/blob/master/README.md) is
+used for all installations to avoid Python dependency conflicts.
+
+To install the most recent production quality release use:
+
+```
+pip install continuous-delivery-scripts
+```
+
+To install a specific release:
+
+```
+pip install continuous-delivery-scripts==<version>
+```
+
+## Usage & Documentation
+
+Code documentation is available for the most recent
+production release here:
+
+- [GitHub Pages](https://armmbed.github.io/continuous-delivery-scripts)
+
+The package follows the [**Unix tools philosophy**](https://tldp.org/LDP/GNU-Linux-Tools-Summary/html/c1089.htm):
+
+> The tools philosophy was to have small programs to accomplish a particular task instead of trying to develop large monolithic programs to do a large number of tasks. To accomplish more complex tasks, tools would simply be connected together, using pipes.
+
+Therefore, it installs the following tools which can be used anywhere within a project/repository comprising a pyproject.toml file such as the [one defining this project](./pyproject.toml):
+* `cd-assert-news`: Asserts that the PR/Branch contains a news file describing the changes introduced
+* `cd-determine-version`: Returns the version of the tool
+* `cd-generate-news`: Generates a changelog file based on the news files present in the repository
+* `cd-get-config`: Returns project configuration values
+* `cd-tag-and-release`: Releases the project (Language specific actions are run, See [plugins](./continuous_delivery_scripts/plugins))
+* `cd-create-news-file`: Generates a news file
+* `cd-generate-docs`: Generates project Code documentation which can then be rendered by GitHub pages (See [docs folder](./docs))
+* `cd-generate-spdx`: Generates SPDX documents for the project (3rd party IP reporting/ OpenChain)
+* `cd-license-files`: Updates the Licence header and copyright to all the source code files
+
+## Project Structure
+
+The follow described the major aspects of the project structure:
+
+- `.github` - CI and GitHub configuration files.
+- `docs/` - Interface definition and usage documentation.
+- `examples/` - Usage examples.
+- `continuous-delivery-scripts/` - Python source files.
+- `news/` - Collection of news files for unreleased changes.
+- `tests/` - Unit and integration tests.
+
+## Getting Help
+
+- For interface definition and usage documentation, please see [GitHub Pages](https://armmbed.github.io/continuous-delivery-scripts).
+- For a list of known issues and possible workarounds, please see [Known Issues](./KNOWN_ISSUES.md).
+- To raise a defect or enhancement please use [GitHub Issues](https://github.com/ARMmbed/continuous-delivery-scripts/issues).
+
+## Contributing
+
+- We are committed to fostering a welcoming community, please see our
+ [Code of Conduct](./CODE_OF_CONDUCT.md) for more information.
+- For ways to contribute to the project, please see the [Contributions Guidelines](./CONTRIBUTING.md)
+- For a technical introduction into developing this package, please see the [Development Guide](./DEVELOPMENT.md)
+
+
+%package -n python3-continuous-delivery-scripts
+Summary: Continuous Delivery scripts to increase automation
+Provides: python-continuous-delivery-scripts
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-continuous-delivery-scripts
+<!--
+Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+SPDX-License-Identifier: Apache-2.0
+-->
+# Automation Scripts for CI/CD
+
+![Package](https://badgen.net/badge/Package/continuous-delivery-scripts/grey)
+[![Documentation](https://badgen.net/badge/Documentation/GitHub%20Pages/blue?icon=github)](https://armmbed.github.io/continuous-delivery-scripts)
+[![PyPI](https://badgen.net/pypi/v/continuous-delivery-scripts)](https://pypi.org/project/continuous-delivery-scripts/)
+[![PyPI - Status](https://img.shields.io/pypi/status/continuous-delivery-scripts)](https://pypi.org/project/continuous-delivery-scripts/)
+[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/continuous-delivery-scripts)](https://pypi.org/project/continuous-delivery-scripts/)
+[![Downloads](https://pepy.tech/badge/continuous-delivery-scripts)](https://pepy.tech/project/continuous-delivery-scripts)
+
+[![License](https://badgen.net/pypi/license/continuous-delivery-scripts)](https://github.com/ARMmbed/continuous-delivery-scripts/blob/master/LICENSE)
+[![Compliance](https://badgen.net/badge/License%20Report/compliant/green?icon=libraries)](https://armmbed.github.io/continuous-delivery-scripts/third_party_IP_report.html)
+
+[![Build Status](https://github.com/ARMmbed/continuous-delivery-scripts/actions/workflows/ci.yml/badge.svg)](https://github.com/ARMmbed/continuous-delivery-scripts/actions/workflows/ci.yml)
+
+[![Test Coverage](https://codecov.io/gh/ARMmbed/continuous-delivery-scripts/branch/main/graph/badge.svg?token=EAW9owYyjW)](https://codecov.io/gh/ARMmbed/continuous-delivery-scripts)
+[![Maintainability](https://api.codeclimate.com/v1/badges/41301e959f22986b7b2b/maintainability)](https://codeclimate.com/github/ARMmbed/continuous-delivery-scripts/maintainability)
+
+## Overview
+
+Project initially forked from [ARMmbed/mbed-tools-ci-scripts](https://github.com/ARMmbed/continuous-delivery-scripts) but modified so that it can be used for any projects and any languages.
+
+Continuous Delivery scripts for any projects:
+- Automated release flows (i.e. changelog generation, git tags, versioning)
+- third party IP auditing and reporting
+
+
+## Releases
+
+For release notes and a history of changes of all **production** releases, please see the following:
+
+- [Changelog](https://github.com/ARMmbed/continuous-delivery-scripts/blob/master/CHANGELOG.md)
+
+For a the list of all available versions please, please see the:
+
+- [PyPI Release History](https://pypi.org/project/continuous-delivery-scripts/#history)
+
+## Versioning
+
+The version scheme used follows [PEP440](https://www.python.org/dev/peps/pep-0440/) and
+[Semantic Versioning](https://semver.org/). For production quality releases the version will look as follows:
+
+- `<major>.<minor>.<patch>`
+
+Beta releases are used to give early access to new functionality, for testing and to get feedback on experimental
+features. As such these releases may not be stable and should not be used for production. Additionally any interfaces
+introduced in a beta release may be removed or changed without notice. For **beta** releases the version will look as
+follows:
+
+- `<major>.<minor>.<patch>-beta.<pre-release-number>`
+
+## Installation
+
+It is recommended that a virtual environment such as [Pipenv](https://github.com/pypa/pipenv/blob/master/README.md) is
+used for all installations to avoid Python dependency conflicts.
+
+To install the most recent production quality release use:
+
+```
+pip install continuous-delivery-scripts
+```
+
+To install a specific release:
+
+```
+pip install continuous-delivery-scripts==<version>
+```
+
+## Usage & Documentation
+
+Code documentation is available for the most recent
+production release here:
+
+- [GitHub Pages](https://armmbed.github.io/continuous-delivery-scripts)
+
+The package follows the [**Unix tools philosophy**](https://tldp.org/LDP/GNU-Linux-Tools-Summary/html/c1089.htm):
+
+> The tools philosophy was to have small programs to accomplish a particular task instead of trying to develop large monolithic programs to do a large number of tasks. To accomplish more complex tasks, tools would simply be connected together, using pipes.
+
+Therefore, it installs the following tools which can be used anywhere within a project/repository comprising a pyproject.toml file such as the [one defining this project](./pyproject.toml):
+* `cd-assert-news`: Asserts that the PR/Branch contains a news file describing the changes introduced
+* `cd-determine-version`: Returns the version of the tool
+* `cd-generate-news`: Generates a changelog file based on the news files present in the repository
+* `cd-get-config`: Returns project configuration values
+* `cd-tag-and-release`: Releases the project (Language specific actions are run, See [plugins](./continuous_delivery_scripts/plugins))
+* `cd-create-news-file`: Generates a news file
+* `cd-generate-docs`: Generates project Code documentation which can then be rendered by GitHub pages (See [docs folder](./docs))
+* `cd-generate-spdx`: Generates SPDX documents for the project (3rd party IP reporting/ OpenChain)
+* `cd-license-files`: Updates the Licence header and copyright to all the source code files
+
+## Project Structure
+
+The follow described the major aspects of the project structure:
+
+- `.github` - CI and GitHub configuration files.
+- `docs/` - Interface definition and usage documentation.
+- `examples/` - Usage examples.
+- `continuous-delivery-scripts/` - Python source files.
+- `news/` - Collection of news files for unreleased changes.
+- `tests/` - Unit and integration tests.
+
+## Getting Help
+
+- For interface definition and usage documentation, please see [GitHub Pages](https://armmbed.github.io/continuous-delivery-scripts).
+- For a list of known issues and possible workarounds, please see [Known Issues](./KNOWN_ISSUES.md).
+- To raise a defect or enhancement please use [GitHub Issues](https://github.com/ARMmbed/continuous-delivery-scripts/issues).
+
+## Contributing
+
+- We are committed to fostering a welcoming community, please see our
+ [Code of Conduct](./CODE_OF_CONDUCT.md) for more information.
+- For ways to contribute to the project, please see the [Contributions Guidelines](./CONTRIBUTING.md)
+- For a technical introduction into developing this package, please see the [Development Guide](./DEVELOPMENT.md)
+
+
+%package help
+Summary: Development documents and examples for continuous-delivery-scripts
+Provides: python3-continuous-delivery-scripts-doc
+%description help
+<!--
+Copyright (C) 2020-2023 Arm Limited or its affiliates and Contributors. All rights reserved.
+SPDX-License-Identifier: Apache-2.0
+-->
+# Automation Scripts for CI/CD
+
+![Package](https://badgen.net/badge/Package/continuous-delivery-scripts/grey)
+[![Documentation](https://badgen.net/badge/Documentation/GitHub%20Pages/blue?icon=github)](https://armmbed.github.io/continuous-delivery-scripts)
+[![PyPI](https://badgen.net/pypi/v/continuous-delivery-scripts)](https://pypi.org/project/continuous-delivery-scripts/)
+[![PyPI - Status](https://img.shields.io/pypi/status/continuous-delivery-scripts)](https://pypi.org/project/continuous-delivery-scripts/)
+[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/continuous-delivery-scripts)](https://pypi.org/project/continuous-delivery-scripts/)
+[![Downloads](https://pepy.tech/badge/continuous-delivery-scripts)](https://pepy.tech/project/continuous-delivery-scripts)
+
+[![License](https://badgen.net/pypi/license/continuous-delivery-scripts)](https://github.com/ARMmbed/continuous-delivery-scripts/blob/master/LICENSE)
+[![Compliance](https://badgen.net/badge/License%20Report/compliant/green?icon=libraries)](https://armmbed.github.io/continuous-delivery-scripts/third_party_IP_report.html)
+
+[![Build Status](https://github.com/ARMmbed/continuous-delivery-scripts/actions/workflows/ci.yml/badge.svg)](https://github.com/ARMmbed/continuous-delivery-scripts/actions/workflows/ci.yml)
+
+[![Test Coverage](https://codecov.io/gh/ARMmbed/continuous-delivery-scripts/branch/main/graph/badge.svg?token=EAW9owYyjW)](https://codecov.io/gh/ARMmbed/continuous-delivery-scripts)
+[![Maintainability](https://api.codeclimate.com/v1/badges/41301e959f22986b7b2b/maintainability)](https://codeclimate.com/github/ARMmbed/continuous-delivery-scripts/maintainability)
+
+## Overview
+
+Project initially forked from [ARMmbed/mbed-tools-ci-scripts](https://github.com/ARMmbed/continuous-delivery-scripts) but modified so that it can be used for any projects and any languages.
+
+Continuous Delivery scripts for any projects:
+- Automated release flows (i.e. changelog generation, git tags, versioning)
+- third party IP auditing and reporting
+
+
+## Releases
+
+For release notes and a history of changes of all **production** releases, please see the following:
+
+- [Changelog](https://github.com/ARMmbed/continuous-delivery-scripts/blob/master/CHANGELOG.md)
+
+For a the list of all available versions please, please see the:
+
+- [PyPI Release History](https://pypi.org/project/continuous-delivery-scripts/#history)
+
+## Versioning
+
+The version scheme used follows [PEP440](https://www.python.org/dev/peps/pep-0440/) and
+[Semantic Versioning](https://semver.org/). For production quality releases the version will look as follows:
+
+- `<major>.<minor>.<patch>`
+
+Beta releases are used to give early access to new functionality, for testing and to get feedback on experimental
+features. As such these releases may not be stable and should not be used for production. Additionally any interfaces
+introduced in a beta release may be removed or changed without notice. For **beta** releases the version will look as
+follows:
+
+- `<major>.<minor>.<patch>-beta.<pre-release-number>`
+
+## Installation
+
+It is recommended that a virtual environment such as [Pipenv](https://github.com/pypa/pipenv/blob/master/README.md) is
+used for all installations to avoid Python dependency conflicts.
+
+To install the most recent production quality release use:
+
+```
+pip install continuous-delivery-scripts
+```
+
+To install a specific release:
+
+```
+pip install continuous-delivery-scripts==<version>
+```
+
+## Usage & Documentation
+
+Code documentation is available for the most recent
+production release here:
+
+- [GitHub Pages](https://armmbed.github.io/continuous-delivery-scripts)
+
+The package follows the [**Unix tools philosophy**](https://tldp.org/LDP/GNU-Linux-Tools-Summary/html/c1089.htm):
+
+> The tools philosophy was to have small programs to accomplish a particular task instead of trying to develop large monolithic programs to do a large number of tasks. To accomplish more complex tasks, tools would simply be connected together, using pipes.
+
+Therefore, it installs the following tools which can be used anywhere within a project/repository comprising a pyproject.toml file such as the [one defining this project](./pyproject.toml):
+* `cd-assert-news`: Asserts that the PR/Branch contains a news file describing the changes introduced
+* `cd-determine-version`: Returns the version of the tool
+* `cd-generate-news`: Generates a changelog file based on the news files present in the repository
+* `cd-get-config`: Returns project configuration values
+* `cd-tag-and-release`: Releases the project (Language specific actions are run, See [plugins](./continuous_delivery_scripts/plugins))
+* `cd-create-news-file`: Generates a news file
+* `cd-generate-docs`: Generates project Code documentation which can then be rendered by GitHub pages (See [docs folder](./docs))
+* `cd-generate-spdx`: Generates SPDX documents for the project (3rd party IP reporting/ OpenChain)
+* `cd-license-files`: Updates the Licence header and copyright to all the source code files
+
+## Project Structure
+
+The follow described the major aspects of the project structure:
+
+- `.github` - CI and GitHub configuration files.
+- `docs/` - Interface definition and usage documentation.
+- `examples/` - Usage examples.
+- `continuous-delivery-scripts/` - Python source files.
+- `news/` - Collection of news files for unreleased changes.
+- `tests/` - Unit and integration tests.
+
+## Getting Help
+
+- For interface definition and usage documentation, please see [GitHub Pages](https://armmbed.github.io/continuous-delivery-scripts).
+- For a list of known issues and possible workarounds, please see [Known Issues](./KNOWN_ISSUES.md).
+- To raise a defect or enhancement please use [GitHub Issues](https://github.com/ARMmbed/continuous-delivery-scripts/issues).
+
+## Contributing
+
+- We are committed to fostering a welcoming community, please see our
+ [Code of Conduct](./CODE_OF_CONDUCT.md) for more information.
+- For ways to contribute to the project, please see the [Contributions Guidelines](./CONTRIBUTING.md)
+- For a technical introduction into developing this package, please see the [Development Guide](./DEVELOPMENT.md)
+
+
+%prep
+%autosetup -n continuous-delivery-scripts-3.2.0
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-continuous-delivery-scripts -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 3.2.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8b38f2a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+cbee66a2612de65dba3c3887c99fcc15 continuous-delivery-scripts-3.2.0.tar.gz