Hello community, here is the log from the commit of package python-pydocstyle for openSUSE:Factory checked in at 2019-03-08 11:00:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pydocstyle (Old) and /work/SRC/openSUSE:Factory/.python-pydocstyle.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pydocstyle" Fri Mar 8 11:00:14 2019 rev:5 rq:681665 version:3.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pydocstyle/python-pydocstyle.changes 2019-03-01 20:32:24.889967579 +0100 +++ /work/SRC/openSUSE:Factory/.python-pydocstyle.new.28833/python-pydocstyle.changes 2019-03-08 11:00:17.104551488 +0100 @@ -1,0 +2,29 @@ +Tue Mar 5 09:59:41 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Fix the changelog whitespace mess + +------------------------------------------------------------------- +Mon Mar 3 15:20:38 UTC 2019 - John Vandenberg <[email protected]> + +- Fix %check to run the tests from GitHub tarball, and use + integration-tests-invocation.patch to invoke pycodestyle using + sys.executable, and do not install and uninstall pip during tests. +- Fix line endings and remove hashbangs +- Update to v3.0.0 + + Major Updates + * Support for Python 3.3 has been dropped + * Added support for Python 3.7 + + New features + * Violations are now reported on the line where the docstring starts, not + the line of the def/class it corresponds to + * Updated description of pep257 and numpy conventions + * __all__ parsing is now done on a best-effort basis - if __all__ can't + be statically determined, it will be ignored + + Bug Fixes + * Fixed a false-positive recognition of section names causing D405 to be + reported + * Fixed a bug where functions that don't end with a newline will sometimes + raise an exception +- Set six minimum version to v1.10.0 + +------------------------------------------------------------------- Old: ---- pydocstyle-2.1.1.tar.gz New: ---- integration-tests-invocation.patch pydocstyle-3.0.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pydocstyle.spec ++++++ --- /var/tmp/diff_new_pack.0wEm8d/_old 2019-03-08 11:00:18.184551316 +0100 +++ /var/tmp/diff_new_pack.0wEm8d/_new 2019-03-08 11:00:18.192551315 +0100 @@ -17,24 +17,29 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without test Name: python-pydocstyle -Version: 2.1.1 +Version: 3.0.0 Release: 0 Summary: Python docstring style checker License: MIT Group: Development/Languages/Python Url: https://github.com/PyCQA/pydocstyle/ -Source: https://files.pythonhosted.org/packages/source/p/pydocstyle/pydocstyle-%{version}.tar.gz +Source: https://github.com/PyCQA/pydocstyle/archive/%{version}.tar.gz#/pydocstyle-%{version}.tar.gz +# Tests invoke pip and pycodestyle directly, when they should use sys.executable. +Patch0: integration-tests-invocation.patch +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pathlib} +# Tests invoke pip +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} -BuildRequires: python-rpm-macros -%if %{with test} -BuildRequires: %{python_module six} +BuildRequires: %{python_module six > 1.10.0} BuildRequires: %{python_module snowballstemmer} -BuildRequires: python-configparser -%endif +BuildRequires: dos2unix BuildRequires: fdupes -Requires: python-six +BuildRequires: python-configparser +BuildRequires: python-rpm-macros +Requires: python-six > 1.10.0 Requires: python-snowballstemmer %ifpython2 Requires: python-configparser @@ -58,27 +63,25 @@ %prep %setup -q -n pydocstyle-%{version} +%patch0 -p1 +dos2unix README.rst %build %python_build %install %python_install +%{python_expand # +sed -i -e '/^#! \//, 1d' %{buildroot}%{$python_sitelib}/pydocstyle/__main__.py +dos2unix %{buildroot}%{$python_sitelib}/pydocstyle/__main__.py +} %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -mkdir empty -pushd empty -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} -$python -c "import pydocstyle" -$python -c "from pydocstyle import *" -} -popd -%endif +export PYTHONPATH=$(pwd)/src +%python_exec -m pytest %files %{python_files} -%defattr(-,root,root,-) %doc README.rst %license LICENSE-MIT %python3_only %{_bindir}/pydocstyle ++++++ integration-tests-invocation.patch ++++++ --- pydocstyle-3.0.0-orig/src/tests/test_integration.py 2018-10-14 17:54:04.000000000 +0700 +++ pydocstyle-3.0.0/src/tests/test_integration.py 2019-02-22 03:23:27.301363601 +0700 @@ -80,8 +80,9 @@ run_target = self.tempdir if target is None else \ os.path.join(self.tempdir, target) - cmd = shlex.split("{} {} {}" - .format(self.script_name, run_target, args), + cmd = shlex.split("{} -m {} {} {}" + .format(sys.executable, self.script_name, + run_target, args), posix=False) p = subprocess.Popen(cmd, stdout=subprocess.PIPE, @@ -102,19 +103,6 @@ pass [email protected]_fixture(scope="module") -def install_package(request): - """Install the package in development mode for the tests. - - This is so we can run the integration tests on the installed console - script. - """ - cwd = os.path.join(os.path.dirname(__file__), '..', '..') - subprocess.check_call(shlex.split("pip install -e ."), cwd=cwd) - yield - subprocess.check_call(shlex.split("pip uninstall -y pydocstyle"), cwd=cwd) - - @pytest.yield_fixture(scope="function") def env(request): """Add a testing environment to a test method.""" @@ -122,9 +110,6 @@ yield test_env -pytestmark = pytest.mark.usefixtures("install_package") - - def parse_errors(err): """Parse `err` to a dictionary of {filename: error_codes}. ++++++ pydocstyle-2.1.1.tar.gz -> pydocstyle-3.0.0.tar.gz ++++++ ++++ 10882 lines of diff (skipped)
