Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for PEP 517/518 #5

Merged
merged 8 commits into from
Jul 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 21 additions & 29 deletions appveyor.yml → .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,85 +1,77 @@
version: '{branch}-{build}'
build: off
cache:
- '%LOCALAPPDATA%\pip\Cache'
environment:
global:
WITH_COMPILER: 'cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd'
matrix:
- TOXENV: check
TOXPYTHON: C:\Python36\python.exe
PYTHON_HOME: C:\Python36
PYTHON_VERSION: '3.6'
PYTHON_ARCH: '32'
- TOXENV: 'py27,report'
- TOXENV: py27
TOXPYTHON: C:\Python27\python.exe
PYTHON_HOME: C:\Python27
PYTHON_VERSION: '2.7'
PYTHON_ARCH: '32'
- TOXENV: 'py27,report'
- TOXENV: py27
TOXPYTHON: C:\Python27-x64\python.exe
WINDOWS_SDK_VERSION: v7.0
PYTHON_HOME: C:\Python27-x64
PYTHON_VERSION: '2.7'
PYTHON_ARCH: '64'
- TOXENV: 'py34,report'
TOXPYTHON: C:\Python34\python.exe
PYTHON_HOME: C:\Python34
PYTHON_VERSION: '3.4'
PYTHON_ARCH: '32'
- TOXENV: 'py34,report'
TOXPYTHON: C:\Python34-x64\python.exe
WINDOWS_SDK_VERSION: v7.1
PYTHON_HOME: C:\Python34-x64
PYTHON_VERSION: '3.4'
PYTHON_ARCH: '64'
- TOXENV: 'py35,report'
WINDOWS_SDK_VERSION: v7.0
- TOXENV: py35
TOXPYTHON: C:\Python35\python.exe
PYTHON_HOME: C:\Python35
PYTHON_VERSION: '3.5'
PYTHON_ARCH: '32'
- TOXENV: 'py35,report'
- TOXENV: py35
TOXPYTHON: C:\Python35-x64\python.exe
PYTHON_HOME: C:\Python35-x64
PYTHON_VERSION: '3.5'
PYTHON_ARCH: '64'
- TOXENV: 'py36,report'
- TOXENV: py36
TOXPYTHON: C:\Python36\python.exe
PYTHON_HOME: C:\Python36
PYTHON_VERSION: '3.6'
PYTHON_ARCH: '32'
- TOXENV: 'py36,report'
- TOXENV: py36
TOXPYTHON: C:\Python36-x64\python.exe
PYTHON_HOME: C:\Python36-x64
PYTHON_VERSION: '3.6'
PYTHON_ARCH: '64'
- TOXENV: 'py37,report'
- TOXENV: py37
TOXPYTHON: C:\Python37\python.exe
PYTHON_HOME: C:\Python37
PYTHON_VERSION: '3.7'
PYTHON_ARCH: '32'
- TOXENV: 'py37,report'
- TOXENV: py37
TOXPYTHON: C:\Python37-x64\python.exe
PYTHON_HOME: C:\Python37-x64
PYTHON_VERSION: '3.7'
PYTHON_ARCH: '64'
- TOXENV: py38
TOXPYTHON: C:\Python38\python.exe
PYTHON_HOME: C:\Python38
PYTHON_VERSION: '3.8'
PYTHON_ARCH: '32'
- TOXENV: py38
TOXPYTHON: C:\Python38-x64\python.exe
PYTHON_HOME: C:\Python38-x64
PYTHON_VERSION: '3.8'
PYTHON_ARCH: '64'
init:
- ps: echo $env:TOXENV
- ps: ls C:\Python*
install:
- python -u ci\appveyor-bootstrap.py
- '%PYTHON_HOME%\python -mpip install --progress-bar=off tox -rci/requirements.txt'
- '%PYTHON_HOME%\Scripts\virtualenv --version'
- '%PYTHON_HOME%\Scripts\easy_install --version'
- '%PYTHON_HOME%\Scripts\pip --version'
- '%PYTHON_HOME%\Scripts\tox --version'
test_script:
- '%WITH_COMPILER% %PYTHON_HOME%\Scripts\tox'

- cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd %PYTHON_HOME%\Scripts\tox
on_failure:
- ps: dir "env:"
- ps: get-content .tox\*\log\*
artifacts:
- path: dist\*

### To enable remote debugging uncomment this (also, see: http://www.appveyor.com/docs/how-to/rdp-to-build-worker):
# on_finish:
Expand Down
106 changes: 54 additions & 52 deletions .cookiecutterrc
Original file line number Diff line number Diff line change
@@ -1,54 +1,56 @@
# This file exists so you can easily regenerate your project.
#
# `cookiepatcher` is a convenient shim around `cookiecutter`
# for regenerating projects (it will generate a .cookiecutterrc
# automatically for any template). To use it:
#
# pip install cookiepatcher
# cookiepatcher gh:ionelmc/cookiecutter-pylibrary project-path
#
# See:
# https://pypi.org/project/cookiepatcher
#
# Alternatively, you can run:
#
# cookiecutter --overwrite-if-exists --config-file=project-path/.cookiecutterrc gh:ionelmc/cookiecutter-pylibrary
# Generated by cookiepatcher, a small shim around cookiecutter (pip install cookiepatcher)

default_context:

_template: 'cookiecutter-pylibrary'
appveyor: 'yes'
c_extension_function: '-'
c_extension_module: '-'
c_extension_optional: 'no'
c_extension_support: 'no'
codacy: 'no'
codeclimate: 'no'
codecov: 'no'
command_line_interface: 'no'
cookiecutter:
_extensions:
- jinja2_time.TimeExtension
_template: /home/ionel/open-source/cookiecutter-pylibrary
allow_tests_inside_package: no
appveyor: yes
c_extension_function: '-'
c_extension_module: '-'
c_extension_optional: no
c_extension_support: no
c_extension_test_pypi: no
c_extension_test_pypi_username: ionelmc
codacy: no
codacy_projectid: '-'
codeclimate: no
codecov: no
command_line_interface: no
command_line_interface_bin_name: '-'
coveralls: 'no'
distribution_name: 'tox-wheel'
email: 'contact@ionelmc.ro'
full_name: 'Ionel Cristian Mărieș'
github_username: 'ionelmc'
landscape: 'no'
license: 'BSD 2-Clause License'
linter: 'flake8'
package_name: 'tox_wheel'
project_name: 'tox-wheel'
project_short_description: 'A Tox plugin that builds and installs wheels instead of sdist.'
release_date: 'today'
repo_name: 'tox-wheel'
requiresio: 'yes'
scrutinizer: 'no'
sphinx_docs: 'no'
sphinx_doctest: 'no'
sphinx_theme: 'sphinx-rtd-theme'
test_matrix_configurator: 'no'
test_matrix_separate_coverage: 'no'
test_runner: 'pytest'
travis: 'yes'
version: '0.1.0'
website: 'https://blog.ionelmc.ro'
year: 'now'
coveralls: no
coveralls_token: '-'
distribution_name: tox-wheel
email: contact@ionelmc.ro
full_name: Ionel Cristian Mărieș
landscape: no
license: BSD 2-Clause License
linter: flake8
package_name: tox_wheel
pre_commit: yes
project_name: tox-wheel
project_short_description: A Tox plugin that builds and installs wheels instead of sdist.
pypi_badge: yes
pypi_disable_upload: no
release_date: '2019-05-15'
repo_hosting: github.com
repo_hosting_domain: github.com
repo_name: tox-wheel
repo_username: ionelmc
requiresio: yes
scrutinizer: no
setup_py_uses_setuptools_scm: no
setup_py_uses_test_runner: no
sphinx_docs: no
sphinx_docs_hosting: '-'
sphinx_doctest: no
sphinx_theme: sphinx-rtd-theme
test_matrix_configurator: no
test_matrix_separate_coverage: no
test_runner: pytest
travis: yes
travis_osx: no
version: 0.4.2
website: https://blog.ionelmc.ro
year_from: '2019'
year_to: '2020'
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# see http://editorconfig.org
# see https://editorconfig.org/
root = true

[*]
Expand All @@ -11,3 +11,6 @@ charset = utf-8

[*.{bat,cmd,ps1}]
end_of_line = crlf

