File tree 7 files changed +307
-228
lines changed
7 files changed +307
-228
lines changed Original file line number Diff line number Diff line change 1
1
# Compiled files
2
- * .py [co ]
2
+ * .py [cod ]
3
3
* .a
4
4
* .o
5
5
* .so
6
6
__pycache__
7
- .cache
8
7
9
8
# Ignore .c files by default to avoid including generated code. If you want to
10
9
# add a non-generated .c extension, use `git add -f filename.c`.
@@ -16,6 +15,7 @@ __pycache__
16
15
htmlcov
17
16
.coverage
18
17
MANIFEST
18
+ .ipynb_checkpoints
19
19
20
20
# Sphinx
21
21
docs /api
@@ -44,11 +44,10 @@ develop-eggs
44
44
distribute- * .tar.gz
45
45
46
46
# Other
47
- . * .swp
47
+ .cache
48
+ .tox
49
+ . * .sw [op ]
48
50
* ~
49
51
50
52
# Mac OSX
51
53
.DS_Store
52
-
53
- # Ignore IPython notebook (Jupyter) checkpoints.
54
- .ipynb_checkpoints
Original file line number Diff line number Diff line change @@ -15,8 +15,26 @@ prune build
15
15
prune docs/_build
16
16
prune docs/api
17
17
18
- recursive-include astropy_helpers *
19
- exclude astropy_helpers/.git
20
- exclude astropy_helpers/.gitignore
18
+
19
+ # the next few stanzas are for astropy_helpers. It's derived from the
20
+ # astropy_helpers/MANIFEST.in, but requires additional includes for the actual
21
+ # package directory and egg-info.
22
+
23
+ include astropy_helpers/README.rst
24
+ include astropy_helpers/CHANGES.rst
25
+ include astropy_helpers/LICENSE.rst
26
+ recursive-include astropy_helpers/licenses *
27
+
28
+ include astropy_helpers/ez_setup.py
29
+ include astropy_helpers/ah_bootstrap.py
30
+
31
+ recursive-include astropy_helpers/astropy_helpers *.py *.pyx *.c *.h
32
+ recursive-include astropy_helpers/astropy_helpers.egg-info *
33
+ # include the sphinx stuff with "*" because there are css/html/rst/etc.
34
+ recursive-include astropy_helpers/astropy_helpers/sphinx *
35
+
36
+ prune astropy_helpers/build
37
+ prune astropy_helpers/astropy_helpers/tests
38
+
21
39
22
40
global-exclude *.pyc *.o
Original file line number Diff line number Diff line change 18
18
from .utils import _mock_remote_data , _unmock_remote_data
19
19
from .exceptions import AstroplanWarning
20
20
21
+ import os
22
+
23
+ # This is to figure out the affiliated package version, rather than
24
+ # using Astropy's
25
+ try :
26
+ from .version import version
27
+ except ImportError :
28
+ version = 'dev'
29
+
30
+ packagename = os .path .basename (os .path .dirname (__file__ ))
31
+ TESTED_VERSIONS [packagename ] = version
32
+
33
+
21
34
# Comment out this line to avoid deprecation warnings being raised as exceptions
22
35
enable_deprecations_as_exceptions ()
23
36
24
37
# Define list of packages for which to display version numbers in the test log
25
- PYTEST_HEADER_MODULES ['Astropy' ] = 'astropy'
26
- PYTEST_HEADER_MODULES ['pytz' ] = 'pytz'
27
- PYTEST_HEADER_MODULES ['pyephem' ] = 'pyephem'
28
- PYTEST_HEADER_MODULES ['matplotlib' ] = 'matplotlib'
29
- PYTEST_HEADER_MODULES ['nose' ] = 'nose'
30
- PYTEST_HEADER_MODULES ['pytest-mpl' ] = 'pytest_mpl'
31
- del PYTEST_HEADER_MODULES ['h5py' ]
38
+ try :
39
+ PYTEST_HEADER_MODULES ['Astropy' ] = 'astropy'
40
+ PYTEST_HEADER_MODULES ['pytz' ] = 'pytz'
41
+ PYTEST_HEADER_MODULES ['pyephem' ] = 'pyephem'
42
+ PYTEST_HEADER_MODULES ['matplotlib' ] = 'matplotlib'
43
+ PYTEST_HEADER_MODULES ['nose' ] = 'nose'
44
+ PYTEST_HEADER_MODULES ['pytest-mpl' ] = 'pytest_mpl'
45
+ del PYTEST_HEADER_MODULES ['h5py' ]
46
+ except KeyError :
47
+ pass
32
48
33
49
34
50
def pytest_configure (config ):
Original file line number Diff line number Diff line change @@ -34,11 +34,11 @@ help:
34
34
@echo " man to make manual pages"
35
35
@echo " changes to make an overview of all changed/added/deprecated items"
36
36
@echo " linkcheck to check all external links for integrity"
37
- @echo " doctest to run all doctests embedded in the documentation (if enabled)"
38
37
39
38
clean :
40
39
-rm -rf $(BUILDDIR )
41
40
-rm -rf api
41
+ -rm -rf generated
42
42
43
43
html :
44
44
$(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) $(BUILDDIR ) /html
@@ -129,6 +129,5 @@ linkcheck:
129
129
" or in $( BUILDDIR) /linkcheck/output.txt."
130
130
131
131
doctest :
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