diff --git a/.circleci/run-tests.sh b/.circleci/run-tests.sh index 3b77b2c02..4a65bb7e2 100755 --- a/.circleci/run-tests.sh +++ b/.circleci/run-tests.sh @@ -85,9 +85,11 @@ process_eliot_logs() { trap 'process_eliot_logs' EXIT +# Skip install here, as we've already done it in setup-virtualenv.sh ${TIMEOUT} "${BOOTSTRAP_VENV}"/bin/tox \ -c "${PROJECT_ROOT}"/tox.ini \ --workdir /tmp/magic-folder.tox \ + --skip-pkg-install \ -e "${MAGIC_FOLDER_TOX_ENVIRONMENT}" \ ${MAGIC_FOLDER_TOX_ARGS} || "${alternative}" diff --git a/towncrier.toml b/pyproject.toml similarity index 96% rename from towncrier.toml rename to pyproject.toml index 5c627077b..7a193fec2 100644 --- a/towncrier.toml +++ b/pyproject.toml @@ -1,3 +1,6 @@ +[build-system] +requires = ["setuptools<45", "wheel"] + [tool.towncrier] package_dir = "src" package = "magic_folder" diff --git a/setup.py b/setup.py index 821992efa..9b89b6eea 100644 --- a/setup.py +++ b/setup.py @@ -32,10 +32,6 @@ def load_requirements(filename): install_requires = load_requirements("base.in") test_requires = load_requirements("test.in") -setup_requires = [ - 'setuptools >= 28.8.0, <45', # for PEP-440 style versions -] - from setuptools import find_packages, setup from setuptools import Command @@ -103,7 +99,6 @@ def run(self): package_data={"magic_folder": ["ported-modules.txt"], }, include_package_data=True, - setup_requires=setup_requires, entry_points={ "console_scripts": [ "magic-folder = magic_folder.cli:_entry", diff --git a/tox.ini b/tox.ini index 5530b8644..ffe503ae0 100644 --- a/tox.ini +++ b/tox.ini @@ -16,6 +16,7 @@ passenv = MAGIC_FOLDER_* PIP_* SUBUNITREPORTER_* USERPROFILE HOMEDRIVE HOMEPATH deps = -r requirements/tox.txt +isolated_build = True # We add usedevelop=False because testing against a true installation gives # more useful results. usedevelop = False