Skip to content

Commit 97e3b4e

Browse files
authored
add pyproject.toml and MANIFEST.in (#10)
1 parent 4f50553 commit 97e3b4e

9 files changed

+46
-65
lines changed

.github/workflows/tox.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1515
name: Python ${{ matrix.python-version }} tests
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1818
- name: Setup python
19-
uses: actions/setup-python@v2
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222
architecture: x64
2323
- name: Install dependencies
24-
run: pip install -r requirements-dev.txt
24+
run: pip install -U tox
2525
- name: Run tests and type checking
2626
run: tox

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
recursive-include tests *

mypy.ini

-3
This file was deleted.

pyproject.toml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[build-system]
2+
requires = [ "setuptools >=61", "wheel" ]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "pytest-beartype"
7+
version = "0.1.0"
8+
description = "Pytest plugin to run your tests with beartype checking enabled."
9+
authors = [ { name = "Tushar Sadhwani", email = "[email protected]" } ]
10+
readme = "README.md"
11+
requires-python = ">=3.8"
12+
urls.Source = "https://github.com/tusharsadhwani/pytest-beartype"
13+
license = { text = "MIT" }
14+
classifiers = [
15+
"Framework :: Pytest",
16+
"License :: OSI Approved :: MIT License",
17+
"Operating System :: OS Independent",
18+
"Programming Language :: Python :: 3",
19+
"Programming Language :: Python :: 3 :: Only",
20+
"Programming Language :: Python :: 3.8",
21+
"Programming Language :: Python :: 3.9",
22+
"Programming Language :: Python :: 3.10",
23+
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: Implementation :: CPython",
26+
"Typing :: Typed",
27+
]
28+
dependencies = [ "beartype", "pytest" ]
29+
optional-dependencies.dev = [ "black", "mypy", "pytest-cov", "tox" ]
30+
entry-points.pytest11.pytest_beartype = "pytest_beartype"
31+
32+
[tool.setuptools]
33+
package-data = { "*" = [ "py.typed" ] }
34+
packages.find.where = [ "./src" ]
35+
36+
[tool.pytest.ini_options]
37+
addopts = [ "--cov", "--cov-report=term-missing" ]
38+
39+
[tool.mypy]
40+
strict = true
41+
exclude = "venv|build"

requirements-dev.txt

-1
This file was deleted.

requirements.txt

-1
This file was deleted.

setup.cfg

-53
This file was deleted.

setup.py

-3
This file was deleted.

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ envlist = py38,py39,py310,py311,py312,py312-type
33
skip_missing_interpreters = true
44

55
[testenv]
6-
deps = -rrequirements-dev.txt
6+
deps = .[dev]
77
commands = pytest
88

99
[testenv:py312-type]

0 commit comments

Comments
 (0)