Comments (8)
I think the problem is I only publish wheels, and easy_install can't handle wheels.
Pip really is the future, and easy_install a legacy thing. Could you be persuaded to use pip instead? (An option is to easy_install pip, then use pip...)
from pytest-asyncio.
@Tinche Yes, that's correct.
The problem is not me is the setup.py
that keep using easy_install
for some internal things like install requirements defined inside it. Please see an example here https://github.com/wiliamsouza/echo/blob/master/setup.py#L18. I made a workaround here wiliamsouza/echod@66e28d4. If you provides a source dist you don't break setup.py
and everyone using pip
will keep using wheels for default.
from pytest-asyncio.
@Tinche any reason for not also providing a sdist
? That seems to me to be the standard practice, publish both sdist
and wheels
whenever possible.
from pytest-asyncio.
@wiliamsouza Ah, you're using tests_require. Personally, I've switched to using a special requirements.txt for test requirements, mostly because of this situation of setuptools using easy_install for the requirements (you miss all the others benefits of pip too).
@nicoddemus Well, as I understand it wheels are superior to sdists even in the pure Python case (faster installation, no arbitrary code execution during installation). Since this is a Python 3 project I thought we'd just use the modern goodies off the bat. I guess there'd be no harm providings sdists too, other than the 30 seconds more effort any time a release is made...
from pytest-asyncio.
I guess sdist
is the plain-old dist format which can be used by absolutely anyone, so it makes sense to always publish it alongside wheels. For example, I'm not sure you can create conda packages directly from wheels, but you can from sdist
s.
from pytest-asyncio.
I've just pushed out 0.2.0 to PyPI, including a sdist, so this should now work.
from pytest-asyncio.
@Tinche Thanks!
from pytest-asyncio.
So close this issue already ;-)
from pytest-asyncio.
Related Issues (20)
- Support for Pytest 8.0 HOT 14
- pytest-asyncio makes pytest collect modules not matching `python_files`, causing `ModuleNotFoundError` HOT 3
- Startup failure on Windows with Version 0.23.3 HOT 1
- 0.23.3 breaking ImportError exception HOT 1
- documentation on how to force all tests in one session to use the same event loop appears to not force fixtures into the same event loop HOT 4
- TypeError: __call__() got an unexpected keyword argument 'specname' in version 0.23 pytest-asyncio HOT 3
- Python 3.11: DeprecationWarning: There is no current event loop HOT 12
- Hypothesis integration raises internal error when collecting `RuleBasedStateMachine` HOT 2
- AsyncGenerator early exit doesn't raise CancelledError and doesn't run `finally` branch HOT 4
- RuntimeError: "Timeout context manager should be used inside a task" in aiohttp with version 0.23 pytest-asyncio HOT 1
- pytest 8.0.0 AttributeError: 'Package' object has no attribute 'obj' HOT 2
- AttributeError: '_UnixSelectorEventLoop' object has no attribute '_compute_internal_coro' HOT 1
- Drop support for pytest 7
- Factory fixtures are causing `'Coroutine' object is not callable` warning in UI, but tests still run HOT 3
- Configuration option for default loop scope
- Can't async mock a method in a context manager HOT 2
- Parametrizing `event_loop_policy` parametrizes all tests
- Not compatible with --doctest-modules --doctest-ignore-import-errors HOT 1
- How to use event_loop_policy without triggering warnings? HOT 1
- "The test […] is not an async function" when `asyncio` marker is added via `pytest_collection_modifyitems()` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest-asyncio.