Skip to content

Commit

Permalink
Merge pull request #91 from ska-sa/pyproject-config
Browse files Browse the repository at this point in the history
Move configuration into pyproject.toml
  • Loading branch information
bmerry committed Apr 17, 2024
2 parents 6b07834 + d966a35 commit 5caf68b
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 61 deletions.
6 changes: 4 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ repos:
- id: mypy
# Passing filenames to mypy can do odd things. See
# https://github.com/pre-commit/mirrors-mypy/issues/33.
# mypy.ini determines the set of files that will actually be checked.
# pyproject.toml determines the set of files that will actually be
# checked.
pass_filenames: false
# The pre-commit hook passes some options, but we set options in mypy.ini.
# The pre-commit hook passes some options, but we set options in
# pyproject.toml.
args: []
additional_dependencies: [
'async-timeout==4.0.3',
Expand Down
6 changes: 0 additions & 6 deletions mypy.ini

This file was deleted.

60 changes: 60 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
[build-system]
requires = ["setuptools", "setuptools_scm"]
build-backend = "setuptools.build_meta"

[project]
name = "aiokatcp"
authors = [
{name = "Bruce Merry", email = "bmerry@sarao.ac.za"}
]
description = "Asynchronous I/O implementation of the katcp protocol"
readme = "README.rst"
requires-python = ">=3.8"
license = {text = "BSD-3-Clause"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Framework :: AsyncIO",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Astronomy",
]
keywords = [
"asyncio",
"katcp",
]
dependencies = [
"async-timeout",
"decorator>=4.1",
"katcp-codec",
"typing-extensions",
]
dynamic = ["version"]

[project.urls]
Homepage = "https://github.com/ska-sa/aiokatcp"
Repository = "https://github.com/ska-sa/aiokatcp"
Documentation = "https://aiokatcp.readthedocs.io/"
Changelog = "https://aiokatcp.readthedocs.io/en/latest/changelog.html"

[project.scripts]
katcpcmd = "aiokatcp.tools.katcpcmd:main"

[project.optional-dependencies]
test = [
"async-solipsism",
"pytest",
"pytest-asyncio",
"pytest-mock",
]
doc = [
"sphinx",
"sphinx-rtd-theme",
]

[tool.setuptools_scm]
version_file = "src/aiokatcp/_version.py"
Expand All @@ -10,3 +63,10 @@ line_length = 100

[tool.black]
line-length = 100

[tool.mypy]
python_version = "3.8"
files = ["src/aiokatcp", "examples", "tests"]
[[tool.mypy.overrides]]
module = "async_solipsism.*"
ignore_missing_imports = true
53 changes: 0 additions & 53 deletions setup.cfg

This file was deleted.

0 comments on commit 5caf68b

Please sign in to comment.