mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Ported setup.py to pyproject.toml (#2555)
* Ported setup.py to pyproject.toml, refs #2553 * Make fixtures tests less flaky The in-memory fixtures table was being shared between different instances of the test client, leading to occasional errors when running the full test suite.
This commit is contained in:
parent
53e6a72a95
commit
ce4b0794b2
15 changed files with 141 additions and 147 deletions
|
|
@ -33,16 +33,16 @@ You can install these packages like so::
|
|||
|
||||
pip install pytest pytest-asyncio
|
||||
|
||||
If you are building an installable package you can add them as test dependencies to your ``setup.py`` module like this:
|
||||
If you are building an installable package you can add them as test dependencies to your ``pyproject.toml`` file like this:
|
||||
|
||||
.. code-block:: python
|
||||
.. code-block:: toml
|
||||
|
||||
setup(
|
||||
name="datasette-my-plugin",
|
||||
# ...
|
||||
extras_require={"test": ["pytest", "pytest-asyncio"]},
|
||||
tests_require=["datasette-my-plugin[test]"],
|
||||
)
|
||||
[project]
|
||||
name = "datasette-my-plugin"
|
||||
# ...
|
||||
|
||||
[project.optional-dependencies]
|
||||
test = ["pytest", "pytest-asyncio"]
|
||||
|
||||
You can then install the test dependencies like so::
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue