-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update package infrastructure to follow APE 17 guidelines
- Loading branch information
Showing
12 changed files
with
193 additions
and
167 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,5 +59,6 @@ distribute-*.tar.gz | |
# Mac OSX | ||
.DS_Store | ||
|
||
*.fits | ||
.coverage* | ||
|
||
pip-wheel-metadata/ |
File renamed without changes.
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
[build-system] | ||
requires = ["setuptools", | ||
"setuptools_scm", | ||
"wheel", | ||
"numpy==1.13.3; python_version=='3.5'", | ||
"numpy==1.13.3; python_version=='3.6'", | ||
"numpy==1.14.5; python_version=='3.7'", | ||
"numpy==1.17.3; python_version>='3.8'", | ||
"Cython"] | ||
"extension-helpers", | ||
"oldest-supported-numpy", | ||
"cython==0.29.14"] | ||
build-backend = 'setuptools.build_meta' |
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 |
---|---|---|
@@ -1,23 +1,32 @@ | ||
# This file is used to configure the behavior of pytest when using the Astropy | ||
# test infrastructure. | ||
import os | ||
# test infrastructure. It needs to live inside the package in order for it to | ||
# get picked up when running the tests inside an interpreter using | ||
# packagename.test | ||
|
||
from astropy.tests.plugins.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS | ||
import os | ||
|
||
from .version import astropy_helpers_version, version # noqa | ||
try: | ||
from pytest_astropy_header.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS | ||
ASTROPY_HEADER = True | ||
except ImportError: | ||
ASTROPY_HEADER = False | ||
|
||
os.environ['MPLBACKEND'] = 'Agg' | ||
|
||
# from astropy.tests.helper import enable_deprecations_as_exceptions | ||
# enable_deprecations_as_exceptions() | ||
|
||
PYTEST_HEADER_MODULES['Astropy'] = 'astropy' | ||
PYTEST_HEADER_MODULES['astropy-healpix'] = 'astropy_healpix' | ||
PYTEST_HEADER_MODULES['Cython'] = 'cython' | ||
del PYTEST_HEADER_MODULES['h5py'] | ||
del PYTEST_HEADER_MODULES['Matplotlib'] | ||
def pytest_configure(config): | ||
|
||
if ASTROPY_HEADER: | ||
|
||
config.option.astropy_header = True | ||
|
||
PYTEST_HEADER_MODULES.pop('Pandas', None) | ||
PYTEST_HEADER_MODULES.pop('h5py', None) | ||
PYTEST_HEADER_MODULES.pop('Matplotlib', None) | ||
PYTEST_HEADER_MODULES['Astropy'] = 'astropy' | ||
PYTEST_HEADER_MODULES['astropy-healpix'] = 'astropy_healpix' | ||
PYTEST_HEADER_MODULES['Cython'] = 'cython' | ||
|
||
packagename = os.path.basename(os.path.dirname(__file__)) | ||
TESTED_VERSIONS[packagename] = version | ||
TESTED_VERSIONS['astropy_helpers'] = astropy_helpers_version | ||
from . import __version__ | ||
packagename = os.path.basename(os.path.dirname(__file__)) | ||
TESTED_VERSIONS[packagename] = __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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
[metadata] | ||
package_name = reproject | ||
description = Reproject astronomical images | ||
long_description = file: README.rst | ||
name = reproject | ||
author = Thomas Robitaille, Christoph Deil, Adam Ginsburg | ||
author_email = [email protected] | ||
license = BSD | ||
author_email = [email protected] | ||
license = BSD 3-Clause | ||
license_file = LICENSE | ||
url = https://reproject.readthedocs.io | ||
description = Reproject astronomical images | ||
long_description = file: README.rst | ||
long_description_content_type = text/x-rst | ||
edit_on_github = False | ||
github_project = astropy/reproject | ||
version = 0.6 | ||
name = reproject | ||
|
||
[options] | ||
zip_safe = False | ||
packages = find: | ||
python_requires = >=3.5 | ||
setup_requires = numpy>=1.13 | ||
python_requires = >=3.6 | ||
setup_requires = setuptools_scm | ||
install_requires = | ||
numpy>=1.13 | ||
astropy>=3.2 | ||
|
@@ -43,27 +43,49 @@ reproject.adaptive.tests = reference/* | |
reproject.interpolation.tests = reference/* | ||
reproject.mosaicking.tests = reference/* | ||
reproject.spherical_intersect = overlapArea.h, reproject_slice_c.h, mNaN.h | ||
reproject.tests = coveragerc, data/* | ||
|
||
[build_sphinx] | ||
source-dir = docs | ||
build-dir = docs/_build | ||
all_files = 1 | ||
|
||
[upload_docs] | ||
upload-dir = docs/_build/html | ||
show-response = 1 | ||
reproject.tests = data/* | ||
|
||
[tool:pytest] | ||
minversion = 3.1 | ||
testpaths = "reproject" "docs" | ||
norecursedirs = build docs/_build | ||
astropy_header = true | ||
doctest_plus = enabled | ||
addopts = --arraydiff --arraydiff-default-format=fits | ||
text_file_format = rst | ||
addopts = --doctest-rst --arraydiff --arraydiff-default-format=fits | ||
|
||
[ah_bootstrap] | ||
auto_use = True | ||
[coverage:run] | ||
omit = | ||
reproject/_astropy_init* | ||
reproject/conftest.py | ||
reproject/*setup_package* | ||
reproject/tests/* | ||
reproject/*/tests/* | ||
reproject/extern/* | ||
reproject/version* | ||
*/reproject/_astropy_init* | ||
*/reproject/conftest.py | ||
*/reproject/*setup_package* | ||
*/reproject/tests/* | ||
*/reproject/*/tests/* | ||
*/reproject/extern/* | ||
*/reproject/version* | ||
|
||
[entry_points] | ||
[coverage:report] | ||
exclude_lines = | ||
# Have to re-enable the standard pragma | ||
pragma: no cover | ||
# Don't complain about packages we have installed | ||
except ImportError | ||
# Don't complain if tests don't hit assertions | ||
raise AssertionError | ||
raise NotImplementedError | ||
# Don't complain about script hooks | ||
def main\(.*\): | ||
# Ignore branches that don't pertain to this version of Python | ||
pragma: py{ignore_python_version} | ||
# Don't complain about IPython completion helper | ||
def _ipython_key_completions_ | ||
|
||
[isort] | ||
line_length = 100 | ||
|
Oops, something went wrong.