Skip to content

Commit

Permalink
Merge pull request #152 from pllim/exterminate
Browse files Browse the repository at this point in the history
WIP: stginga cleanup
  • Loading branch information
pllim authored Feb 23, 2018
2 parents cc4823d + 60a73b4 commit 07f514c
Show file tree
Hide file tree
Showing 45 changed files with 485 additions and 752 deletions.
31 changes: 14 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: python

python:
- 2.7
- 3.5
- 3.6

# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false
Expand Down Expand Up @@ -33,7 +33,7 @@ env:
# For this package-template, we include examples of Cython modules,
# so Cython is required for testing. If your package does not include
# Cython code, you can set CONDA_DEPENDENCIES=''
- CONDA_DEPENDENCIES=''
- CONDA_DEPENDENCIES='numpy scipy astropy ginga'

# If there are matplotlib or other GUI tests, uncomment the following
# line to use the X virtual framebuffer.
Expand All @@ -42,32 +42,29 @@ env:
matrix:
# Make sure that egg_info works without dependencies
- SETUP_CMD='egg_info'
# DISABLED UNTIL WE HAVE REAL TESTS
# Try all python versions with the latest numpy
#- SETUP_CMD='test'
# Run actual tests
- SETUP_CMD='test'

matrix:
include:

# DISABLED FOR NOW
# Do a coverage test in Python 3.
#- python: 3.5
# env: SETUP_CMD='test --coverage'

# Check for sphinx doc build warnings - we do this first because it
# may run for a long time
- python: 3.5
- python: 3.6
env: SETUP_CMD='build_docs -w'
PIP_DEPENDENCIES='ginga pandoc nbconvert tornado scipy'

# DISABLED FOR NOW
# Try Astropy development version
# Do a coverage test in Python 3.
#- python: 3.6
# env: ASTROPY_VERSION=development
# env: SETUP_CMD='test --coverage'

# Try Astropy development version
- python: 3.6
env: ASTROPY_VERSION=development

# Do a PEP8 test with pycodestyle
- python: 3.5
env: MAIN_CMD='pycodestyle stginga --count' SETUP_CMD=''
# Do a PEP8 test with flake8
- python: 3.6
env: MAIN_CMD='flake8 stginga --count' SETUP_CMD=''

install:

Expand Down
19 changes: 15 additions & 4 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
0.3 (unreleased)
----------------

This is the last release to support Python 2.

