From 4ca02e15b82c1e617672641ac2a450c3283cc2ed Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 18 May 2023 04:00:10 +0000 Subject: automatic import of python-kattiskitten --- .gitignore | 1 + python-kattiskitten.spec | 369 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 371 insertions(+) create mode 100644 python-kattiskitten.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..c6053c0 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/kattiskitten-0.14.0.tar.gz diff --git a/python-kattiskitten.spec b/python-kattiskitten.spec new file mode 100644 index 0000000..2961fe9 --- /dev/null +++ b/python-kattiskitten.spec @@ -0,0 +1,369 @@ +%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 diff --git a/sources b/sources new file mode 100644 index 0000000..bf4865d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +055b1d4032ed090e6c6ba58bf12b9689 kattiskitten-0.14.0.tar.gz -- cgit v1.2.3