A new user interface for you! Read more...

File project.diff of Package python-hupper

--- python-hupper.changes.orig
+++ python-hupper.changes
@@ -1,4 +1,75 @@
 -------------------------------------------------------------------
+Thu Feb  7 14:35:39 UTC 2019 - Hans-Peter Jansen <hpj@urpla.net>
+
+- Update to version 1.4.2 (2018-11-26)
+  + Fix a bug prompting the “ignoring corrupted payload from
+    watchman” message and placing the file monitor in an
+    unrecoverable state when a change triggered a watchman
+    message > 4096 bytes. 
+    See https://github.com/Pylons/hupper/pull/44
+
+- Update to version 1.4.1 (2018-11-11)
+  + Stop ignoring a few paths that may not be system paths in
+    cases where the virtualenv is the root of your project.
+    See https://github.com/Pylons/hupper/pull/42
+
+- Update to version 1.4 (2018-10-26)
+  + Ignore changes to any system / installed files. This includes
+    mostly changes to any files in the stdlib and site-packages.
+    Anything that is installed in editable mode or not installed
+    at all will still be monitored. This drastically reduces the
+    number of files that hupper needs to monitor.
+    See https://github.com/Pylons/hupper/pull/40
+
+- Update to version 1.3.1 (2018-10-05)
+  + Support Python 3.7.
+  + Avoid a restart-loop if the app is failing to restart on
+    certain systems. There was a race where hupper failed to detect
+    that the app was crashing and thus fell into its restart logic
+    when the user manually triggers an immediate reload.
+    See https://github.com/Pylons/hupper/pull/37
+  + Ignore corrupted packets coming from watchman that occur in
+    semi-random scenarios.
+    See https://github.com/Pylons/hupper/pull/38
+
+- Update to version 1.3 (2018-05-21)
+  + Added watchman support via hupper.watchman.WatchmanFileMonitor.
+    This is the new preferred file monitor on systems supporting
+    unix sockets. See https://github.com/Pylons/hupper/pull/32
+  + The hupper.watchdog.WatchdogFileMonitor will now output some
+    info when it receives ulimit or other errors from watchdog.
+    See https://github.com/Pylons/hupper/pull/33
+  + Allow -q and -v cli options to control verbosity.
+    See https://github.com/Pylons/hupper/pull/33
+  + Pass a logger value to the hupper.interfaces.IFileMonitorFactory.
+    This is an instance of hupper.interfaces.ILogger and can be used
+    by file monitors to output errors and debug information.
+    See https://github.com/Pylons/hupper/pull/33
+
+- Update to version 1.2 (2018-05-01)
+  + Track only Python source files. Previously hupper would track
+    all pyc and py files. Now, if a pyc file is found then the
+    equivalent source file is searched and, if found, the pyc file
+    is ignored.
+    See https://github.com/Pylons/hupper/pull/31
+  + Allow overriding the default monitor lookup by specifying the
+    HUPPER_DEFAULT_MONITOR environment variable as a Python
+    dotted-path to a monitor factory. For example,
+    HUPPER_DEFAULT_MONITOR=hupper.polling.PollingFileMonitor.
+    See https://github.com/Pylons/hupper/pull/29
+  + Backward-incompatible changes to the
+    hupper.interfaces.IFileMonitorFactory API to pass arbitrary
+    kwargs to the factory.
+    See https://github.com/Pylons/hupper/pull/29
+
+- Update to version 1.1 (2018-03-29)
+  + Support -w on the CLI to watch custom file paths.
+    See https://github.com/Pylons/hupper/pull/28
+
+- Combine package and pyckage-doc spec
+- Patch the actual package version into docs/conf.py with sed
+
+-------------------------------------------------------------------
 Tue Dec  4 13:07:06 UTC 2018 - Matej Cepl <mcepl@suse.com>
 
 - Remove superfluous devel dependency for noarch package
--- python-hupper.spec.orig
+++ python-hupper.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package python-hupper
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-hupper
-Version:        1.0
+Version:        1.4.2
 Release:        0
 Summary:        An in-process file monitor
 License:        MIT
@@ -28,6 +28,15 @@ Source0:        https://files.pythonhost
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+# SECTION documentation requirements
+BuildRequires:  python3-Sphinx
+BuildRequires:  python3-pylons-sphinx-themes
+# /SECTION
+# SECTION test requirements
+BuildRequires:  %{python_module pytest-cov}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module watchdog}
+# /SECTION
 Requires:       python-watchdog
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
@@ -39,12 +48,24 @@ Hupper is an integrated process monitor
 imported Python files in sys.modules as well as custom paths.
 When files are changed the process is restarted.
 
+%package -n %{name}-doc
+Summary:        Documentation for %{name}
+Group:          Development/Languages/Python
+Requires:       %{name} = %{version}
+
+%description -n %{name}-doc
+This package contains documentation files for %{name}.
+
 %prep
 %setup -q -n hupper-%{version}
 rm -rf src/hupper.egg-info
+# patch version into docs/conf.py
+sed -i "s|pkg_resources.get_distribution('hupper').version|'%{version}'|" docs/conf.py
 
 %build
 %python_build
+# we build the docs for Python3 only
+PYTHONPATH=build/lib python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
 
 %install
 %python_install
@@ -52,6 +73,9 @@ rm -rf src/hupper.egg-info
 
 %python_clone -a %{buildroot}%{_bindir}/hupper
 
+%check
+%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m pytest tests
+
 %post
 %python_install_alternative hupper
 
@@ -60,8 +84,12 @@ rm -rf src/hupper.egg-info
 
 %files %{python_files}
 %license LICENSE.txt
-%doc CHANGES.rst CONTRIBUTING.rst README.rst
+%doc CHANGES.rst CONTRIBUTING.rst CONTRIBUTORS.txt README.rst
 %python_alternative %{_bindir}/hupper
 %{python_sitelib}/*
 
+%files -n %{name}-doc
+%defattr(-,root,root,-)
+%doc build/sphinx/html
+
 %changelog