diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fee27db..992c356 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,6 +36,10 @@ "name": "Integration tests", "run": "pytest --nbval-lax --nbval-current-env Example.ipynb tests/Test*.ipynb" }, + { + "name": "Build package", + "run": "python -m build" + }, { "name": "Publish package distributions to PyPI", "uses": "pypa/gh-action-pypi-publish@release/v1" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 84f918b..8cdd99f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,8 +10,7 @@ "ready_for_review", "synchronize" ] - }, - "push": {} + } }, "jobs": { "build": { diff --git a/poetry.lock b/poetry.lock index f98b7ca..aa09c55 100644 --- a/poetry.lock +++ b/poetry.lock @@ -99,6 +99,31 @@ d = ["aiohttp (>=3.7.4)"] jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"] uvloop = ["uvloop (>=0.15.2)"] +[[package]] +name = "build" +version = "0.10.0" +description = "A simple, correct Python build frontend" +category = "dev" +optional = false +python-versions = ">= 3.7" +files = [ + {file = "build-0.10.0-py3-none-any.whl", hash = "sha256:af266720050a66c893a6096a2f410989eeac74ff9a68ba194b3f6473e8e26171"}, + {file = "build-0.10.0.tar.gz", hash = "sha256:d5b71264afdb5951d6704482aac78de887c80691c52b88a9ad195983ca2c9269"}, +] + +[package.dependencies] +colorama = {version = "*", markers = "os_name == \"nt\""} +importlib-metadata = {version = ">=0.22", markers = "python_version < \"3.8\""} +packaging = ">=19.0" +pyproject_hooks = "*" +tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} + +[package.extras] +docs = ["furo (>=2021.08.31)", "sphinx (>=4.0,<5.0)", "sphinx-argparse-cli (>=1.5)", "sphinx-autodoc-typehints (>=1.10)"] +test = ["filelock (>=3)", "pytest (>=6.2.4)", "pytest-cov (>=2.12)", "pytest-mock (>=2)", "pytest-rerunfailures (>=9.1)", "pytest-xdist (>=1.34)", "setuptools (>=42.0.0)", "setuptools (>=56.0.0)", "toml (>=0.10.0)", "wheel (>=0.36.0)"] +typing = ["importlib-metadata (>=5.1)", "mypy (==0.991)", "tomli", "typing-extensions (>=3.7.4.3)"] +virtualenv = ["virtualenv (>=20.0.35)"] + [[package]] name = "cffi" version = "1.15.1" @@ -835,6 +860,21 @@ files = [ [package.extras] plugins = ["importlib-metadata"] +[[package]] +name = "pyproject-hooks" +version = "1.0.0" +description = "Wrappers to call pyproject.toml-based build backend hooks." +category = "dev" +optional = false +python-versions = ">=3.7" +files = [ + {file = "pyproject_hooks-1.0.0-py3-none-any.whl", hash = "sha256:283c11acd6b928d2f6a7c73fa0d01cb2bdc5f07c57a2eeb6e83d5e56b97976f8"}, + {file = "pyproject_hooks-1.0.0.tar.gz", hash = "sha256:f271b298b97f5955d53fb12b72c1fb1948c22c1a6b70b315c54cedaca0264ef5"}, +] + +[package.dependencies] +tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} + [[package]] name = "pyrsistent" version = "0.19.3" @@ -1239,4 +1279,4 @@ testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more [metadata] lock-version = "2.0" python-versions = ">=3.7, <4" -content-hash = "2c0017930bf59f69be06a0c044809221c561abef767cfb937be9e7b1b467d3cf" +content-hash = "a0b0c06ab66ce09395a40284eb71e6a716ed3fb149366adcf9574f99ead5c5eb" diff --git a/pyproject.toml b/pyproject.toml index b8b60d5..3156449 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,6 +35,7 @@ black = {extras = ["jupyter"], version = "^23.3.0"} nbval = "^0.10.0" ruff = "^0.0.267" pytest-asyncio = "^0.21.0" +build = "^0.10.0" [project.urls] repository = "https://github.com/chmp/ipytest" diff --git a/requirements-dev.txt b/requirements-dev.txt index 397852d..6a04424 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -33,6 +33,9 @@ black[jupyter]==23.3.0 ; python_version >= "3.7" and python_version < "4" \ --hash=sha256:e198cf27888ad6f4ff331ca1c48ffc038848ea9f031a3b40ba36aced7e22f2c8 \ --hash=sha256:ec751418022185b0c1bb7d7736e6933d40bbb14c14a0abcf9123d1b159f98dd4 \ --hash=sha256:f0bd2f4a58d6666500542b26354978218a9babcdc972722f4bf90779524515f3 +build==0.10.0 ; python_version >= "3.7" and python_version < "4" \ + --hash=sha256:af266720050a66c893a6096a2f410989eeac74ff9a68ba194b3f6473e8e26171 \ + --hash=sha256:d5b71264afdb5951d6704482aac78de887c80691c52b88a9ad195983ca2c9269 cffi==1.15.1 ; python_version >= "3.7" and python_version < "4" and implementation_name == "pypy" \ --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ @@ -101,7 +104,7 @@ cffi==1.15.1 ; python_version >= "3.7" and python_version < "4" and implementati click==8.1.3 ; python_version >= "3.7" and python_version < "4" \ --hash=sha256:7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e \ --hash=sha256:bb4d8133cb15a609f44e8213d9b391b0809795062913b383c62be0ee95b1db48 -colorama==0.4.6 ; python_version >= "3.7" and python_version < "4" and sys_platform == "win32" or python_version >= "3.7" and python_version < "4" and platform_system == "Windows" \ +colorama==0.4.6 ; python_version >= "3.7" and python_version < "4" and sys_platform == "win32" or python_version >= "3.7" and python_version < "4" and os_name == "nt" or python_version >= "3.7" and python_version < "4" and platform_system == "Windows" \ --hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \ --hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6 coverage==7.2.5 ; python_version >= "3.7" and python_version < "4" \ @@ -280,6 +283,9 @@ pycparser==2.21 ; python_version >= "3.7" and python_version < "4" and implement pygments==2.15.1 ; python_version >= "3.7" and python_version < "4" \ --hash=sha256:8ace4d3c1dd481894b2005f560ead0f9f19ee64fe983366be1a21e171d12775c \ --hash=sha256:db2db3deb4b4179f399a09054b023b6a586b76499d36965813c71aa8ed7b5fd1 +pyproject-hooks==1.0.0 ; python_version >= "3.7" and python_version < "4" \ + --hash=sha256:283c11acd6b928d2f6a7c73fa0d01cb2bdc5f07c57a2eeb6e83d5e56b97976f8 \ + --hash=sha256:f271b298b97f5955d53fb12b72c1fb1948c22c1a6b70b315c54cedaca0264ef5 pyrsistent==0.19.3 ; python_version >= "3.7" and python_version < "4" \ --hash=sha256:016ad1afadf318eb7911baa24b049909f7f3bb2c5b1ed7b6a8f21db21ea3faa8 \ --hash=sha256:1a2994773706bbb4995c31a97bc94f1418314923bd1048c6d964837040376440 \ diff --git a/x.py b/x.py index d57252f..a4a9496 100644 --- a/x.py +++ b/x.py @@ -94,7 +94,8 @@ def compile_requirements(): "-f", "requirements.txt", "--output", - "requirements-dev.txt" "--with=dev", + "requirements-dev.txt", + "--with=dev", )