Hello community, here is the log from the commit of package python-cotyledon for openSUSE:Factory checked in at 2018-10-15 09:42:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-cotyledon (Old) and /work/SRC/openSUSE:Factory/.python-cotyledon.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cotyledon" Mon Oct 15 09:42:01 2018 rev:3 rq:641692 version:1.7.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-cotyledon/python-cotyledon.changes 2018-07-17 09:41:10.565559201 +0200 +++ /work/SRC/openSUSE:Factory/.python-cotyledon.new/python-cotyledon.changes 2018-10-15 09:42:55.827402229 +0200 @@ -1,0 +2,9 @@ +Fri Oct 12 13:03:42 UTC 2018 - Tomáš Chvátal <[email protected]> + +- Update dependencies based on upstream setup.py/requirements +- Update to 1.7.1: + * No obvious changelog except of git log +- Use py3 to generate documentation +- Run tests on all python variants + +------------------------------------------------------------------- Old: ---- cotyledon-1.6.8.tar.gz New: ---- cotyledon-1.7.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-cotyledon.spec ++++++ --- /var/tmp/diff_new_pack.EjIxxc/_old 2018-10-15 09:42:57.879400351 +0200 +++ /var/tmp/diff_new_pack.EjIxxc/_new 2018-10-15 09:42:57.883400348 +0200 @@ -12,27 +12,30 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %global sname cotyledon Name: python-%{sname} -Version: 1.6.8 +Version: 1.7.1 Release: 0 Summary: A framework for defining long-running services License: Apache-2.0 Group: Development/Languages/Python -Url: https://github.com/sileht/cotyledon +URL: https://github.com/sileht/cotyledon Source: https://files.pythonhosted.org/packages/source/c/%{sname}/%{sname}-%{version}.tar.gz -BuildRequires: %{python_module devel} -BuildRequires: %{python_module oslo.config} -BuildRequires: %{python_module oslotest} -BuildRequires: %{python_module pbr} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module oslo.config >= 3.14.0} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setproctitle} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module setuptools >= 30.3.0} +BuildRequires: %{python_module setuptools_scm} BuildRequires: python-rpm-macros +BuildRequires: python3-Sphinx +Requires: python-setproctitle +BuildRequires: fdupes BuildArch: noarch %description @@ -43,8 +46,6 @@ %package -n python-%{sname}-doc Summary: Documentation for cotyledon, a framework for long-running services Group: Documentation/HTML -BuildRequires: python-Sphinx -BuildRequires: python-oslosphinx Requires: %{name} = %{version} %description -n python-%{sname}-doc @@ -54,21 +55,20 @@ %prep %setup -q -n %{sname}-%{version} +rm tox.ini %build %python_build -python setup.py build_sphinx +python3 setup.py build_sphinx rm -rf doc/build/html/.{doctrees,buildinfo} %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%ifpython2 -PATH=$PATH:%{buildroot}/usr/bin PYTHONPATH=%{buildroot}%{python_sitelib} python2 setup.py test -%endif - -# %xpython_exec setup.py test +export PYTHONDONTWRITEBYTECODE=1 +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} -v cotyledon/tests %files %{python_files} %license LICENSE ++++++ cotyledon-1.6.8.tar.gz -> cotyledon-1.7.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/.drone.yml new/cotyledon-1.7.1/.drone.yml --- old/cotyledon-1.6.8/.drone.yml 2016-12-16 19:22:54.000000000 +0100 +++ new/cotyledon-1.7.1/.drone.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,9 +0,0 @@ -build: - image: teaci/msys32 - shell: mingw32 - pull: true - commands: - - pacman -S --needed --noconfirm --noprogressbar mingw-w64-i686-python2-pip - - pip install -e . - - pip install -r test-requirements.txt - - python -m unittest discover -v -s cotyledon/tests -t . -f diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/.testr.conf new/cotyledon-1.7.1/.testr.conf --- old/cotyledon-1.6.8/.testr.conf 2017-01-16 22:50:55.000000000 +0100 +++ new/cotyledon-1.7.1/.testr.conf 1970-01-01 01:00:00.000000000 +0100 @@ -1,7 +0,0 @@ -[DEFAULT] -test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \ - OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \ - OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \ - ${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION -test_id_option=--load-list $IDFILE -test_list_option=--list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/.travis.yml new/cotyledon-1.7.1/.travis.yml --- old/cotyledon-1.6.8/.travis.yml 2016-12-16 19:21:12.000000000 +0100 +++ new/cotyledon-1.7.1/.travis.yml 2018-08-28 11:24:33.000000000 +0200 @@ -1,12 +1,8 @@ -sudo: false +sudo: required +dist: xenial language: python -python: 3.5 -install: - - pip install tox -script: - - tox -env: - - TOXENV=py27 - - TOXENV=py35 - - TOXENV=pep8 - - TOXENV=docs +python: + - 2.7 + - 3.7 +install: pip install tox-travis +script: tox diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/AUTHORS new/cotyledon-1.7.1/AUTHORS --- old/cotyledon-1.6.8/AUTHORS 2017-07-21 11:17:27.000000000 +0200 +++ new/cotyledon-1.7.1/AUTHORS 1970-01-01 01:00:00.000000000 +0100 @@ -1,3 +0,0 @@ -Julien Danjou <[email protected]> -Mehdi ABAAKOUK <[email protected]> -Mehdi Abaakouk <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/ChangeLog new/cotyledon-1.7.1/ChangeLog --- old/cotyledon-1.6.8/ChangeLog 2017-07-21 11:17:27.000000000 +0200 +++ new/cotyledon-1.7.1/ChangeLog 1970-01-01 01:00:00.000000000 +0100 @@ -1,265 +0,0 @@ -CHANGES -======= - -1.6.8 ------ - -* Fix terminate when workers fail to start -* We don't care about child status when we exit -* setup.cfg: Remove useless section -* Fix a typo in service_manager docstring - -1.6.7 ------ - -* Check user input -* Increase 'fork too fast' sleep time - -1.6.6 ------ - -* Fix sigchld for window - -1.6.5 ------ - -* Use sigchld instead of polling children -* Update sphinx - -1.6.4 ------ - -* reduce cpu usage -* Reword README - -1.6.3 ------ - -* Fix forking too fast code -* doc: Add note about futurist -* Switch doc to rtd theme -* doc enhancement -* doc: hooks and window note - -1.6.2 ------ - -* always run signal handling in main thread - -1.6.1 ------ - -* window: Don't fail is the app use oslo.config -* tests: fix py35 -* tests: add a basic workflow for window -* tests/doc/window: oslo.config limitation -* tests: Don't use stdout -* window: clarify SIGTERM/SIGALRM/SIGBREAK state -* tests: window failfast -* tests: Don't use signal 0 -* window: Fix signals for children -* tests: skip sighup tests -* tests: fixing logging on window -* fixing import order -* Make option mutable -* Add tea-ci.org supports -* doc: Add some non-posix note -* Close useless child pipe() -* simplify the dead worker detection/restarting - -1.6.0 ------ - -* doc: Add some non-posix note -* add some py3 note -* Bump the major version for the non-posix support -* workaround killpg on non-posix platform -* Simplify the running_services structure -* Fix signal handling for windows -* Make setproctitle optional for windows -* Ignore setsid AttributeError on windows -* Remove usage of os.waitpid -* Use multiprocessing.Process instead of fork - -1.5.0 ------ - -* Rework the oslo_config_glue -* Implement sigalarm for servicemanager -* Allow to register multiple hooks -* Add on_new_worker hooks -* Improve tests output and run doc8 -* Tests: fix tests cleanup -* Remove unused file -* Improve docs -* Split code base -* Allow to register terminate/reload hooks -* Share signals implementation -* Allows to reconfigure a service -* Revert "limit select.select() EINTR exception" -* Don't wait for reload if terminate/reload already run -* limit select.select() EINTR exception -* Handle SIGALRM like other signals - -1.4.6 ------ - -* set proc title for master process -* doc: add some clarification - -1.4.5 ------ - -* Rework signal handlers -* Fixup code blocks - -1.4.4 ------ - -* fix sporadic test failure -* Set default python interpreter version to 3.5 -* Move travis to py35 - -1.4.3 ------ - -* Empty the signal pipe - -1.4.2 ------ - -* Uses signal.set_wakeup_fd() to ensure signal runs -* Fix Graceful shutdown timeout with parent died - -1.4.1 ------ - -* Rename oslo-config entry point - -1.4.0 ------ - -* Add ServiceManager termination hook -* Add new oslo.service/cotyledon diff - -1.3.0 ------ - -* Fix oslo_config list_opts -* Don't ship test binary -* Add oslo config glue -* Add graceful shutdown timeout -* Ensure initialization is always called - -1.2.8 ------ - -* Move release testing to py35 -* fix time.sleep on darwin -* Reduce sleep time while waiting for ever - -1.2.7 ------ - -* Follow termination of our children only -* Call atexit hook on parent only and with sys.exit -* doc: Add examples -* readme: typo -* readme: typo -* readme: Add more detail -* Add Cotyledon story -* Enhance description -* Revert "Add py35 tests" - -1.2.6 ------ - -* Remove useless classifier -* Add py35 tests -* Fix owner -* Update README links - -1.2.5 ------ - -* Only catch errno.ECHILD -* switch unexpected pid from warn to error - -1.2.4 ------ - -* release:Run py34 tests first -* Allow non hashable args/kwargs -* Run tests before release - -1.2.3 ------ - -* re-re-handles signal during service init -* Don't use oslosphinx - -1.2.2 ------ - -* Wait all children, not only the first one -* improve logging - -1.2.1 ------ - -* pep8 fix -* re-handles signal during service init - -1.2.0 ------ - -* Don't call terminate twice on double child sigterm -* handles signal during service init -* docs: fix example - -1.1.0 ------ - -* release: Allow to pass version -* Allow to pass args and kwargs for services - -1.0.3 ------ - -* Fix worker_id in tests - -1.0.2 ------ - -* Start worker_id at 0 - -1.0.1 ------ - -* Add systemd notify support -* Run atexit hooks -* Some code deduplication -* Remove hardcoded version - -1.0.0 ------ - -* Fix release script -* Fix tox and pep8 -* Fix release script -* Build universal wheel -* Fix release script -* create travis conf -* Remove constraints stuffs -* Set version -* Better exception naming -* remove useless code -* Don't raise exception in default Service impl -* doc: use pyclass in terminate() -* doc: fix typo in reload() -* doc: fix typo in terminate() -* doc: fix missing backquots in ServiceManager -* doc: fix type for worker_id parameter -* More tests -* Add some tests -* Initial Ccotyledon Commit diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/PKG-INFO new/cotyledon-1.7.1/PKG-INFO --- old/cotyledon-1.6.8/PKG-INFO 2017-07-21 11:17:27.000000000 +0200 +++ new/cotyledon-1.7.1/PKG-INFO 2018-08-28 11:26:04.000000000 +0200 @@ -1,83 +1,12 @@ Metadata-Version: 1.1 Name: cotyledon -Version: 1.6.8 +Version: 1.7.1 Summary: Cotyledon provides a framework for defining long-running services. Home-page: https://github.com/sileht/cotyledon Author: Mehdi Abaakouk Author-email: [email protected] License: UNKNOWN -Description: =============================== - Cotyledon - =============================== - - .. image:: https://img.shields.io/pypi/v/cotyledon.svg - :target: https://pypi.python.org/pypi/cotyledon/ - :alt: Latest Version - - .. image:: https://img.shields.io/pypi/dm/cotyledon.svg - :target: https://pypi.python.org/pypi/cotyledon/ - :alt: Downloads - - .. image:: https://travis-ci.org/sileht/cotyledon.png?branch=master - :target: https://travis-ci.org/sileht/cotyledon - - .. image:: https://tea-ci.org/api/badges/sileht/cotyledon/status.svg - :target: https://tea-ci.org/sileht/cotyledon - - Cotyledon provides a framework for defining long-running services. - - It provides handling of Unix signals, spawning of workers, supervision of - children processes, daemon reloading, sd-notify, rate limiting for worker - spawning, and more. - - * Free software: Apache license - * Documentation: http://cotyledon.readthedocs.org/ - * Source: https://github.com/sileht/cotyledon - * Bugs: https://github.com/sileht/cotyledon/issues - - Why Cotyledon - ------------- - - This library is mainly used in OpenStack Telemetry projects, in replacement of - *oslo.service*. However, as *oslo.service* depends on *eventlet*, a different - library was needed for project that do not need it. When an application do not - monkeypatch the Python standard library anymore, greenlets do not in timely - fashion. That made other libraries such as `Tooz - <http://docs.openstack.org/developer/tooz/>`_ or `oslo.messaging - <http://docs.openstack.org/developer/oslo.messaging/>`_ to fail with e.g. their - heartbeat systems. Also, processes would not exist as expected due to - greenpipes never being processed. - - *oslo.service* is actually written on top of eventlet to provide two main - features: - - * periodic tasks - * workers processes management - - The first feature was replaced by another library called `futurist - <http://docs.openstack.org/developer/futurist/>`_ and the second feature is - superseded by *Cotyledon*. - - Unlike *oslo.service*, **Cotyledon** have: - - * The same code path when workers=1 and workers>=2 - * Reload API (on SIGHUP) hooks work in case of you don't want to restarting children - * A separated API for children process termination and for master process termination - * Seatbelt to ensure only one service workers manager run at a time. - * Is signal concurrency safe. - * Support non posix platform, because it's built on top of multiprocessing module - instead of os.fork - * Provide functional testing - - And doesn't: - - * facilitate the creation of wsgi application (sockets sharing between parent - and children process). Because too many wsgi webserver already exists. - - *oslo.service* being impossible to fix and bringing an heavy dependency on - eventlet, **Cotyledon** appeared. - - +Description: UNKNOWN Platform: UNKNOWN Classifier: Intended Audience :: Information Technology Classifier: Intended Audience :: System Administrators @@ -87,5 +16,6 @@ Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/cotyledon/_service_manager.py new/cotyledon-1.7.1/cotyledon/_service_manager.py --- old/cotyledon-1.6.8/cotyledon/_service_manager.py 2017-07-21 11:11:18.000000000 +0200 +++ new/cotyledon-1.7.1/cotyledon/_service_manager.py 2018-08-28 11:24:33.000000000 +0200 @@ -318,7 +318,7 @@ def _get_last_worker_died(self): """Return the last died worker information or None""" - for service_id in self._running_services: + for service_id in list(self._running_services.keys()): # We copy the list to clean the orignal one processes = list(self._running_services[service_id].items()) for process, worker_id in processes: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/cotyledon/_utils.py new/cotyledon-1.7.1/cotyledon/_utils.py --- old/cotyledon-1.6.8/cotyledon/_utils.py 2017-01-25 15:42:10.000000000 +0100 +++ new/cotyledon-1.7.1/cotyledon/_utils.py 2018-08-28 11:24:33.000000000 +0200 @@ -112,7 +112,7 @@ class SignalManager(object): - def __init__(self, master=False): + def __init__(self): # Setup signal fd, this allows signal to behave correctly if os.name == 'posix': self.signal_pipe_r, self.signal_pipe_w = os.pipe() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/cotyledon/tests/base.py new/cotyledon-1.7.1/cotyledon/tests/base.py --- old/cotyledon-1.6.8/cotyledon/tests/base.py 2016-09-21 07:57:02.000000000 +0200 +++ new/cotyledon-1.7.1/cotyledon/tests/base.py 2018-08-28 11:24:33.000000000 +0200 @@ -15,9 +15,9 @@ # License for the specific language governing permissions and limitations # under the License. -from oslotest import base +from unittest import TestCase -class TestCase(base.BaseTestCase): +class TestCase(TestCase): """Test case base class for all unit tests.""" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/cotyledon/tests/test_functional.py new/cotyledon-1.7.1/cotyledon/tests/test_functional.py --- old/cotyledon-1.6.8/cotyledon/tests/test_functional.py 2017-07-21 11:11:18.000000000 +0200 +++ new/cotyledon-1.7.1/cotyledon/tests/test_functional.py 2018-08-28 11:24:33.000000000 +0200 @@ -244,7 +244,7 @@ b'DEBUG:cotyledon._service:Run service light(0) [XXXX]', ], lines) - # Ensure everthing is still alive + # Ensure everything is still alive self.assert_everything_is_alive() # Kill master process diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/cotyledon.egg-info/PKG-INFO new/cotyledon-1.7.1/cotyledon.egg-info/PKG-INFO --- old/cotyledon-1.6.8/cotyledon.egg-info/PKG-INFO 2017-07-21 11:17:27.000000000 +0200 +++ new/cotyledon-1.7.1/cotyledon.egg-info/PKG-INFO 2018-08-28 11:26:01.000000000 +0200 @@ -1,83 +1,12 @@ Metadata-Version: 1.1 Name: cotyledon -Version: 1.6.8 +Version: 1.7.1 Summary: Cotyledon provides a framework for defining long-running services. Home-page: https://github.com/sileht/cotyledon Author: Mehdi Abaakouk Author-email: [email protected] License: UNKNOWN -Description: =============================== - Cotyledon - =============================== - - .. image:: https://img.shields.io/pypi/v/cotyledon.svg - :target: https://pypi.python.org/pypi/cotyledon/ - :alt: Latest Version - - .. image:: https://img.shields.io/pypi/dm/cotyledon.svg - :target: https://pypi.python.org/pypi/cotyledon/ - :alt: Downloads - - .. image:: https://travis-ci.org/sileht/cotyledon.png?branch=master - :target: https://travis-ci.org/sileht/cotyledon - - .. image:: https://tea-ci.org/api/badges/sileht/cotyledon/status.svg - :target: https://tea-ci.org/sileht/cotyledon - - Cotyledon provides a framework for defining long-running services. - - It provides handling of Unix signals, spawning of workers, supervision of - children processes, daemon reloading, sd-notify, rate limiting for worker - spawning, and more. - - * Free software: Apache license - * Documentation: http://cotyledon.readthedocs.org/ - * Source: https://github.com/sileht/cotyledon - * Bugs: https://github.com/sileht/cotyledon/issues - - Why Cotyledon - ------------- - - This library is mainly used in OpenStack Telemetry projects, in replacement of - *oslo.service*. However, as *oslo.service* depends on *eventlet*, a different - library was needed for project that do not need it. When an application do not - monkeypatch the Python standard library anymore, greenlets do not in timely - fashion. That made other libraries such as `Tooz - <http://docs.openstack.org/developer/tooz/>`_ or `oslo.messaging - <http://docs.openstack.org/developer/oslo.messaging/>`_ to fail with e.g. their - heartbeat systems. Also, processes would not exist as expected due to - greenpipes never being processed. - - *oslo.service* is actually written on top of eventlet to provide two main - features: - - * periodic tasks - * workers processes management - - The first feature was replaced by another library called `futurist - <http://docs.openstack.org/developer/futurist/>`_ and the second feature is - superseded by *Cotyledon*. - - Unlike *oslo.service*, **Cotyledon** have: - - * The same code path when workers=1 and workers>=2 - * Reload API (on SIGHUP) hooks work in case of you don't want to restarting children - * A separated API for children process termination and for master process termination - * Seatbelt to ensure only one service workers manager run at a time. - * Is signal concurrency safe. - * Support non posix platform, because it's built on top of multiprocessing module - instead of os.fork - * Provide functional testing - - And doesn't: - - * facilitate the creation of wsgi application (sockets sharing between parent - and children process). Because too many wsgi webserver already exists. - - *oslo.service* being impossible to fix and bringing an heavy dependency on - eventlet, **Cotyledon** appeared. - - +Description: UNKNOWN Platform: UNKNOWN Classifier: Intended Audience :: Information Technology Classifier: Intended Audience :: System Administrators @@ -87,5 +16,6 @@ Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/cotyledon.egg-info/SOURCES.txt new/cotyledon-1.7.1/cotyledon.egg-info/SOURCES.txt --- old/cotyledon-1.6.8/cotyledon.egg-info/SOURCES.txt 2017-07-21 11:17:27.000000000 +0200 +++ new/cotyledon-1.7.1/cotyledon.egg-info/SOURCES.txt 2018-08-28 11:26:04.000000000 +0200 @@ -1,21 +1,15 @@ .coveragerc -.drone.yml .mailmap -.testr.conf .travis.yml -AUTHORS CONTRIBUTING.rst -ChangeLog HACKING.rst LICENSE MANIFEST.in README.rst babel.cfg release.sh -requirements.txt setup.cfg setup.py -test-requirements.txt tox.ini cotyledon/__init__.py cotyledon/_service.py @@ -26,8 +20,6 @@ cotyledon.egg-info/SOURCES.txt cotyledon.egg-info/dependency_links.txt cotyledon.egg-info/entry_points.txt -cotyledon.egg-info/not-zip-safe -cotyledon.egg-info/pbr.json cotyledon.egg-info/requires.txt cotyledon.egg-info/top_level.txt cotyledon/tests/__init__.py @@ -42,5 +34,4 @@ doc/source/index.rst doc/source/installation.rst doc/source/non-posix-support.rst -doc/source/oslo-service-migration.rst -tools/pretty_tox.sh \ No newline at end of file +doc/source/oslo-service-migration.rst \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/cotyledon.egg-info/not-zip-safe new/cotyledon-1.7.1/cotyledon.egg-info/not-zip-safe --- old/cotyledon-1.6.8/cotyledon.egg-info/not-zip-safe 2017-01-16 21:29:44.000000000 +0100 +++ new/cotyledon-1.7.1/cotyledon.egg-info/not-zip-safe 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/cotyledon.egg-info/pbr.json new/cotyledon-1.7.1/cotyledon.egg-info/pbr.json --- old/cotyledon-1.6.8/cotyledon.egg-info/pbr.json 2017-07-21 11:17:27.000000000 +0200 +++ new/cotyledon-1.7.1/cotyledon.egg-info/pbr.json 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -{"is_release": true, "git_version": "cfa0575"} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/cotyledon.egg-info/requires.txt new/cotyledon-1.7.1/cotyledon.egg-info/requires.txt --- old/cotyledon-1.6.8/cotyledon.egg-info/requires.txt 2017-07-21 11:17:27.000000000 +0200 +++ new/cotyledon-1.7.1/cotyledon.egg-info/requires.txt 2018-08-28 11:26:01.000000000 +0200 @@ -1,4 +1,14 @@ -pbr>=1.6 +setproctitle; sys_platform != 'win32' -[:(sys_platform != 'win32')] -setproctitle +[doc] +sphinx_rtd_theme +sphinx + +[oslo] +oslo.config>=3.14.0 # Apache-2.0 + +[test] +mock +pytest +pytest-cov +pytest-xdist diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/release.sh new/cotyledon-1.7.1/release.sh --- old/cotyledon-1.6.8/release.sh 2017-01-16 22:08:42.000000000 +0100 +++ new/cotyledon-1.7.1/release.sh 2018-08-28 11:24:33.000000000 +0200 @@ -4,13 +4,13 @@ set -x version=$1 -[ ! "$version"] && version=$(python setup.py --version | sed 's/\.dev.*//') +[ ! "$version" ] && version=$(python setup.py --version | sed 's/\.dev.*//') status=$(git status -sz) [ -z "$status" ] || false git checkout master tox -epy35,py27,pep8 -git push +git push git tag -s $version -m "Release version ${version}" git checkout $version git clean -fd diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/requirements.txt new/cotyledon-1.7.1/requirements.txt --- old/cotyledon-1.6.8/requirements.txt 2016-12-16 19:22:54.000000000 +0100 +++ new/cotyledon-1.7.1/requirements.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,6 +0,0 @@ -# The order of packages is significant, because pip processes them in the order -# of appearance. Changing the order has an impact on the overall integration -# process, which may cause wedges in the gate later. - -pbr>=1.6 -setproctitle; sys_platform != 'win32' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/setup.cfg new/cotyledon-1.7.1/setup.cfg --- old/cotyledon-1.6.8/setup.cfg 2017-07-21 11:17:27.000000000 +0200 +++ new/cotyledon-1.7.1/setup.cfg 2018-08-28 11:26:04.000000000 +0200 @@ -1,8 +1,7 @@ [metadata] name = cotyledon summary = Cotyledon provides a framework for defining long-running services. -description-file = - README.rst +description-file = README.rst author = Mehdi Abaakouk author-email = [email protected] home-page = https://github.com/sileht/cotyledon @@ -15,14 +14,30 @@ Programming Language :: Python :: 2 Programming Language :: Python :: 2.7 Programming Language :: Python :: 3 - Programming Language :: Python :: 3.4 Programming Language :: Python :: 3.5 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 -[files] +[options] packages = cotyledon +include_package_data = true +install_requires = + setproctitle; sys_platform != 'win32' -[entry_points] +[options.extras_require] +test = + mock + pytest + pytest-cov + pytest-xdist +oslo = + oslo.config>=3.14.0 # Apache-2.0 +doc = + sphinx_rtd_theme + sphinx + +[options.entry_points] oslo.config.opts = cotyledon = cotyledon.oslo_config_glue:list_opts diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/setup.py new/cotyledon-1.7.1/setup.py --- old/cotyledon-1.6.8/setup.py 2016-04-21 00:43:07.000000000 +0200 +++ new/cotyledon-1.7.1/setup.py 2018-08-28 11:24:33.000000000 +0200 @@ -13,17 +13,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT import setuptools -# In python < 2.7.4, a lazy loading of package `pbr` will break -# setuptools if some other modules registered functions in `atexit`. -# solution from: http://bugs.python.org/issue15881#msg170215 -try: - import multiprocessing # noqa -except ImportError: - pass - setuptools.setup( - setup_requires=['pbr'], - pbr=True) + setup_requires=[ + 'setuptools>=30.3.0', + 'setuptools_scm', + ], + use_scm_version=True +) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/test-requirements.txt new/cotyledon-1.7.1/test-requirements.txt --- old/cotyledon-1.6.8/test-requirements.txt 2017-01-16 21:43:00.000000000 +0100 +++ new/cotyledon-1.7.1/test-requirements.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,20 +0,0 @@ -# The order of packages is significant, because pip processes them in the order -# of appearance. Changing the order has an impact on the overall integration -# process, which may cause wedges in the gate later. - -hacking<0.11,>=0.10.0 - -coverage>=3.6 -python-subunit>=0.0.18 -oslotest>=1.10.0 # Apache-2.0 -oslo.config>=3.14.0 # Apache-2.0 -testrepository>=0.0.18 -testscenarios>=0.4 -testtools>=1.4.0 -python-subunit>=0.0.18 -os-testr - -# docs -sphinx_rtd_theme -sphinx -oslosphinx>=2.5.0 # Apache-2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/tools/pretty_tox.sh new/cotyledon-1.7.1/tools/pretty_tox.sh --- old/cotyledon-1.6.8/tools/pretty_tox.sh 2016-12-16 19:22:54.000000000 +0100 +++ new/cotyledon-1.7.1/tools/pretty_tox.sh 1970-01-01 01:00:00.000000000 +0100 @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -set -o pipefail - -TESTRARGS=$1 - -# --until-failure is not compatible with --subunit see: -# -# https://bugs.launchpad.net/testrepository/+bug/1411804 -# -# this work around exists until that is addressed -if [[ "$TESTARGS" =~ "until-failure" ]]; then - python setup.py testr --slowest --testr-args="$TESTRARGS" -else - python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | subunit-trace -f -fi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cotyledon-1.6.8/tox.ini new/cotyledon-1.7.1/tox.ini --- old/cotyledon-1.6.8/tox.ini 2016-12-16 19:22:54.000000000 +0100 +++ new/cotyledon-1.7.1/tox.ini 2018-08-28 11:24:33.000000000 +0200 @@ -1,37 +1,51 @@ [tox] +envlist = py27,py35,py36,py37,pep8 minversion = 2.0 -skipsdist = True +skipsdist = true [testenv] -usedevelop = True -install_command = pip install -U {opts} {packages} -setenv = - VIRTUAL_ENV={envdir} -deps = -r{toxinidir}/test-requirements.txt -commands = {toxinidir}/tools/pretty_tox.sh {posargs} +usedevelop = true +extras = + test + oslo +commands = pytest {posargs:cotyledon/tests} [testenv:pep8] -deps = - flake8 - doc8 - pygments +basepython = python3 +deps = flake8 + flake8-import-order + flake8-blind-except + flake8-builtins + flake8-logging-format + doc8 + pygments commands = - doc8 --ignore-path doc/source/rest.rst doc/source - flake8 {posargs} + flake8 + doc8 doc/source [testenv:venv] +basepython = python3 commands = {posargs} [testenv:cover] -commands = python setup.py test --coverage --testr-args='{posargs}' +basepython = python3 +commands = pytest --cov=cotyledon {posargs:cotyledon/tests} [testenv:docs] -commands = python setup.py build_sphinx - -[testenv:debug] -commands = oslo_debug_helper {posargs} +basepython = python3 +deps = .[doc,oslo] +commands = python setup.py build_sphinx -W [flake8] show-source = True +application-import-names = cotyledon builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build + +[pytest] +addopts = --verbose --numprocesses=auto +norecursedirs = .tox + +[travis] +python = + 3.7: py37, pep8, cover, docs
