-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drops 3.7 support, adds 3.12 and 3.13 support.
Modernizes configuration. Switches to trusted publishers.
- Loading branch information
Showing
7 changed files
with
132 additions
and
131 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=61.0.0", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "pytest-codecov" | ||
dynamic = ["version"] | ||
description = "Pytest plugin for uploading pytest-cov results to codecov.io" | ||
readme = "README.rst" | ||
requires-python = ">=3.8" | ||
authors = [ | ||
{ name = "David Salvisberg", email = "[email protected]" }, | ||
] | ||
maintainers = [ | ||
{ name = "David Salvisberg", email = "[email protected]" }, | ||
] | ||
license = {file = "LICENSE"} | ||
classifiers = [ | ||
"Framework :: Pytest", | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Topic :: Software Development :: Testing", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"License :: OSI Approved :: MIT License", | ||
] | ||
dependencies = [ | ||
"pytest>=4.6.0", | ||
"pytest-cov>=2.11.0", | ||
"coverage[toml]>=5.2.1", | ||
"requests>=2.25.1", | ||
] | ||
|
||
[project.optional-dependencies] | ||
git = [ | ||
"GitPython>=3.1.15", | ||
] | ||
|
||
[project.urls] | ||
Repository = "https://github.com/seantis/pytest-codecov" | ||
|
||
[project.entry-points.pytest11] | ||
codecov = "pytest_codecov" | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "pytest_codecov.__version__"} | ||
|
||
[tool.coverage.paths] | ||
source = ["src"] | ||
|
||
[tool.coverage.run] | ||
source = ["pytest_codecov"] | ||
|
||
[tool.coverage.report] | ||
show_missing = true | ||
precision = 2 | ||
|
||
[tool.tox] | ||
legacy_tox_ini = """ | ||
[tox] | ||
envlist = py38,py39,py310,py311,py312,py313,flake8,report | ||
[gh-actions] | ||
python = | ||
3.8: py38,flake8 | ||
3.9: py39 | ||
3.10: py310 | ||
3.11: py311 | ||
3.12: py312 | ||
3.13: py313 | ||
[testenv] | ||
setenv = | ||
py{38,39,310,311,312,313}: COVERAGE_FILE = .coverage.{envname} | ||
commands = pytest --cov --cov-report= {posargs:tests} | ||
deps = | ||
pytest | ||
coverage | ||
pytest-cov | ||
. | ||
GitPython | ||
[testenv:flake8] | ||
skip_install = true | ||
deps = flake8 | ||
commands = flake8 src setup.py tests | ||
[testenv:report] | ||
deps = coverage | ||
skip_install = true | ||
commands = | ||
coverage combine | ||
coverage report | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,3 @@ | ||
#!/usr/bin/env python | ||
import codecs | ||
import os | ||
from glob import glob | ||
from os.path import basename | ||
from os.path import splitext | ||
from setuptools import setup, find_packages | ||
from setuptools import setup | ||
|
||
|
||
def read(fname): | ||
file_path = os.path.join(os.path.dirname(__file__), fname) | ||
return codecs.open(file_path, encoding='utf-8').read() | ||
|
||
|
||
setup( | ||
name='pytest-codecov', | ||
version='0.5.1', | ||
author='David Salvisberg', | ||
author_email='[email protected]', | ||
maintainer='David Salvisberg', | ||
maintainer_email='[email protected]', | ||
license='MIT', | ||
url='https://github.com/seantis/pytest-codecov', | ||
description='Pytest plugin for uploading pytest-cov results to codecov.io', | ||
long_description=read('README.rst'), | ||
packages=find_packages('src'), | ||
package_dir={'': 'src'}, | ||
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')], | ||
include_package_data=True, | ||
python_requires='>=3.5', | ||
install_requires=[ | ||
'pytest>=4.6.0', | ||
'pytest-cov>=2.11.0', | ||
'coverage[toml]>=5.2.1', | ||
'requests>=2.25.1' | ||
], | ||
tests_require=[ | ||
'GitPython>=3.1.15' | ||
], | ||
extras_require={ | ||
'git': [ | ||
'GitPython>=3.1.15' | ||
], | ||
}, | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Framework :: Pytest', | ||
'Intended Audience :: Developers', | ||
'Topic :: Software Development :: Testing', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3 :: Only', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
'Operating System :: OS Independent', | ||
'License :: OSI Approved :: MIT License', | ||
], | ||
entry_points={ | ||
'pytest11': [ | ||
'codecov = pytest_codecov', | ||
], | ||
}, | ||
) | ||
setup() |