You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update python version and fix testing issues (#329)
* use a stable url for testing
The BGC_GBK_URL changes from time to time
* update gnps website down function
* add condition of gnps website down for tests
* update python min version from 3.9 to 3.11
it is required by BigScape2
Copy file name to clipboardExpand all lines: README.dev.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,11 @@ If you want to add more settings, you can update the workspace settings, see [th
16
16
17
17
## Setup
18
18
19
-
We use Python 3.10 for development environment.
19
+
We use Python 3.11 for development environment.
20
20
21
21
```shell
22
22
# Create a virtual environment
23
-
conda create -n npl-dev python=3.10
23
+
conda create -n npl-dev python=3.11
24
24
25
25
# activate virtual environment
26
26
conda activate npl-dev
@@ -98,7 +98,7 @@ ruff format filename.py
98
98
99
99
We use [inline type annotation](https://typing.readthedocs.io/en/latest/source/libraries.html#how-to-provide-type-annotations) for static typing rather than stub files (i.e. `.pyi` files).
100
100
101
-
Since Python 3.10 is used as dev environment and NPLinker must support Python version ≥3.9, you may see various typing issues at runtime. Here is [a guide to solve the potential runtime issues](https://mypy.readthedocs.io/en/stable/runtime_troubles.html).
101
+
Since Python 3.11 is used as dev environment (older NPLinker must support Python version ≥3.9), you may see various typing issues at runtime. Here is [a guide to solve the potential runtime issues](https://mypy.readthedocs.io/en/stable/runtime_troubles.html).
102
102
103
103
By default, we use `from __future__ import annotations` at module level to stop evaluating annotations at function definition time (see [PEP 563](https://peps.python.org/pep-0563/)), which would solve most of compatibility issues between different Python versions. Make sure you're aware of the [caveats](https://mypy.readthedocs.io/en/stable/runtime_troubles.html#future-annotations-import-pep-563).
Copy file name to clipboardExpand all lines: docs/webapp/readme.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,8 +85,8 @@ Follow these steps to install the application directly on your system:
85
85
86
86
2.**Set up a conda environment**
87
87
```bash
88
-
# Create a new conda environment with Python 3.10
89
-
conda create -n nplinker-webapp python=3.10
88
+
# Create a new conda environment with Python 3.11
89
+
conda create -n nplinker-webapp python=3.11
90
90
91
91
# Activate the environment
92
92
conda activate nplinker-webapp
@@ -113,7 +113,7 @@ Follow these steps to install the application directly on your system:
113
113
114
114
<ul>
115
115
<li><strong>Port already in use</strong>: If port 8050 is already in use, modify the port in <code>app/main.py</code> by changing <code>app.run_server(debug=True, port=8050)</code></li>
116
-
<li><strong>Package installation errors</strong>: Make sure you're using Python 3.10 and that your pip is up-to-date</li>
116
+
<li><strong>Package installation errors</strong>: Make sure you're using Python 3.11 and that your pip is up-to-date</li>
117
117
</ul>
118
118
119
119
<p>If you encounter other problems, please check the <ahref="https://github.com/NPLinker/nplinker-webapp/issues">Issues</a> page or create a new issue.</p>
0 commit comments