Skip to content

Commit

Permalink
Merge pull request #11 from mdmintz/pyproject.toml-format
Browse files Browse the repository at this point in the history
Adopt `pyproject.toml` structure
  • Loading branch information
mdmintz authored Dec 16, 2024
2 parents 3cc6b62 + 234bdf5 commit 2233b49
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fail-fast: false
max-parallel: 6
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand Down
32 changes: 32 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[build-system]
requires = ["setuptools>=70.2.0", "wheel>=0.44.0"]
build-backend = "setuptools.build_meta"

[project]
name = "sbvirtualdisplay"
readme = "README.md"
dynamic = [
"urls",
"version",
"license",
"authors",
"scripts",
"keywords",
"classifiers",
"description",
"maintainers",
"entry-points",
"dependencies",
"requires-python",
"optional-dependencies",
]

[tool.setuptools]
packages = ["sbvirtualdisplay"]

[flake8]
ignore = ["W503"]

[nosetests]
nocapture = ["1"]
logging-level = ["INFO"]
2 changes: 1 addition & 1 deletion sbvirtualdisplay/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# sbvirtualdisplay package
__version__ = "1.3.1"
__version__ = "1.4.0"
19 changes: 10 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""*** sbvirtualdisplay ***
A modified version of pyvirtualdisplay for optimized SeleniumBase performance.
(Python 3.7+)"""
(Python 3.8+)"""
from setuptools import setup
import os
import sys
Expand Down Expand Up @@ -77,6 +77,7 @@
description="A customized pyvirtualdisplay for SeleniumBase.",
long_description=long_description,
long_description_content_type="text/markdown",
keywords="Xvfb Xephyr Virtual Display Linux SeleniumBase",
url="https://github.com/mdmintz/sbVirtualDisplay",
project_urls={
"Changelog": "https://github.com/mdmintz/sbVirtualDisplay/releases",
Expand Down Expand Up @@ -105,7 +106,6 @@
"Operating System :: POSIX :: Linux",
"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",
Expand All @@ -122,27 +122,28 @@
"Topic :: Software Development :: Testing :: Traffic Generation",
"Topic :: Utilities",
],
python_requires=">=3.7",
python_requires=">=3.8",
install_requires=[],
extras_require={
# pip install -e .[coverage]
# Usage: coverage run -m pytest; coverage html; coverage report
"coverage": [
'coverage==7.2.7;python_version<"3.8"',
'coverage==7.3.2;python_version>="3.8"',
'pytest-cov==4.1.0',
'coverage>=7.6.1;python_version<"3.9"',
'coverage>=7.6.9;python_version>="3.9"',
'pytest-cov>=5.0.0;python_version<"3.9"',
'pytest-cov>=6.0.0;python_version>="3.9"',
],

# pip install -e .[flake8]
# Usage: flake8
"flake8": [
'flake8==5.0.4;python_version<"3.9"',
'flake8==6.1.0;python_version>="3.9"',
'flake8==7.1.1;python_version>="3.9"',
"mccabe==0.7.0",
'pyflakes==2.5.0;python_version<"3.9"',
'pyflakes==3.1.0;python_version>="3.9"',
'pyflakes==3.2.0;python_version>="3.9"',
'pycodestyle==2.9.1;python_version<"3.9"',
'pycodestyle==2.11.1;python_version>="3.9"',
'pycodestyle==2.12.1;python_version>="3.9"',
],
},
packages=[
Expand Down

0 comments on commit 2233b49

Please sign in to comment.