mirror of
https://github.com/mnaberez/py65.git
synced 2025-01-15 12:31:16 +00:00
Remove support for Python 2
This commit is contained in:
parent
7b9a7dea70
commit
ca02d12fc6
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -7,7 +7,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [2.7, 3.6, 3.7, 3.8, 3.9, "3.10", 3.11]
|
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", 3.11]
|
||||||
os: [ubuntu-20.04, windows-2019]
|
os: [ubuntu-20.04, windows-2019]
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
2.0.0.dev0 (Next Release)
|
2.0.0.dev0 (Next Release)
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
- Support for some older Python versions has been dropped. On Python 3,
|
- Support for some older Python versions has been dropped. Py65
|
||||||
Py65 now requires Python 3.6 or later. On Python 2, Py65 now requires
|
now requires Python 3.6 or later.
|
||||||
Python 2.7.
|
|
||||||
|
|
||||||
- Fixed a bug with character input that would cause characters to be
|
- Fixed a bug with character input that would cause characters to be
|
||||||
dropped when pasting in larger amounts of text. This makes it possible
|
dropped when pasting in larger amounts of text. This makes it possible
|
||||||
|
@ -20,9 +20,9 @@ Installation
|
|||||||
|
|
||||||
Py65 packages are `available <http://pypi.python.org/pypi/py65>`_ on the
|
Py65 packages are `available <http://pypi.python.org/pypi/py65>`_ on the
|
||||||
Python Package Index (PyPI). You download them from there or you can
|
Python Package Index (PyPI). You download them from there or you can
|
||||||
use ``pip`` to automatically install or upgrade Py65::
|
use ``pip3`` to automatically install or upgrade Py65::
|
||||||
|
|
||||||
$ pip install -U py65
|
$ pip3 install -U py65
|
||||||
|
|
||||||
Devices
|
Devices
|
||||||
-------
|
-------
|
||||||
|
@ -22,6 +22,8 @@ import shlex
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
from asyncore import compact_traceback
|
from asyncore import compact_traceback
|
||||||
|
from urllib.request import urlopen
|
||||||
|
|
||||||
from py65.devices.mpu6502 import MPU as NMOS6502
|
from py65.devices.mpu6502 import MPU as NMOS6502
|
||||||
from py65.devices.mpu65c02 import MPU as CMOS65C02
|
from py65.devices.mpu65c02 import MPU as CMOS65C02
|
||||||
from py65.devices.mpu65org16 import MPU as V65Org16
|
from py65.devices.mpu65org16 import MPU as V65Org16
|
||||||
@ -32,11 +34,6 @@ from py65.utils import console
|
|||||||
from py65.utils.conversions import itoa
|
from py65.utils.conversions import itoa
|
||||||
from py65.memory import ObservableMemory
|
from py65.memory import ObservableMemory
|
||||||
|
|
||||||
try:
|
|
||||||
from urllib2 import urlopen
|
|
||||||
except ImportError: # Python 3
|
|
||||||
from urllib.request import urlopen
|
|
||||||
|
|
||||||
class Monitor(cmd.Cmd):
|
class Monitor(cmd.Cmd):
|
||||||
|
|
||||||
Microprocessors = {'6502': NMOS6502, '65C02': CMOS65C02,
|
Microprocessors = {'6502': NMOS6502, '65C02': CMOS65C02,
|
||||||
|
@ -2,12 +2,10 @@ import unittest
|
|||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
from py65.monitor import Monitor
|
|
||||||
|
|
||||||
try:
|
from io import StringIO
|
||||||
from StringIO import StringIO
|
|
||||||
except ImportError: # Python 3
|
from py65.monitor import Monitor
|
||||||
from io import StringIO
|
|
||||||
|
|
||||||
|
|
||||||
class MonitorTests(unittest.TestCase):
|
class MonitorTests(unittest.TestCase):
|
||||||
|
9
setup.py
9
setup.py
@ -3,14 +3,9 @@ __version__ = '2.0.0.dev0'
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
py_version = sys.version_info[:2]
|
py_version = sys.version_info[:2]
|
||||||
PY3 = py_version[0] == 3
|
|
||||||
|
|
||||||
if PY3:
|
if py_version < (3, 6):
|
||||||
if py_version < (3, 4):
|
|
||||||
raise RuntimeError('On Python 3, Py65 requires Python 3.6 or later')
|
raise RuntimeError('On Python 3, Py65 requires Python 3.6 or later')
|
||||||
else:
|
|
||||||
if py_version < (2, 7):
|
|
||||||
raise RuntimeError('On Python 2, Py65 requires Python 2.7 or later')
|
|
||||||
|
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
@ -24,8 +19,6 @@ CLASSIFIERS = [
|
|||||||
'Natural Language :: English',
|
'Natural Language :: English',
|
||||||
'Operating System :: POSIX',
|
'Operating System :: POSIX',
|
||||||
'Programming Language :: Python',
|
'Programming Language :: Python',
|
||||||
'Programming Language :: Python :: 2',
|
|
||||||
'Programming Language :: Python :: 2.7',
|
|
||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
'Programming Language :: Python :: 3.6',
|
'Programming Language :: Python :: 3.6',
|
||||||
'Programming Language :: Python :: 3.7',
|
'Programming Language :: Python :: 3.7',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user