Skip to content

Commit 813b26b

Browse files
committed
Remove fix for #21 as it was fixed in firebird-base; updated documentation
1 parent 7881246 commit 813b26b

File tree

7 files changed

+97
-46
lines changed

7 files changed

+97
-46
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ share/python-wheels/
2626
.installed.cfg
2727
*.egg
2828
MANIFEST
29+
.hatch/
2930

3031
# PyInstaller
3132
# Usually these files are written by a python script from a template

Diff for: CHANGELOG.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,21 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [0.19.2] - 2024-02-20
8+
9+
### Fixed
10+
11+
- Remove fix for #21. The error was not caused by pytest 8.0, but by `Error` exception from
12+
`firebird-base` package that masked the absence of `__notes__` attribute from `pytest`.
13+
Dependency to pytest reverted to `>=7.4`.
14+
15+
### Changed
16+
17+
- Updated documentation.
18+
719
## [0.19.1] - 2024-02-09
820

9-
### FIXED
21+
### Fixed
1022

1123
- Fix for #21. Dependency to pytest changed from `>=8.0.0` to `~=7.4`. Other dependecies
1224
changed from `>=` to `~=`.

Diff for: README.md

+20-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Firebird QA
22

3-
This package contains:
3+
This repository contains:
44

55
- pytest plugin that provides support for testing the Firebird engine. It uses new Python
66
driver for Firebird (`firebird-driver`).
@@ -13,12 +13,28 @@ You should definitelly read the [QA suite documentation](https://firebird-qa.rea
1313

1414
## Quickstart
1515

16-
1716
1. Clone the git repository
1817

19-
2. Install the plugin and required dependencies by running next command from repo. directory::
18+
2. If you don't have `pipx` tool installed, install it using::
19+
20+
```
21+
python -m pip install pipx
22+
```
23+
24+
Or you can use any other method listed at [pipx website](https://pipx.pypa.io).
2025

21-
pip install -e .
26+
> Don't forget to run:
27+
>
28+
> pipx ensurepath
29+
>
30+
> once after installation to ensure that tools installed via `pipx` will be available on
31+
> search path.
32+
33+
3. Install the plugin and required dependencies by running next command:
34+
35+
```
36+
pipx install --include-deps firebird-qa
37+
```
2238

2339
3. Adjust Firebird server configuration.
2440

Diff for: docs/changelog.txt

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ Changelog
44

55
.. currentmodule:: firebird.qa.plugin
66

7+
Version 0.19.2
8+
==============
9+
10+
* Remove fix for `#21 <https://github.com/FirebirdSQL/firebird-qa/issues/21>`_. The error
11+
was not caused by pytest 8.0, but by `Error` exception from `firebird-base` package that
12+
masked the absence of `__notes__` attribute from `pytest`. Dependency to pytest reverted
13+
to `>=7.4`.
14+
* Updated documentation.
715

816
Version 0.19.1
917
==============

Diff for: docs/usage-guide.txt

+50-36
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
===========
32
Usage Guide
43
===========
@@ -30,56 +29,64 @@ Requirements
3029
------------
3130

3231
1. Requires Python_ 3.8 or newer.
33-
2. Requires `pip` installer. You may check it's availability from command line with::
32+
2. Requires pytest_ 7.4 or newer.
33+
3. If you want to develop the Firebird QA plugin itself, you'll also need Hatch_ 1.9 or newer.
34+
4. It's **recommended** to use the pipx_ tool to install and manage `firebird-qa` and `hatch`,
35+
or at least use the separate Python virtual environment to install and run the QA suite,
36+
especially on Linux where Python `site-packages` are managed by Linux distribution package
37+
manager.
3438

35-
> pip --help
39+
Installing pipx
40+
---------------
3641

37-
If `pip` is not installed, you may install it with::
42+
You can install `pipx` using `pip` in command prompt / terminal with::
3843

39-
> python -m ensurepip
44+
python -m pip install pipx
4045

41-
3. It's **recommended** to create separate Python virtual environment to install and run
42-
the QA suite, especially on Linux where Python `site-packages` are managed by Linux
43-
distribution package manager.
46+
or by using other suitable method listed at pipx_ website.
4447

45-
There are multiple ways how to create and manage Python virtual environments, but we
46-
recommend to use virtualenv_, together with virtualenvwrapper_ (for Linux) or
47-
virtualenvwrapper-win_ (for Windows).
48+
.. note::
4849

49-
On Linux, the `virtualenv` and `virtualenvwrapper` are typically available for installation
50-
from ditribution repository via package manager, which is also the preferred way to
51-
install them on this platform.
50+
Don't forget to run::
5251

53-
On Windows, you should install `virtualenv` and `virtualenvwrapper-win` via `pip`.
52+
pipx ensurepath
5453

55-
Installation
56-
------------
54+
once after installation to ensure that tools installed via `pipx` will be available on
55+
search path.
56+
57+
Installing QA tools for regular use
58+
-----------------------------------
59+
60+
From command prompt / terminal execute::
61+
62+
pipx install --include-deps firebird-qa
63+
64+
If you want to install specific version, you can use version specification. For example::
5765

58-
1. Open the command prompt / terminal.
66+
pipx install --include-deps firebird-qa==0.19.0
5967

60-
2. Clone the firebird-qa repository::
68+
will install `firebird-qa` version 0.19.0.
6169

62-
> git clone https://github.com/FirebirdSQL/firebird-qa.git
70+
Installing QA tools for plugin development
71+
------------------------------------------
6372

64-
3. Activate the Python virtual environment you created for QA, or skip this step if you
65-
want to install everything into main site-packages.
73+
Open the command prompt / terminal, switch to QA root directory and execute::
6674

67-
4. Switch to directory with cloned `firebird-qa` repository.
75+
pipx install --include-deps -e .
6876

69-
.. note::
7077

71-
We'll refer to this directory as `QA root directory`.
78+
Upgrading QA tools
79+
------------------
7280

73-
5. Install the plugin with pip, running::
81+
You can upgrade your installation to latest published version using::
7482

75-
> pip install -e .
83+
pipx upgrade firebird-qa
7684

77-
This will install Firebird QA plugin for `pytest`, along with required dependencies.
85+
Alternativelly, you can reinstall it using::
7886

79-
.. important::
87+
pipx reinstall firebird-qa
8088

81-
You must re-install the plugin every time you see that `git pull` updated
82-
the `setup.cfg` file!
89+
The reinstallation will also upgrade all dependencies.
8390

8491

8592
Configuration
@@ -150,7 +157,8 @@ Basics
150157

151158
1. Open the terminal / command-line.
152159

153-
2. If you installed Firebird QA in Python virtual environment, **activate it**.
160+
2. If you DID NOT USED `pipx`, but installed Firebird QA in Python virtual environment you
161+
created manually, **activate it**.
154162

155163
3. Switch to QA root directory.
156164

@@ -189,17 +197,20 @@ Example::
189197

190198
> pytest
191199
====================================================== test session starts =======================================================
192-
platform linux -- Python 3.8.12, pytest-7.0.0, pluggy-1.0.0 -- /home/job/python/envs/qa/bin/python
200+
platform linux -- Python 3.11.8, pytest-8.0.1, pluggy-1.4.0 -- /home/pcisar/.local/pipx/venvs/firebird-qa/bin/python
193201
cachedir: .pytest_cache
194202
System:
195203
encodings: sys:utf-8 locale:UTF-8 filesystem:utf-8
196204
Firebird:
197-
server: local [v3.0.9.33562, SuperServer, Firebird/Linux/AMD/Intel/x64]
205+
configuration: firebird-driver.conf
206+
ODS: 13.1
207+
server: local [v5.0.0.1306, SuperServer, Firebird/Linux/AMD/Intel/x64]
198208
home: /opt/firebird
199209
bin: /opt/firebird/bin
200210
client library: libfbclient.so.2
201-
rootdir: /home/job/python/projects/firebird-qa, configfile: pytest.ini, testpaths: tests
202-
plugins: firebird-qa-0.12.1
211+
rootdir: /home/job/python/projects/firebird-qa
212+
configfile: pytest.ini
213+
plugins: firebird-qa-0.19.2
203214
collected 2385 items / 475 deselected / 1910 selected
204215

205216
issue.full-join-push-where-predicate PASSED [ 1/1910]
@@ -928,3 +939,6 @@ How to use temporary files
928939
.. _Python package: https://docs.python.org/3/tutorial/modules.html#packages
929940
.. _module: https://docs.python.org/3/tutorial/modules.html
930941
.. _docstring: https://docs.python.org/3/glossary.html#term-docstring
942+
.. _pipx: https://pipx.pypa.io
943+
.. _venv: https://docs.python.org/3/library/venv.html
944+
.. _hatch: https://hatch.pypa.io

Diff for: pyproject.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ classifiers = [
3232
"Framework :: Pytest",
3333
]
3434
dependencies = [
35-
"firebird-base~=1.7.1",
36-
"firebird-driver~=1.10.1",
37-
"pytest~=7.4",
38-
"psutil~=5.9.8",
35+
"firebird-base>=1.7.2",
36+
"firebird-driver~=1.10",
37+
"pytest>=7.4",
38+
"psutil~=5.9",
3939
]
4040

4141
[project.urls]

Diff for: src/firebird/qa/__about__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-FileCopyrightText: 2021-present The Firebird Projects <www.firebirdsql.org>
22
#
33
# SPDX-License-Identifier: MIT
4-
__version__ = "0.19.1"
4+
__version__ = "0.19.2"

0 commit comments

Comments
 (0)