Comments (16)
Do you have a traceback?
The current master is slated to be a 3.0.0 and it's close to release (I'm tweaking few things now).
from pytest-benchmark.
It's basically this one: #17
from pytest-benchmark.
Oh, that file is not really useful (it provides some functions that were added in 3.4). You can safely use pytest-benchmark on 3.4+ - you don't need the pep418 module at all.
from pytest-benchmark.
I can make a 2.5.1 release right now if you want to use python 3.3 - is that the case?
from pytest-benchmark.
It's not a runtime problem but rather install-time -- setuptools tries to byte-compile modules when installing and then that fails (it's on python3.4):
running build
running build_py
creating dist/lib
creating dist/lib/pytest_benchmark
copying src/pytest_benchmark/__init__.py -> dist/lib/pytest_benchmark
copying src/pytest_benchmark/compat.py -> dist/lib/pytest_benchmark
copying src/pytest_benchmark/pep418.py -> dist/lib/pytest_benchmark
copying src/pytest_benchmark/plugin.py -> dist/lib/pytest_benchmark
copying src/pytest_benchmark/stats.py -> dist/lib/pytest_benchmark
copying src/pytest_benchmark/timers.py -> dist/lib/pytest_benchmark
running egg_info
writing entry points to src/pytest_benchmark.egg-info/entry_points.txt
writing dependency_links to src/pytest_benchmark.egg-info/dependency_links.txt
writing top-level names to src/pytest_benchmark.egg-info/top_level.txt
writing src/pytest_benchmark.egg-info/PKG-INFO
writing requirements to src/pytest_benchmark.egg-info/requires.txt
reading manifest file 'src/pytest_benchmark.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no directories found matching 'examples'
warning: no directories found matching 'ci'
warning: no files found matching '.bumpversion.cfg'
warning: no files found matching '.isort.cfg'
warning: no files found matching '.pylintrc'
warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
writing manifest file 'src/pytest_benchmark.egg-info/SOURCES.txt'
running install
running install_lib
creating env/lib/python3.4/site-packages/pytest_benchmark
copying dist/lib/pytest_benchmark/__init__.py -> env/lib/python3.4/site-packages/pytest_benchmark
copying dist/lib/pytest_benchmark/compat.py -> env/lib/python3.4/site-packages/pytest_benchmark
copying dist/lib/pytest_benchmark/pep418.py -> env/lib/python3.4/site-packages/pytest_benchmark
copying dist/lib/pytest_benchmark/plugin.py -> env/lib/python3.4/site-packages/pytest_benchmark
copying dist/lib/pytest_benchmark/stats.py -> env/lib/python3.4/site-packages/pytest_benchmark
copying dist/lib/pytest_benchmark/timers.py -> env/lib/python3.4/site-packages/pytest_benchmark
byte-compiling env/lib/python3.4/site-packages/pytest_benchmark/__init__.py to __init__.cpython-34.pyc
byte-compiling env/lib/python3.4/site-packages/pytest_benchmark/compat.py to compat.cpython-34.pyc
byte-compiling env/lib/python3.4/site-packages/pytest_benchmark/pep418.py to pep418.cpython-34.pyc
byte-compiling env/lib/python3.4/site-packages/pytest_benchmark/plugin.py to plugin.cpython-34.pyc
byte-compiling env/lib/python3.4/site-packages/pytest_benchmark/stats.py to stats.cpython-34.pyc
byte-compiling env/lib/python3.4/site-packages/pytest_benchmark/timers.py to timers.cpython-34.pyc
running install_egg_info
Copying src/pytest_benchmark.egg-info to env/lib/python3.4/site-packages/pytest_benchmark-2.5.0-py3.4.egg-info
running install_scripts
File "env/lib/python3.4/site-packages/pytest_benchmark/pep418.py", line 47
except ImportError, err:
^
SyntaxError: invalid syntax
from pytest-benchmark.
Those are just warnings. Are you sure it didn't install?
from pytest-benchmark.
Oh, yea, indeed. It's a part of a much large build system that I'm running that purposefully fails on any syntax errors found when installing (basically port of tox to conda's environments), so that's why....
I managed to get it working git master branch, so if you're planning on releasing 3.0 soon anyway it's probably fine
from pytest-benchmark.
There are only two things that I want to do before release:
- remove dead code and/or increase test coverage
- polish a bit the
benchmark.manual
api - don't use that yet, renaming might be possible :-)
from pytest-benchmark.
Released 3.0.0a1
from pytest-benchmark.
That's great, thanks!
By the way, I've had a bunch of suggestions after using pytest-benchmark for a while, should I just dump them all into one issue?
from pytest-benchmark.
However you want. If they are not really related to each other the maybe
individual issues is better
On Sunday, September 13, 2015, Ivan Smirnov [email protected]
wrote:
That's great, thanks!
By the way, I've had a bunch of suggestions after using pytest-benchmark
for a while, should I just dump them all into one issue?β
Reply to this email directly or view it on GitHub
#18 (comment)
.
Thanks,
-- Ionel Cristian MΔrieΘ, http://blog.ionelmc.ro
from pytest-benchmark.
it would be nice to see a stable release put out because right now pip install pytest-benchmark
installs 2.5 here, and this warning shows up. it does get installed fine, but it's a little confusing at first...
from pytest-benchmark.
I know it's annoying but I just want to get it right. I have this unshakable feeling that I got something wrong in 3.0 - please give feedback π
from pytest-benchmark.
sorry for the dumb question, but how do i install 3.0?
from pytest-benchmark.
pip install pytest-benchmark==3.0.0a3
or pip install --pre pytest-benchmark
from pytest-benchmark.
3.0.0a3 looks fine here, thanks for the tip
from pytest-benchmark.
Related Issues (20)
- compare-fail with different criteria per test or group HOT 7
- 3.4.1: pytest is failing in few units HOT 1
- skip setup function time
- Return the first, instead of the last result in benchmark fixture HOT 1
- Hook configuration via attributes is deprecated in pytest HOT 1
- Context Manager HOT 3
- Compatibility issue with pytest 7.2: Package `py` is used but not listed as dependency HOT 10
- 4.0.0: pytest is failing HOT 3
- No test are choosen when directory is specified in command line HOT 2
- HTML reports HOT 1
- Broken tests with python 3.11 HOT 2
- Change the benchmark columns in the output
- Tracking success rate of benchmarked functions HOT 1
- 4.0.0: pytest is failing in `tests/test_utils.py::test_commit_info_error` unit
- Is development on this repo still occurring? HOT 3
- `datetime.utcnow()` deprecated in Python 3.12
- pytest-benchmark causes hypothesis tests to fail HOT 1
- Undocumented behavior on `benchmark.weave` when patching class methods. HOT 1
- Using `--benchmark-only` hits assertion in pytest
- Feature request: Profiling is done cumulatively on iterations
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-benchmark.