Browse Source

fix: Move version constant to its own file to prevent sgp4 module failing in the AUR

tags/v0.2.1
Jérôme Deuchnord 4 years ago
parent
commit
9a0c9d3ae3
No known key found for this signature in database GPG Key ID: BC6F3C345B7D33B0
3 changed files with 20 additions and 2 deletions
  1. +0
    -1
      kosmorrolib/core.py
  2. +19
    -0
      kosmorrolib/version.py
  3. +1
    -1
      setup.py

+ 0
- 1
kosmorrolib/core.py View File

@@ -22,7 +22,6 @@ from skyfield.api import Loader

from .data import Star, Planet, Satellite

VERSION = '0.2.0'
CACHE_FOLDER = str(Path.home()) + '/.kosmorro-cache'

MONTHS = ['JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', 'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC']


+ 19
- 0
kosmorrolib/version.py View File

@@ -0,0 +1,19 @@
#!/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/>.

VERSION = '0.2.0'

+ 1
- 1
setup.py View File

@@ -19,7 +19,7 @@
import pathlib
from setuptools import setup, find_packages

from kosmorrolib.core import VERSION
from kosmorrolib.version import VERSION

HERE = pathlib.Path(__file__).parent
README = (HERE / 'README.md').read_text()


Loading…
Cancel
Save