pytest-dev / pytest-forked

extracted --boxed from pytest-xdist to ensure backward compat
MIT License
67 stars 21 forks source link

Add pyproject.toml #26

Closed tucked closed 5 years ago

tucked commented 5 years ago

There are no wheels ATM for 1.1.0 or 1.1.1. That means pip needs to build one, and, since this package uses setup_requires, that means easy_install will be used to fetch setuptools_scm. That is a problem for our CI for embarrassing reasons. We do have an updated pip, though, so if there were a pyproject.toml, we could probably build successfully. So, here it is...

I would also appreciate it if someone would upload a wheel for the newest version(s). It looks like that was the intention anyways: https://github.com/pytest-dev/pytest-forked/blob/dd42fd1861201536f985be7075f8cd869e17179c/.travis.yml#L30 (It doesn't look like that behaved correctly, though: https://travis-ci.org/pytest-dev/pytest-forked/jobs/596284457#L377)

bt-thiago commented 5 years ago

We have also been affected by the 1.1.x upgrade as our build environments don't allow direct access to the Internet. All builds use an internal Nexus 3 pypi proxy and easy_install isn't aware of the pip configuration.

So thanks for contributing the PR. We'll unpin the package version once it's merged and released.

Collecting pytest-forked (from pytest-xdist->-r requirements3.txt (line 7))
  Downloading https://<internal-url-redacted>/repository/pypi-all/packages/ae/9c/8f0c51c98ee5165ff575f196662a4a314ff07c9d3de64a94580c982edcee/pytest-forked-1.1.1.tar.gz
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_p9i19vx/pytest-forked/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_p9i19vx/pytest-forked/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
         cwd: /tmp/pip-install-_p9i19vx/pytest-forked/
    Complete output (26 lines):
    Download error on https://pypi.org/simple/setuptools_scm/: [Errno 101] Network is unreachable -- Some packages may not be found!
    Download error on https://pypi.org/simple/setuptools-scm/: [Errno 101] Network is unreachable -- Some packages may not be found!
    Couldn't find index page for 'setuptools_scm' (maybe misspelled?)
    Download error on https://pypi.org/simple/: [Errno 101] Network is unreachable -- Some packages may not be found!
    No local packages or working download links found for setuptools_scm
untitaker commented 5 years ago

@RonnyPfannschmidt do we just want to merge this and hope travis does the right thing next time? I honestly don't know what this does

RonnyPfannschmidt commented 5 years ago

i'll sort out the fallout of this one as needed