"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/utils/fixtures/setups/pyyaml/setup.py" between
poetry-1.1.15.tar.gz and poetry-1.2.0.tar.gz

About: Poetry is a tool for dependency management and packaging in Python.

setup.py  (poetry-1.1.15):setup.py  (poetry-1.2.0)
from __future__ import annotations
NAME = "PyYAML" NAME = "PyYAML"
VERSION = "3.13" VERSION = "3.13"
DESCRIPTION = "YAML parser and emitter for Python" DESCRIPTION = "YAML parser and emitter for Python"
LONG_DESCRIPTION = """\ LONG_DESCRIPTION = """\
YAML is a data serialization format designed for human readability YAML is a data serialization format designed for human readability
and interaction with scripting languages. PyYAML is a YAML parser and interaction with scripting languages. PyYAML is a YAML parser
and emitter for Python. and emitter for Python.
PyYAML features a complete YAML 1.1 parser, Unicode support, pickle PyYAML features a complete YAML 1.1 parser, Unicode support, pickle
support, capable extension API, and sensible error messages. PyYAML support, capable extension API, and sensible error messages. PyYAML
supports standard YAML tags and provides Python-specific tags that supports standard YAML tags and provides Python-specific tags that
allow to represent an arbitrary Python object. allow to represent an arbitrary Python object.
PyYAML is applicable for a broad range of tasks from complex PyYAML is applicable for a broad range of tasks from complex
configuration files to object serialization and persistance.""" configuration files to object serialization and persistence."""
AUTHOR = "Kirill Simonov" AUTHOR = "Kirill Simonov"
AUTHOR_EMAIL = "xi@resolvent.net" AUTHOR_EMAIL = "xi@resolvent.net"
LICENSE = "MIT" LICENSE = "MIT"
PLATFORMS = "Any" PLATFORMS = "Any"
URL = "http://pyyaml.org/wiki/PyYAML" URL = "http://pyyaml.org/wiki/PyYAML"
DOWNLOAD_URL = "http://pyyaml.org/download/pyyaml/%s-%s.tar.gz" % (NAME, VERSION ) DOWNLOAD_URL = f"http://pyyaml.org/download/pyyaml/{NAME}-{VERSION}.tar.gz"
CLASSIFIERS = [ CLASSIFIERS = [
"Development Status :: 5 - Production/Stable", "Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers", "Intended Audience :: Developers",
"License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License",
"Operating System :: OS Independent", "Operating System :: OS Independent",
"Programming Language :: Python", "Programming Language :: Python",
"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.4", "Programming Language :: Python :: 3.4",
skipping to change at line 54 skipping to change at line 56
yaml_parser_initialize(&parser); yaml_parser_initialize(&parser);
yaml_parser_delete(&parser); yaml_parser_delete(&parser);
yaml_emitter_initialize(&emitter); yaml_emitter_initialize(&emitter);
yaml_emitter_delete(&emitter); yaml_emitter_delete(&emitter);
return 0; return 0;
} }
""" """
import sys, os.path, platform import os.path
import platform
import sys
from distutils import log from distutils import log
from distutils.core import setup, Command from distutils.command.bdist_rpm import bdist_rpm as _bdist_rpm
from distutils.command.build_ext import build_ext as _build_ext
from distutils.core import Command
from distutils.core import Distribution as _Distribution from distutils.core import Distribution as _Distribution
from distutils.core import Extension as _Extension from distutils.core import Extension as _Extension
from distutils.core import setup
from distutils.dir_util import mkpath from distutils.dir_util import mkpath
from distutils.command.build_ext import build_ext as _build_ext from distutils.errors import CompileError
from distutils.command.bdist_rpm import bdist_rpm as _bdist_rpm from distutils.errors import DistutilsError
from distutils.errors import ( from distutils.errors import DistutilsPlatformError
DistutilsError, from distutils.errors import LinkError
CompileError,
LinkError,
DistutilsPlatformError,
)
if "setuptools.extension" in sys.modules: if "setuptools.extension" in sys.modules:
_Extension = sys.modules["setuptools.extension"]._Extension _Extension = sys.modules["setuptools.extension"]._Extension
sys.modules["distutils.core"].Extension = _Extension sys.modules["distutils.core"].Extension = _Extension
sys.modules["distutils.extension"].Extension = _Extension sys.modules["distutils.extension"].Extension = _Extension
sys.modules["distutils.command.build_ext"].Extension = _Extension sys.modules["distutils.command.build_ext"].Extension = _Extension
with_cython = False with_cython = False
try: try:
from Cython.Distutils.extension import Extension as _Extension
from Cython.Distutils import build_ext as _build_ext from Cython.Distutils import build_ext as _build_ext
from Cython.Distutils.extension import Extension as _Extension
with_cython = True with_cython = True
except ImportError: except ImportError:
pass pass
try: try:
from wheel.bdist_wheel import bdist_wheel from wheel.bdist_wheel import bdist_wheel
except ImportError: except ImportError:
bdist_wheel = None bdist_wheel = None
skipping to change at line 183 skipping to change at line 186
def get_source_files(self): def get_source_files(self):
self.check_extensions_list(self.extensions) self.check_extensions_list(self.extensions)
filenames = [] filenames = []
for ext in self.extensions: for ext in self.extensions:
if with_cython: if with_cython:
self.cython_sources(ext.sources, ext) self.cython_sources(ext.sources, ext)
for filename in ext.sources: for filename in ext.sources:
filenames.append(filename) filenames.append(filename)
base = os.path.splitext(filename)[0] base = os.path.splitext(filename)[0]
for ext in ["c", "h", "pyx", "pxd"]: for ext in ["c", "h", "pyx", "pxd"]:
filename = "%s.%s" % (base, ext) filename = f"{base}.{ext}"
if filename not in filenames and os.path.isfile(filename): if filename not in filenames and os.path.isfile(filename):
filenames.append(filename) filenames.append(filename)
return filenames return filenames
def get_outputs(self): def get_outputs(self):
self.check_extensions_list(self.extensions) self.check_extensions_list(self.extensions)
outputs = [] outputs = []
for ext in self.extensions: for ext in self.extensions:
fullname = self.get_ext_fullname(ext.name) fullname = self.get_ext_fullname(ext.name)
filename = os.path.join(self.build_lib, self.get_ext_filename(fullna me)) filename = os.path.join(self.build_lib, self.get_ext_filename(fullna me))
skipping to change at line 304 skipping to change at line 307
def initialize_options(self): def initialize_options(self):
pass pass
def finalize_options(self): def finalize_options(self):
pass pass
def run(self): def run(self):
build_cmd = self.get_finalized_command("build") build_cmd = self.get_finalized_command("build")
build_cmd.run() build_cmd.run()
sys.path.insert(0, build_cmd.build_lib) sys.path.insert(0, build_cmd.build_lib)
if sys.version_info[0] < 3: sys.path.insert(0, "tests/lib3")
sys.path.insert(0, "tests/lib")
else:
sys.path.insert(0, "tests/lib3")
import test_all import test_all
if not test_all.main([]): if not test_all.main([]):
raise DistutilsError("Tests failed") raise DistutilsError("Tests failed")
cmdclass = {"build_ext": build_ext, "bdist_rpm": bdist_rpm, "test": test} cmdclass = {"build_ext": build_ext, "bdist_rpm": bdist_rpm, "test": test}
if bdist_wheel: if bdist_wheel:
cmdclass["bdist_wheel"] = bdist_wheel cmdclass["bdist_wheel"] = bdist_wheel
if __name__ == "__main__": if __name__ == "__main__":
skipping to change at line 331 skipping to change at line 331
version=VERSION, version=VERSION,
description=DESCRIPTION, description=DESCRIPTION,
long_description=LONG_DESCRIPTION, long_description=LONG_DESCRIPTION,
author=AUTHOR, author=AUTHOR,
author_email=AUTHOR_EMAIL, author_email=AUTHOR_EMAIL,
license=LICENSE, license=LICENSE,
platforms=PLATFORMS, platforms=PLATFORMS,
url=URL, url=URL,
download_url=DOWNLOAD_URL, download_url=DOWNLOAD_URL,
classifiers=CLASSIFIERS, classifiers=CLASSIFIERS,
package_dir={"": {2: "lib", 3: "lib3"}[sys.version_info[0]]}, package_dir={"": "lib3"},
packages=["yaml"], packages=["yaml"],
ext_modules=[ ext_modules=[
Extension( Extension(
"_yaml", "_yaml",
["ext/_yaml.pyx"], ["ext/_yaml.pyx"],
"libyaml", "libyaml",
"LibYAML bindings", "LibYAML bindings",
LIBYAML_CHECK, LIBYAML_CHECK,
libraries=["yaml"], libraries=["yaml"],
) )
 End of changes. 12 change blocks. 
19 lines changed or deleted 19 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)