Skip to content

Commit 19118b6

Browse files
author
Žiga Stupan
committed
update docs
1 parent f531580 commit 19118b6

10 files changed

Lines changed: 102 additions & 2435 deletions

File tree

.readthedocs.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ version: 2
66

77
# Set the OS, Python version and other tools you might need
88
build:
9-
os: ubuntu-22.04
9+
os: ubuntu-24.04
1010
tools:
11-
python: "3.12"
11+
python: "3.13"
1212

1313
sphinx:
1414
configuration: docs/source/conf.py
1515
fail_on_warning: true
1616

1717
# Optionally build your docs in additional formats such as PDF and ePub
18-
formats: all
18+
formats:
19+
- pdf
1920

2021
# Optional but recommended, declare the Python requirements required
2122
# to build your documentation

CONTRIBUTING.md

Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -27,53 +27,47 @@ If you are not so familiar with Git or/and GitHub, we suggest you take a look at
2727

2828
### Requirements
2929

30-
* Python >= 3.10
31-
* Poetry: https://python-poetry.org/docs/
30+
* Python >= 3.11
31+
* uv: https://docs.astral.sh/uv/
3232

3333
### Development dependencies
3434

3535
**NiaPy dependencies:**
3636

37-
| Package | Version | Platform |
38-
|------------|:---------:|:--------:|
39-
| numpy | ^1.26.1 | All |
40-
| pandas | ^2.1.1 | All |
41-
| openpyxl | ^3.1.2 | All |
42-
| matplotlib | ^3.8.0 | All |
37+
| Package | Version | Platform |
38+
|------------|:--------:|:--------:|
39+
| numpy | \>=2.3.5 | All |
40+
| pandas | \>=2.3.3 | All |
41+
| openpyxl | >=3.1.5 | All |
42+
| matplotlib | >=3.10.8 | All |
4343

44-
**Test dependencies:**
44+
**Development dependencies:**
4545

46-
| Package | Version | Platform |
47-
|-----------------|:----------------:|:--------:|
48-
| pytest | >=7.4.2,<9.0.0 | Any |
49-
| pytest-cov | ^4.1.0 | Any |
50-
| pytest-randomly | ^3.15.0 | Any |
46+
| Package | Version | Platform |
47+
|-----------------|:--------:|:--------:|
48+
| pytest | \>=9.0.0 | All |
49+
| pytest-cov | \>=7.0.0 | All |
50+
| pytest-randomly | \>=4.0.1 | All |
5151

5252
**Documentation dependencies (optional):**
5353

54-
| Package | Version | Platform |
55-
|--------------------|:--------:|:--------:|
56-
| sphinx | ^7.2.6 | Any |
57-
| sphinx-rtd-theme | ^1.3.0 | Any |
54+
| Package | Version | Platform |
55+
|------------------|:--------:|:--------:|
56+
| sphinx | \>=8.2.3 | All |
57+
| sphinx-rtd-theme | \>=3.0.2 | All |
5858

5959
### Installation
6060

6161
Install project dependencies into a virtual environment:
6262

6363
```sh
64-
$ poetry install
64+
uv sync
6565
```
6666

6767
Install the optional documentation dependencies with:
6868

6969
```sh
70-
$ poetry install --with docs
71-
```
72-
73-
To enter created virtual environment with all installed dependencies run:
74-
75-
```sh
76-
$ poetry shell
70+
uv sync --group docs
7771
```
7872

7973
## Development Tasks
@@ -83,17 +77,15 @@ $ poetry shell
8377
Run the tests:
8478

8579
```sh
86-
$ poetry run pytest
80+
uv run pytest
8781
```
8882

8983
### Documentation
9084

9185
Build the documentation:
9286

9387
```sh
94-
$ poetry shell
95-
$ cd docs
96-
$ make html
88+
uv run sphinx-build ./docs ./docs/_build
9789
```
9890

9991
## Support

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Nature-inspired algorithms are a very popular tool for solving optimization prob
7070

