-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from Deric-W/compiler-subsystem
Compiler subsystem
- Loading branch information
Showing
30 changed files
with
1,447 additions
and
343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
*/__pycache__ | ||
*.pyc | ||
.coverage | ||
.htmlcov | ||
dist | ||
notes.txt | ||
Test.html | ||
|
||
**/.vscode/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
pyhp (2.1-1) stable; urgency=low | ||
|
||
* fifth release | ||
* add bytecode code object implementation | ||
* change CacheHandlers to support the context manager protocol | ||
* change CacheHandlers to work with code objects directly | ||
* replace pyhp.embed with pyhp.compiler | ||
* fix errors during compilation and execution having wrong line numbers | ||
* fix code objects lacking proper module constants | ||
|
||
-- Eric Wolf <[email protected]> Wed, 27 Jan 2021 19:17:00 +0100 | ||
|
||
pyhp (2.0-1) stable; urgency=low | ||
|
||
* fourth release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ Version: {0} | |
Architecture: all | ||
Maintainer: Eric Wolf <[email protected]> | ||
Installed-Size: {1} | ||
Depends: python3:any (>= 3.5) | ||
Depends: python3:any (>= 3.7) | ||
Suggests: apache2 | ||
Section: web | ||
Priority: optional | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | |
Upstream-Name: pyhp | ||
Upstream-Contact: Eric Wolf <[email protected]> | ||
Source: https://github.com/Deric-W/PyHP | ||
Copyright: 2019 Eric Wolf | ||
License: Expat | ||
Copyright: 2021 Eric Wolf | ||
License: GPLv3 | ||
|
||
Files: * | ||
Copyright: 2019 Eric Wolf | ||
License: Expat | ||
Copyright: 2021 Eric Wolf | ||
License: GPLv3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,28 @@ | ||
#!/usr/bin/python3 | ||
|
||
# script to support the pyhp command | ||
"""Script to support the pyhp command""" | ||
# This script is part of PyHP (https://github.com/Deric-W/PyHP) | ||
# Copyright (C) 2021 Eric Wolf | ||
|
||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, version 3. | ||
|
||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
# SPDX-License-Identifier: GPL-3.0-only | ||
|
||
import sys | ||
from pyhp.main import main, get_args | ||
from pyhp.main import main, argparser | ||
|
||
# get cli arguments | ||
args = get_args() | ||
args = argparser.parse_args() | ||
|
||
# execute main with file_path as normal argument and the rest as keyword arguments | ||
sys.exit(main(args.pop("file_path"), **args)) | ||
# execute main | ||
sys.exit( | ||
main( | ||
args.file, | ||
args.caching, | ||
args.config | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,14 +13,15 @@ | |
|
||
# package metadata | ||
# needs to be defined before .main is imported | ||
__version__ = "2.0" | ||
__version__ = "2.1" | ||
__author__ = "Eric Wolf" | ||
__maintainer__ = "Eric Wolf" | ||
__license__ = "MIT" | ||
__license__ = "GPLv3" | ||
__email__ = "[email protected]" # please dont use for spam :( | ||
__contact__ = "https://github.com/Deric-W/PyHP" | ||
|
||
# import all submodules | ||
from . import embed | ||
from . import libpyhp | ||
from . import main | ||
__all__ = ( | ||
"compiler", | ||
"libpyhp", | ||
"main" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.