lispython 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +1,23 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lispython
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Lisp-like Syntax for Python with Lisp-like Macros
5
- Home-page: https://jethack23.github.io/lispython
5
+ Home-page: https://jetack.github.io/lispython
6
6
  License: MIT
7
- Author: Jethack
8
- Author-email: jethack23@gmail.com
7
+ Author: Jetack
8
+ Author-email: jetack23@gmail.com
9
9
  Requires-Python: >=3.11,<3.12
10
10
  Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Programming Language :: Python :: 3.11
13
- Project-URL: Repository, https://github.com/jethack23/lispython
13
+ Project-URL: Repository, https://github.com/jetack/lispython
14
14
  Description-Content-Type: text/markdown
15
15
 
16
16
  # LisPython
17
17
  [![PyPI version](https://badge.fury.io/py/lispython.svg)](https://badge.fury.io/py/lispython)
18
18
 
19
19
  # Documentation
20
- You can find the documentation at [https://jethack23.github.io/lispython/](https://jethack23.github.io/lispython/).
20
+ You can find the documentation at [https://jetack.github.io/lispython/](https://jetack.github.io/lispython/).
21
21
 
22
22
  # Installation
23
23
  ## Manual Installation (for development)
@@ -2,7 +2,7 @@
2
2
  [![PyPI version](https://badge.fury.io/py/lispython.svg)](https://badge.fury.io/py/lispython)
3
3
 
4
4
  # Documentation
5
- You can find the documentation at [https://jethack23.github.io/lispython/](https://jethack23.github.io/lispython/).
5
+ You can find the documentation at [https://jetack.github.io/lispython/](https://jetack.github.io/lispython/).
6
6
 
7
7
  # Installation
8
8
  ## Manual Installation (for development)
@@ -1,12 +1,12 @@
1
1
  [tool.poetry]
2
2
  name = "lispython"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "Lisp-like Syntax for Python with Lisp-like Macros"
5
- authors = ["Jethack <jethack23@gmail.com>"]
5
+ authors = ["Jetack <jetack23@gmail.com>"]
6
6
  license = "MIT"
7
7
  readme = "README.md"
8
- homepage = "https://jethack23.github.io/lispython"
9
- repository = "https://github.com/jethack23/lispython"
8
+ homepage = "https://jetack.github.io/lispython"
9
+ repository = "https://github.com/jetack/lispython"
10
10
  packages = [
11
11
  {include = "lispy", from = "src"}
12
12
  ]
@@ -7,6 +7,7 @@
7
7
  (import os.path as osp)
8
8
  (import runpy)
9
9
  (import sys)
10
+ (import traceback)
10
11
 
11
12
  (try
12
13
  (import black)
@@ -109,20 +110,26 @@
109
110
 
110
111
  (def repl [:translate False]
111
112
  (= scope SCOPE)
112
- (eval-and-print "(require lispy.macros *)")
113
+ (eval-and-print "(require lispy.macros *)
114
+ (from pprint [pprint])")
113
115
  (while True
114
116
  (try
115
117
  (do
116
118
  (= src (read-multiline-input "repl> "))
117
119
  (eval-and-print src scope translate))
120
+ (except [SystemExit]
121
+ (print "SystemExit caught. Exiting REPL.")
122
+ (break))
118
123
  (except [EOFError as e]
119
- (raise e))
124
+ (print "Ctrl-d input. Exiting REPL.")
125
+ (break))
120
126
  (except [KeyboardInterrupt]
121
127
  (print "\nKeyboard Interrupt")
122
128
  (continue))
123
129
  (except [Exception as e]
124
- (print "Exception: " e)
125
- (continue)))))
130
+ (print "An error occurred:\n====================================")
131
+ (traceback.print_exc)
132
+ (print "====================================")))))
126
133
 
127
134
  (def run []
128
135
  (cond (< (len sys.argv) 2)
File without changes