Commit 7ea08d0f authored by Jason R. Coombs's avatar Jason R. Coombs

Merge branch 'move-tests' into 'master'

Move tests and docs directories outside of source directory

See merge request !126
parents 46efbf9d 30b11308
Pipeline #193203912 passed with stages
in 11 minutes and 8 seconds
......@@ -22,16 +22,7 @@ install_requires =
pathlib2; python_version < '3'
contextlib2; python_version < '3'
configparser>=3.5; python_version < '3'
packages = find:
[options.package_data]
* = *.zip, *.file, *.txt, *.toml
importlib_metadata =
docs/*
docs/_static/*
importlib_metadata.tests.data =
*.egg
*.whl
packages = importlib_metadata
[mypy]
ignore_missing_imports = True
......@@ -42,12 +33,6 @@ ignore_missing_imports = True
# that package.__spec__ is not None.
strict_optional = False
[mypy-importlib_metadata.docs.*]
ignore_errors: True
[mypy-importlib_metadata.tests.*]
ignore_errors: True
[wheel]
universal=1
......
......@@ -7,7 +7,7 @@ import tempfile
import textwrap
import test.support
from .._compat import pathlib, contextlib
from importlib_metadata._compat import pathlib, contextlib
__metaclass__ = type
......
......@@ -3,7 +3,7 @@ import textwrap
import unittest
from . import fixtures
from .. import (
from importlib_metadata import (
Distribution, PackageNotFoundError, distribution,
entry_points, files, metadata, requires, version,
)
......
......@@ -7,7 +7,7 @@ import packaging.requirements
import packaging.version
from . import fixtures
from .. import (
from importlib_metadata import (
Distribution,
_compat,
version,
......
......@@ -11,7 +11,7 @@ import importlib_metadata
import pyfakefs.fake_filesystem_unittest as ffs
from . import fixtures
from .. import (
from importlib_metadata import (
Distribution, EntryPoint, MetadataPathFinder,
PackageNotFoundError, distributions,
entry_points, metadata, version,
......
import sys
import unittest
from .. import (
from importlib_metadata import (
distribution, entry_points, files, PackageNotFoundError,
version, distributions,
)
......@@ -20,7 +20,7 @@ except ImportError:
class TestZip(unittest.TestCase):
root = 'importlib_metadata.tests.data'
root = 'tests.data'
def _fixture_on_path(self, filename):
pkg_file = resources.files(self.root).joinpath(filename)
......
......@@ -55,7 +55,7 @@ extras =
[testenv:docs]
basepython = python3
commands =
sphinx-build importlib_metadata/docs build/sphinx/html
sphinx-build docs build/sphinx/html
extras =
docs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment