From 1f653146ccf7ef27e5fc43e1b4734532a9af1692 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 31 May 2023 06:49:50 +0000 Subject: automatic import of python-continuous-delivery-scripts --- python-continuous-delivery-scripts.spec | 438 ++++++++++++++++++++++++++++++++ 1 file changed, 438 insertions(+) create mode 100644 python-continuous-delivery-scripts.spec (limited to 'python-continuous-delivery-scripts.spec') 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 + +# 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: + +- `..` + +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: + +- `..-beta.` + +## 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== +``` + +## 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 + +# 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: + +- `..` + +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: + +- `..-beta.` + +## 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== +``` + +## 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 + +# 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: + +- `..` + +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: + +- `..-beta.` + +## 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== +``` + +## 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 - 3.2.0-1 +- Package Spec generated -- cgit v1.2.3