-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #175 from sunpy/ci
updated CI and py39 tests
- Loading branch information
Showing
12 changed files
with
166 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
""" | ||
This package contains utilities that are only used when developing drms in a | ||
copy of the source repository. | ||
These files are not installed, and should not be assumed to exist at | ||
runtime. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Try to use setuptools_scm to get the current version; this is only used | ||
# in development installations from the git repository. | ||
import os.path | ||
|
||
try: | ||
from setuptools_scm import get_version | ||
|
||
version = get_version(root=os.path.join('..', '..'), relative_to=__file__) | ||
except ImportError: | ||
raise ImportError('setuptools_scm not installed') | ||
except Exception as e: | ||
raise ValueError(f'setuptools_scm broken with {e}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# NOTE: First try _dev.scm_version if it exists and setuptools_scm is installed | ||
# This file is not included in sunpy wheels/tarballs, so otherwise it will | ||
# fall back on the generated _version module. | ||
try: | ||
try: | ||
from ._dev.scm_version import version | ||
except ImportError: | ||
from ._version import version | ||
except Exception: | ||
import warnings | ||
|
||
warnings.warn( | ||
f'could not determine {__name__.split(".")[0]} package version; this indicates a broken installation' | ||
) | ||
del warnings | ||
|
||
version = '0.0.0' | ||
|
||
|
||
# We use LooseVersion to define major, minor, micro, but ignore any suffixes. | ||
def split_version(version): | ||
pieces = [0, 0, 0] | ||
|
||
try: | ||
from distutils.version import LooseVersion | ||
|
||
for j, piece in enumerate(LooseVersion(version).version[:3]): | ||
pieces[j] = int(piece) | ||
|
||
except Exception: | ||
pass | ||
|
||
return pieces | ||
|
||
|
||
major, minor, bugfix = split_version(version) | ||
|
||
del split_version # clean up namespace. | ||
|
||
release = 'dev' not in version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters