-
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 #45 from Deric-W/Issue#44
Issue#44
- Loading branch information
Showing
8 changed files
with
76 additions
and
80 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
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,13 +1,14 @@ | ||
Package: pyhp | ||
Version: {0} | ||
Package: python3-pyhp-core | ||
Source: pyhp-core | ||
Version: {0}-1 | ||
Architecture: all | ||
Maintainer: Eric Wolf <[email protected]> | ||
Installed-Size: {1} | ||
Maintainer: {1} <{2}> | ||
Installed-Size: {3} | ||
Depends: python3:any (>= 3.7) | ||
Suggests: apache2 | ||
Section: web | ||
Recommends: python3-toml (>= 0.10.0), python3-werkzeug (>= 0.14.0) | ||
Section: python | ||
Priority: optional | ||
Homepage: https://github.com/Deric-W/PyHP | ||
Description: Application for embedding and using python code like php | ||
PyHP is a application/python package for embedding python code in text files like HTML, | ||
Homepage: {4} | ||
Description: {5} | ||
PyHP is a application/python package for embedding python code in text files like HTML, | ||
with several PHP functions available. |
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,10 +1,10 @@ | ||
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 | ||
Upstream-Name: python3-pyhp-core | ||
Upstream-Contact: {0} <{1}> | ||
Source: {2} | ||
Copyright: 2021 Eric Wolf | ||
License: GPLv3 | ||
License: {3} | ||
|
||
Files: * | ||
Copyright: 2021 Eric Wolf | ||
License: GPLv3 | ||
License: {3} |
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,7 +1,10 @@ | ||
#!/usr/bin/python3 | ||
# format stdin with cli arguments | ||
|
||
"""format stdin with cli arguments""" | ||
|
||
import sys | ||
|
||
data = sys.stdin.read() | ||
data = data.format(*sys.argv[1:]) | ||
sys.stdout.write(data) | ||
|
||
sys.stdout.write( | ||
sys.stdin.read().format(*sys.argv[1:]) | ||
) |
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 |
---|---|---|
|
@@ -73,10 +73,3 @@ enable = true | |
|
||
# how many files can be uploaded at once | ||
max_files = 20 | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
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,7 +1,7 @@ | ||
[metadata] | ||
name = pyhp-core | ||
version = attr: pyhp.__version__ | ||
description = package for embedding and using python code like php | ||
description = Package for embedding and using python code like php | ||
license = GPLv3 | ||
license_file = LICENSE | ||
long_description = file: README.md | ||
|
@@ -12,17 +12,18 @@ maintainer = Eric Wolf | |
maintainer_email = [email protected] | ||
url = https://github.com/Deric-W/PyHP | ||
classifiers = | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Intended Audience :: Developers | ||
Operating System :: Microsoft :: Windows | ||
Operating System :: POSIX | ||
Topic :: Internet :: WWW/HTTP | ||
Topic :: Internet :: WWW/HTTP :: Dynamic Content | ||
Intended Audience :: Developers | ||
Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries | ||
Topic :: Internet :: WWW/HTTP :: WSGI :: Application | ||
Topic :: Software Development :: Interpreters | ||
Topic :: Text Processing :: Markup :: HTML | ||
Typing :: Typed | ||
License :: OSI Approved :: GNU General Public License v3 (GPLv3) | ||
|
||
[options] | ||
|
@@ -38,7 +39,7 @@ python_requires = >=3.7 | |
|
||
[options.extras_require] | ||
CONFIG = toml >= 0.10.0 | ||
PHP = werkzeug >= 2.0.0 | ||
PHP = werkzeug >= 0.14.0 | ||
|
||
[options.package_data] | ||
pyhp = py.typed | ||
|
@@ -67,9 +68,6 @@ check_untyped_defs = True | |
disallow_untyped_defs = True | ||
no_implicit_optional = True | ||
|
||
[mypy-pyhp.libpyhp] | ||
ignore_errors = True | ||
|
||
[mypy-pyhp.wsgi.interfaces.php] | ||
# the type: ignore is needed because CI fails somehow (but not local tests?) | ||
warn_unused_ignores = False |
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