-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from pytest-dev/modernize
Modernize
- Loading branch information
Showing
18 changed files
with
114 additions
and
172 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
import logging | ||
import os | ||
|
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,5 +1,4 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
import logging | ||
import re | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,20 @@ | ||
# What Python version is installed where: | ||
# https://www.appveyor.com/docs/build-environment/#python | ||
# https://www.appveyor.com/docs/lang/python/ | ||
--- | ||
image: | ||
- Visual Studio 2019 | ||
|
||
environment: | ||
matrix: | ||
- PYTHON: "C:\\Python35" | ||
TOX_ENV: "py35" | ||
- TOXENV: "py38" | ||
- TOXENV: "py39" | ||
- TOXENV: "py310" | ||
- TOXENV: "py311" | ||
- TOXENV: "py312" | ||
|
||
- PYTHON: "C:\\Python36" | ||
TOX_ENV: "py36" | ||
|
||
- PYTHON: "C:\\Python37" | ||
TOX_ENV: "py37" | ||
|
||
- PYTHON: "C:\\Python38" | ||
TOX_ENV: "py38" | ||
|
||
init: | ||
- "%PYTHON%/python -V" | ||
- "%PYTHON%/python -c \"import struct;print( 8 * struct.calcsize(\'P\'))\"" | ||
build: false | ||
|
||
install: | ||
- "%PYTHON%/Scripts/easy_install -U pip" | ||
- "%PYTHON%/Scripts/pip install tox" | ||
- "%PYTHON%/Scripts/pip install wheel" | ||
|
||
build: false # Not a C# project, build stuff at the test step instead. | ||
- py -m pip install tox | ||
|
||
test_script: | ||
- "%PYTHON%/Scripts/tox -e %TOX_ENV%" | ||
|
||
after_test: | ||
- "%PYTHON%/python setup.py bdist_wheel" | ||
- ps: "ls dist" | ||
|
||
artifacts: | ||
- path: dist\* | ||
|
||
#on_success: | ||
# - TODO: upload the content of dist/*.whl to a public wheelhouse | ||
- py -m tox |
2 changes: 0 additions & 2 deletions
2
pytest-{{cookiecutter.plugin_name}}/docs_sources/sphinx/conf.py
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,53 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=61.0.0", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "pytest-{{cookiecutter.plugin_name}}" | ||
description = "{{cookiecutter.short_description}}" | ||
version = "{{cookiecutter.version}}" | ||
readme = "README.rst" | ||
requires-python = ">=3.8" | ||
authors = [ | ||
{ name = "{{cookiecutter.full_name}}", email = "{{cookiecutter.email}}" }, | ||
] | ||
maintainers = [ | ||
{ name = "{{cookiecutter.full_name}}", email = "{{cookiecutter.email}}" }, | ||
] | ||
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 :: Only", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
{% if cookiecutter.license == "MIT" -%} | ||
"License :: OSI Approved :: MIT License", | ||
{%- elif cookiecutter.license == "BSD-3" -%} | ||
"License :: OSI Approved :: BSD License", | ||
{%- elif cookiecutter.license == "GNU GPL v3.0+" -%} | ||
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", | ||
{%- elif cookiecutter.license == "Apache Software License 2.0" -%} | ||
"License :: OSI Approved :: Apache Software License", | ||
{%- elif cookiecutter.license == "Mozilla Public License 2.0" -%} | ||
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", | ||
{%- endif %} | ||
] | ||
dependencies = [ | ||
"pytest>={{cookiecutter.pytest_version}}", | ||
] | ||
[project.urls] | ||
Repository = "https://github.com/{{cookiecutter.github_username}}/pytest-{{cookiecutter.plugin_name}}" | ||
[project.entry-points.pytest11] | ||
django = "pytest_{{cookiecutter.module_name}}.plugin" |
This file was deleted.
Oops, something went wrong.
Empty file.
2 changes: 0 additions & 2 deletions
2
...}}/pytest_{{cookiecutter.module_name}}.py → ...st_{{cookiecutter.module_name}}/plugin.py
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,5 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
import pytest | ||
|
||
|
||
|
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
Oops, something went wrong.