Coder Social home page Coder Social logo

pytest-benchmark-feedstock's Introduction

About pytest-benchmark

Home: https://github.com/ionelmc/pytest-benchmark

Package license: BSD-2-Clause

Feedstock license: BSD-3-Clause

Summary: A py.test fixture for benchmarking code

Current build status

All platforms:

Current release info

Name Downloads Version Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms

Installing pytest-benchmark

Installing pytest-benchmark from the conda-forge channel can be achieved by adding conda-forge to your channels with:

conda config --add channels conda-forge
conda config --set channel_priority strict

Once the conda-forge channel has been enabled, pytest-benchmark can be installed with conda:

conda install pytest-benchmark

or with mamba:

mamba install pytest-benchmark

It is possible to list all of the versions of pytest-benchmark available on your platform with conda:

conda search pytest-benchmark --channel conda-forge

or with mamba:

mamba search pytest-benchmark --channel conda-forge

Alternatively, mamba repoquery may provide more information:

# Search all versions available on your platform:
mamba repoquery search pytest-benchmark --channel conda-forge

# List packages depending on `pytest-benchmark`:
mamba repoquery whoneeds pytest-benchmark --channel conda-forge

# List dependencies of `pytest-benchmark`:
mamba repoquery depends pytest-benchmark --channel conda-forge

About conda-forge

Powered by NumFOCUS

conda-forge is a community-led conda channel of installable packages. In order to provide high-quality builds, the process has been automated into the conda-forge GitHub organization. The conda-forge organization contains one repository for each of the installable packages. Such a repository is known as a feedstock.

A feedstock is made up of a conda recipe (the instructions on what and how to build the package) and the necessary configurations for automatic building using freely available continuous integration services. Thanks to the awesome service provided by Azure, GitHub, CircleCI, AppVeyor, Drone, and TravisCI it is possible to build and upload installable packages to the conda-forge Anaconda-Cloud channel for Linux, Windows and OSX respectively.

To manage the continuous integration and simplify feedstock maintenance conda-smithy has been developed. Using the conda-forge.yml within this repository, it is possible to re-render all of this feedstock's supporting files (e.g. the CI configuration files) with conda smithy rerender.

For more information please check the conda-forge documentation.

Terminology

feedstock - the conda recipe (raw material), supporting scripts and CI configuration.

conda-smithy - the tool which helps orchestrate the feedstock. Its primary use is in the construction of the CI .yml files and simplify the management of many feedstocks.

conda-forge - the place where the feedstock and smithy live and work to produce the finished article (built conda distributions)

Updating pytest-benchmark-feedstock

If you would like to improve the pytest-benchmark recipe or build a new package version, please fork this repository and submit a PR. Upon submission, your changes will be run on the appropriate platforms to give the reviewer an opportunity to confirm that the changes result in a successful build. Once merged, the recipe will be re-built and uploaded automatically to the conda-forge channel, whereupon the built conda packages will be available for everybody to install and use from the conda-forge channel. Note that all branches in the conda-forge/pytest-benchmark-feedstock are immediately built and any created packages are uploaded, so PRs should be based on branches in forks and branches in the main repository should only be used to build distinct package versions.

In order to produce a uniquely identifiable distribution:

  • If the version of a package is not being increased, please add or increase the build/number.
  • If the version of a package is being increased, please remember to return the build/number back to 0.

Feedstock Maintainers

pytest-benchmark-feedstock's People

Contributors

aqc-carlodri avatar astrojuanlu avatar bgruening avatar conda-forge-admin avatar conda-forge-curator[bot] avatar danring avatar esloch avatar jjhelmus avatar mariusvniekerk avatar regro-cf-autotick-bot avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pytest-benchmark-feedstock's Issues

py-cpuinfo should be listed as dependency

Issue: py-cpuinfo should be listed as dependency. After installing pytest-benchmark, I tried to use pytest --benchmark-save=foobar and it failed with message:

ModuleNotFoundError: No module named 'cpuinfo'

conda install -c conda-forge cpuinfo resolved the issue.

Full error message:

~/S/t/short (master ^) pytest --benchmark-save=old cross.py                    (tvae) 
================================ test session starts =================================
platform linux -- Python 3.6.7, pytest-5.2.2, py-1.8.0, pluggy-0.12.0
benchmark: 3.2.2 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/blue/Scratchpad/tvem_benchmarks/short
plugins: benchmark-3.2.2
collected 1 item                                                                     