New Features
^^^^^^^^^^^^
- Use new notification system for ChangeHistory that will go with Ginga 2.7.
- Use new notification system for ``ChangeHistory`` that goes with Ginga 2.7.
[#147,#149,ejeschke/ginga#621]
- Added example to auto-start MultiDim in ginga_config.py. [#144]
- Added example to auto-start ``MultiDim`` in ``ginga_config.py``. [#144]

API changes
^^^^^^^^^^^
- ``MIPick``, ``MultiImage``, and ``Smoothing`` plugins are moved to
"experimental" folder. So is the custom layout that goes with ``MultiImage``
and ``MIPick``. These are no longer actively supported. [#152]
- ``WBrowser`` now supports docstring rendering while offline when Internet
connection is unavalable. [#152]

Bug fixes
^^^^^^^^^
- Use toolkit-agnostic treeview deselection for MosaicAuto. [#142]
- Use toolkit-agnostic treeview deselection for ``MosaicAuto``. [#142]

Other Changes and Additions
^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Updated astropy-helpers to v2.0.2.
- Updated ``astropy-helpers`` to v2.0.4. [#152]
- Deprecated Jupyter notebook support is removed. [#152]

0.2.1 (2017-07-20)
------------------
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ recursive-include docs *
recursive-include licenses *
recursive-include cextern *
recursive-include scripts *
recursive-include experimental *

prune build
prune docs/_build
Expand Down
15 changes: 9 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
stginga
=======

.. image:: http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat
:target: http://www.astropy.org
:alt: Powered by Astropy Badge
.. image:: https://readthedocs.org/projects/stginga/badge/?version=latest
:target: https://stginga.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

.. image:: https://travis-ci.org/spacetelescope/stginga.svg?branch=master
:target: https://travis-ci.org/spacetelescope/stginga
:alt: Travis CI results

.. image:: https://readthedocs.org/projects/stginga/badge/?version=latest
:target: https://stginga.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://ci.appveyor.com/api/projects/status/ulg6cmh15xpyyvp5?svg=true
:target: https://ci.appveyor.com/project/pllim/stginga
:alt: Appveyor CI results

.. image:: http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat
:target: http://www.astropy.org
:alt: Powered by Astropy Badge

`Ginga <https://github.com/ejeschke/ginga>`_ products specific to STScI data
analysis.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ environment:
# so Cython is required for testing. If your package does not include
# Cython code, you can set CONDA_DEPENDENCIES=''
#CONDA_DEPENDENCIES: "Cython"
CONDA_DEPENDENCIES: ""
CONDA_DEPENDENCIES: "numpy scipy astropy ginga"

matrix:

Expand Down
2 changes: 0 additions & 2 deletions docs/_templates/autosummary/base.rst

This file was deleted.

2 changes: 0 additions & 2 deletions docs/_templates/autosummary/class.rst

This file was deleted.

2 changes: 0 additions & 2 deletions docs/_templates/autosummary/module.rst

This file was deleted.

39 changes: 0 additions & 39 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,42 +173,3 @@

edit_on_github_source_root = ""
edit_on_github_doc_root = "docs"

# -- Extra stuff specific to stginga -------------------------------------------

# a simple/non-configurable extension that generates the rst files for ipython
# notebooks
def notebooks_to_rst(app):
from glob import glob

# post "big-split", nbconvert is a separate namespace
from nbconvert.nbconvertapp import NbConvertApp
from nbconvert.writers import FilesWriter

class OrphanizerWriter(FilesWriter):
def write(self, output, resources, **kwargs):
output = ':orphan:\n\n' + output
FilesWriter.write(self, output, resources, **kwargs)

olddir = os.path.abspath(os.curdir)
try:
srcdir = os.path.abspath(os.path.split(__file__)[0])
os.chdir(os.path.join(srcdir, 'stginga', 'notebooks'))
nbs = glob('*.ipynb')

app = NbConvertApp()
app.initialize(argv=[])
app.writer = OrphanizerWriter()

app.export_format = 'rst'
app.notebooks = nbs

app.start()
except:
pass
finally:
os.chdir(olddir)


def setup(app):
app.connect('builder-inited', notebooks_to_rst)
1 change: 0 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ Using ``stginga``

stginga/run
stginga/plugins_manual/index
stginga/ipynb
stginga/ref_api
9 changes: 2 additions & 7 deletions docs/rtd-pip-requirements
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
numpy
matplotlib
Cython
scipy>=0.18
astropy-helpers
astropy
tornado
jupyter_client
nbconvert
ginga>=2.6.2
astropy>=2
ginga>=2.7
22 changes: 13 additions & 9 deletions docs/stginga/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,20 @@ Installation

``stginga`` requires:

* Astropy 1.1 or later.
* SciPy 0.16 or later.
* Ginga 2.6 or later, available from
* Astropy 2.0 or later.
* SciPy 0.18 or later.
* Ginga 2.7 or later, available from
`Ginga's GitHub page <https://github.com/ejeschke/ginga/>`_.
* The latest version of ``stginga`` available from
`stginga's GitHub page <https://github.com/spacetelescope/stginga>`_.

We suggest using `Anaconda <https://www.continuum.io/downloads>`_ as a
Python distribution that is known to work with ``stginga``.
We suggest using `Anaconda <https://www.continuum.io/downloads>`_ as a
Python distribution that is known to work with ``stginga``::

To install ``stginga`` from source::
conda install stginga -c http://ssb.stsci.edu/astroconda

python setup.py install [--prefix=/my/install/path]
Alternately, ``stginga`` 0.3 and beyond is also available on PyPI::

pip install stginga

If you wish to install the development version instead::

pip install git+https://github.com/spacetelescope/stginga.git@master
26 changes: 0 additions & 26 deletions docs/stginga/ipynb.rst

This file was deleted.

Loading

0 comments on commit 07f514c

Please sign in to comment.