Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: Move version constant to its own file to prevent sgp4 module fai…
…ling in the AUR
  • Loading branch information
Jérôme Deuchnord committed Nov 17, 2019
1 parent 049d034 commit 9a0c9d3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
1 change: 0 additions & 1 deletion kosmorrolib/core.py
Expand Up @@ -22,7 +22,6 @@

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']
Expand Down
19 changes: 19 additions & 0 deletions kosmorrolib/version.py
@@ -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'
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -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()
Expand Down

0 comments on commit 9a0c9d3

Please sign in to comment.