Giter Site home page Giter Site logo

Comments (16)

ionelmc avatar ionelmc commented on May 19, 2024

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.

aldanor avatar aldanor commented on May 19, 2024

It's basically this one: #17

from pytest-benchmark.

ionelmc avatar ionelmc commented on May 19, 2024

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.

ionelmc avatar ionelmc commented on May 19, 2024

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.

aldanor avatar aldanor commented on May 19, 2024

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.

ionelmc avatar ionelmc commented on May 19, 2024

Those are just warnings. Are you sure it didn't install?

from pytest-benchmark.

aldanor avatar aldanor commented on May 19, 2024

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.

ionelmc avatar ionelmc commented on May 19, 2024

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.

ionelmc avatar ionelmc commented on May 19, 2024

Released 3.0.0a1

from pytest-benchmark.

aldanor avatar aldanor commented on May 19, 2024

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.

ionelmc avatar ionelmc commented on May 19, 2024

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.

anarcat avatar anarcat commented on May 19, 2024

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.

ionelmc avatar ionelmc commented on May 19, 2024

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.

anarcat avatar anarcat commented on May 19, 2024

sorry for the dumb question, but how do i install 3.0?

from pytest-benchmark.

ionelmc avatar ionelmc commented on May 19, 2024

pip install pytest-benchmark==3.0.0a3 or pip install --pre pytest-benchmark

from pytest-benchmark.

anarcat avatar anarcat commented on May 19, 2024

3.0.0a3 looks fine here, thanks for the tip

from pytest-benchmark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.