Skip to content

Commit 6062498

Browse files
committed
ready for 0.5 release
- updated docs, setup.py & changelog
1 parent c8d757e commit 6062498

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
All notable changes to this project will be documented in this file.
44

55

6-
## [0.5] - Dec x, 2019
6+
## [0.5] - Dec 20, 2019
77

88
### Added
99

@@ -13,7 +13,8 @@ All notable changes to this project will be documented in this file.
1313

1414
### Changed
1515
- Renamed Class `Run` to `code` for easier usage.
16-
- `getStatus()`, it now only returns the status in comparison to older versions where it performed multiple functions (submitting code on judge0 api).
16+
- `getStatus()`, now only returns the status in comparison to earlier versions where it performed multiple tasks.
17+
This is effect fixes [#2](https://github.com/codeclassroom/CodeRunner/issues/2).
1718

1819
### Removed
1920
- `requests` as a dependency, Network requests are now 50% faster.

demo.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,19 @@
77
Input = "testfiles/input/" + "input.txt"
88
r = coderunner.code(source_code, language, output, Input)
99

10+
r2 = coderunner.code("print(\"yo\")", "Python", "YO", path=False)
11+
1012
# run the code
1113
r.run()
1214

15+
print("Run r :")
1316
print("Status : " + r.getStatus())
1417

18+
r2.run()
19+
20+
print("Run r2 :")
21+
print("Status : " + r2.getStatus())
22+
1523
# check if any error occured
1624
if r.getError() is not None:
1725
pprint.pprint("Error : " + r.getError())

docs/changelog.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44

5-
## [0.5] - Dec x, 2019
5+
## [0.5] - Dec 20, 2019
66

77
### Added
88

@@ -12,7 +12,8 @@
1212

1313
### Changed
1414
- Renamed Class `Run` to `code` for easier usage.
15-
- `getStatus()`, it now only returns the status in comparison to older versions where it performed multiple functions (submitting code on judge0 api).
15+
- `getStatus()`, now only returns the status in comparison to earlier versions where it performed multiple tasks.
16+
This is effect fixes [#2](https://github.com/codeclassroom/CodeRunner/issues/2).
1617

1718
### Removed
1819
- `requests` as a dependency, Network requests are now 50% faster.

docs/usage.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ r = coderunner.code(source_code, language, expected_output)
3131
r = coderunner.code("Hello, World", language, "Hello, World", path=False)
3232
```
3333

34+
See [demo.py](https://github.com/codeclassroom/CodeRunner/blob/master/demo.py) for a more descriptive usage.
35+
3436
**Pointers ✏**
3537

3638
- In a `Java` program the class name should always be ***`Main`***.<br>

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@
3737
"Operating System :: OS Independent",
3838
],
3939
python_requires='>=3.6',
40-
)
40+
)

0 commit comments

Comments
 (0)