Skip to content

Commit 78af61a

Browse files
committed
chore(bin): use colorama to print in bold
1 parent 4622eef commit 78af61a

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

bin/cf-run

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ import argparse
44
import time
55
import subprocess
66

7+
import colorama
78
import codeforces
89

10+
colorama.init(autoreset=True)
11+
912
parser = argparse.ArgumentParser()
1013

1114
parser.add_argument(
@@ -66,11 +69,11 @@ for inp, ans in sample_tests:
6669

6770
print('Time: %d ms\n' % (time_used * 1000))
6871

69-
print('Input')
72+
print(colorama.Style.BRIGHT + 'Input')
7073
print(inp)
7174

72-
print("Participant's output")
75+
print(colorama.Style.BRIGHT + "Participant's output")
7376
print(out)
7477

75-
print("Jury's answer")
78+
print(colorama.Style.BRIGHT + "Jury's answer")
7679
print(ans)

setup.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,9 @@
77
setup(
88
name='python-codeforces',
99
version='0.2.1',
10-
author='Mukundan',
11-
author_email='[email protected]',
1210
description='Codeforces API wrapper for python',
1311
long_description=long_description,
1412
long_description_content_type='text/markdown',
15-
license='MIT',
16-
keywords='codeforces',
17-
url='https://github.com/Mukundan314/python-codeforces',
18-
scripts=['bin/cf-run'],
19-
python_requires='>=3.6,<4',
20-
install_requires=['bs4'],
21-
extras_requires={ 'docs': ['sphinx', 'sphinx_rtd_theme'] },
22-
packages=find_packages(exclude=['docs']),
2313
classifiers=[
2414
'Development Status :: 5 - Production/Stable',
2515
'Intended Audience :: Developers',
@@ -28,6 +18,16 @@
2818
'Programming Language :: Python :: 3.6',
2919
'Programming Language :: Python :: 3.7'
3020
],
21+
keywords='codeforces',
22+
url='https://github.com/Mukundan314/python-codeforces',
23+
author='Mukundan',
24+
author_email='[email protected]',
25+
license='MIT',
26+
packages=find_packages(exclude=['docs']),
27+
install_requires=['bs4', 'colorama'],
28+
extras_requires={ 'docs': ['sphinx', 'sphinx_rtd_theme'] },
29+
scripts=['bin/cf-run'],
30+
python_requires='>=3.6,<4',
3131
project_urls={
3232
"Bug Tracker": "https://github.com/Mukundan314/python-codeforces/issues/",
3333
"Documentation": "https://python-codeforces.readthedocs.io/en/stable/",

0 commit comments

Comments
 (0)