Skip to content

Commit

Permalink
Move package config into pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
bmerry committed Mar 23, 2024
1 parent 2b5b163 commit 7ce816c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 38 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ repos:
hooks:
- id: pip-compile
language_version: python3.8
args: ["--output-file=requirements.txt", "--extra=test", "--strip-extras", "setup.cfg"]
files: '^(?:setup\.cfg|requirements\.txt)$'
args: ["--output-file=requirements.txt", "--extra=test", "--strip-extras", "pyproject.toml"]
files: '^(?:pyproject\.toml|requirements\.txt)$'
34 changes: 33 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
requires = ["setuptools>=64", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"

[project]
name = "async-solipsism"
dynamic = ["version", "readme"]
description = "Asyncio event loop that doesn't interact with the outside world"
authors = [
{name = "Bruce Merry", email = "[email protected]"}
]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: AsyncIO",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Topic :: Software Development :: Testing :: Mocking",
]

[project.urls]
Homepage = "https://github.com/bmerry/async-solipsism"

[project.optional-dependencies]
test = [
"pre-commit",
"pytest",
"pytest-asyncio>=0.23",
"pytest-mock",
]

[tool.setuptools_scm]

[tool.setuptools.dynamic]
version = {attr = "async_solipsism.__version__"}
readme = {file = ["README.md"]}
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile --extra=test --output-file=requirements.txt --strip-extras setup.cfg
# pip-compile --extra=test --output-file=requirements.txt --strip-extras pyproject.toml
#
cfgv==3.4.0
# via pre-commit
Expand All @@ -25,16 +25,16 @@ platformdirs==4.2.0
pluggy==1.4.0
# via pytest
pre-commit==3.5.0
# via async-solipsism (setup.cfg)
# via async-solipsism (pyproject.toml)
pytest==8.1.1
# via
# async-solipsism (setup.cfg)
# async-solipsism (pyproject.toml)
# pytest-asyncio
# pytest-mock
pytest-asyncio==0.23.6
# via async-solipsism (setup.cfg)
# via async-solipsism (pyproject.toml)
pytest-mock==3.14.0
# via async-solipsism (setup.cfg)
# via async-solipsism (pyproject.toml)
pyyaml==6.0.1
# via pre-commit
tomli==2.0.1
Expand Down
30 changes: 0 additions & 30 deletions setup.cfg

This file was deleted.

0 comments on commit 7ce816c

Please sign in to comment.