Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

Commit

Permalink
Merge pull request #164 from astrofrog/update-from-template-1.0
Browse files Browse the repository at this point in the history
Update to package-template 1.0
  • Loading branch information
astrofrog committed Jun 2, 2015
2 parents 5358a27 + 41186ff commit b5bb07d
Show file tree
Hide file tree
Showing 12 changed files with 51 additions and 21 deletions.
13 changes: 6 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
# The following versions are the 'default' for tests, unless
# overidden underneath. They are defined here in order to save having
# to repeat them for all configurations.
- NUMPY_VERSION=1.8
- NUMPY_VERSION=1.9
- ASTROPY_VERSION=stable
- CONDA_INSTALL='conda install -c astropy-ci-extras --yes'
- PIP_INSTALL='pip install'
Expand All @@ -21,11 +21,9 @@ env:
matrix:
include:

# Do a coverage test in Python 2. This requires the latest
# development version of Astropy, which fixes some issues with
# coverage testing in affiliated packages.
# Do a coverage test in Python 2.
- python: 2.7
env: ASTROPY_VERSION=development SETUP_CMD='test --coverage --remote-data'
env: SETUP_CMD='test --coverage --remote-data'

# Check for sphinx doc build warnings - we do this first because it
# may run for a long time
Expand All @@ -49,6 +47,8 @@ matrix:
env: SETUP_CMD='test --remote-data'

# Try older numpy versions
- python: 2.7
env: NUMPY_VERSION=1.8 SETUP_CMD='test --remote-data'
- python: 2.7
env: NUMPY_VERSION=1.7 SETUP_CMD='test --remote-data'
- python: 2.7
Expand Down Expand Up @@ -104,8 +104,7 @@ install:
# build_sphinx needs sphinx and matplotlib (for plot_directive). Note that
# this matplotlib will *not* work with py 3.x, but our sphinx build is
# currently 2.7, so that's fine
- if [[ $SETUP_CMD == build_sphinx* ]]; then $CONDA_INSTALL numpy=$NUMPY_VERSION Sphinx=1.2 matplotlib; fi
- if [[ $SETUP_CMD == build_sphinx* ]]; then $PIP_INSTALL sphinx_rtd_theme; fi
- if [[ $SETUP_CMD == build_sphinx* ]]; then $CONDA_INSTALL numpy=$NUMPY_VERSION Sphinx sphinx_rtd_theme matplotlib; fi

# COVERAGE DEPENDENCIES
- if [[ $SETUP_CMD == 'test --coverage --remote-data' ]]; then $PIP_INSTALL coverage coveralls; fi
Expand Down
6 changes: 5 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
0.4 (unreleased)
----------------

- No changes yet
- Astropy frame instances to now be passed to ``get_transform`` and ``get_coords_overlay``. [#149]

- Fixed bug that caused plotting to crash if there were no ticks on an axis.

- Fix compatibility with different versions of Matplotlib. [#153]

0.3 (2014-12-07)
----------------
Expand Down
7 changes: 4 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ include ez_setup.py
include ah_bootstrap.py
include setup.cfg

recursive-include *.pyx *.c *.pxd
recursive-include docs *
recursive-include licenses *
recursive-include cextern *
recursive-include scripts *

prune docs/_build
prune build
prune docs/_build
prune docs/api

recursive-include astropy_helpers *
exclude astropy_helpers/.git
exclude astropy_helpers/.gitignore

exclude *.pyc *.o
prune docs/api
global-exclude *.pyc *.o
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ At the moment the implementation has not be optimized for performance. Once all
the functionality is in place, and a test suite has been created, the code will
be refactored and optimized.

![Powered by Astropy Badge](http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat)

Developers and Contributors
===========================

Expand All @@ -28,9 +30,6 @@ Build and coverage status
=========================

[![Build Status](https://travis-ci.org/astrofrog/wcsaxes.png?branch=master)](https://travis-ci.org/astrofrog/wcsaxes)

[![Coverage Status](https://coveralls.io/repos/astrofrog/wcsaxes/badge.png?branch=master)](https://coveralls.io/r/astrofrog/wcsaxes?branch=master)

[![Coverage Status](https://coveralls.io/repos/astrofrog/wcsaxes/badge.svg?branch=master)](https://coveralls.io/r/astrofrog/wcsaxes?branch=master)
[![Documentation Status](https://readthedocs.org/projects/wcsaxes/badge/?version=latest)](https://readthedocs.org/projects/wcsaxes/?badge=latest)

[![asv](http://img.shields.io/badge/benchmarked%20by-asv-green.svg?style=flat)](http://astrofrog.github.io/wcsaxes-benchmarks/)
2 changes: 1 addition & 1 deletion astropy_helpers
Submodule astropy_helpers updated 50 files
+1 −0 .gitignore
+35 −14 .travis.yml
+140 −2 CHANGES.rst
+1 −1 README.rst
+646 −423 ah_bootstrap.py
+52 −0 appveyor.yml
+29 −0 astropy_helpers/__init__.py
+0 −0 astropy_helpers/commands/__init__.py
+183 −0 astropy_helpers/commands/build_ext.py
+39 −0 astropy_helpers/commands/build_py.py
+224 −0 astropy_helpers/commands/build_sphinx.py
+14 −0 astropy_helpers/commands/install.py
+14 −0 astropy_helpers/commands/install_lib.py
+53 −0 astropy_helpers/commands/register.py
+4 −0 astropy_helpers/commands/setup_package.py
+0 −0 astropy_helpers/commands/src/compiler.c
+257 −0 astropy_helpers/distutils_helpers.py
+42 −9 astropy_helpers/git_helpers.py
+169 −823 astropy_helpers/setup_helpers.py
+4 −0 astropy_helpers/sphinx/conf.py
+17 −2 astropy_helpers/sphinx/ext/astropyautosummary.py
+59 −0 astropy_helpers/sphinx/ext/autodoc_enhancements.py
+21 −7 astropy_helpers/sphinx/ext/automodapi.py
+38 −14 astropy_helpers/sphinx/ext/automodsumm.py
+56 −0 astropy_helpers/sphinx/ext/tests/test_autodoc_enhancements.py
+6 −7 astropy_helpers/sphinx/ext/tests/test_automodapi.py
+4 −3 astropy_helpers/sphinx/ext/tests/test_automodsumm.py
+4 −3 astropy_helpers/sphinx/ext/viewcode.py
+ astropy_helpers/sphinx/local/python3links.inv
+7 −0 astropy_helpers/sphinx/local/python3links.txt
+75 −0 astropy_helpers/sphinx/themes/bootstrap-astropy/static/astropy_linkout.svg
+ astropy_helpers/sphinx/themes/bootstrap-astropy/static/astropy_logo.ico
+87 −0 astropy_helpers/sphinx/themes/bootstrap-astropy/static/astropy_logo.svg
+4 −0 astropy_helpers/sphinx/themes/bootstrap-astropy/static/bootstrap-astropy.css
+0 −2 astropy_helpers/src/setup_package.py
+135 −92 astropy_helpers/test_helpers.py
+36 −0 astropy_helpers/tests/__init__.py
+14 −5 astropy_helpers/tests/test_ah_bootstrap.py
+85 −26 astropy_helpers/tests/test_git_helpers.py
+187 −58 astropy_helpers/tests/test_setup_helpers.py
+496 −5 astropy_helpers/utils.py
+150 −56 astropy_helpers/version_helpers.py
+71 −0 continuous-integration/appveyor/install-miniconda.ps1
+47 −0 continuous-integration/appveyor/windows_sdk.cmd
+7 −0 continuous-integration/travis/install_conda_linux.sh
+7 −0 continuous-integration/travis/install_conda_osx.sh
+4 −0 continuous-integration/travis/install_graphviz_linux.sh
+4 −0 continuous-integration/travis/install_graphviz_osx.sh
+5 −2 setup.py
+7 −2 tox.ini
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
## -- Options for the edit_on_github extension ----------------------------------------

if eval(setup_cfg.get('edit_on_github')):
extensions += ['astropy.sphinx.ext.edit_on_github']
extensions += ['astropy_helpers.sphinx.ext.edit_on_github']

versionmod = __import__(setup_cfg['package_name'] + '.version')
edit_on_github_project = setup_cfg['github_project']
Expand Down
2 changes: 1 addition & 1 deletion docs/slicing_datacubes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ information. The original FITS file can be downloaded from `here
This is a three-dimensional dataset which you can check by looking at the
header information by::

>>> hdu.header
>>> hdu.header # doctest: +SKIP
...
NAXIS = 3 /number of axes
CTYPE1 = 'RA---SFL' /
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ show-response = 1
[pytest]
minversion = 2.2
norecursedirs = build docs/_build
doctest_plus = enabled

[ah_bootstrap]
auto_use = True
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ def set_args(self, args):
description=DESCRIPTION,
scripts=scripts,
install_requires=['astropy', 'matplotlib'],
provides=[PACKAGENAME],
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license=LICENSE,
Expand Down
4 changes: 2 additions & 2 deletions wcsaxes/_astropy_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ def test(package=None, test_path=None, args=None, plugins=None, verbose=False,
open_files : bool, optional
Fail when any tests leave files open. Off by default, because
this adds extra run time to the test suite. Works only on
platforms with a working ``lsof`` command.
this adds extra run time to the test suite. Requires the
`psutil <https://pypi.python.org/pypi/psutil>`_ package.
parallel : int, optional
When provided, run the tests in parallel on the specified
Expand Down
24 changes: 24 additions & 0 deletions wcsaxes/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,27 @@ def pytest_addoption(parser):
@pytest.fixture
def generate(request):
return request.config.getoption("--generate-images-path")


# Uncomment and customize the following lines to add/remove entries
# from the list of packages for which version numbers are displayed
# when running the tests
try:
PYTEST_HEADER_MODULES['Astropy'] = 'astropy'
except NameError: # needed to support Astropy < 1.0
pass

# Uncomment the following lines to display the version number of the
# package rather than the version number of Astropy in the top line when
# running the tests.
import os

# This is to figure out the affiliated package version, rather than
# using Astropy's
from . import version

try:
packagename = os.path.basename(os.path.dirname(__file__))
TESTED_VERSIONS[packagename] = version.version
except NameError: # Needed to support Astropy <= 1.0.0
pass
3 changes: 3 additions & 0 deletions wcsaxes/wcs_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@

import numpy as np

__doctest_skip__ = ['wcs_to_celestial_frame']


def _wcs_to_celestial_frame_builtin(wcs):

from astropy.coordinates import FK4, FK4NoETerms, FK5, ICRS, Galactic
Expand Down

0 comments on commit b5bb07d

Please sign in to comment.