Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions MANIFEST.in

This file was deleted.

35 changes: 35 additions & 0 deletions ccdproc/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst

# 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.

try:
# When the pytest_astropy_header package is installed
from pytest_astropy_header.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS

def pytest_configure(config):
config.option.astropy_header = True

except ImportError:
PYTEST_HEADER_MODULES = {}
TESTED_VERSIONS = {}


from .tests.pytest_fixtures import (
triage_setup, # noqa: F401 this is used in tests
)

# This is to figure out ccdproc version, rather than using Astropy's
try:
from ccdproc import __version__ as version
except ImportError:
version = "dev"

TESTED_VERSIONS["ccdproc"] = version

# Add astropy to test header information and remove unused packages.
PYTEST_HEADER_MODULES["Astropy"] = "astropy"
PYTEST_HEADER_MODULES["astroscrappy"] = "astroscrappy"
PYTEST_HEADER_MODULES["reproject"] = "reproject"
PYTEST_HEADER_MODULES.pop("h5py", None)
5 changes: 0 additions & 5 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ def pytest_configure(config):
PYTEST_HEADER_MODULES = {}
TESTED_VERSIONS = {}


from ccdproc.tests.pytest_fixtures import (
triage_setup, # noqa: F401 this is used in tests
)

# This is to figure out ccdproc version, rather than using Astropy's
try:
from ccdproc import __version__ as version
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ version-file = "ccdproc/_version.py"
[tool.hatch.build.targets.sdist]
include = [
"/ccdproc",
"/docs",
"/licenses",
]

[tool.black]
Expand All @@ -72,6 +74,8 @@ extend-exclude = '''
"*/ccdproc/*setup*",
"*/ccdproc/*/tests/*",
"*/ccdproc/tests/*",
"*/conftest.py",
"*/ccdproc/conftest.py"
]

[tool.coverage.report]
Expand Down