[*.{yml,yaml}]
indent_size = 2
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.py[cod]
__pycache__

# C extensions
*.so
Expand All @@ -21,6 +22,7 @@ lib
lib64
venv*/
pyvenv*/
pip-wheel-metadata/

# Installer logs
pip-log.txt
Expand Down Expand Up @@ -60,6 +62,7 @@ docs/_build
.env
.cache
.pytest
.benchmarks
.bootstrap
.appveyor.token
*.bak
Expand Down
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# To install the git pre-commit hook run:
# pre-commit install
# To update the pre-commit hooks run:
# pre-commit install-hooks
exclude: '^(.tox|ci/templates|.bumpversion.cfg)(/|$)'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: master
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/timothycrosley/isort
rev: master
hooks:
- id: isort
- repo: https://gitlab.com/pycqa/flake8
rev: master
hooks:
- id: flake8
73 changes: 27 additions & 46 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,67 +1,48 @@
language: python
cache: pip
dist: xenial
cache: false
env:
global:
- LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
- SEGFAULT_SIGNALS=all
- LANG=en_US.UTF-8
matrix:
include:
- python: '3.6'
env:
- TOXENV=check
- python: '2.7'
env:
- TOXENV=py27,report
- python: '3.4'
env:
- TOXENV=py34,report
- python: '3.5'
env:
- TOXENV=py35,report
- python: '3.6'
env:
- TOXENV=py36,report
- python: '3.7'
dist: xenial
env:
- TOXENV=py37,report
- python: 'pypy'
env:
- TOXENV=pypy,report
- python: 'pypy3'
env:
- TOXENV=pypy3,report
- env:
- TOXENV=py27
python: '2.7'
- env:
- TOXENV=py35
python: '3.5'
- env:
- TOXENV=py36
python: '3.6'
- env:
- TOXENV=py37
python: '3.7'
- env:
- TOXENV=py38
python: '3.8'
- env:
- TOXENV=pypy
python: 'pypy'
- env:
- TOXENV=pypy3
- TOXPYTHON=pypy3
python: 'pypy3'
before_install:
- python --version
- uname -a
- lsb_release -a
- lsb_release -a || true
install:
- pip install tox
- python -mpip install --progress-bar=off tox -rci/requirements.txt
- virtualenv --version
- easy_install --version
- pip --version
- tox --version
- |
set -ex
if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then
(cd $HOME
wget https://bitbucket.org/pypy/pypy/downloads/pypy2-v6.0.0-linux64.tar.bz2
tar xf pypy2-*.tar.bz2
pypy2-*/bin/pypy -m ensurepip
pypy2-*/bin/pypy -m pip install -U virtualenv)
export PATH=$(echo $HOME/pypy2-*/bin):$PATH
export TOXPYTHON=$(echo $HOME/pypy2-*/bin/pypy)
fi
if [[ $TRAVIS_PYTHON_VERSION == 'pypy3' ]]; then
(cd $HOME
wget https://bitbucket.org/pypy/pypy/downloads/pypy3-v6.0.0-linux64.tar.bz2
tar xf pypy3-*.tar.bz2
pypy3-*/bin/pypy3 -m ensurepip
pypy3-*/bin/pypy3 -m pip install -U virtualenv)
export PATH=$(echo $HOME/pypy3-*/bin):$PATH
export TOXPYTHON=$(echo $HOME/pypy3-*/bin/pypy3)
fi
set +x
script:
- tox -v
after_failure:
Expand Down
2 changes: 2 additions & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ Authors
=======

* Ionel Cristian Mărieș - https://blog.ionelmc.ro

* Antonio Botelho - https://github.com/botant/
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Changelog
=========

0.X.Y (2020-07-24)
------------------

* Added support for PEP 517/518.

0.4.2 (2019-05-15)
------------------

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ To set up `tox-wheel` for local development:

Now you can make your changes locally.

4. When you're done making changes, run all the checks, doc builder and spell checker with `tox <http://tox.readthedocs.io/en/latest/install.html>`_ one command::
4. When you're done making changes run all the checks and docs builder with `tox <https://tox.readthedocs.io/en/latest/install.html>`_ one command::

tox

Expand Down
Loading