Skip to content

Commit f5fcee9

Browse files
committed
Merge branch 'master' into feature/refactor
2 parents 8b01495 + 4e0bb5d commit f5fcee9

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
# CHANGELONG
22

3-
## 2.2.8
3+
## Unreleased
44

55
### Changed
66

77
- Changed how renaming of implicitly named type-bound procedures and their
88
implementations is handled. Unittest was added.
99
- Rewrote the Fortran parser to be clearer and more modular
1010

11+
## 2.2.8
12+
13+
### Changed
14+
15+
- Disable PyPi autoupdating for pre-releases and dev versions
16+
1117
## 2.2.7
1218

1319
### Changed

fortls/langserver.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1725,8 +1725,12 @@ def _update_version_pypi(self, test: bool = False):
17251725
request = urllib.request.Request("https://pypi.org/pypi/fortls/json")
17261726
with urllib.request.urlopen(request) as resp:
17271727
info = json.loads(resp.read().decode("utf-8"))
1728+
remote_v = version.parse(info["info"]["version"])
1729+
# Do not update from remote if it is a prerelease
1730+
if remote_v.is_prerelease:
1731+
return False
17281732
# This is the only reliable way to compare version semantics
1729-
if version.parse(info["info"]["version"]) > v or test:
1733+
if remote_v > v or test:
17301734
self.post_message(
17311735
"A newer version of fortls is available for download",
17321736
Severity.info,

0 commit comments

Comments
 (0)