diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-cwltest.spec | 357 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 359 insertions, 0 deletions
@@ -0,0 +1 @@ +/cwltest-2.3.20230108193615.tar.gz diff --git a/python-cwltest.spec b/python-cwltest.spec new file mode 100644 index 0000000..889d8cf --- /dev/null +++ b/python-cwltest.spec @@ -0,0 +1,357 @@ +%global _empty_manifest_terminate_build 0 +Name: python-cwltest +Version: 2.3.20230108193615 +Release: 1 +Summary: Common Workflow Language testing framework +License: Apache 2.0 +URL: https://github.com/common-workflow-language/cwltest +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c5/99/9d5cb1959731c1f61d05555d1f0488dac9cb31968426cd5ff46a6f23f611/cwltest-2.3.20230108193615.tar.gz +BuildArch: noarch + +Requires: python3-schema-salad +Requires: python3-junit-xml +Requires: python3-pytest +Requires: python3-defusedxml +Requires: python3-typing-extensions +Requires: python3-pytest + +%description +########################################## +Common Workflow Language testing framework +########################################## + +|Linux Build Status| |Code coverage| + +PyPI: |PyPI Version| |PyPI Downloads Month| |Total PyPI Downloads| + +Conda: |Conda Version| |Conda Installs| + +.. |Linux Build Status| image:: https://github.com/common-workflow-language/cwltest/actions/workflows/ci-tests.yml/badge.svg?branch=main + :target: https://github.com/common-workflow-language/cwltest/actions/workflows/ci-tests.yml +.. |Code coverage| image:: https://codecov.io/gh/common-workflow-language/cwltest/branch/master/graph/badge.svg + :target: https://codecov.io/gh/common-workflow-language/cwltest + +.. |PyPI Version| image:: https://badge.fury.io/py/cwltest.svg + :target: https://badge.fury.io/py/cwltest + +.. |PyPI Downloads Month| image:: https://pepy.tech/badge/cwltest/month + :target: https://pepy.tech/project/cwltest + +.. |Total PyPI Downloads| image:: https://static.pepy.tech/personalized-badge/cwltest?period=total&units=international_system&left_color=black&right_color=orange&left_text=Total%20PyPI%20Downloads + :target: https://pepy.tech/project/cwltest + +.. |Conda Version| image:: https://anaconda.org/bioconda/cwltest/badges/version.svg + :target: https://anaconda.org/bioconda/cwltest + +.. |Conda Installs| image:: https://anaconda.org/bioconda/cwltest/badges/downloads.svg + :target: https://anaconda.org/bioconda/cwltest + +This is a testing tool for checking the output of Tools and Workflows described +with the Common Workflow Language. Among other uses, it is used to run the CWL +conformance tests. + +This is written and tested for Python 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11. + +.. contents:: Table of Contents + :local: + +******* +Install +******* + +Installing the official package from PyPi + +.. code:: bash + + pip install cwltest + +Or from bioconda + +.. code:: bash + + conda install -c bioconda cwltest + +Or from source + +.. code:: bash + + git clone https://github.com/common-workflow-language/cwltest.git + cd cwltest && python setup.py install + +*********************** +Run on the command line +*********************** + +Simple command:: + + cwltest --test test-descriptions.yml --tool cwl-runner + +***************************************** +Generate conformance badges using cwltest +***************************************** + +To make badges that show the results of the conformance test, +you can generate JSON files for https://badgen.net by using --badgedir option + +To generate JSON files:: + + cwltest --test test-descriptions.yml --tool cwl-runner --badgedir badges + ... + $ cat badges/command_line_tool.json | jq . + { + "subject": "command_line_tool", + "status": "100%", + "color": "green" + } + +Once you upload JSON file to a server, you make a badge by using a link like https://badgen.net/https/path/to/generated/json or https://flat.badgen.net/https/path/to/generated/json (for flat badges). + +Here is an example of markdown to add a badge:: + +  + + +%package -n python3-cwltest +Summary: Common Workflow Language testing framework +Provides: python-cwltest +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-cwltest +########################################## +Common Workflow Language testing framework +########################################## + +|Linux Build Status| |Code coverage| + +PyPI: |PyPI Version| |PyPI Downloads Month| |Total PyPI Downloads| + +Conda: |Conda Version| |Conda Installs| + +.. |Linux Build Status| image:: https://github.com/common-workflow-language/cwltest/actions/workflows/ci-tests.yml/badge.svg?branch=main + :target: https://github.com/common-workflow-language/cwltest/actions/workflows/ci-tests.yml +.. |Code coverage| image:: https://codecov.io/gh/common-workflow-language/cwltest/branch/master/graph/badge.svg + :target: https://codecov.io/gh/common-workflow-language/cwltest + +.. |PyPI Version| image:: https://badge.fury.io/py/cwltest.svg + :target: https://badge.fury.io/py/cwltest + +.. |PyPI Downloads Month| image:: https://pepy.tech/badge/cwltest/month + :target: https://pepy.tech/project/cwltest + +.. |Total PyPI Downloads| image:: https://static.pepy.tech/personalized-badge/cwltest?period=total&units=international_system&left_color=black&right_color=orange&left_text=Total%20PyPI%20Downloads + :target: https://pepy.tech/project/cwltest + +.. |Conda Version| image:: https://anaconda.org/bioconda/cwltest/badges/version.svg + :target: https://anaconda.org/bioconda/cwltest + +.. |Conda Installs| image:: https://anaconda.org/bioconda/cwltest/badges/downloads.svg + :target: https://anaconda.org/bioconda/cwltest + +This is a testing tool for checking the output of Tools and Workflows described +with the Common Workflow Language. Among other uses, it is used to run the CWL +conformance tests. + +This is written and tested for Python 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11. + +.. contents:: Table of Contents + :local: + +******* +Install +******* + +Installing the official package from PyPi + +.. code:: bash + + pip install cwltest + +Or from bioconda + +.. code:: bash + + conda install -c bioconda cwltest + +Or from source + +.. code:: bash + + git clone https://github.com/common-workflow-language/cwltest.git + cd cwltest && python setup.py install + +*********************** +Run on the command line +*********************** + +Simple command:: + + cwltest --test test-descriptions.yml --tool cwl-runner + +***************************************** +Generate conformance badges using cwltest +***************************************** + +To make badges that show the results of the conformance test, +you can generate JSON files for https://badgen.net by using --badgedir option + +To generate JSON files:: + + cwltest --test test-descriptions.yml --tool cwl-runner --badgedir badges + ... + $ cat badges/command_line_tool.json | jq . + { + "subject": "command_line_tool", + "status": "100%", + "color": "green" + } + +Once you upload JSON file to a server, you make a badge by using a link like https://badgen.net/https/path/to/generated/json or https://flat.badgen.net/https/path/to/generated/json (for flat badges). + +Here is an example of markdown to add a badge:: + +  + + +%package help +Summary: Development documents and examples for cwltest +Provides: python3-cwltest-doc +%description help +########################################## +Common Workflow Language testing framework +########################################## + +|Linux Build Status| |Code coverage| + +PyPI: |PyPI Version| |PyPI Downloads Month| |Total PyPI Downloads| + +Conda: |Conda Version| |Conda Installs| + +.. |Linux Build Status| image:: https://github.com/common-workflow-language/cwltest/actions/workflows/ci-tests.yml/badge.svg?branch=main + :target: https://github.com/common-workflow-language/cwltest/actions/workflows/ci-tests.yml +.. |Code coverage| image:: https://codecov.io/gh/common-workflow-language/cwltest/branch/master/graph/badge.svg + :target: https://codecov.io/gh/common-workflow-language/cwltest + +.. |PyPI Version| image:: https://badge.fury.io/py/cwltest.svg + :target: https://badge.fury.io/py/cwltest + +.. |PyPI Downloads Month| image:: https://pepy.tech/badge/cwltest/month + :target: https://pepy.tech/project/cwltest + +.. |Total PyPI Downloads| image:: https://static.pepy.tech/personalized-badge/cwltest?period=total&units=international_system&left_color=black&right_color=orange&left_text=Total%20PyPI%20Downloads + :target: https://pepy.tech/project/cwltest + +.. |Conda Version| image:: https://anaconda.org/bioconda/cwltest/badges/version.svg + :target: https://anaconda.org/bioconda/cwltest + +.. |Conda Installs| image:: https://anaconda.org/bioconda/cwltest/badges/downloads.svg + :target: https://anaconda.org/bioconda/cwltest + +This is a testing tool for checking the output of Tools and Workflows described +with the Common Workflow Language. Among other uses, it is used to run the CWL +conformance tests. + +This is written and tested for Python 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11. + +.. contents:: Table of Contents + :local: + +******* +Install +******* + +Installing the official package from PyPi + +.. code:: bash + + pip install cwltest + +Or from bioconda + +.. code:: bash + + conda install -c bioconda cwltest + +Or from source + +.. code:: bash + + git clone https://github.com/common-workflow-language/cwltest.git + cd cwltest && python setup.py install + +*********************** +Run on the command line +*********************** + +Simple command:: + + cwltest --test test-descriptions.yml --tool cwl-runner + +***************************************** +Generate conformance badges using cwltest +***************************************** + +To make badges that show the results of the conformance test, +you can generate JSON files for https://badgen.net by using --badgedir option + +To generate JSON files:: + + cwltest --test test-descriptions.yml --tool cwl-runner --badgedir badges + ... + $ cat badges/command_line_tool.json | jq . + { + "subject": "command_line_tool", + "status": "100%", + "color": "green" + } + +Once you upload JSON file to a server, you make a badge by using a link like https://badgen.net/https/path/to/generated/json or https://flat.badgen.net/https/path/to/generated/json (for flat badges). + +Here is an example of markdown to add a badge:: + +  + + +%prep +%autosetup -n cwltest-2.3.20230108193615 + +%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-cwltest -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 2.3.20230108193615-1 +- Package Spec generated @@ -0,0 +1 @@ +02b0f9be0174bb73df5eb59997fca313 cwltest-2.3.20230108193615.tar.gz |