diff --git a/README.rst b/README.rst index fb38dbb..9011e34 100644 --- a/README.rst +++ b/README.rst @@ -11,7 +11,7 @@ hererocks |gh-workflow| |codecov| -``hererocks`` is a single file Python 2.7/3.x script for installing `Lua `_ +``hererocks`` is a single file Python script for installing `Lua `_ (or `LuaJIT `_ or `moonjit `_ or `RaptorJIT `_) and `LuaRocks `_, its package manager, into a local directory. It configures Lua to only see packages installed by that bundled version of LuaRocks, so that the installation is isolated. @@ -41,7 +41,7 @@ Manually: download hererocks with ``wget https://raw.githubusercontent.com/luaro Requirements ------------ -* Python 2.7 or 3.x +* A currently supported version of Python. * Git for installing from Git repositories. * Compiler: diff --git a/hererocks.py b/hererocks.py index 2fbfd7d..7cdc59c 100755 --- a/hererocks.py +++ b/hererocks.py @@ -2,8 +2,6 @@ """A tool for installing Lua and LuaRocks locally.""" -from __future__ import print_function - import argparse import contextlib import hashlib @@ -22,14 +20,10 @@ import tempfile import textwrap import zipfile +from urllib.error import URLError +from urllib.request import urlopen -try: - from urllib2 import URLError, urlopen -except ImportError: - from urllib.error import URLError - from urllib.request import urlopen - if os.name == "nt": try: import _winreg as winreg diff --git a/pyproject.toml b/pyproject.toml index 4930764..d705436 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,8 +18,6 @@ maintainers = [ keywords = ["lua"] classifiers = [ "Development Status :: 4 - Beta", - "Programming Language :: Python :: 2", - "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11",