cross.py .                                                                     [100%]Traceback (most recent call last):
  File "/home/blue/miniconda3/envs/tvae/bin/pytest", line 11, in <module>
    sys.exit(main())
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/_pytest/config/__init__.py", line 90, in main
    return config.hook.pytest_cmdline_main(config=config)
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pluggy/hooks.py", line 289, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pluggy/manager.py", line 87, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pluggy/manager.py", line 81, in <lambda>
    firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pluggy/callers.py", line 208, in _multicall
    return outcome.get_result()
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pluggy/callers.py", line 80, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/_pytest/main.py", line 230, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/_pytest/main.py", line 223, in wrap_session
    session=session, exitstatus=session.exitstatus
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pluggy/hooks.py", line 289, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pluggy/manager.py", line 87, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pluggy/manager.py", line 81, in <lambda>
    firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pluggy/callers.py", line 203, in _multicall
    gen.send(outcome)
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/_pytest/terminal.py", line 650, in pytest_sessionfinish
    outcome.get_result()
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pluggy/callers.py", line 80, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pluggy/callers.py", line 182, in _multicall
    next(gen)  # first yield
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pytest_benchmark/plugin.py", line 313, in pytest_sessionfinish
    session.config._benchmarksession.finish()
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pytest_benchmark/session.py", line 200, in finish
    self.handle_saving()
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pytest_benchmark/session.py", line 135, in handle_saving
    machine_info = self.get_machine_info()
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pytest_benchmark/session.py", line 94, in get_machine_info
    obj = self.config.hook.pytest_benchmark_generate_machine_info(config=self.config)
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pluggy/hooks.py", line 289, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pluggy/manager.py", line 87, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pluggy/manager.py", line 81, in <lambda>
    firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pluggy/callers.py", line 208, in _multicall
    return outcome.get_result()
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pluggy/callers.py", line 80, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pytest_benchmark/plugin.py", line 367, in pytest_benchmark_generate_machine_info
    "cpu": get_cpu_info(),
  File "/home/blue/miniconda3/envs/tvae/lib/python3.6/site-packages/pytest_benchmark/plugin.py", line 328, in get_cpu_info
    import cpuinfo
ModuleNotFoundError: No module named 'cpuinfo'

Environment (conda list):
$ conda list

