pytest-services 2.2.1__tar.gz → 2.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. pytest_services-2.3.0/.github/workflows/deploy.yml +64 -0
  2. pytest_services-2.3.0/.github/workflows/test.yml +69 -0
  3. pytest_services-2.3.0/.readthedocs.yaml +8 -0
  4. {pytest-services-2.2.1 → pytest_services-2.3.0}/CHANGES.rst +14 -0
  5. pytest_services-2.3.0/PKG-INFO +424 -0
  6. pytest_services-2.3.0/RELEASING.rst +12 -0
  7. {pytest-services-2.2.1 → pytest_services-2.3.0}/docs/conf.py +5 -6
  8. pytest_services-2.3.0/pyproject.toml +5 -0
  9. {pytest-services-2.2.1 → pytest_services-2.3.0}/pytest_services/folders.py +12 -12
  10. {pytest-services-2.2.1 → pytest_services-2.3.0}/pytest_services/gui.py.orig +2 -2
  11. {pytest-services-2.2.1 → pytest_services-2.3.0}/pytest_services/locks.py +9 -9
  12. {pytest-services-2.2.1 → pytest_services-2.3.0}/pytest_services/log.py +2 -2
  13. {pytest-services-2.2.1 → pytest_services-2.3.0}/pytest_services/memcached.py +1 -1
  14. {pytest-services-2.2.1 → pytest_services-2.3.0}/pytest_services/mysql.py +30 -23
  15. {pytest-services-2.2.1 → pytest_services-2.3.0}/pytest_services/process.py +2 -2
  16. {pytest-services-2.2.1 → pytest_services-2.3.0}/pytest_services/service.py +6 -6
  17. {pytest-services-2.2.1 → pytest_services-2.3.0}/pytest_services/xvfb.py +4 -4
  18. pytest_services-2.3.0/pytest_services.egg-info/PKG-INFO +424 -0
  19. {pytest-services-2.2.1 → pytest_services-2.3.0}/pytest_services.egg-info/SOURCES.txt +5 -5
  20. {pytest-services-2.2.1 → pytest_services-2.3.0}/pytest_services.egg-info/entry_points.txt +0 -1
  21. {pytest-services-2.2.1 → pytest_services-2.3.0}/pytest_services.egg-info/requires.txt +3 -0
  22. pytest_services-2.3.0/pytest_services.egg-info/scm_file_list.json +37 -0
  23. pytest_services-2.3.0/requirements-testing.txt +3 -0
  24. pytest_services-2.3.0/setup.cfg +4 -0
  25. {pytest-services-2.2.1 → pytest_services-2.3.0}/setup.py +16 -24
  26. {pytest-services-2.2.1 → pytest_services-2.3.0}/tests/test_plugin.py +4 -3
  27. pytest_services-2.3.0/tox.ini +16 -0
  28. pytest-services-2.2.1/.travis.yml +0 -28
  29. pytest-services-2.2.1/DEPENDENCIES +0 -2
  30. pytest-services-2.2.1/MANIFEST.in +0 -4
  31. pytest-services-2.2.1/Makefile +0 -27
  32. pytest-services-2.2.1/PKG-INFO +0 -391
  33. pytest-services-2.2.1/pyproject.toml +0 -3
  34. pytest-services-2.2.1/pytest_services.egg-info/PKG-INFO +0 -391
  35. pytest-services-2.2.1/requirements-testing.txt +0 -7
  36. pytest-services-2.2.1/setup.cfg +0 -10
  37. pytest-services-2.2.1/tox.ini +0 -41
  38. {pytest-services-2.2.1 → pytest_services-2.3.0}/.coveragerc +0 -0
  39. {pytest-services-2.2.1 → pytest_services-2.3.0}/.gitignore +0 -0
  40. {pytest-services-2.2.1 → pytest_services-2.3.0}/AUTHORS.rst +0 -0
  41. {pytest-services-2.2.1 → pytest_services-2.3.0}/LICENSE.txt +0 -0
  42. {pytest-services-2.2.1 → pytest_services-2.3.0}/README.rst +0 -0
  43. {pytest-services-2.2.1 → pytest_services-2.3.0}/docs/Makefile +0 -0
  44. {pytest-services-2.2.1 → pytest_services-2.3.0}/docs/api/index.rst +0 -0
  45. {pytest-services-2.2.1 → pytest_services-2.3.0}/docs/index.rst +0 -0
  46. {pytest-services-2.2.1 → pytest_services-2.3.0}/pytest_services/__init__.py +0 -0
  47. {pytest-services-2.2.1 → pytest_services-2.3.0}/pytest_services/django_settings.py +0 -0
  48. {pytest-services-2.2.1 → pytest_services-2.3.0}/pytest_services/plugin.py +0 -0
  49. {pytest-services-2.2.1 → pytest_services-2.3.0}/pytest_services.egg-info/dependency_links.txt +0 -0
  50. {pytest-services-2.2.1 → pytest_services-2.3.0}/pytest_services.egg-info/top_level.txt +0 -0
  51. {pytest-services-2.2.1 → pytest_services-2.3.0}/tests/__init__.py +0 -0
  52. {pytest-services-2.2.1 → pytest_services-2.3.0}/tests/conftest.py +0 -0
