From 28fc01a09abca3f82b20c8706d0ad7b0de595396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Deuchnord?= Date: Sun, 14 Mar 2021 16:54:42 +0100 Subject: [PATCH] Remove version.py (replaced with standard __version__.py) --- kosmorrolib/__init__.py | 3 ++- kosmorrolib/__version__.py | 9 ++++++++ kosmorrolib/version.py | 46 -------------------------------------- 3 files changed, 11 insertions(+), 47 deletions(-) create mode 100644 kosmorrolib/__version__.py delete mode 100644 kosmorrolib/version.py diff --git a/kosmorrolib/__init__.py b/kosmorrolib/__init__.py index 648d1f4..0522039 100644 --- a/kosmorrolib/__init__.py +++ b/kosmorrolib/__init__.py @@ -16,6 +16,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -from .version import MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION, VERSION +import __version__ + from .ephemerides import get_ephemerides from .events import get_events diff --git a/kosmorrolib/__version__.py b/kosmorrolib/__version__.py new file mode 100644 index 0000000..fff308b --- /dev/null +++ b/kosmorrolib/__version__.py @@ -0,0 +1,9 @@ +__title__ = 'kosmorrolib' +__description__ = 'A library that computes your ephemerides' +__url__ = 'http://kosmorro.space' +__version__ = '0.9.0' +__build__ = 0x000900 +__author__ = 'Jérôme Deuchnord' +__author_email__ = 'jerome@deuchnord.fr' +__license__ = 'AGPL' +__copyright__ = 'Copyright 2021 Jérôme Deuchnord' diff --git a/kosmorrolib/version.py b/kosmorrolib/version.py deleted file mode 100644 index 30c07e3..0000000 --- a/kosmorrolib/version.py +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env python3 - -# Kosmorro - Compute The Next Ephemerides -# Copyright (C) 2019 Jérôme Deuchnord -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . - -""" -Kosmorrolib's versioning follows the `Semantic Versioning `_ standard, -meaning that: - -* the versions always follow the X.Y.Z format, where X, Y and Z are natural numbers. -* the major version (X) never changes unless a change breaks compatibility (any breaking compatibility change in the - same major version is considered as a bug) -* the minor version (Y) never changes unless new features are introduced -* the patch version (Z) never changes unless there are bug fixes -""" - -MAJOR_VERSION = 0 -"""The major version of the library""" - -MINOR_VERSION = 9 -"""The minor version of the library""" - -PATCH_VERSION = 0 -"""The patch version of the library""" - -VERSION = '%d.%d.%d' % (MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION) -""" -The library version in a readable for human beings format. -Useful for instance, if you want to display it to the end user. - -If you need to check the version in your program, you should prefer using the MAJOR_VERSION, MINOR_MINOR_VERSION and -PATCH_VERSION constants instead. -"""