7171
* **Free software:** MIT license
7272
* **Documentation:** https://niapy.readthedocs.io/en/stable
73-
* **Python versions:** 3.10.x, 3.11.x, 3.12.x, 3.13.x, 3.14.x
73+
* **Python versions:** 3.11.x, 3.12.x, 3.13.x, 3.14.x
7474
* **Dependencies:** listed in [CONTRIBUTING.md](CONTRIBUTING.md#development-dependencies)
7575

7676
## 🎯 Mission

docs/requirements.txt

Lines changed: 65 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,113 @@
1-
#
2-
# This file is autogenerated by pip-compile with Python 3.11
3-
# by the following command:
4-
#
5-
# pip-compile requirements.in
6-
#
7-
alabaster==0.7.13
1+
# This file was autogenerated by uv via the following command:
2+
# uv pip compile pyproject.toml --group dev --group docs
3+
alabaster==1.0.0
84
# via sphinx
9-
babel==2.13.1
5+
babel==2.17.0
106
# via sphinx
11-
certifi==2023.7.22
7+
certifi==2025.11.12
128
# via requests
13-
charset-normalizer==3.3.1
9+
charset-normalizer==3.4.4
1410
# via requests
15-
contourpy==1.2.0
11+
contourpy==1.3.3
1612
# via matplotlib
13+
coverage==7.13.0
14+
# via pytest-cov
1715
cycler==0.12.1
1816
# via matplotlib
19-
docutils==0.18.1
17+
docutils==0.21.2
2018
# via
2119
# sphinx
2220
# sphinx-rtd-theme
23-
et-xmlfile==1.1.0
21+
et-xmlfile==2.0.0
2422
# via openpyxl
25-
fonttools==4.51.0
23+
fonttools==4.61.0
2624
# via matplotlib
27-
idna==3.4
25+
idna==3.11
2826
# via requests
2927
imagesize==1.4.1
3028
# via sphinx
31-
jinja2==3.1.3
29+
iniconfig==2.3.0
30+
# via pytest
31+
jinja2==3.1.6
3232
# via sphinx
33-
kiwisolver==1.4.5
33+
kiwisolver==1.4.9
3434
# via matplotlib
35-
markupsafe==2.1.3
35+
markupsafe==3.0.3
3636
# via jinja2
37-
matplotlib==3.8.2
38-
# via -r requirements.in
39-
numpy==1.26.4
37+
matplotlib==3.10.8
38+
# via niapy (pyproject.toml)
39+
numpy==2.3.5
4040
# via
41-
# -r requirements.in
41+
# niapy (pyproject.toml)
4242
# contourpy
4343
# matplotlib
4444
# pandas
45-
openpyxl==3.1.2
46-
# via -r requirements.in
47-
packaging==23.2
45+
openpyxl==3.1.5
46+
# via niapy (pyproject.toml)
47+
packaging==25.0
4848
# via
4949
# matplotlib
50+
# pytest
5051
# sphinx
51-
pandas==2.2.1
52-
# via -r requirements.in
53-
pillow==10.2.0
52+
pandas==2.3.3
53+
# via niapy (pyproject.toml)
54+
pillow==12.0.0
5455
# via matplotlib
55-
pygments==2.16.1
56-
# via sphinx
57-
pyparsing==3.1.1
56+
pluggy==1.6.0
57+
# via
58+
# pytest
59+
# pytest-cov
60+
pygments==2.19.2
61+
# via
62+
# pytest
63+
# sphinx
64+
pyparsing==3.2.5
5865
# via matplotlib
59-
python-dateutil==2.8.2
66+
pytest==9.0.2
67+
# via
68+
# niapy (pyproject.toml:dev)
69+
# pytest-cov
70+
# pytest-randomly
71+
pytest-cov==7.0.0
72+
# via niapy (pyproject.toml:dev)
73+
pytest-randomly==4.0.1
74+
# via niapy (pyproject.toml:dev)
75+
python-dateutil==2.9.0.post0
6076
# via
6177
# matplotlib
6278
# pandas
63-
pytz==2024.1
79+
pytz==2025.2
6480
# via pandas
65-
requests==2.31.0
81+
requests==2.32.5
82+
# via sphinx
83+
roman-numerals-py==3.1.0
6684
# via sphinx
67-
six==1.16.0
85+
six==1.17.0
6886
# via python-dateutil
69-
snowballstemmer==2.2.0
87+
snowballstemmer==3.0.1
7088
# via sphinx
71-
sphinx==7.2.6
89+
sphinx==8.2.3
7290
# via
73-
# -r requirements.in
91+
# niapy (pyproject.toml:docs)
7492
# sphinx-rtd-theme
75-
# sphinxcontrib-applehelp
76-
# sphinxcontrib-devhelp
77-
# sphinxcontrib-htmlhelp
7893
# sphinxcontrib-jquery
79-
# sphinxcontrib-qthelp
80-
# sphinxcontrib-serializinghtml
81-
sphinx-rtd-theme==1.3.0
82-
# via -r requirements.in
83-
sphinxcontrib-applehelp==1.0.7
94+
sphinx-rtd-theme==3.0.2
95+
# via niapy (pyproject.toml:docs)
96+
sphinxcontrib-applehelp==2.0.0
8497
# via sphinx
85-
sphinxcontrib-devhelp==1.0.5
98+
sphinxcontrib-devhelp==2.0.0
8699
# via sphinx
87-
sphinxcontrib-htmlhelp==2.0.4
100+
sphinxcontrib-htmlhelp==2.1.0
88101
# via sphinx
89102
sphinxcontrib-jquery==4.1
90103
# via sphinx-rtd-theme
91104
sphinxcontrib-jsmath==1.0.1
92105
# via sphinx
93-
sphinxcontrib-qthelp==1.0.6
106+
sphinxcontrib-qthelp==2.0.0
94107
# via sphinx
95-
sphinxcontrib-serializinghtml==1.1.9
108+
sphinxcontrib-serializinghtml==2.0.0
96109
# via sphinx
97-
tzdata==2023.4
110+
tzdata==2025.2
98111
# via pandas
99-
urllib3==2.0.7
112+
urllib3==2.6.2
100113
# via requests

docs/source/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
#
9393
html_theme_options = {
9494
"logo_only": True,
95-
"display_version": False,
9695
}
9796

9897
# Add any paths that contain custom static files (such as style sheets) here,

docs/source/documentation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ To locally generate the documentation run the following command in the project r
1010

1111
.. code-block:: bash
1212
13-
poetry run sphinx-build docs/source docs/build/html
13+
uv run sphinx-build docs/source docs/_build
1414
15-
You can then view it by opening docs/build/html/index.html in your browser
15+
You can then view it by opening docs/_build/index.html in your browser

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ implementing algorithms from scratch.
2323

2424
* **Free software:** MIT license
2525
* **Github repository:** https://github.com/NiaOrg/NiaPy
26-
* **Python versions:** 3.10.x, 3.11.x, 3.12.x, 3.13.x, 3.14.x
26+
* **Python versions:** 3.11.x, 3.12.x, 3.13.x, 3.14.x
2727

2828
The main documentation is organized into a couple sections:
2929

docs/source/installation.rst

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Setup development environment
77
Requirements
88
~~~~~~~~~~~~
99

10-
- Python: `download <https://www.python.org/downloads/>`__ (3.10 or greater)
11-
- Poetry: `docs <https://python-poetry.org/docs/>`__
10+
- Python: `download <https://www.python.org/downloads/>`__ (3.11 or greater)
11+
- uv: `docs <https://docs.astral.sh/uv/>`__
1212

1313

1414
Installation of development dependencies
@@ -18,22 +18,16 @@ Install project dependencies into a virtual environment:
1818

1919
.. code-block:: bash
2020
21-
poetry install
21+
uv sync
2222
2323
Install documentation dependencies with:
2424

2525
.. code-block:: bash
2626
27-
poetry install --with docs
27+
uv sync --group docs
2828
2929
Run tests with:
3030

3131
.. code-block:: bash
3232
33-
poetry run pytest
34-
35-
To enter created virtual environment with all installed development dependencies run:
36-
37-
.. code-block:: bash
38-
39-
poetry shell
33+
uv run pytest

docs/source/testing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ For the purpose of checking if all test are passing locally you can run followin
1616

1717
.. code-block:: bash
1818
19-
poetry run pytest
19+
uv run pytest
2020
2121
If all tests passed running this command it is most likely that the tests would pass on
22-
our build system to.
22+
our build system too.

0 commit comments

Comments
 (0)