Skip to content

Commit 7ce816c

Browse files
committed
Move package config into pyproject.toml
1 parent 2b5b163 commit 7ce816c

File tree

4 files changed

+40
-38
lines changed

4 files changed

+40
-38
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ repos:
88
hooks:
99
- id: pip-compile
1010
language_version: python3.8
11-
args: ["--output-file=requirements.txt", "--extra=test", "--strip-extras", "setup.cfg"]
12-
files: '^(?:setup\.cfg|requirements\.txt)$'
11+
args: ["--output-file=requirements.txt", "--extra=test", "--strip-extras", "pyproject.toml"]
12+
files: '^(?:pyproject\.toml|requirements\.txt)$'

pyproject.toml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
11
[build-system]
2-
requires = ["setuptools", "setuptools-scm"]
2+
requires = ["setuptools>=64", "setuptools-scm>=8.0"]
33
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "async-solipsism"
7+
dynamic = ["version", "readme"]
8+
description = "Asyncio event loop that doesn't interact with the outside world"
9+
authors = [
10+
{name = "Bruce Merry", email = "[email protected]"}
11+
]
12+
requires-python = ">=3.8"
13+
classifiers = [
14+
"Development Status :: 3 - Alpha",
15+
"Framework :: AsyncIO",
16+
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
17+
"Topic :: Software Development :: Testing :: Mocking",
18+
]
19+
20+
[project.urls]
21+
Homepage = "https://github.com/bmerry/async-solipsism"
22+
23+
[project.optional-dependencies]
24+
test = [
25+
"pre-commit",
26+
"pytest",
27+
"pytest-asyncio>=0.23",
28+
"pytest-mock",
29+
]
30+
31+
[tool.setuptools_scm]
32+
33+
[tool.setuptools.dynamic]
34+
version = {attr = "async_solipsism.__version__"}
35+
readme = {file = ["README.md"]}

requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is autogenerated by pip-compile with Python 3.8
33
# by the following command:
44
#
5-
# pip-compile --extra=test --output-file=requirements.txt --strip-extras setup.cfg
5+
# pip-compile --extra=test --output-file=requirements.txt --strip-extras pyproject.toml
66
#
77
cfgv==3.4.0
88
# via pre-commit
@@ -25,16 +25,16 @@ platformdirs==4.2.0
2525
pluggy==1.4.0
2626
# via pytest
2727
pre-commit==3.5.0
28-
# via async-solipsism (setup.cfg)
28+
# via async-solipsism (pyproject.toml)
2929
pytest==8.1.1
3030
# via
31-
# async-solipsism (setup.cfg)
31+
# async-solipsism (pyproject.toml)
3232
# pytest-asyncio
3333
# pytest-mock
3434
pytest-asyncio==0.23.6
35-
# via async-solipsism (setup.cfg)
35+
# via async-solipsism (pyproject.toml)
3636
pytest-mock==3.14.0
37-
# via async-solipsism (setup.cfg)
37+
# via async-solipsism (pyproject.toml)
3838
pyyaml==6.0.1
3939
# via pre-commit
4040
tomli==2.0.1

setup.cfg

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)