~ conda list                                                                                                                                                           (tvae) 
# packages in environment at /home/blue/miniconda3/envs/tvae:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main  
aioeasywebdav             2.2.0                    py36_0    conda-forge
aiohttp                   3.5.4            py36h14c3975_0    conda-forge
appdirs                   1.4.3                      py_1    conda-forge
asn1crypto                0.24.0                py36_1003    conda-forge
async-timeout             3.0.1                   py_1000    conda-forge
atomicwrites              1.3.0                      py_0    conda-forge
attrs                     19.1.0                     py_0    conda-forge
backcall                  0.1.0                      py_0    conda-forge
bcrypt                    3.1.6            py36h516909a_1    conda-forge
beautifulsoup4            4.7.1                 py36_1001    conda-forge
binutils-meta             1.0.2                         0    conda-forge
binutils_impl_linux-64    2.31.1               h6176602_1  
binutils_linux-64         2.31.1               h6176602_8  
black                     19.3b0                     py_0    conda-forge
blosc                     1.17.0               he1b5a44_1    conda-forge
boto3                     1.7.84                     py_0    conda-forge
botocore                  1.10.84                    py_0    conda-forge
bzip2                     1.0.6             h14c3975_1002    conda-forge
ca-certificates           2019.11.28           hecc5488_0    conda-forge
cachetools                2.1.0                      py_0    conda-forge
cairo                     1.16.0            ha4e643d_1000    conda-forge
certifi                   2019.11.28               py36_0    conda-forge
cffi                      1.12.3           py36h8022711_0    conda-forge
chardet                   3.0.4                 py36_1003    conda-forge
click                     7.0                        py_0    conda-forge
cloudpickle               1.2.2                      py_0    conda-forge
conda                     4.5.12                py36_1000    conda-forge
conda-build               3.18.2                   py36_0    conda-forge
conda-env                 2.6.0                         1    conda-forge
conda-package-handling    1.1.5                    py36_0    conda-forge
configargparse            0.13.0                     py_1    conda-forge
cryptography              2.7              py36h72c5cf5_0    conda-forge
cudatoolkit               10.0.130                      0  
cxx-compiler              1.0.2                hc9558a2_0    conda-forge
cycler                    0.10.0                     py_1    conda-forge
cython                    0.29.13          py36he6710b0_0  
cytoolz                   0.10.0           py36h516909a_0    conda-forge
dask-core                 2.6.0                      py_0    conda-forge
datrie                    0.7.1            py36h14c3975_0    conda-forge
dbus                      1.13.6               he372182_0    conda-forge
decorator                 4.4.0                      py_0    conda-forge
docutils                  0.14                  py36_1001    conda-forge
dropbox                   7.3.1                    py36_0    conda-forge
expat                     2.2.5             hf484d3e_1002    conda-forge
filechunkio               1.6                      py36_0    bioconda
filelock                  3.0.10                     py_0    conda-forge
flamegraph                0.1                      pypi_0    pypi
fontconfig                2.13.1            he4413a7_1000    conda-forge
freetype                  2.10.0               he983fc9_0    conda-forge
ftputil                   3.2                      py36_0    bioconda
gcc_impl_linux-64         7.3.0                habb00fd_1    conda-forge
gcc_linux-64              7.3.0                h553295d_8    conda-forge
gettext                   0.19.8.1          hc5be6a0_1002    conda-forge
gitdb2                    2.0.5                      py_0    conda-forge
gitpython                 2.1.11                     py_0    conda-forge
glib                      2.58.3            hf63aee3_1001    conda-forge
glob2                     0.6                        py_0    conda-forge
google-api-core           1.11.0                   py36_0    conda-forge
google-auth               1.2.1                      py_0    conda-forge
google-cloud-core         1.0.1                      py_0    conda-forge
google-cloud-storage      1.16.1                     py_0    conda-forge
google-resumable-media    0.3.2                      py_0    conda-forge
googleapis-common-protos  1.6.0                    py36_0    conda-forge
graphite2                 1.3.13            hf484d3e_1000    conda-forge
graphviz                  2.40.1               h0dab3d1_0    conda-forge
gst-plugins-base          1.14.5               h0935bb2_0    conda-forge
gstreamer                 1.14.5               h36ae1b5_0    conda-forge
gxx_impl_linux-64         7.3.0                hdf63c60_1    conda-forge
gxx_linux-64              7.3.0                h553295d_8    conda-forge
h5py                      2.9.0           nompi_py36hf008753_1102    conda-forge
harfbuzz                  2.4.0                h37c48d4_0    conda-forge
hdf5                      1.10.4          nompi_h3c11f04_1106    conda-forge
icu                       58.2              hf484d3e_1000    conda-forge
idna                      2.8                   py36_1000    conda-forge
idna_ssl                  1.1.0                 py36_1000    conda-forge
imageio                   2.6.1                    py36_0    conda-forge
importlib_metadata        0.23                     py36_0    conda-forge
intel-openmp              2019.4                      243  
ipdb                      0.12                       py_0    conda-forge
ipython                   7.5.0            py36h24bf2e0_0    conda-forge
ipython_genutils          0.2.0                      py_1    conda-forge
jedi                      0.13.3                   py36_0    conda-forge
jinja2                    2.10.1                     py_0    conda-forge
jmespath                  0.9.4                      py_0    conda-forge
joblib                    0.14.0                     py_0    conda-forge
jpeg                      9c                h14c3975_1001    conda-forge
jsonschema                3.0.1                    py36_0    conda-forge
kiwisolver                1.1.0            py36hc9558a2_0    conda-forge
libarchive                3.3.3             hb44662c_1005    conda-forge
libblas                   3.8.0                7_openblas    conda-forge
libcblas                  3.8.0                7_openblas    conda-forge
libffi                    3.2.1             he1b5a44_1006    conda-forge
libgcc-ng                 8.2.0                hdf63c60_1  
libgfortran-ng            7.3.0                hdf63c60_0  
libiconv                  1.15              h516909a_1005    conda-forge
liblapack                 3.8.0                7_openblas    conda-forge
liblief                   0.9.0                hf8a498c_1    conda-forge
libpng                    1.6.37               hed695b0_0    conda-forge
libprotobuf               3.8.0                h8b12597_0    conda-forge
libstdcxx-ng              8.2.0                hdf63c60_1  
libtiff                   4.0.10            h57b8799_1003    conda-forge
libtool                   2.4.6             h14c3975_1002    conda-forge
libuuid                   2.32.1            h14c3975_1000    conda-forge
libxcb                    1.13              h14c3975_1002    conda-forge
libxml2                   2.9.9                h13577e0_0    conda-forge
line_profiler             2.1.2           py36h14c3975_1002    conda-forge
lz4-c                     1.8.3             he1b5a44_1001    conda-forge
lzo                       2.10              h14c3975_1000    conda-forge
markupsafe                1.1.1            py36h14c3975_0    conda-forge
matplotlib                3.1.0                    py36_1    conda-forge
matplotlib-base           3.1.0            py36hfd891ef_1    conda-forge
mkl                       2019.4                      243  
mock                      3.0.5                    py36_0    conda-forge
more-itertools            7.2.0                      py_0    conda-forge
multidict                 4.5.2           py36h14c3975_1000    conda-forge
munch                     2.3.2                      py_0    conda-forge
mypy                      0.711                      py_0    conda-forge
mypy_extensions           0.4.1                    py36_0  
ncurses                   6.1               hf484d3e_1002    conda-forge
networkx                  2.3                        py_0    conda-forge
ninja                     1.9.0                h6bb024c_0    conda-forge
numexpr                   2.7.0            py36hb3f55d8_0    conda-forge
numpy                     1.16.4           py36h95a1406_0    conda-forge
olefile                   0.46                       py_0    conda-forge
openblas                  0.3.5             h9ac9557_1001    conda-forge
openssl                   1.1.1d               h516909a_0    conda-forge
packaging                 19.2                       py_0    conda-forge
pandas                    0.24.2           py36hb3f55d8_0    conda-forge
pango                     1.40.14           h4ea9474_1004    conda-forge
paramiko                  2.4.2                 py36_1000    conda-forge
parso                     0.4.0                      py_0    conda-forge
patchelf                  0.10                 he1b5a44_0    conda-forge
pcre                      8.41              hf484d3e_1003    conda-forge
pexpect                   4.7.0                    py36_0    conda-forge
pickleshare               0.7.5                 py36_1000    conda-forge
pillow                    6.2.0            py36h6b7be26_0    conda-forge
pip                       19.1.1                   py36_0    conda-forge
pixman                    0.34.0            h14c3975_1003    conda-forge
pkginfo                   1.5.0.1                    py_0    conda-forge
pluggy                    0.12.0                     py_0    conda-forge
prettytable               0.7.2                      py_2    conda-forge
prompt_toolkit            2.0.9                      py_0    conda-forge
protobuf                  3.8.0            py36he1b5a44_0    conda-forge
psutil                    5.6.2            py36h516909a_0    conda-forge
pthread-stubs             0.4               h14c3975_1001    conda-forge
ptyprocess                0.6.0                   py_1001    conda-forge
py                        1.8.0                      py_0    conda-forge
py-cpuinfo                5.0.0                      py_0    conda-forge
py-lief                   0.9.0            py36he1b5a44_1    conda-forge
pyasn1                    0.4.5                      py_0    conda-forge
pyasn1-modules            0.0.5                    py36_0    bioconda
pycosat                   0.6.3           py36h14c3975_1001    conda-forge
pycparser                 2.19                     py36_1    conda-forge
pygments                  2.4.2                      py_0    conda-forge
pygraphviz                1.3.1                    py36_0    bioconda
pynacl                    1.3.0           py36h14c3975_1000    conda-forge
pyopenssl                 19.0.0                   py36_0    conda-forge
pyparsing                 2.4.0                      py_0    conda-forge
pyqt                      5.9.2            py36hcca6a23_0    conda-forge
pyrsistent                0.15.2           py36h516909a_0    conda-forge
pysftp                    0.2.9                    py36_0    bioconda
pytables                  3.5.2            py36ha1aa75f_0    conda-forge
pytest                    5.2.2                    py36_0    conda-forge
pytest-benchmark          3.2.2                    py36_0    conda-forge
python                    3.6.7             h381d211_1004    conda-forge
python-dateutil           2.8.0                      py_0    conda-forge
python-irodsclient        0.7.0                      py_0    conda-forge
python-libarchive-c       2.8                   py36_1004    conda-forge
pytorch                   1.1.0           py3.6_cuda10.0.130_cudnn7.5.1_0    pytorch
pytz                      2019.1                     py_0    conda-forge
pywavelets                1.1.1            py36hc1659b7_0    conda-forge
pyyaml                    5.1.1            py36h516909a_0    conda-forge
qt                        5.9.7                h52cfd70_2    conda-forge
ratelimiter               1.2.0                 py36_1000    conda-forge
readline                  7.0               hf8c457e_1001    conda-forge
requests                  2.13.0                   py36_0    conda-forge
rsa                       3.1.4                    py36_0    bioconda
ruamel_yaml               0.15.71         py36h14c3975_1000    conda-forge
s3transfer                0.1.13                py36_1001    conda-forge
scikit-image              0.16.1           py36hb3f55d8_0    conda-forge
scikit-learn              0.21.3           py36hcdab131_0    conda-forge
scipy                     1.3.1            py36h921218d_2    conda-forge
setuptools                41.0.1                   py36_0    conda-forge
sip                       4.19.8          py36hf484d3e_1000    conda-forge
six                       1.12.0                py36_1000    conda-forge
smmap2                    2.0.5                      py_0    conda-forge
snakemake                 5.5.0                         0    bioconda
snakemake-minimal         5.5.0                      py_0    bioconda
soupsieve                 1.9.1                    py36_0    conda-forge
sqlite                    3.28.0               h8b20d00_0    conda-forge
tk                        8.6.9             hed695b0_1002    conda-forge
toml                      0.10.0                     py_0    conda-forge
toolz                     0.10.0                     py_0    conda-forge
torchvision               0.3.0           py36_cu10.0.130_1    pytorch
tornado                   6.0.2            py36h516909a_0    conda-forge
tqdm                      4.32.1                     py_0    conda-forge
traitlets                 4.3.2                 py36_1000    conda-forge
typed-ast                 1.4.0            py36h516909a_0    conda-forge
typing_extensions         3.7.2                 py36_1000    conda-forge
urllib3                   1.12                     py36_0    bioconda
wcwidth                   0.1.7                      py_1    conda-forge
wheel                     0.33.4                   py36_0    conda-forge
wrapt                     1.11.1           py36h516909a_0    conda-forge
xmlrunner                 1.7.7                      py_0    conda-forge
xorg-kbproto              1.0.7             h14c3975_1002    conda-forge
xorg-libice               1.0.9             h516909a_1004    conda-forge
xorg-libsm                1.2.3             h84519dc_1000    conda-forge
xorg-libx11               1.6.7             h14c3975_1000    conda-forge
xorg-libxau               1.0.9                h14c3975_0    conda-forge
xorg-libxdmcp             1.1.3                h516909a_0    conda-forge
xorg-libxext              1.3.4                h516909a_0    conda-forge
xorg-libxpm               3.5.12            h14c3975_1002    conda-forge
xorg-libxrender           0.9.10            h516909a_1002    conda-forge
xorg-libxt                1.1.5             h14c3975_1002    conda-forge
xorg-renderproto          0.11.1            h14c3975_1002    conda-forge
xorg-xextproto            7.3.0             h14c3975_1002    conda-forge
xorg-xproto               7.0.31            h14c3975_1007    conda-forge
xz                        5.2.4             h14c3975_1001    conda-forge
yaml                      0.1.7             h14c3975_1001    conda-forge
yarl                      1.3.0           py36h14c3975_1000    conda-forge
zipp                      0.6.0                      py_0    conda-forge
zlib                      1.2.11            h14c3975_1004    conda-forge
zstd                      1.4.0                h3b9ef0a_0    conda-forge