@@ -0,0 +1,64 @@
1
+ name: deploy
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ version:
7
+ description: 'Release version'
8
+ required: true
9
+ default: '1.2.3'
10
+
11
+ jobs:
12
+
13
+ package:
14
+ runs-on: ubuntu-latest
15
+ # Required by attest-build-provenance-github.
16
+ permissions:
17
+ id-token: write
18
+ attestations: write
19
+ env:
20
+ SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.inputs.version }}
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+
25
+ - name: Build and Check Package
26
+ uses: hynek/build-and-inspect-python-package@v3.0.2
27
+ with:
28
+ attest-build-provenance-github: 'true'
29
+
30
+
31
+ deploy:
32
+ needs: package
33
+ runs-on: ubuntu-latest
34
+ environment: PyPI
35
+ permissions:
36
+ id-token: write # For PyPI trusted publishers.
37
+ contents: write # For tag and release notes.
38
+
39
+ steps:
40
+ - uses: actions/checkout@v4
41
+
42
+ - name: Download Package
43
+ uses: actions/download-artifact@v4
44
+ with:
45
+ name: Packages
46
+ path: dist
47
+
48
+ - name: Publish package to PyPI
49
+ uses: pypa/gh-action-pypi-publish@v1.14.3
50
+ with:
51
+ attestations: true
52
+
53
+ - name: Push tag
54
+ run: |
55
+ git config user.name "pytest bot"
56
+ git config user.email "pytestbot@gmail.com"
57
+ git tag --annotate --message=v${{ github.event.inputs.version }} v${{ github.event.inputs.version }} ${{ github.sha }}
58
+ git push origin v${{ github.event.inputs.version }}
59
+
60
+ - name: GitHub Release
61
+ uses: softprops/action-gh-release@v2
62
+ with:
63
+ files: dist/*
64
+ tag_name: v${{ github.event.inputs.version }}
@@ -0,0 +1,69 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - "test-me-*"
8
+
9
+ pull_request:
10
+
11
+
12
+ concurrency:
13
+ group: ${{ github.workflow }}-${{ github.ref }}
14
+ cancel-in-progress: true
15
+
16
+ jobs:
17
+
18
+ package:
19
+
20
+ runs-on: ubuntu-latest
21
+
22
+ permissions:
23
+ id-token: write
24
+ attestations: write
25
+
26
+ steps:
27
+ - uses: actions/checkout@v4
28
+ - name: Build and Check Package
29
+ uses: hynek/build-and-inspect-python-package@v3.0.2
30
+
31
+ test:
32
+ needs: [package]
33
+
34
+ runs-on: ubuntu-latest
35
+
36
+ strategy:
37
+ fail-fast: false
38
+ matrix:
39
+ python: ["3.11", "3.12", "3.13", "3.14", "3.15"]
40
+
41
+ steps:
42
+ - uses: actions/checkout@v4
43
+
44
+ - name: Download Package
45
+ uses: actions/download-artifact@v4
46
+ with:
47
+ name: Packages
48
+ path: dist
49
+
50
+ - name: Set up Python
51
+ uses: actions/setup-python@v5
52
+ with:
53
+ python-version: ${{ matrix.python }}
54
+ allow-prereleases: true
55
+
56
+ - name: System dependencies
57
+ run: |
58
+ sudo apt-get update
59
+ sudo apt-get install xvfb python3-dev libmemcached-dev libmysqlclient-dev memcached libmemcached-tools
60
+
61
+ - name: Install tox
62
+ run: |
63
+ python -m pip install --upgrade pip
64
+ pip install tox
65
+
66
+ - name: Test
67
+ shell: bash
68
+ run: |
69
+ tox run -e py --installpkg `find dist/*.tar.gz`
@@ -0,0 +1,8 @@
1
+ # https://docs.readthedocs.io/en/stable/config-file/v2.html
2
+ version: 2
3
+ build:
4
+ os: ubuntu-22.04
5
+ tools:
6
+ python: "3.11"
7
+ sphinx:
8
+ configuration: docs/conf.py
@@ -1,6 +1,20 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 2.3.0
5
+ -----
6
+
7
+ - #57: Dropped support for Python 3.9 and 3.10; Python 3.11+ is now required.
8
+ - #57: Added official support for Python 3.15.
9
+ - #57: Fixed the ``memcached`` extra, which was silently ignored: ``pip install pytest-services[memcached]`` now installs ``pylibmc``.
10
+ - #55: Use ``pytest.fixture`` instead of the deprecated ``pytest.yield_fixture``, which warns with ``PytestRemovedIn10Warning`` on pytest 9.
11
+ - #52: Move ``pylibmc`` and ``MySQLdb`` library imports to specific tests -- this makes it easier to test a subset of the ``pytest-services`` package without having to install all the dependencies.
12
+
13
+ 2.2.2
14
+ -----
15
+
16
+ - #47: Replace ``distutils.spawn.find_executable`` with ``shutil.which``. The package ``distutils`` is deprecated.
17
+
4
18
  2.2.1
5
19
  -----
6
20
 
@@ -0,0 +1,424 @@
1
+ Metadata-Version: 2.4
2
+ Name: pytest-services
3
+ Version: 2.3.0
4
+ Summary: Services plugin for pytest testing framework
5
+ Home-page: https://github.com/pytest-dev/pytest-services
6
+ Author: Anatoly Bubenkov, Paylogic International and others
7
+ Author-email: bubenkoff@gmail.com
8
+ License: MIT
9
+ Classifier: Development Status :: 6 - Mature
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: POSIX
12
+ Classifier: Operating System :: Microsoft :: Windows
13
+ Classifier: Operating System :: MacOS :: MacOS X
14
+ Classifier: Topic :: Software Development :: Testing
15
+ Classifier: Topic :: Software Development :: Libraries
16
+ Classifier: Topic :: Utilities
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ Classifier: Programming Language :: Python :: 3.15
23
+ Requires-Python: >=3.11
24
+ Description-Content-Type: text/x-rst
25
+ License-File: LICENSE.txt
26
+ License-File: AUTHORS.rst
27
+ Requires-Dist: requests
28
+ Requires-Dist: psutil
29
+ Requires-Dist: pytest
30
+ Requires-Dist: zc.lockfile>=2.0
31
+ Provides-Extra: memcached
32
+ Requires-Dist: pylibmc; extra == "memcached"
33
+ Dynamic: author
34
+ Dynamic: author-email
35
+ Dynamic: classifier
36
+ Dynamic: description
37
+ Dynamic: description-content-type
38
+ Dynamic: home-page
39
+ Dynamic: license
40
+ Dynamic: license-file
41
+ Dynamic: provides-extra
42
+ Dynamic: requires-dist
43
+ Dynamic: requires-python
44
+ Dynamic: summary
45
+
46
+ Services plugin for pytest testing framework
47
+ ============================================
48
+
49
+ .. image:: https://img.shields.io/pypi/v/pytest-services.svg
50
+ :target: https://pypi.python.org/pypi/pytest-services
51
+ .. image:: https://img.shields.io/pypi/pyversions/pytest-services.svg
52
+ :target: https://pypi.python.org/pypi/pytest-services
53
+ .. image:: https://img.shields.io/coveralls/pytest-dev/pytest-services/master.svg
54
+ :target: https://coveralls.io/r/pytest-dev/pytest-services
55
+ .. image:: https://travis-ci.org/pytest-dev/pytest-services.svg?branch=master
56
+ :target: https://travis-ci.org/pytest-dev/pytest-services
57
+ .. image:: https://readthedocs.org/projects/pytest-services/badge/?version=latest
58
+ :target: https://readthedocs.org/projects/pytest-services/?badge=latest
59
+ :alt: Documentation Status
60
+
61
+ Install pytest-services
62
+ -----------------------
63
+
64
+ ::
65
+
66
+ pip install pytest-services
67
+
68
+
69
+ .. _pytest: http://pytest.org
70
+ .. _pytest-xdist: https://pypi.python.org/pypi/pytest-xdist
71
+ .. _pytest-splinter: https://pypi.python.org/pypi/pytest-splinter
72
+ .. _pytest-bdd: https://pypi.python.org/pypi/pytest-bdd
73
+ .. _pytest-django: https://pypi.python.org/pypi/pytest-django
74
+ .. _memcached: http://memcached.org
75
+ .. _xvfb: http://en.wikipedia.org/wiki/Xvfb
76
+ .. _mysql-server: http://dev.mysql.com/
77
+
78
+ Features
79
+ --------
80
+
81
+ The plugin provides a set of fixtures and utility functions to start service processes for your tests with
82
+ pytest_
83
+
84
+
85
+ Fixtures
86
+ --------
87
+
88
+ * run_services
89
+ Determines whether services should be run or not. False by default if not in distributed environment
90
+ (without pytest-xdist_). Can be manually set to True by overriding this fixture in your test config or
91
+ just by using `--run-services` command line argument (see below).
92
+
93
+ Infrastructure fixtures
94
+ ***********************
95
+
96
+ * worker_id
97
+ Id of the worker if tests are run using pytest-xdist_. It is set to `local` if tests are not run using
98
+ pytest-xdist_ (with `--dist` command line option set to `load`).
99
+ Has a deprecated alias ``slave_id`` which will be removed in a future version.
100
+ * session_id
101
+ Test session id. Globally unique, and of course also guaranteed to be different for potentially multiple test
102
+ sessions running on same test node via pytest-xdist_.
103
+ * watcher_getter
104
+ Function to instantiate test service watcher (popen object). Includes automatic finalization (exiting) of the
105
+ service process, and testing the service before returning the watcher from the function.
106
+ Example of usage for memcached service:
107
+
108
+ .. code-block:: python
109
+
110
+ @pytest.fixture(scope='session')
111
+ def memcached(request, run_services, memcached_socket, watcher_getter):
112
+ """The memcached instance which is ready to be used by the tests."""
113
+ if run_services:
114
+ return watcher_getter(
115
+ name='memcached',
116
+ arguments=['-s', memcached_socket],
117
+ checker=lambda: os.path.exists(memcached_socket),
118
+ # Needed for the correct execution order of finalizers
119
+ request=request,
120
+ )
121
+
122
+ * services_log
123
+ Logger used for debug logging when managing test services.
124
+ * root_dir
125
+ Parent directory for test service artifacts (disk based). Set to `/tmp` by default.
126
+ * base_dir
127
+ Base directory for test service artifacts (disk based), unique subdirectory of `root_dir`.
128
+ Automatically removed recursively at the end of the test session.
129
+ * temp_dir
130
+ `Temporary` directory (disk based), subfolder of the `base_dir`.
131
+ Used for strictly temporary artifacts (for example - folder where files are uploaded from the user input).
132
+ * memory_root_dir
133
+ Parent directory for test service artifacts (memory based). Main idea of having memory base directory is to
134
+ store performance-critical files there. For example - mysql service will use it to store database file, it speeds up
135
+ mysql server a lot, especially database management operations.
136
+ Set to `/var/shm` by default, with a fallback to 'root_dir`. Note that if apparmor is running on your system, most
137
+ likely it will prevent your test service to use it (for example - mysql has it's apparmor profile). You you'll need
138
+ to disable such profile in apparmor configuration.
139
+ Example of disabling apparmor for mysqld:
140
+
141
+ .. code-block:: sh
142
+
143
+ sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
144
+ sudo /etc/init.d/apparmor restart
145
+
146
+ * memory_base_dir
147
+ Base directory for test service artifacts (memory based), unique subdirectory of `memory_root_dir`.
148
+ Automatically removed recursively at the end of the test session.
149
+ * memory_temp_dir
150
+ `Temporary` directory (memory based), subfolder of the `base_dir`.
151
+ * lock_dir
152
+ Lock files directory for storing locks created for resource assignment (ports, display, etc). Subfolder of
153
+ `memory_root_dir`.
154
+ * run_dir
155
+ Process id and socket files directory (like system-wide `/var/run` but local for test session). Subfolder of
156
+ `memory_root_dir`.
157
+ * port_getter
158
+ Function to get unallocated port.
159
+ Automatically ensures locking and un-locking of it on application level via flock.
160
+ * display_getter
161
+ Function to get unallocated display.
162
+ Automatically ensures locking and un-locking of it on application level via flock.
163
+ * lock_resource_timeout
164
+ Used in function lock_resource.
165
+ A maximum of total sleep between attempts to lock resource.
166
+
167
+ Service fixtures
168
+ ****************
169
+
170
+ * memcached
171
+ Start memcached_ instance.
172
+ Requires `pylibmc` installed or `memcache` indicated as an extra (`pip install 'pytest-services[memcached]'`).
173
+ * memcached_socket
174
+ Memcached unix socket file name to be used for connection.
175
+ * memcached_connection
176
+ Memcached connection string.
177
+ * do_memcached_clean
178
+ Determine if memcached should be cleared before every test run. Equals to `run_services` fixture by default.
179
+ Requires `pylibmc` installed or `memcache` indicated as an extra (`pip install 'pytest-services[memcached]'`).
180
+ * memcached_client
181
+ A pylibmc.Client instance bound to the service.
182
+ Requires `pylibmc` installed or `memcache` indicated as an extra (`pip install 'pytest-services[memcached]'`).
183
+ * mysql
184
+ Start mysql-server_ instance.
185
+ * mysql_database_name
186
+ MySQL database name to be created after initialization of the mysql service `system` database.
187
+ * mysql_database_getter
188
+ Function with single parameter - database name. To create additional database(s) for tests.
189
+ Used in `mysql_database` fixture which is used by `mysql` one.
190
+ * mysql_connection
191
+ MySQL connection string.
192
+ * xvfb
193
+ Start xvfb_ instance.
194
+ * xvfb_display
195
+ Xvfb display to use for connection.
196
+ * xvfb_resolution
197
+ Xvfb display resolution to use. Tuple in form `(1366, 768, 8)`.
198
+
199
+ Utility functions
200
+ *****************
201
+
202
+ Django settings
203
+ ^^^^^^^^^^^^^^^
204
+
205
+ In some cases, there's a need of switching django settings during test run, because several django projects are tested
206
+ whithin the single test suite.
207
+ `pytest_services.django_settings` simplifies switching of django settings to a single function call:
208
+
209
+ * setup_django_settings
210
+ Override the enviroment variable and call the _setup method of the settings object to reload them.
211
+
212
+ Example of usage:
213
+
214
+ conftest.py:
215
+
216
+ .. code-block:: python
217
+
218
+ from pytest_services import django_settings
219
+
220
+ django_settings.clean_django_settings()
221
+ django_settings.setup_django_settings('your.project.settings')
222
+
223
+ Note that the nice project pytest-django_ doesn't help with the situation, as it's single django project oriented, as
224
+ well as standard django testing technique. Single project approach works fine, as long as there are no fixtures to share
225
+ between them, but when there are fixtures to share, then you can get benefit of joining several django projects tests
226
+ into a single test run, because all session-scoped fixtures will be instantiated only once for all projects tests.
227
+ The benefit is only visible if you have big enough test suite and your fixtures are heavy enough.
228
+
229
+
230
+ Command-line options
231
+ --------------------
232
+
233
+ * `--run-services`
234
+ Force services to be run even if tests are executed in a non-distributed way (without pytest-xdist_).
235
+ * `--xvfb-display`
236
+ Skip xvfb service to run and use provided display. Useful when you need to run all services except the xvfb_
237
+ to debug your browser tests, if, for example you use pytest-splinter_ with or without pytest-bdd_.
238
+
239
+ Example
240
+ -------
241
+
242
+ test_your_test.py:
243
+
244
+ .. code-block:: python
245
+
246
+ import MySQLdb
247
+
248
+
249
+ def test_some_mysql_stuff(mysql):
250
+ """Test using mysql server."""
251
+ conn = MySQLdb.connect(user='root')
252
+
253
+
254
+ Contact
255
+ -------
256
+
257
+ If you have questions, bug reports, suggestions, etc. please create an issue on
258
+ the `GitHub project page <https://github.com/pytest-dev/pytest-services>`_.
259
+
260
+
261
+ License
262
+ -------
263
+
264
+ This software is licensed under the `MIT license <http://en.wikipedia.org/wiki/MIT_License>`_
265
+
266
+ See `License file <https://github.com/pytest-dev/pytest-services/blob/master/LICENSE.txt>`_
267
+
268
+
269
+ © 2014 Anatoly Bubenkov, Paylogic International and others.
270
+
271
+ Authors
272
+ =======
273
+
274
+ `Anatoly Bubenkov <bubenkoff@gmail.com>`_
275
+ idea and implementation
276
+
277
+ These people have contributed to `pytest-services`, in alphabetical order:
278
+
279
+ * `Alessio Bogon <youtux@github.com>`_
280
+ * `Dmitrijs Milajevs <dimazest@gmail.com>`_
281
+ * `Jason R. Coombs <jaraco@jaraco.com>`_
282
+ * `Joep van Dijken <joepvandijken@github.com>`_
283
+ * `Magnus Staberg <magnus@staberg.io>`_
284
+ * `Michael Shriver <mshriver@redhat.com>`_
285
+ * `Oleg Pidsadnyi <oleg.pidsadnyi@gmail.com>`_
286
+ * `Zac Hatfield-Dodds <zac@zhd.dev>`_
287
+
288
+ Changelog
289
+ =========
290
+
291
+ 2.3.0
292
+ -----
293
+
294
+ - #57: Dropped support for Python 3.9 and 3.10; Python 3.11+ is now required.
295
+ - #57: Added official support for Python 3.15.
296
+ - #57: Fixed the ``memcached`` extra, which was silently ignored: ``pip install pytest-services[memcached]`` now installs ``pylibmc``.
297
+ - #55: Use ``pytest.fixture`` instead of the deprecated ``pytest.yield_fixture``, which warns with ``PytestRemovedIn10Warning`` on pytest 9.
298
+ - #52: Move ``pylibmc`` and ``MySQLdb`` library imports to specific tests -- this makes it easier to test a subset of the ``pytest-services`` package without having to install all the dependencies.
299
+
300
+ 2.2.2
301
+ -----
302
+
303
+ - #47: Replace ``distutils.spawn.find_executable`` with ``shutil.which``. The package ``distutils`` is deprecated.
304
+
305
+ 2.2.1
306
+ -----
307
+
308
+ - #42: Retry on ``zc.lockfile.LockError`` in ``file_lock``, use existing timeout kwarg (mshriver)
309
+
310
+ 2.2.0
311
+ -----
312
+
313
+ - #38: Retry to lock resource if zc.lockfile.LockError is raised. Fix needed for pytest-xdist. (StabbarN)
314
+
315
+ 2.1.0
316
+ -----
317
+
318
+ - #34: Deprecated ``slave_id`` fixture in favor of ``worker_id``,
319
+ for compatibility with ``pytest-xdist`` 2.
320
+
321
+ 2.0.1
322
+ -----
323
+
324
+ - #20: Added workaround for issue with SysLogHandler.
325
+
326
+ 2.0.0
327
+ -----
328
+
329
+ - #23: Rely on ``zc.lockfile`` for lockfile behavior.
330
+ - #28: Fixtures now supports later versions of mysql and no longer
331
+ support versions of mysql prior to ``mysql --initialize`` support.
332
+ - #29: Fix issues with later versions of mysql where ``mysql_defaults_file``
333
+ fixture would prevent startup of mysql.
334
+ - Fixed issue in test suite where mysql fixture was not tested.
335
+ - Removed ``pytest_services.locks.lock_file``.
336
+
337
+ 1.3.1
338
+ -----
339
+
340
+ - Fix race condition causing when using port_getter/display_getter (youtux)
341
+
342
+
343
+ 1.3.0
344
+ -----
345
+
346
+ - Add `request` param to watcher_getter to have proper execution order
347
+ of finalizers (youtux).
348
+
349
+ 1.2.1
350
+ -----
351
+
352
+ - Swap kill and terminate in watcher_getter finalization, allowing
353
+ for a more polite SIGTERM for terminating child procs on Unix. See
354
+ #15 for details (jaraco)
355
+
356
+ 1.2.0
357
+ -----
358
+
359
+ - Make pylibmc an optional dependency, available as an extra (jaraco)
360
+
361
+ 1.1.15
362
+ ------
363
+
364
+ - Fixed hang with updated netcat-openbsd>=1.130.3 (joepvandijken)
365
+
366
+ 1.1.14
367
+ ------
368
+
369
+ - Use a different strategy to determine whether xvfb supports (youtux )
370
+
371
+ 1.1.12
372
+ ------
373
+
374
+ - use realpath for mysql base dir (bubenkoff)
375
+
376
+ 1.1.11
377
+ ------
378
+
379
+ - exclude locked displays for xvfb (bubenkoff)
380
+
381
+ 1.1.7
382
+ -----
383
+
384
+ - django settings fix (olegpidsadnyi)
385
+
386
+ 1.1.3
387
+ -----
388
+
389
+ - django 1.8 support (bubenkoff)
390
+
391
+ 1.1.2
392
+ -----
393
+
394
+ - old django support fix (olegpidsadnyi)
395
+
396
+ 1.1.0
397
+ -----
398
+
399
+ - django 1.7+ support (bubenkoff)
400
+
401
+ 1.0.10
402
+ ------
403
+
404
+ - removed auto artifacts cleanup (bubenkoff)
405
+
406
+ 1.0.8
407
+ -----
408
+
409
+ - fixed popen arguments (bubenkoff)
410
+
411
+ 1.0.2
412
+ -----
413
+
414
+ - added port and display getters (bubenkoff)
415
+
416
+ 1.0.1
417
+ -----
418
+
419
+ - Improved documentation (bubenkoff)
420
+
421
+ 1.0.0
422
+ -----
423
+
424
+ - Initial public release
@@ -0,0 +1,12 @@
1
+ Here are the steps on how to make a new release.
2
+
3
+ 1. Create a ``release-VERSION`` branch from ``upstream/main``.
4
+ 2. Update ``CHANGELOG.rst``.
5
+ 3. Push the branch to ``upstream``.
6
+ 4. Once all tests pass, start the ``deploy`` workflow manually or via:
7
+
8
+ ```
9
+ gh workflow run deploy.yml --repo pytest-dev/pytest-services --ref release-VERSION -f version=VERSION
10
+ ```
11
+
12
+ 5. Merge the PR.
@@ -1,5 +1,4 @@
1
1
  """Sphinx config."""
2
- # -*- coding: utf-8 -*-
3
2
  #
4
3
  # pytest-services documentation build configuration file, created by
5
4
  # sphinx-quickstart on Sun Apr 7 21:07:56 2013.
@@ -45,9 +44,9 @@ source_suffix = '.rst'
45
44
  master_doc = 'index'
46
45
 
47
46
  # General information about the project.
48
- project = u'pytest-services'
47
+ project = 'pytest-services'
49
48
  AUTHOR = 'Anatoly Bubenkov, Paylogic International and others'
50
- copyright = u'2015, ' + AUTHOR
49
+ copyright = '2015, ' + AUTHOR
51
50
 
52
51
  # The version info for the project you're documenting, acts as replacement for
53
52
  # |version| and |release|, also used in various other places throughout the
@@ -189,7 +188,7 @@ latex_elements = {
189
188
  # Grouping the document tree into LaTeX files. List of tuples
190
189
  # (source start file, target name, title, author, documentclass [howto/manual]).
191
190
  latex_documents = [
192
- ('index', 'pytest-services.tex', u'pytest-services Documentation', AUTHOR, 'manual'),
191
+ ('index', 'pytest-services.tex', 'pytest-services Documentation', AUTHOR, 'manual'),
193
192
  ]
194
193
 
195
194
  # The name of an image file (relative to this directory) to place at the top of
@@ -218,7 +217,7 @@ latex_documents = [
218
217
  # One entry per manual page. List of tuples
219
218
  # (source start file, name, description, authors, manual section).
220
219
  man_pages = [
221
- ('index', 'pytest-services', u'pytest-services Documentation',
220
+ ('index', 'pytest-services', 'pytest-services Documentation',
222
221
  [AUTHOR], 1)
223
222
  ]
224
223
 
@@ -232,7 +231,7 @@ man_pages = [
232
231
  # (source start file, target name, title, author,
233
232
  # dir menu entry, description, category)
234
233
  texinfo_documents = [
235
- ('index', 'pytest-services', u'pytest-services Documentation',
234
+ ('index', 'pytest-services', 'pytest-services Documentation',
236
235
  AUTHOR, 'pytest-services', 'Services plugin for pytest testing framework.',
237
236
  'Miscellaneous'),
238
237
  ]
@@ -0,0 +1,5 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61", "setuptools_scm[toml]>=6.2"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [tool.setuptools_scm]