Skip to content

Commit

Permalink
Updating to package template 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bsipocz committed Jun 4, 2016
1 parent 17ef78e commit 78c1435
Show file tree
Hide file tree
Showing 7 changed files with 300 additions and 231 deletions.
16 changes: 4 additions & 12 deletions .gitignore
@@ -1,5 +1,5 @@
# Compiled files
*.py[co]
*.py[cod]
*.a
*.o
*.so
Expand All @@ -12,7 +12,6 @@ __pycache__
# Other generated files
*/version.py
*/cython_version.py
.cache
htmlcov
.coverage
MANIFEST
Expand All @@ -34,7 +33,6 @@ docs/_build
# Packages/installer info
*.egg
*.egg-info
.eggs
dist
build
eggs
Expand All @@ -47,16 +45,10 @@ develop-eggs
distribute-*.tar.gz

# Other
.*.swp
.cache
.tox
.*.sw[op]
*~

# Mac OSX
.DS_Store

# Eclipse
.settings
.project
.pydevproject

# Pycharm
.idea
27 changes: 22 additions & 5 deletions MANIFEST.in
Expand Up @@ -18,9 +18,26 @@ prune build
prune docs/_build
prune docs/api

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

global-exclude *.pyc
global-exclude *.o
# the next few stanzas are for astropy_helpers. It's derived from the
# astropy_helpers/MANIFEST.in, but requires additional includes for the actual
# package directory and egg-info.

include astropy_helpers/README.rst
include astropy_helpers/CHANGES.rst
include astropy_helpers/LICENSE.rst
recursive-include astropy_helpers/licenses *

include astropy_helpers/ez_setup.py
include astropy_helpers/ah_bootstrap.py

recursive-include astropy_helpers/astropy_helpers *.py *.pyx *.c *.h
recursive-include astropy_helpers/astropy_helpers.egg-info *
# include the sphinx stuff with "*" because there are css/html/rst/etc.
recursive-include astropy_helpers/astropy_helpers/sphinx *

prune astropy_helpers/build
prune astropy_helpers/astropy_helpers/tests


global-exclude *.pyc *.o
23 changes: 16 additions & 7 deletions astroquery/conftest.py
@@ -1,12 +1,6 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import print_function
import os


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


# this contains imports plugins that configure py.test for astropy tests.
# by importing them here in conftest.py they are discoverable by py.test
# no matter how it is invoked within the source tree.
Expand All @@ -28,5 +22,20 @@
PYTEST_HEADER_MODULES['pyregion'] = 'pyregion'
del PYTEST_HEADER_MODULES['h5py']
del PYTEST_HEADER_MODULES['Scipy']
except NameError:
except (NameError, KeyError):
pass

## Uncomment the following line to treat all DeprecationWarnings as
## exceptions
# enable_deprecations_as_exceptions()


# This is to figure out the affiliated package version, rather than
# using Astropy's
try:
from .version import version
except ImportError:
version = 'dev'

packagename = os.path.basename(os.path.dirname(__file__))
TESTED_VERSIONS[packagename] = version
7 changes: 3 additions & 4 deletions docs/Makefile
Expand Up @@ -34,11 +34,11 @@ help:
@echo " man to make manual pages"
@echo " changes to make an overview of all changed/added/deprecated items"
@echo " linkcheck to check all external links for integrity"
@echo " doctest to run all doctests embedded in the documentation (if enabled)"

clean:
-rm -rf $(BUILDDIR)
-rm -rf api
-rm -rf generated

html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
Expand Down Expand Up @@ -129,6 +129,5 @@ linkcheck:
"or in $(BUILDDIR)/linkcheck/output.txt."

doctest:
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."
@echo "Run 'python setup.py test' in the root directory to run doctests " \
@echo "in the documentation."

0 comments on commit 78c1435

Please sign in to comment.