Browse Source

Remove version.py (replaced with standard __version__.py)

tags/v0.10.0
Jérôme Deuchnord 3 years ago
parent
commit
28fc01a09a
3 changed files with 11 additions and 47 deletions
  1. +2
    -1
      kosmorrolib/__init__.py
  2. +9
    -0
      kosmorrolib/__version__.py
  3. +0
    -46
      kosmorrolib/version.py

+ 2
- 1
kosmorrolib/__init__.py View File

@@ -16,6 +16,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

from .version import MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION, VERSION
import __version__

from .ephemerides import get_ephemerides
from .events import get_events

+ 9
- 0
kosmorrolib/__version__.py View File

@@ -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'

+ 0
- 46
kosmorrolib/version.py View File

@@ -1,46 +0,0 @@
#!/usr/bin/env python3

# Kosmorro - Compute The Next Ephemerides
# Copyright (C) 2019 Jérôme Deuchnord <jerome@deuchnord.fr>
#
# 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 <https://www.gnu.org/licenses/>.

"""
Kosmorrolib's versioning follows the `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_ 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.
"""

Loading…
Cancel
Save