diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a3137648a..ebd924d8e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: - python-version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10'] + python-version: ['3.5', '3.6', '3.7', '3.8', '3.9', '3.10'] steps: - uses: actions/checkout@v2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e1dcfc9e..018ace895 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # **Upcoming release** +## XXX + +- XXX + +# Release 1.0.0 + +Date: 2022-04-08 + +## Syntax support + +- #400 Drop Python 2.7 support + ## Bug fixes - #459 Fix bug while extracting method with augmented assignment to subscript in try block (@dryobates) diff --git a/README.rst b/README.rst index a25c370a4..a27984487 100644 --- a/README.rst +++ b/README.rst @@ -31,6 +31,10 @@ Overview Most Python syntax from Python 2.7 up to Python 3.10 is supported. Please file bugs and contribute patches if you encounter gaps. +From version 1.0.0 onwards, rope will no longer support running on Python 2. +If you need Python 2 support, then check out the `python2` branch or the 0.x.x +releases. + Getting Started =============== diff --git a/pyproject.toml b/pyproject.toml index 4d0b6b4c1..a35314674 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.black] -target-version = ['py33', 'py34', 'py35', 'py36', 'py37', 'py38', 'py39'] +target-version = ['py35', 'py36', 'py37', 'py38', 'py39'] include = 'rope/.*\.pyi?$' force-exclude = 'ropetest' diff --git a/rope/__init__.py b/rope/__init__.py index 8c367003b..b78ec59d8 100644 --- a/rope/__init__.py +++ b/rope/__init__.py @@ -1,7 +1,7 @@ """rope, a python refactoring library""" INFO = __doc__ -VERSION = "0.23.0" +VERSION = "1.0.0" COPYRIGHT = """\ Copyright (C) 2021-2021 Lie Ryan Copyright (C) 2019-2021 Matej Cepl diff --git a/setup.py b/setup.py index 62b7c8a6c..9c42eeb3d 100644 --- a/setup.py +++ b/setup.py @@ -17,8 +17,6 @@ "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", "Natural Language :: English", "Programming Language :: Python", - "Programming Language :: Python :: 2", - "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", @@ -78,4 +76,5 @@ def get_version(): "pytest-timeout", ] }, + python_requires=">=3", )