Skip to content

Commit 4cccb2c

Browse files
committed
Updating to package template 1.1.1
1 parent 4168db6 commit 4cccb2c

File tree

7 files changed

+307
-228
lines changed

7 files changed

+307
-228
lines changed

.gitignore

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# Compiled files
2-
*.py[co]
2+
*.py[cod]
33
*.a
44
*.o
55
*.so
66
__pycache__
7-
.cache
87

98
# Ignore .c files by default to avoid including generated code. If you want to
109
# add a non-generated .c extension, use `git add -f filename.c`.
@@ -16,6 +15,7 @@ __pycache__
1615
htmlcov
1716
.coverage
1817
MANIFEST
18+
.ipynb_checkpoints
1919

2020
# Sphinx
2121
docs/api
@@ -44,11 +44,10 @@ develop-eggs
4444
distribute-*.tar.gz
4545

4646
# Other
47-
.*.swp
47+
.cache
48+
.tox
49+
.*.sw[op]
4850
*~
4951

5052
# Mac OSX
5153
.DS_Store
52-
53-
# Ignore IPython notebook (Jupyter) checkpoints.
54-
.ipynb_checkpoints

MANIFEST.in

+21-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,26 @@ prune build
1515
prune docs/_build
1616
prune docs/api
1717

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+
2139

2240
global-exclude *.pyc *.o

astroplan/conftest.py

+23-7
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,33 @@
1818
from .utils import _mock_remote_data, _unmock_remote_data
1919
from .exceptions import AstroplanWarning
2020

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+
2134
# Comment out this line to avoid deprecation warnings being raised as exceptions
2235
enable_deprecations_as_exceptions()
2336

2437
# 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
3248

3349

3450
def pytest_configure(config):

docs/Makefile

+3-4
Original file line numberDiff line numberDiff 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

3938
clean:
4039
-rm -rf $(BUILDDIR)
4140
-rm -rf api
41+
-rm -rf generated
4242

4343
html:
4444
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@@ -129,6 +129,5 @@ linkcheck:
129129
"or in $(BUILDDIR)/linkcheck/output.txt."
130130

131131
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."

0 commit comments

Comments
 (0)