Skip to content

Commit 8193500

Browse files
authored
Merge pull request #2870 from Open-MSS/merge_stable_to_develop
2 parents 0272e82 + efa903c commit 8193500

10 files changed

Lines changed: 101 additions & 129 deletions

File tree

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import zipfile
1919
import shutil
2020
from pathlib import Path
21+
import toml
2122

2223

2324
def get_tutorial_images():
@@ -94,9 +95,8 @@ def get_tutorial_images():
9495
mslib.mswms.wms.server.generate_gallery(sphinx=True, generate_code=True, all_plots=True, levels="3,4,200,300",
9596
vtimes="2012-10-18T00:00:00,2012-10-19T00:00:00")
9697

97-
version = {}
98-
exec(Path("../mslib/version.py").read_text(), version)
99-
__version__ = version["__version__"]
98+
with open("../pyproject.toml") as f:
99+
__version__ = toml.load(f)["project"]["version"]
100100

101101
on_rtd = os.environ.get('READTHEDOCS') == 'True'
102102

mslib/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
See the License for the specific language governing permissions and
2626
limitations under the License.
2727
"""
28+
import importlib.metadata
2829

29-
30-
from .version import __version__ # noqa
30+
__version__ = importlib.metadata.version("open-mss")

mslib/msidp/idp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,9 @@ def main():
10921092
'\033[91mWARNING: msidp is solely for development and '
10931093
'testing purposes; do not use in production environments.\033[0m'
10941094
)
1095+
if os.name == "nt":
1096+
logger.error("The msidp application is not usable on Windows.")
1097+
return 1
10951098
parser = argparse.ArgumentParser()
10961099
parser.add_argument("-p", dest="path", help="Path to configuration file.",
10971100
default="./idp_conf.py")

mslib/utils/release_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import logging
3030
import requests
3131

32-
from mslib.version import __version__ as installed_version
32+
from mslib import __version__ as installed_version
3333

3434

3535
def get_latest_release():

mslib/version.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

pixi.lock

Lines changed: 54 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ qt = ">=5.15.0"
5858
requests = ">=2.31.0"
5959
scipy = "*"
6060
skyfield = ">=1.12"
61-
skyfield-data = ">=6"
61+
skyfield-data = ">=7"
6262
tk = "*"
6363
unicodecsv = "*"
6464
validate_email = "*"

pyproject.toml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,40 @@
1+
[project]
2+
name = "open-mss"
3+
version = "10.1.0"
4+
description = "MSS - Mission Support System"
5+
readme = "README.md"
6+
classifiers = [
7+
"Development Status :: 5 - Production/Stable",
8+
]
9+
keywords = ["mslib"]
10+
maintainers = [
11+
{name = "Reimar Bauer", email = "rb.proj@gmail.com"},
12+
]
13+
authors = [
14+
{name = "Marc Rautenhaus", email = "wxmetvis@posteo.de"},
15+
]
16+
license = "Apache-2.0"
17+
license-files = ["LICENSE"]
18+
19+
[project.urls]
20+
Repository = "https://github.com/Open-MSS/MSS"
21+
22+
[project.scripts]
23+
mscolab = "mslib.mscolab.mscolab:main"
24+
msidp = "mslib.msidp.idp:main"
25+
mssautoplot = "mslib.utils.mssautoplot:main"
26+
mss = "mslib.msui.mss:main"
27+
mswms = "mslib.mswms.mswms:main"
28+
29+
[project.gui-scripts]
30+
msui = "mslib.msui.msui:main"
31+
132
[build-system]
2-
requires = ["setuptools >= 40.8.0", "future"]
3-
build-backend = "setuptools.build_meta:__legacy__"
33+
requires = ["setuptools >= 40.8.0"]
34+
build-backend = "setuptools.build_meta"
35+
36+
[tool.setuptools]
37+
packages = ["mslib"]
438

539
[tool.codespell]
640
exclude-file = "codespell-ignored-lines.txt"

setup.py

Lines changed: 0 additions & 67 deletions
This file was deleted.

tests/_test_utils/test_migration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from packaging import version
3030

3131
from mslib.utils import auth
32-
from mslib.version import __version__
32+
from mslib import __version__
3333
from mslib.msui.constants import MSUI_SETTINGS
3434
from tests.utils import create_msui_settings_file
3535

0 commit comments

Comments
 (0)