Details about conda and system ( conda info ):
$ conda info


     active environment : tvae
    active env location : /home/blue/miniconda3/envs/tvae
            shell level : 1
       user config file : /home/blue/.condarc
 populated config files : /home/blue/.condarc
          conda version : 4.7.12
    conda-build version : 3.17.8
         python version : 3.6.9.final.0
       virtual packages : 
       base environment : /home/blue/miniconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/blue/miniconda3/pkgs
                          /home/blue/.conda/pkgs
       envs directories : /home/blue/miniconda3/envs
                          /home/blue/.conda/envs
               platform : linux-64
             user-agent : conda/4.7.12 requests/2.21.0 CPython/3.6.9 Linux/5.3.13-arch1-1 arch/rolling glibc/2.30
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

AttributeError: 'Config' object has no attribute 'warn'

The pin for pytest might be incorrect.

`AttributeError: 'Config' object has no attribute 'warn'`, as reported at https://github.com/ionelmc/pytest-benchmark/issues/147.

To reproduce:

$ conda create -n pytest pytest-benchmark
[...]
  atomicwrites       conda-forge/noarch::atomicwrites-1.3.0-py_0
  attrs              conda-forge/noarch::attrs-18.2.0-py_0
  bzip2              conda-forge/linux-64::bzip2-1.0.6-h14c3975_1002
  ca-certificates    conda-forge/linux-64::ca-certificates-2018.11.29-ha4d7672_0
  certifi            conda-forge/linux-64::certifi-2018.11.29-py37_1000
  libffi             conda-forge/linux-64::libffi-3.2.1-hf484d3e_1005
  libgcc-ng          conda-forge/linux-64::libgcc-ng-7.3.0-hdf63c60_0
  libstdcxx-ng       conda-forge/linux-64::libstdcxx-ng-7.3.0-hdf63c60_0
  more-itertools     conda-forge/linux-64::more-itertools-4.3.0-py37_1000
  ncurses            conda-forge/linux-64::ncurses-6.1-hf484d3e_1002
  openssl            conda-forge/linux-64::openssl-1.1.1b-h14c3975_0
  pluggy             conda-forge/noarch::pluggy-0.9.0-py_0
  py                 conda-forge/noarch::py-1.8.0-py_0
  pytest             conda-forge/linux-64::pytest-4.3.0-py37_0
  pytest-benchmark   conda-forge/linux-64::pytest-benchmark-3.0.0-py37_1001
  python             conda-forge/linux-64::python-3.7.1-h381d211_1002
  readline           conda-forge/linux-64::readline-7.0-hf8c457e_1001
  setuptools         conda-forge/linux-64::setuptools-40.8.0-py37_0
  six                conda-forge/linux-64::six-1.12.0-py37_1000
  sqlite             conda-forge/linux-64::sqlite-3.26.0-h67949de_1000
  tk                 conda-forge/linux-64::tk-8.6.9-h84994c4_1000
  xz                 conda-forge/linux-64::xz-5.2.4-h14c3975_1001
  zlib               conda-forge/linux-64::zlib-1.2.11-h14c3975_1004
