22 Commits
Author SHA1 Message Date
Tianon Gravi b9b055b2ca Update Hy to 0.24.0 and pin "sh" to 1.14.2 (something in 1.14.3 breaks our "sys.executable" hack) 2022-07-25 12:12:28 -07:00
Tianon Gravi 5fc14b2df1 Update Hy tests to 1.0a4 2022-01-10 12:26:27 -08:00
Tianon Gravi a553f496cc Update python-hy test to 1.0a3
Also, now that Python 3.10 is "frozen" (https://pythoninsider.blogspot.com/2021/09/python-3100rc2-is-available.html), allow it to run the tests on Linux.
2021-09-07 16:44:31 -07:00
Joe Ferguson c647cc57d4 Update python-hy test for newer python + hy versions
- silence pip warnings about new version available
- silence pip warning about python version deprecation
2021-02-04 16:39:54 -08:00
Tianon Gravi f8c09a08b2 Adjust test harness to run many tests successfully on Windows 2020-04-27 11:30:19 -07:00
Joe Ferguson dec66003dc Update python-hy test to newer hy with python 3.7 support 2019-05-06 16:52:47 -07:00
Tianon Gravi 0b4ac0a348 Simplify our "does this image contain the expected Python" test 2017-11-13 15:40:37 -08:00
Tianon Gravi 6bdfeda81a Exclude python-hy on 3.7+ again
```
$ test/run.sh python:3.7.0a2-alpine3.6
testing python:3.7.0a2-alpine3.6
	'utc' [1/8]...passed
	'cve-2014--shellshock' [2/8]...passed
	'no-hard-coded-passwords' [3/8]...passed
	'override-cmd' [4/8]...passed
	'python-hy' [5/8]...Traceback (most recent call last):
  File "/usr/local/bin/hy", line 11, in <module>
    load_entry_point('hy==0.13.0', 'console_scripts', 'hy')()
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 570, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2755, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2409, in load
    return self.resolve()
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2415, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.7/site-packages/hy/cmdline.py", line 14, in <module>
    import astor.codegen
  File "/usr/local/lib/python3.7/site-packages/astor/__init__.py", line 14, in <module>
    from .code_gen import to_source  # NOQA
  File "/usr/local/lib/python3.7/site-packages/astor/code_gen.py", line 311
    def visit_FunctionDef(self, node, async=False):
                                          ^
SyntaxError: invalid syntax
failed
	'python-imports' [6/8]...passed
	'python-pip-requests-ssl' [7/8]...passed
	'python-sqlite3' [8/8]...passed
```
2017-11-13 15:37:16 -08:00
Tianon Gravi a94fdb9ac3 Update tested Hy to 0.13.0 2017-11-13 15:34:13 -08:00
Tianon Gravi 8c34a909f4 Remove Hy test astor pinning 2017-11-13 15:30:39 -08:00
Tianon Gravi b6c665fc5a Update python-hy 2017-10-31 11:11:14 -07:00
Jamie Hewland 71b1c6c0c3 python: Set the PATH to /usr/local/bin when searching for a Python
* buildpack-deps:stretch has Python 3.5 installed which is detected
  before our custom Python 2.7 in these scripts. Search only in
  /usr/local/bin
2017-06-21 10:24:39 +02:00
Tianon Gravi 759741807c Update "python-hy" test to 0.12.1 (and thus move the maximum Python up to 3.6) and adjust the test comments/output language to be more positive 2017-01-26 12:09:23 -08:00
Tianon Gravi 23ba7180f4 Adjust "python-hy" test's "container.sh" to use the same "find Python interpreter" logic as "run-python-in-container.sh" (so it works properly on pypy too) 2017-01-23 15:34:08 -08:00
Tianon Gravi ccac248e3d Pin python-hy test to Hy 0.11 2017-01-23 15:30:43 -08:00
Tianon Gravi 85d067b775 Revert "Update python-hy test" 2017-01-20 10:03:18 -08:00
Joe Ferguson 8ed70c1a7c Update python-hy test 2017-01-19 15:42:53 -08:00
Tianon Gravi 1e2fa04017 Skip "python-hy" test on Python 3.6+ 2016-09-16 09:44:03 -07:00
Natanael Copa 4335f19ac3 Fix python-hy to not use bash
The python alpine variant does not ship bash so we use /bin/sh instead.
2015-12-31 09:17:40 +01:00
Tianon Gravi 6bdb821b26 Refactor python-hy into hylang-sh
This allows `python-hy` to reference a separate `hylang-sh` test which is then applied to `hylang`.  Two birds, one stone.
2015-03-06 16:38:51 -07:00
Tianon Gravi d720ab4ea0 Since we run container.sh with bash directly, it doesn't need +x anymore 2015-02-05 10:58:53 -08:00
Joe Ferguson 1857b61623 Huge re-factor to ease writing of tests 2015-02-05 10:58:53 -08:00