diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 07:49:35 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 07:49:35 +0000 |
commit | f1d744352542b0860842e467a666dcfec3c5cead (patch) | |
tree | bc45c617e5303c7fb6cde3a06ffedebfdd65962f | |
parent | 891bd850c20597433e16e9c61bffc803019704f8 (diff) |
automatic import of python-bincrafters-conventions
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-bincrafters-conventions.spec | 333 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 335 insertions, 0 deletions
@@ -0,0 +1 @@ +/bincrafters_conventions-1.1.1.tar.gz diff --git a/python-bincrafters-conventions.spec b/python-bincrafters-conventions.spec new file mode 100644 index 0000000..7c17d6b --- /dev/null +++ b/python-bincrafters-conventions.spec @@ -0,0 +1,333 @@ +%global _empty_manifest_terminate_build 0 +Name: python-bincrafters-conventions +Version: 1.1.1 +Release: 1 +Summary: Bincrafters script to apply Conan conventions and update CI jobs +License: MIT +URL: https://github.com/bincrafters/bincrafters-conventions +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/42/f3/acf94a5ca6a5d8a28f5ef2e2c0f8c97cff10aa7818d4553f948c038ac3bf/bincrafters_conventions-1.1.1.tar.gz +BuildArch: noarch + + +%description + +[](https://codecov.io/gh/bincrafters/bincrafters-conventions) +[](https://pypi.python.org/pypi/bincrafters-conventions) + +# Bincrafters Conventions + +## A Script to update Conan projects following Conan conventions + +This project contains scripts to update CI files, to +update Conan conventions in general and to perform some linting. + +### INSTALL + +You can install `bincrafters-conventions` via `pip` like this: + + $ pip install bincrafters_conventions + +### RUN + +> 💡 Bincrafters Conventions is a command line tool. +> +> Execute `bincrafters-conventions --help` to see all options. +> +> `bincrafters-conventions` has also the alias `bcon` for convince. + + +#### EXAMPLES + +To update **ALL** Conan projects on GitHub for https://github.com/bincrafters + + $ bcon --remote=bincrafters + +To update **ONLY** one project on GitHub https://github.com/bincrafters/conan-conversion + + $ bcon --remote=bincrafters/conan-double-conversion + +To **AVOID** to execute push command after to update + + $ bcon --remote=bincrafters/conan-libusb --dry-run + +To filter **PROJECTS** by pattern + + $ bcon --remote=bincrafters --project-pattern bincrafters/conan-* + +To filter **BRANCHES** by pattern + + $ bcon --remote=bincrafters --branch-pattern stable/* + +or + + $ bcon --remote=bincrafters/conan-libzip --branch-pattern stable/* + +To update and check **LOCAL** everything + + $ bcon + +To check **LOCAL** everything + + $ bcon --check + +To apply Conan conventions in a local file: + + $ bcon --conanfile=conanfile.py + +To update AppVeyor file: + + $ bcon --appveryorfile=appveyor.yml + + +### Testing and Development + +If you want to install `bincrafters-conventions` via a local git clone + + pip install --user -U . + +To install extra packages required to test + + pip install .[test] + +To run all unit test + code coverage, execute: + + cd tests + pytest -v --cov=bincrafters_conventions + + +### LICENSE + +[MIT](LICENSE.md) + +%package -n python3-bincrafters-conventions +Summary: Bincrafters script to apply Conan conventions and update CI jobs +Provides: python-bincrafters-conventions +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-bincrafters-conventions + +[](https://codecov.io/gh/bincrafters/bincrafters-conventions) +[](https://pypi.python.org/pypi/bincrafters-conventions) + +# Bincrafters Conventions + +## A Script to update Conan projects following Conan conventions + +This project contains scripts to update CI files, to +update Conan conventions in general and to perform some linting. + +### INSTALL + +You can install `bincrafters-conventions` via `pip` like this: + + $ pip install bincrafters_conventions + +### RUN + +> 💡 Bincrafters Conventions is a command line tool. +> +> Execute `bincrafters-conventions --help` to see all options. +> +> `bincrafters-conventions` has also the alias `bcon` for convince. + + +#### EXAMPLES + +To update **ALL** Conan projects on GitHub for https://github.com/bincrafters + + $ bcon --remote=bincrafters + +To update **ONLY** one project on GitHub https://github.com/bincrafters/conan-conversion + + $ bcon --remote=bincrafters/conan-double-conversion + +To **AVOID** to execute push command after to update + + $ bcon --remote=bincrafters/conan-libusb --dry-run + +To filter **PROJECTS** by pattern + + $ bcon --remote=bincrafters --project-pattern bincrafters/conan-* + +To filter **BRANCHES** by pattern + + $ bcon --remote=bincrafters --branch-pattern stable/* + +or + + $ bcon --remote=bincrafters/conan-libzip --branch-pattern stable/* + +To update and check **LOCAL** everything + + $ bcon + +To check **LOCAL** everything + + $ bcon --check + +To apply Conan conventions in a local file: + + $ bcon --conanfile=conanfile.py + +To update AppVeyor file: + + $ bcon --appveryorfile=appveyor.yml + + +### Testing and Development + +If you want to install `bincrafters-conventions` via a local git clone + + pip install --user -U . + +To install extra packages required to test + + pip install .[test] + +To run all unit test + code coverage, execute: + + cd tests + pytest -v --cov=bincrafters_conventions + + +### LICENSE + +[MIT](LICENSE.md) + +%package help +Summary: Development documents and examples for bincrafters-conventions +Provides: python3-bincrafters-conventions-doc +%description help + +[](https://codecov.io/gh/bincrafters/bincrafters-conventions) +[](https://pypi.python.org/pypi/bincrafters-conventions) + +# Bincrafters Conventions + +## A Script to update Conan projects following Conan conventions + +This project contains scripts to update CI files, to +update Conan conventions in general and to perform some linting. + +### INSTALL + +You can install `bincrafters-conventions` via `pip` like this: + + $ pip install bincrafters_conventions + +### RUN + +> 💡 Bincrafters Conventions is a command line tool. +> +> Execute `bincrafters-conventions --help` to see all options. +> +> `bincrafters-conventions` has also the alias `bcon` for convince. + + +#### EXAMPLES + +To update **ALL** Conan projects on GitHub for https://github.com/bincrafters + + $ bcon --remote=bincrafters + +To update **ONLY** one project on GitHub https://github.com/bincrafters/conan-conversion + + $ bcon --remote=bincrafters/conan-double-conversion + +To **AVOID** to execute push command after to update + + $ bcon --remote=bincrafters/conan-libusb --dry-run + +To filter **PROJECTS** by pattern + + $ bcon --remote=bincrafters --project-pattern bincrafters/conan-* + +To filter **BRANCHES** by pattern + + $ bcon --remote=bincrafters --branch-pattern stable/* + +or + + $ bcon --remote=bincrafters/conan-libzip --branch-pattern stable/* + +To update and check **LOCAL** everything + + $ bcon + +To check **LOCAL** everything + + $ bcon --check + +To apply Conan conventions in a local file: + + $ bcon --conanfile=conanfile.py + +To update AppVeyor file: + + $ bcon --appveryorfile=appveyor.yml + + +### Testing and Development + +If you want to install `bincrafters-conventions` via a local git clone + + pip install --user -U . + +To install extra packages required to test + + pip install .[test] + +To run all unit test + code coverage, execute: + + cd tests + pytest -v --cov=bincrafters_conventions + + +### LICENSE + +[MIT](LICENSE.md) + +%prep +%autosetup -n bincrafters-conventions-1.1.1 + +%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-bincrafters-conventions -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.1-1 +- Package Spec generated @@ -0,0 +1 @@ +c59f5b7be012c457c8ec6c79b8bcad45 bincrafters_conventions-1.1.1.tar.gz |