Skip to content

Commit 6ceabb6

Browse files
committed
Set dependency lower bounds
1 parent 6735c7e commit 6ceabb6

File tree

4 files changed

+48
-25
lines changed

4 files changed

+48
-25
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ jobs:
1313
- "3.11"
1414
- "3.10"
1515
- "3.9"
16-
- "3.8"
1716
pyqt-dependency:
1817
- "PyQt5"
19-
# - "PyQt6"
18+
- "PySide2"
2019

2120
steps:
2221
- uses: "actions/checkout@v3"

README.rst

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,6 @@ viscm
33

44
This is a little tool for analyzing colormaps and creating new colormaps.
55

6-
Try::
7-
8-
$ pip install viscm
9-
$ python -m viscm view jet
10-
$ python -m viscm edit
11-
12-
There is some information available about how to interpret the
13-
resulting visualizations and use the editor tool `on this website
14-
<https://bids.github.io/colormap/>`_.
15-
166
Downloads:
177
* https://pypi.python.org/pypi/viscm/
188
* https://anaconda.org/conda-forge/viscm/
@@ -24,16 +14,44 @@ Contact:
2414
Nathaniel J. Smith <njs@pobox.com> and Stéfan van der Walt <stefanv@berkeley.edu>
2515

2616
Dependencies:
27-
* Python 3.8+
28-
* `colorspacious <https://pypi.python.org/pypi/colorspacious>`_
29-
* Matplotlib
30-
* NumPy
17+
* Python 3.9+
18+
* `colorspacious <https://pypi.python.org/pypi/colorspacious>`_ 1.1+
19+
* Matplotlib 3.5+
20+
* NumPy 1.22+
21+
* SciPy 1.8+
3122

3223
License:
3324
MIT, see `LICENSE <LICENSE>`__ for details.
3425

26+
27+
Installation
28+
------------
29+
30+
This is a GUI application, and requires Qt Python bindings.
31+
They can be provided by PyQt (GPL) or PySide (LGPL)::
32+
33+
$ pip install viscm[PySide]
34+
35+
...or::
36+
37+
$ pip install viscm[PyQt]
38+
39+
40+
Usage
41+
-----
42+
43+
::
44+
45+
$ viscm view jet
46+
$ viscm edit
47+
48+
There is some information available about how to interpret the
49+
resulting visualizations and use the editor tool `on this website
50+
<https://bids.github.io/colormap/>`_.
51+
52+
3553
Reproducing viridis
36-
-------------------
54+
^^^^^^^^^^^^^^^^^^^
3755

3856
Load [viridis AKA option_d.py](https://github.com/BIDS/colormap/) using:
3957

doc/contributing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ python -m build
2222
pip install dist/*.whl # or `dist/*.tar.gz`
2323
```
2424

25+
To automatically install a Qt dependency, try `pip install dist/<wheel_filename>[PyQt]`.
26+
2527

2628
## Tests
2729

pyproject.toml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,18 @@ classifiers = [
1515
"Programming Language :: Python :: 3",
1616
]
1717

18-
requires-python = "~=3.8"
18+
requires-python = "~=3.9"
1919
dependencies = [
20-
"numpy",
21-
"matplotlib",
22-
"colorspacious",
23-
"scipy",
20+
"numpy ~=1.22",
21+
"matplotlib ~=3.5",
22+
"colorspacious ~=1.1",
23+
"scipy ~=1.8",
2424
]
2525

26+
[project.optional-dependencies]
27+
PySide = ["PySide2 ~=5.15"]
28+
PyQt = ["PyQt5 ~=5.15"]
29+
2630
[project.urls]
2731
repository = "https://github.com/matplotlib/viscm"
2832
# documentation = "https://viscm.readthedocs.io"
@@ -46,7 +50,7 @@ package-data = {viscm = ["examples/*"]}
4650

4751

4852
[tool.mypy]
49-
python_version = "3.8"
53+
python_version = "3.9"
5054

5155
# These libraries don't have type stubs. Mypy will see them as `Any` and not
5256
# throw an [import] error.
@@ -62,10 +66,10 @@ ignore_missing_imports = true
6266

6367

6468
[tool.black]
65-
target-version = ["py38", "py39", "py310", "py311"]
69+
target-version = ["py39", "py310", "py311"]
6670

6771
[tool.ruff]
68-
target-version = "py38"
72+
target-version = "py39"
6973
select = [
7074
"F",
7175
"E",

0 commit comments

Comments
 (0)