-
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.
Convert setup.py -> pyproject.toml, flat layout -> src layout
pyproject.toml is the more modern way to do it, and we can remove all setuptools dependence except for choosing it as the build backend. src layout is less error prone than flat layout, given that tox is used. Fix #38, #30, #24
- Loading branch information
Showing
11 changed files
with
90 additions
and
127 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 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,43 +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:\\Python38" | ||
TOX_ENV: "py38" | ||
- TOXENV: "py38" | ||
- TOXENV: "py39" | ||
- TOXENV: "py310" | ||
- TOXENV: "py311" | ||
- TOXENV: "py312" | ||
|
||
- PYTHON: "C:\\Python39" | ||
TOX_ENV: "py39" | ||
|
||
- PYTHON: "C:\\Python310" | ||
TOX_ENV: "py310" | ||
|
||
- PYTHON: "C:\\Python311" | ||
TOX_ENV: "py311" | ||
|
||
- PYTHON: "C:\\Python312" | ||
TOX_ENV: "py312" | ||
|
||
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 |
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.
File renamed without changes.
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