[...]
$ conda activate pytest
$ touch test.py
$ pytest test.py
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/home/jule/proj/conda/miniconda3/envs/pytest/lib/python3.7/site-packages/_pytest/main.py", line 206, in wrap_session
INTERNALERROR>     config._do_configure()
INTERNALERROR>   File "/home/jule/proj/conda/miniconda3/envs/pytest/lib/python3.7/site-packages/_pytest/config/__init__.py", line 639, in _do_configure
INTERNALERROR>     self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
INTERNALERROR>   File "/home/jule/proj/conda/miniconda3/envs/pytest/lib/python3.7/site-packages/pluggy/hooks.py", line 311, in call_historic
INTERNALERROR>     res = self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR>   File "/home/jule/proj/conda/miniconda3/envs/pytest/lib/python3.7/site-packages/pluggy/manager.py", line 68, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/home/jule/proj/conda/miniconda3/envs/pytest/lib/python3.7/site-packages/pluggy/manager.py", line 62, in <lambda>
INTERNALERROR>     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR>   File "/home/jule/proj/conda/miniconda3/envs/pytest/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>   File "/home/jule/proj/conda/miniconda3/envs/pytest/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File "/home/jule/proj/conda/miniconda3/envs/pytest/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/home/jule/proj/conda/miniconda3/envs/pytest/lib/python3.7/site-packages/pytest_benchmark/plugin.py", line 1092, in pytest_configure
INTERNALERROR>     config._benchmarksession = BenchmarkSession(config)
INTERNALERROR>   File "/home/jule/proj/conda/miniconda3/envs/pytest/lib/python3.7/site-packages/pytest_benchmark/plugin.py", line 568, in __init__
INTERNALERROR>     self.logger = Logger(self.verbose, config)
INTERNALERROR>   File "/home/jule/proj/conda/miniconda3/envs/pytest/lib/python3.7/site-packages/pytest_benchmark/plugin.py", line 519, in __init__
INTERNALERROR>     self.pytest_warn = config.warn
INTERNALERROR> AttributeError: 'Config' object has no attribute 'warn'

If it matters, conda info produces

     active environment : pytest
    active env location : /home/jule/proj/conda/miniconda3/envs/pytest
            shell level : 2
       user config file : /home/jule/.condarc
 populated config files : /home/jule/.condarc
          conda version : 4.6.4
    conda-build version : not installed
         python version : 3.7.1.final.0
       base environment : /home/jule/proj/conda/miniconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/linux-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/jule/proj/conda/miniconda3/pkgs
                          /home/jule/.conda/pkgs
       envs directories : /home/jule/proj/conda/miniconda3/envs
                          /home/jule/.conda/envs
               platform : linux-64
             user-agent : conda/4.6.4 requests/2.21.0 CPython/3.7.1 Linux/4.20.10-arch1-1-ARCH arch/rolling glibc/2.28
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

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.