diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..be006de --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,13 @@ +# Keep GitHub Actions up to date with GitHub's Dependabot... +# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + groups: + github-actions: + patterns: + - "*" # Group all Actions updates into a single larger pull request + schedule: + interval: weekly diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 99685e3..f2473e1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v3 - name: Build and Check Package - uses: hynek/build-and-inspect-python-package@v2.8.0 + uses: hynek/build-and-inspect-python-package@v2.13.0 deploy: needs: package diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9f80673..fa2f86d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Build and Check Package - uses: hynek/build-and-inspect-python-package@v2.8.0 + uses: hynek/build-and-inspect-python-package@v2.13.0 test: needs: [package] diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b1e5005 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,54 @@ +[build-system] +requires = ["hatchling", "hatch-vcs"] +build-backend = "hatchling.build" + +[tool.hatch.version] +source = "vcs" + +[tool.hatch.build.targets.sdist] +include = [ + "/src", +] + +[project] +name = "pytest-reportlog" +dynamic = ["version"] +description = "Replacement for the --resultlog option, focused in simplicity and extensibility" +readme = "README.rst" +license = "MIT" +requires-python = ">=3.9" +authors = [ + { name = "Bruno Oliveira", email = "bruno@pytest.org" }, +] +keywords = [ + "pytest", +] +classifiers = [ + "Development Status :: 3 - Alpha", + "Framework :: Pytest", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Topic :: Software Development :: Testing", +] +dependencies = [ + "pytest", +] + +[project.optional-dependencies] +dev = [ + "pre-commit", + "tox", +] + +[project.entry-points.pytest11] +pytest_reportlog = "pytest_reportlog.plugin" + +[project.urls] +Homepage = "https://github.com/pytest-dev/pytest-reportlog" diff --git a/setup.py b/setup.py deleted file mode 100644 index 3c98a52..0000000 --- a/setup.py +++ /dev/null @@ -1,41 +0,0 @@ -from io import open - -from setuptools import setup, find_packages - -with open("README.rst", encoding="utf-8") as f: - readme = f.read() - -setup( - name="pytest-reportlog", - entry_points={"pytest11": ["pytest_reportlog = pytest_reportlog.plugin"]}, - packages=find_packages(where="src"), - package_dir={"": "src"}, - platforms="any", - python_requires=">=3.9", - install_requires=["pytest"], - use_scm_version={"write_to": "src/pytest_reportlog/_version.py"}, - setup_requires=["setuptools_scm"], - url="https://github.com/pytest-dev/pytest-reportlog", - license="MIT", - author="Bruno Oliveira", - author_email="nicoddemus@gmail.com", - description="Replacement for the --resultlog option, focused in simplicity and extensibility", - long_description=readme, - long_description_content_type="text/x-rst", - keywords="pytest", - extras_require={"dev": ["pre-commit", "tox"]}, - classifiers=[ - "Development Status :: 3 - Alpha", - "Framework :: Pytest", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - "Programming Language :: Python :: 3", - "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", - "Topic :: Software Development :: Testing", - ], -)