Skip to content

Commit 41309b0

Browse files
authored
Release 6.0.2 (#819)
* fix `setup.py test` and issue deprecation warning (#820) * direct invocation of `setup.py` commands has been long deprecated by setuptools (cherry picked from commit f74f335) * release 6.0.2
1 parent dd9f0e1 commit 41309b0

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

CHANGES

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
For a complete changelog, see:
33

44
* https://github.com/yaml/pyyaml/commits/
5-
* https://bitbucket.org/xi/pyyaml/commits/
65

7-
6.0.2rc1 (2024-06-10)
6+
6.0.2 (2024-08-06)
87

98
* https://github.com/yaml/pyyaml/pull/808 -- Support for Cython 3.x and Python 3.13
109

lib/yaml/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from .loader import *
99
from .dumper import *
1010

11-
__version__ = '6.0.2rc1'
11+
__version__ = '6.0.2'
1212
try:
1313
from .cyaml import *
1414
__with_libyaml__ = True

setup.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
NAME = 'PyYAML'
3-
VERSION = '6.0.2rc1'
3+
VERSION = '6.0.2'
44
DESCRIPTION = "YAML parser and emitter for Python"
55
LONG_DESCRIPTION = """\
66
YAML is a data serialization format designed for human readability
@@ -28,8 +28,6 @@
2828
"Programming Language :: Cython",
2929
"Programming Language :: Python",
3030
"Programming Language :: Python :: 3",
31-
"Programming Language :: Python :: 3.6",
32-
"Programming Language :: Python :: 3.7",
3331
"Programming Language :: Python :: 3.8",
3432
"Programming Language :: Python :: 3.9",
3533
"Programming Language :: Python :: 3.10",
@@ -300,6 +298,11 @@ def run(self):
300298
tempdir = tempfile.TemporaryDirectory(prefix='test_pyyaml')
301299

302300
try:
301+
warnings.warn(
302+
"Direct invocation of `setup.py` is deprecated by `setuptools` and will be removed in a future release. PyYAML tests should be run via `pytest`.",
303+
DeprecationWarning,
304+
)
305+
303306
# have to create a subdir since we don't get dir_exists_ok on copytree until 3.8
304307
temp_test_path = pathlib.Path(tempdir.name) / 'pyyaml'
305308
shutil.copytree(build_cmd.build_lib, temp_test_path)
@@ -351,5 +354,5 @@ def run(self):
351354

352355
distclass=Distribution,
353356
cmdclass=cmdclass,
354-
python_requires='>=3.6',
357+
python_requires='>=3.8',
355358
)

0 commit comments

Comments
 (0)