File tree Expand file tree Collapse file tree 10 files changed +55
-194
lines changed Expand file tree Collapse file tree 10 files changed +55
-194
lines changed Original file line number Diff line number Diff line change 36
36
pip install -r .github/requirements.txt
37
37
- name : Test with pytest
38
38
run : |
39
- python setup.py test
39
+ python -m pytest
Original file line number Diff line number Diff line change 1
1
__pycache__ /
2
2
/.env
3
3
/MANIFEST
4
- /_meta.py
5
4
/build /
6
5
/dist /
Original file line number Diff line number Diff line change 11
11
post_checkout :
12
12
- git fetch --unshallow
13
13
post_install :
14
- - python setup.py build
14
+ - python -m pip install -e .
15
15
16
16
sphinx :
17
17
configuration : doc/src/conf.py
Original file line number Diff line number Diff line change 1
1
git-props
2
2
pytest >=3.7.0
3
3
setuptools
4
+ build
5
+ pip
4
6
sphinx-copybutton
5
7
sphinx_rtd_theme
Original file line number Diff line number Diff line change 1
- include CHANGES.rst
2
- include LICENSE.txt
3
- include MANIFEST.in
4
- include README.rst
5
- include _meta.py
1
+ recursive-exclude .github *
2
+ exclude .gitignore
3
+ exclude .readthedocs.yaml
4
+ exclude .rtd-require
5
+ recursive-exclude doc *
6
6
include doc/examples/*.py
7
- include tests/conftest.py
8
- include tests/pytest.ini
9
- include tests/test_*.py
7
+ exclude Makefile
8
+ exclude python-pytest-dependency.spec
Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ BUILDLIB = $(CURDIR)/build/lib
3
3
4
4
5
5
build :
6
- $(PYTHON ) setup.py build
6
+ $(PYTHON ) -m build
7
7
8
8
test :
9
- $(PYTHON ) setup.py test
9
+ $(PYTHON ) -m pytest
10
10
11
11
sdist :
12
- $(PYTHON ) setup.py sdist
12
+ $(PYTHON ) -m build -- sdist
13
13
14
14
doc-html : build
15
15
$(MAKE ) -C doc html PYTHONPATH=$(BUILDLIB )
@@ -19,13 +19,9 @@ clean:
19
19
rm -rf __pycache__
20
20
21
21
distclean : clean
22
- rm -f MANIFEST _meta.py
23
22
rm -rf dist
24
23
rm -rf tests/.pytest_cache
25
24
$(MAKE ) -C doc distclean
26
25
27
- meta :
28
- $(PYTHON ) setup.py meta
29
26
30
-
31
- .PHONY : build test sdist doc-html clean distclean meta
27
+ .PHONY : build test sdist doc-html clean distclean
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
- #
3
1
# Configuration file for the Sphinx documentation builder.
4
2
#
5
3
# This file does only contain a selection of the most common options. For a
6
4
# full list see the documentation:
7
5
# http://www.sphinx-doc.org/en/master/config
8
6
7
+ from importlib .metadata import version , PackageNotFoundError
9
8
from pathlib import Path
10
9
import sys
11
10
19
18
# -- Project information -----------------------------------------------------
20
19
21
20
project = 'pytest-dependency'
22
- copyright = '2016–2023 , Rolf Krahl'
21
+ copyright = '2016–2025 , Rolf Krahl'
23
22
author = 'Rolf Krahl'
24
23
25
24
# The full version, including alpha/beta/rc tags
26
- release = pytest_dependency .__version__
25
+ try :
26
+ release = version (project )
27
+ except PackageNotFoundError :
28
+ release = '0.0.0'
27
29
# The short X.Y version
28
30
version = "." .join (release .split ("." )[0 :2 ])
29
31
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [" setuptools>=64" , " setuptools-scm" ]
3
+ build-backend = " setuptools.build_meta"
4
+
5
+ [project ]
6
+ name = " pytest-dependency"
7
+ description = " Manage dependencies of tests"
8
+ authors = [{
name =
" Rolf Krahl" ,
email =
" [email protected] " }]
9
+ readme = " README.rst"
10
+ requires-python = " >=3.4"
11
+ dependencies = [
12
+ " pytest" ,
13
+ ]
14
+ dynamic = [" version" ]
15
+ classifiers = [
16
+ " Development Status :: 4 - Beta" ,
17
+ " Framework :: Pytest" ,
18
+ " Intended Audience :: Developers" ,
19
+ " License :: OSI Approved :: Apache Software License" ,
20
+ " Operating System :: OS Independent" ,
21
+ " Programming Language :: Python" ,
22
+ " Programming Language :: Python :: 3" ,
23
+ " Topic :: Software Development :: Testing" ,
24
+ ]
25
+
26
+ [project .urls ]
27
+ Homepage = " https://github.com/RKrahl/pytest-dependency"
28
+ Documentation = " https://pytest-dependency.readthedocs.io"
29
+ Source = " https://github.com/RKrahl/pytest-dependency.git"
30
+ Download = " https://github.com/RKrahl/pytest-dependency/releases/"
31
+ Changelog = " https://pytest-dependency.readthedocs.io/en/latest/changelog.html"
32
+
33
+ [project .entry-points .pytest11 ]
34
+ dependency = " pytest_dependency"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
"""$DOC"""
2
2
3
- __version__ = "$VERSION"
4
-
5
3
import logging
6
4
import pytest
7
5
You can’t perform that action at this time.
0 commit comments