File tree Expand file tree Collapse file tree 6 files changed +21
-12
lines changed Expand file tree Collapse file tree 6 files changed +21
-12
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ check:
15
15
upload :
16
16
py -m twine upload --skip-existing dist/*
17
17
18
+ .PHONY : uploadtest
19
+ uploadtest :
20
+ py -m twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing dist/*
21
+
18
22
.PHONY : install
19
23
install :
20
24
pip install .
Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ Transpiles some Python into human-readable Golang.
14
14
15
15
### Installing
16
16
17
+ #### via pip
18
+ ```
19
+ pip install pytago
20
+ ```
21
+
17
22
#### via setup.py (dev)
18
23
19
24
```
@@ -22,13 +27,6 @@ cd pytago
22
27
pip install -e .
23
28
```
24
29
25
- The other installation methods may temporarily result in a circular import issue. It will be addressed on soon.
26
-
27
- #### via pip
28
- ```
29
- pip install pytago
30
- ```
31
-
32
30
#### via setup.py
33
31
34
32
```
@@ -3265,4 +3263,4 @@ Some things I'd like to add soon...
3265
3263
3266
3264
- "value in range(start, stop, step)" => a conditional statement
3267
3265
- Exhaustive implementation of list/dict/int/float/bytes methods
3268
- -
3266
+ -
Original file line number Diff line number Diff line change 1
1
from pytago .core import *
2
- from pytago import go_ast
Original file line number Diff line number Diff line change 1
1
import ast
2
2
3
- from pytago import go_ast
4
-
5
3
6
4
def python_to_go (python : str , debug = True ) -> str :
5
+ from pytago import go_ast
7
6
py_tree = ast .parse (python )
8
7
go_tree = go_ast .File .from_Module (py_tree )
9
8
return go_ast .unparse (go_tree , debug = debug )
10
9
11
10
12
11
def dump_python_to_go_ast_as_json (python : str ):
12
+ from pytago import go_ast
13
13
"""
14
14
Not currently used for anything. Hoping that this could
15
15
be the first step toward serializing ASTs to send to
Original file line number Diff line number Diff line change @@ -19,6 +19,14 @@ Transpiles some Python into human-readable Golang.
19
19
pip install pytago
20
20
```
21
21
22
+ #### via setup.py (dev)
23
+
24
+ ```
25
+ git clone https://github.com/nottheswimmer/pytago/
26
+ cd pytago
27
+ pip install -e .
28
+ ```
29
+
22
30
#### via setup.py
23
31
24
32
```
Original file line number Diff line number Diff line change 5
5
6
6
setup (
7
7
name = 'pytago' ,
8
- version = '0.0.3 ' ,
8
+ version = '0.0.4 ' ,
9
9
packages = ['pytago' ],
10
10
url = 'https://github.com/nottheswimmer/pytago' ,
11
11
license = '' ,
You can’t perform that action at this time.
0 commit comments