%global _empty_manifest_terminate_build 0 Name: python-kattiskitten Version: 0.14.0 Release: 1 Summary: Kattis CLI - Easily download, test and submit kattis problems License: MIT URL: https://github.com/FelixDQ/kattis-kitten Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b2/33/aede8cfe463b1a39b070a998de526e4d02f83418afb3510d8c8a196733a1/kattiskitten-0.14.0.tar.gz BuildArch: noarch Requires: python3-click Requires: python3-colorful Requires: python3-requests %description # Kattis kitten ![Repo size](https://img.shields.io/github/repo-size/FelixDQ/kattis-kitten) [![PyPI version](https://img.shields.io/pypi/v/kattiskitten)](https://pypi.org/project/kattiskitten/) Kattis CLI - Easily download, test and submit kattis problems ``` Usage: kk [OPTIONS] COMMAND [ARGS]... Simple CLI for downloading and testing kattis problems Options: --help Show this message and exit. Commands: get This command downloads a kattis problem and test files problems Simply opens https://open.kattis.com/problems in your webbrowser submit This command submits a problem to kattis test This tests a kattis problem using provided test problems ``` Installation (requires python >= 3.6): ``` pip3 install kattiskitten ``` # Commands Download test files. ``` > kk get rationalsequence Downloading samples Samples downloaded to './rationalsequence' ``` Test the problem ``` > kk test rationalsequence 👷‍ Testing rationalsequence... 👷‍ Language = Python 3 🐍 🔎 Test number 1: ❌ Failed... __________INPUT____________ 5 1 1/1 2 1/3 3 5/2 4 2178309/1346269 5 1/10000000 __________INPUT____________ __________OUTPUT___________ Hello world! __________OUTPUT___________ __________EXPECTED_________ 1 1/2 2 3/2 3 2/5 4 1346269/1860498 5 10000000/9999999 __________EXPECTED_________ ``` Submit solution to kattis ``` > kk submit rationalsequence Submission received. Submission ID: 5030066. * Opens web browser on submission page * ``` # Choose language The default language is python3. To change language you can use the `--language` flag on the get command. ``` > kk get rationalsequence --language java Downloading samples Samples downloaded to './rationalsequence' ``` The other commands will auto detect which language you have chosen. # Supported languages - Python3 - Java - C++ - C - Rust - Contribute by adding [more languages](https://github.com/FelixDQ/kattis-kitten/tree/master/kattiskitten/languages)! :-) %package -n python3-kattiskitten Summary: Kattis CLI - Easily download, test and submit kattis problems Provides: python-kattiskitten BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-kattiskitten # Kattis kitten ![Repo size](https://img.shields.io/github/repo-size/FelixDQ/kattis-kitten) [![PyPI version](https://img.shields.io/pypi/v/kattiskitten)](https://pypi.org/project/kattiskitten/) Kattis CLI - Easily download, test and submit kattis problems ``` Usage: kk [OPTIONS] COMMAND [ARGS]... Simple CLI for downloading and testing kattis problems Options: --help Show this message and exit. Commands: get This command downloads a kattis problem and test files problems Simply opens https://open.kattis.com/problems in your webbrowser submit This command submits a problem to kattis test This tests a kattis problem using provided test problems ``` Installation (requires python >= 3.6): ``` pip3 install kattiskitten ``` # Commands Download test files. ``` > kk get rationalsequence Downloading samples Samples downloaded to './rationalsequence' ``` Test the problem ``` > kk test rationalsequence 👷‍ Testing rationalsequence... 👷‍ Language = Python 3 🐍 🔎 Test number 1: ❌ Failed... __________INPUT____________ 5 1 1/1 2 1/3 3 5/2 4 2178309/1346269 5 1/10000000 __________INPUT____________ __________OUTPUT___________ Hello world! __________OUTPUT___________ __________EXPECTED_________ 1 1/2 2 3/2 3 2/5 4 1346269/1860498 5 10000000/9999999 __________EXPECTED_________ ``` Submit solution to kattis ``` > kk submit rationalsequence Submission received. Submission ID: 5030066. * Opens web browser on submission page * ``` # Choose language The default language is python3. To change language you can use the `--language` flag on the get command. ``` > kk get rationalsequence --language java Downloading samples Samples downloaded to './rationalsequence' ``` The other commands will auto detect which language you have chosen. # Supported languages - Python3 - Java - C++ - C - Rust - Contribute by adding [more languages](https://github.com/FelixDQ/kattis-kitten/tree/master/kattiskitten/languages)! :-) %package help Summary: Development documents and examples for kattiskitten Provides: python3-kattiskitten-doc %description help # Kattis kitten ![Repo size](https://img.shields.io/github/repo-size/FelixDQ/kattis-kitten) [![PyPI version](https://img.shields.io/pypi/v/kattiskitten)](https://pypi.org/project/kattiskitten/) Kattis CLI - Easily download, test and submit kattis problems ``` Usage: kk [OPTIONS] COMMAND [ARGS]... Simple CLI for downloading and testing kattis problems Options: --help Show this message and exit. Commands: get This command downloads a kattis problem and test files problems Simply opens https://open.kattis.com/problems in your webbrowser submit This command submits a problem to kattis test This tests a kattis problem using provided test problems ``` Installation (requires python >= 3.6): ``` pip3 install kattiskitten ``` # Commands Download test files. ``` > kk get rationalsequence Downloading samples Samples downloaded to './rationalsequence' ``` Test the problem ``` > kk test rationalsequence 👷‍ Testing rationalsequence... 👷‍ Language = Python 3 🐍 🔎 Test number 1: ❌ Failed... __________INPUT____________ 5 1 1/1 2 1/3 3 5/2 4 2178309/1346269 5 1/10000000 __________INPUT____________ __________OUTPUT___________ Hello world! __________OUTPUT___________ __________EXPECTED_________ 1 1/2 2 3/2 3 2/5 4 1346269/1860498 5 10000000/9999999 __________EXPECTED_________ ``` Submit solution to kattis ``` > kk submit rationalsequence Submission received. Submission ID: 5030066. * Opens web browser on submission page * ``` # Choose language The default language is python3. To change language you can use the `--language` flag on the get command. ``` > kk get rationalsequence --language java Downloading samples Samples downloaded to './rationalsequence' ``` The other commands will auto detect which language you have chosen. # Supported languages - Python3 - Java - C++ - C - Rust - Contribute by adding [more languages](https://github.com/FelixDQ/kattis-kitten/tree/master/kattiskitten/languages)! :-) %prep %autosetup -n kattiskitten-0.14.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-kattiskitten -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Thu May 18 2023 Python_Bot - 0.14.0-1 - Package Spec generated