File tree Expand file tree Collapse file tree 7 files changed +300
-231
lines changed Expand file tree Collapse file tree 7 files changed +300
-231
lines changed Original file line number Diff line number Diff line change 11# Compiled files
2- * .py [co ]
2+ * .py [cod ]
33* .a
44* .o
55* .so
@@ -12,7 +12,6 @@ __pycache__
1212# Other generated files
1313* /version.py
1414* /cython_version.py
15- .cache
1615htmlcov
1716.coverage
1817MANIFEST
@@ -34,7 +33,6 @@ docs/_build
3433# Packages/installer info
3534* .egg
3635* .egg-info
37- .eggs
3836dist
3937build
4038eggs
@@ -47,16 +45,10 @@ develop-eggs
4745distribute- * .tar.gz
4846
4947# Other
50- . * .swp
48+ .cache
49+ .tox
50+ . * .sw [op ]
5151* ~
5252
5353# Mac OSX
5454.DS_Store
55-
56- # Eclipse
57- .settings
58- .project
59- .pydevproject
60-
61- # Pycharm
62- .idea
Original file line number Diff line number Diff line change @@ -18,9 +18,26 @@ prune build
1818prune docs/_build
1919prune docs/api
2020
21- recursive-include astropy_helpers *
22- exclude astropy_helpers/.git
23- exclude astropy_helpers/.gitignore
2421
25- global-exclude *.pyc
26- global-exclude *.o
22+ # the next few stanzas are for astropy_helpers. It's derived from the
23+ # astropy_helpers/MANIFEST.in, but requires additional includes for the actual
24+ # package directory and egg-info.
25+
26+ include astropy_helpers/README.rst
27+ include astropy_helpers/CHANGES.rst
28+ include astropy_helpers/LICENSE.rst
29+ recursive-include astropy_helpers/licenses *
30+
31+ include astropy_helpers/ez_setup.py
32+ include astropy_helpers/ah_bootstrap.py
33+
34+ recursive-include astropy_helpers/astropy_helpers *.py *.pyx *.c *.h
35+ recursive-include astropy_helpers/astropy_helpers.egg-info *
36+ # include the sphinx stuff with "*" because there are css/html/rst/etc.
37+ recursive-include astropy_helpers/astropy_helpers/sphinx *
38+
39+ prune astropy_helpers/build
40+ prune astropy_helpers/astropy_helpers/tests
41+
42+
43+ global-exclude *.pyc *.o
Original file line number Diff line number Diff line change 11# Licensed under a 3-clause BSD style license - see LICENSE.rst
2- from __future__ import print_function
32import os
43
5-
6- # This is to figure out the astroquery version, rather than using Astropy's
7- from . import version
8-
9-
104# this contains imports plugins that configure py.test for astropy tests.
115# by importing them here in conftest.py they are discoverable by py.test
126# no matter how it is invoked within the source tree.
2822 PYTEST_HEADER_MODULES ['pyregion' ] = 'pyregion'
2923 del PYTEST_HEADER_MODULES ['h5py' ]
3024 del PYTEST_HEADER_MODULES ['Scipy' ]
31- except NameError :
25+ except ( NameError , KeyError ) :
3226 pass
27+
28+ ## Uncomment the following line to treat all DeprecationWarnings as
29+ ## exceptions
30+ # enable_deprecations_as_exceptions()
31+
32+
33+ # This is to figure out the affiliated package version, rather than
34+ # using Astropy's
35+ try :
36+ from .version import version
37+ except ImportError :
38+ version = 'dev'
39+
40+ packagename = os .path .basename (os .path .dirname (__file__ ))
41+ TESTED_VERSIONS [packagename ] = version
Original file line number Diff line number Diff line change @@ -34,11 +34,11 @@ help:
3434 @echo " man to make manual pages"
3535 @echo " changes to make an overview of all changed/added/deprecated items"
3636 @echo " linkcheck to check all external links for integrity"
37- @echo " doctest to run all doctests embedded in the documentation (if enabled)"
3837
3938clean :
4039 -rm -rf $(BUILDDIR )
4140 -rm -rf api
41+ -rm -rf generated
4242
4343html :
4444 $(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) $(BUILDDIR ) /html
@@ -129,6 +129,5 @@ linkcheck:
129129 " or in $( BUILDDIR) /linkcheck/output.txt."
130130
131131doctest :
132- $(SPHINXBUILD ) -b doctest $(ALLSPHINXOPTS ) $(BUILDDIR ) /doctest
133- @echo " Testing of doctests in the sources finished, look at the " \
134- " results in $( BUILDDIR) /doctest/output.txt."
132+ @echo " Run 'python setup.py test' in the root directory to run doctests " \
133+ @echo " in the documentation."
You can’t perform that action at this time.
0 commit comments