Skip to content

Commit

Permalink
Merge branch 'pyproject-toml'
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-adams committed Nov 14, 2024
2 parents 64e9c9d + eb4532b commit b6b0dbb
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 39 deletions.
47 changes: 47 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=75",
]

[project]
name = "pytest-test-groups"
description = "A Pytest plugin for running a subset of your tests by splitting them in to equally sized groups."
readme = "README.rst"
requires-python = ">=3.8"
authors = [
{ name = "Mark Adams", email = "[email protected]" },
]
maintainers = [
{ name = "Mark Adams", email = "[email protected]" },
]
license = {file = "LICENSE"}
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Software Development :: Testing',
"Programming Language :: Python",
'Programming Language :: Python :: 3',
"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",
]
dependencies = [
"pytest>=7.0.0",
]
dynamic = ["version"]

[project.urls]
Documentation = "https://github.com/mark-adams/pytest-test-groups"
Repository = "https://github.com/mark-adams/pytest-test-groups"

[project.entry-points.pytest11]
test-groups = "pytest_test_groups"

[tool.setuptools.dynamic]
version = {attr = "pytest_test_groups.__version__"}
2 changes: 2 additions & 0 deletions pytest_test_groups/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-

__version__ = '1.1.0'

# Import python libs
from random import Random

Expand Down
5 changes: 1 addition & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
[flake8]
max-line-length = 119

[wheel]
universal = true
max-line-length = 119
36 changes: 1 addition & 35 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,37 +1,3 @@
import codecs
import os

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-test-groups",
description=('A Pytest plugin for running a subset of your tests by '
'splitting them in to equally sized groups.'),
url='https://github.com/mark-adams/pytest-test-groups',
author='Mark Adams',
author_email='[email protected]',
packages=['pytest_test_groups'],
version='1.1.0',
long_description=read('README.rst'),
install_requires=['pytest>=8'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Testing',
'Programming Language :: Python :: 3',
],
entry_points={
'pytest11': [
'test-groups = pytest_test_groups',
]
},
)
setup()

0 comments on commit b6b0dbb

Please sign in to comment.