Skip to content

Commit c800156

Browse files
committed
Add support for python3 and macOS
1 parent eb63f6c commit c800156

File tree

7 files changed

+207
-55
lines changed

7 files changed

+207
-55
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ venv/
55
*.egg-info
66
*.egg
77
constants.json
8+
.python-version

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ A command line tool to run your code against sample test cases. Without leaving
1414
+ Codechef
1515
+ Spoj
1616
+ Hackerrank
17+
+ AtCoder
1718

1819
#### Supported Languages
1920
+ C
@@ -23,6 +24,10 @@ A command line tool to run your code against sample test cases. Without leaving
2324
+ Ruby
2425
+ Haskell
2526

27+
#### Requirements
28+
+ python3.5
29+
+ coreutils (macOS only)
30+
2631
#### Installation
2732
##### Build from source
2833
+ `git clone https://github.com/coderick14/ACedIt`
@@ -102,3 +107,4 @@ acedit --run test.py -s codechef -c AUG17 -p CHEFFA
102107
##### Contributors
103108
+ [Lakshmanaram](https://github.com/lakshmanaram)
104109
+ [Igor Kolobov](https://github.com/Igorjan94)
110+
+ [Mayuko Kori](https://github.com/kotapiku)

README.rst

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Supported sites
77
- Codechef
88
- Spoj
99
- Hackerrank
10+
- Atcoder
1011

1112
Supported languages
1213
^^^^^^^^^^^^^^^^^^^

acedit/install_entry.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def run(self):
1010
default_site = 'codeforces'
1111
cache_dir = os.path.join(os.path.expanduser('~'), '.cache', 'ACedIt')
1212

13-
from main import supported_sites
13+
from acedit.main import supported_sites
1414

1515
for site in supported_sites:
1616
# create cache directory structure

acedit/main.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import sys
2-
import util
2+
import acedit.util as util
33

44

5-
supported_sites = ['codeforces', 'codechef', 'hackerrank', 'spoj']
5+
supported_sites = ['codeforces', 'codechef', 'hackerrank', 'spoj', 'atcoder']
66

77

88
def validate_args(args):
@@ -17,14 +17,14 @@ def validate_args(args):
1717
return
1818

1919
if not args['site'] == 'spoj' and args['contest'] is None:
20-
print 'Please specify contest code or set a default contest.'
20+
print('Please specify contest code or set a default contest.')
2121
sys.exit(0)
2222

2323
if args['source']:
2424
return
2525

2626
if args['site'] == 'spoj' and args['problem'] is None:
27-
print 'Please specify a problem code for Spoj.'
27+
print('Please specify a problem code for Spoj.')
2828
sys.exit(0)
2929

3030

@@ -58,7 +58,7 @@ def main():
5858
util.Utilities.download_contest_testcases(args)
5959

6060
else:
61-
print 'Invalid combination of flags.'
61+
print('Invalid combination of flags.')
6262

6363
except KeyboardInterrupt:
6464
# Clean up files here

0 commit comments

Comments
 (0)