pyprocessors-iptc_mapper 1.6.53__tar.gz → 1.8.45__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.

Potentially problematic release.


This version of pyprocessors-iptc_mapper might be problematic. Click here for more details.

@@ -0,0 +1,7 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.3.0
4
+ hooks:
5
+ - id: ruff
6
+ args: [--fix]
7
+ - id: ruff-format
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyprocessors-iptc_mapper
3
- Version: 1.6.53
3
+ Version: 1.8.45
4
4
  Summary: Sherpa IPTC category mapper
5
5
  Author-email: Olivier Terrier <olivier.terrier@kairntech.com>
6
6
  License: MIT
@@ -60,10 +60,10 @@ You can simply `pip install pyprocessors_iptc_mapper`.
60
60
 
61
61
  ### Pre-requesites
62
62
 
63
- You will need to install `flit` (for building the package) and `tox` (for orchestrating testing and documentation building):
63
+ You will need to install `uv` (for managing the package and running tests):
64
64
 
65
65
  ```
66
- python3 -m pip install flit tox
66
+ pip install uv
67
67
  ```
68
68
 
69
69
  Clone the repository:
@@ -74,10 +74,17 @@ git clone https://github.com/oterrier/pyprocessors_iptc_mapper
74
74
 
75
75
  ### Running the test suite
76
76
 
77
- You can run the full test suite against all supported versions of Python (3.8) with:
77
+ You can run the full test suite with:
78
78
 
79
79
  ```
80
- tox
80
+ uv run pytest
81
+ ```
82
+
83
+ ### Linting
84
+
85
+ ```
86
+ uv run ruff check .
87
+ uv run ruff format --check .
81
88
  ```
82
89
 
83
90
  ### Building the documentation
@@ -85,7 +92,7 @@ tox
85
92
  You can build the HTML documentation with:
86
93
 
87
94
  ```
88
- tox -e docs
95
+ uv run --extra docs sphinx-build docs docs/_build
89
96
  ```
90
97
 
91
98
  The built documentation is available at `docs/_build/index.html`.
@@ -17,10 +17,10 @@ You can simply `pip install pyprocessors_iptc_mapper`.
17
17
 
18
18
  ### Pre-requesites
19
19
 
20
- You will need to install `flit` (for building the package) and `tox` (for orchestrating testing and documentation building):
20
+ You will need to install `uv` (for managing the package and running tests):
21
21
 
22
22
  ```
23
- python3 -m pip install flit tox
23
+ pip install uv
24
24
  ```
25
25
 
26
26
  Clone the repository:
@@ -31,10 +31,17 @@ git clone https://github.com/oterrier/pyprocessors_iptc_mapper
31
31
 
32
32
  ### Running the test suite
33
33
 
34
- You can run the full test suite against all supported versions of Python (3.8) with:
34
+ You can run the full test suite with:
35
35
 
36
36
  ```
37
- tox
37
+ uv run pytest
38
+ ```
39
+
40
+ ### Linting
41
+
42
+ ```
43
+ uv run ruff check .
44
+ uv run ruff format --check .
38
45
  ```
39
46
 
40
47
  ### Building the documentation
@@ -42,7 +49,7 @@ tox
42
49
  You can build the HTML documentation with:
43
50
 
44
51
  ```
45
- tox -e docs
52
+ uv run --extra docs sphinx-build docs docs/_build
46
53
  ```
47
54
 
48
55
  The built documentation is available at `docs/_build/index.html`.
@@ -1,3 +1,3 @@
1
1
  """Sherpa IPTC category mapper"""
2
2
 
3
- __version__ = "1.6.53"
3
+ __version__ = "1.8.45"
@@ -1,49 +0,0 @@
1
- [tox]
2
- isolated_build = True
3
- envlist = clean,py38,report
4
-
5
- [gh-actions]
6
- python =
7
- 3.8: clean,py38,report
8
-
9
- [pytest]
10
- addopts =
11
- --durations=5
12
- --flake8
13
- norecursedirs =
14
- docs
15
-
16
- filterwarnings =
17
- ignore:<class '.*'> is not using a cooperative constructor:pytest.PytestDeprecationWarning
18
- ignore:The \(fspath. py.path.local\) argument to .* is deprecated.:pytest.PytestDeprecationWarning
19
- ignore:.* is an Item subclass and should not be a collector.*:pytest.PytestWarning
20
-
21
- [testenv]
22
- deps = .[test]
23
- commands = pytest --junit-xml={env:TEST_REPORT_DIR:.}/{env:TEST_REPORT_FILE:results.xml}
24
- passenv = *
25
- depends =
26
- report: py38
27
-
28
- [testenv:docs]
29
- changedir=docs
30
- deps = .[docs]
31
- commands = sphinx-build . _build
32
-
33
- [flake8]
34
- max-line-length = 100
35
- ignore =
36
- E203,
37
- E266,
38
- E501,
39
- W503,
40
- C901
41
- per-file-ignores =
42
- __init__.py: F401
43
- max-complexity = 18
44
- select = B, C, E, F, W, T4, B9
45
- exclude =
46
- .git,
47
- .tox,
48
- __pycache__,
49
- dist,