Drop support for Python 3.3

This commit is contained in:
Kodi Arfer 2017-08-26 12:12:06 -07:00
parent 98645aa9b2
commit 0fc96306bc
8 changed files with 7 additions and 9 deletions

View File

@ -2,7 +2,6 @@ sudo: false
language: python language: python
python: python:
- "2.7" - "2.7"
- "3.3"
- "3.4" - "3.4"
- "3.5" - "3.5"
- "3.6" - "3.6"

1
NEWS
View File

@ -1,6 +1,7 @@
Changes from 0.13.0 Changes from 0.13.0
[ Language Changes ] [ Language Changes ]
* Python 3.3 is no longer supported
* The unquote-splice or ~@ form now accepts any false value as empty. * The unquote-splice or ~@ form now accepts any false value as empty.
* `yield-from` is no longer supported under Python 2 * `yield-from` is no longer supported under Python 2
* `apply` has been replaced with Python-style unpacking operators `#*` and * `apply` has been replaced with Python-style unpacking operators `#*` and

View File

@ -21,7 +21,6 @@ except ImportError:
import sys import sys
PY3 = sys.version_info[0] >= 3 PY3 = sys.version_info[0] >= 3
PY34 = sys.version_info >= (3, 4)
PY35 = sys.version_info >= (3, 5) PY35 = sys.version_info >= (3, 5)
str_type = str if PY3 else unicode # NOQA str_type = str if PY3 else unicode # NOQA

View File

@ -12,7 +12,7 @@ from hy.lex.parser import hy_symbol_mangle
import hy.macros import hy.macros
from hy._compat import ( from hy._compat import (
str_type, string_types, bytes_type, long_type, PY3, PY34, PY35, str_type, string_types, bytes_type, long_type, PY3, PY35,
raise_empty) raise_empty)
from hy.macros import require, macroexpand, tag_macroexpand from hy.macros import require, macroexpand, tag_macroexpand
import hy.importer import hy.importer
@ -2207,7 +2207,7 @@ class HyASTCompiler(object):
) + expression ) + expression
expression = expression.replace(arg[0]) expression = expression.replace(arg[0])
if PY34: if PY3:
# Python 3.4+ requires that args are an ast.arg object, rather # Python 3.4+ requires that args are an ast.arg object, rather
# than an ast.Name or bare string. # than an ast.Name or bare string.
args = [ast.arg(arg=ast_str(x), args = [ast.arg(arg=ast_str(x),

View File

@ -18,7 +18,7 @@ import inspect
import os import os
import __future__ import __future__
from hy._compat import PY3, PY34, MAGIC, builtins, long_type, wr_long from hy._compat import PY3, MAGIC, builtins, long_type, wr_long
from hy._compat import string_types from hy._compat import string_types
@ -271,7 +271,7 @@ def is_package(module_name):
def get_bytecode_path(source_path): def get_bytecode_path(source_path):
if PY34: if PY3:
import importlib.util import importlib.util
return importlib.util.cache_from_source(source_path) return importlib.util.cache_from_source(source_path)
elif hasattr(imp, "cache_from_source"): elif hasattr(imp, "cache_from_source"):

View File

@ -78,7 +78,6 @@ setup(
"Programming Language :: Python :: 2", "Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7", "Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.6",

View File

@ -11,7 +11,7 @@
pytest) pytest)
(import sys) (import sys)
(import [hy._compat [PY3 PY34 PY35]]) (import [hy._compat [PY3 PY35]])
(defn test-sys-argv [] (defn test-sys-argv []
"NATIVE: test sys.argv" "NATIVE: test sys.argv"

View File

@ -1,5 +1,5 @@
[tox] [tox]
envlist = py27,pypy,py33,py34,py35,py36,flake8 envlist = py27,pypy,py34,py35,py36,flake8
skipsdist = True skipsdist = True
[testenv] [testenv]