-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
[wip] Pep 518 #861
[wip] Pep 518 #861
Conversation
Pulling over from #852. Pip tracking is pypa/pip#5407. The main point I'm making here is:
imo we should either:
Here's an example project which tox would prevent today, but this PR would incorrecty allow with status quo, correctly failing
your branch, incorrectly succeeding[tox]
build = wheel
[testenv]
commands =
pip freeze --all
your branch, unrelated also broken thing(noticed this while making a reproduction) -- (note that this is covered by my comment below about the open issue to use the virtualenv python instead of
|
Still need to add:
|
Codecov Report
@@ Coverage Diff @@
## master #861 +/- ##
==========================================
- Coverage 92.61% 92.25% -0.37%
==========================================
Files 12 12
Lines 2330 2349 +19
Branches 409 413 +4
==========================================
+ Hits 2158 2167 +9
- Misses 109 113 +4
- Partials 63 69 +6
Continue to review full report at Codecov.
|
Hi @gaborbernat - I am just catching up on all my notifications. This still looks like WIP, so please ping me, when you would like me to have a closer look. |
…mmands PEP-518 support: provide a tox configuration flag ``build`` which can be either ``sdist`` or ``wheel``. For ``sdist`` (default) we build the package as before by using ``python setup.py sdist``. However, when ``wheel`` is enabled now we'll use ``pip wheel`` to build it, and we'll also install wheels in these case into the environments. Note: ``pip`` 10 supports specifying project dependencies (such as ``setuptools-scm``, or a given ``setuptools`` version) via ``pyproject.toml``. Once ``pip`` supports building ``sdist`` to we'll migrate over the ``sdist`` build too. While running tox invokes various commands (such as building the package, pip installing dependencies and so on), these were printed in case they failed as Python arrays. Changed the representation to a shell command, allowing the users to quickly replicate/debug the failure on their own.
fb8cb25
to
f8935ce
Compare
74add49
to
bb4a94c
Compare
Retracting this. |
#850 PEP-518 support: provide a tox configuration flag
build
which can be eithersdist
orwheel
. Forsdist
(default) we build the package as before by usingpython setup.py sdist
. However, whenwheel
is enabled now we'll usepip wheel
to build it, and we'll also install wheels in these case into the environments. Note:pip
10 supports specifying project dependencies (such assetuptools-scm
, or a givensetuptools
version) viapyproject.toml
. Oncepip
supports buildingsdist
to we'll migrate over thesdist
build too.wheel
support also enforces to havepip 10+
and apyproject.toml
.#851 While running tox invokes various commands (such as building the package, pip installing dependencies and so on), these were printed in case they failed as Python arrays. Changed the representation to a shell command, allowing the users to quickly replicate/debug the failure on their own.