https://github.com/bjodah/dummypkg

Dummy package

https://github.com/bjodah/dummypkg

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.4%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Dummy package

Basic Info
  • Host: GitHub
  • Owner: bjodah
  • Language: Python
  • Default Branch: master
  • Size: 2.93 KB
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 10 years ago · Last pushed over 10 years ago
Metadata Files
Readme

README.rst

dummypkg
========

Using ``pytest --pyargs pythonpackagename`` under a ``conda`` environment does not work.
This is a minimal example for reproducing this bug.


Steps to reproduce
------------------
Only ``dummypkg`` is downloaded from bjodah channel, rest from ``defaults``

::

   $ conda create -c bjodah -n dummy2 python=2.7 dummypkg pytest
   $ source activate dummy2
   $ python -m pytest --pyargs dummypkg
   ================================================================================================ test session starts ================================================================================================
   platform linux2 -- Python 2.7.11, pytest-2.8.5, py-1.4.31, pluggy-0.3.1
   rootdir: /home/chempy, inifile: 
   
   =========================================================================================== no tests ran in 0.00 seconds ============================================================================================
   ERROR: file or package not found: dummypkg

the same goes for python3.4. The weird thing is that the package is importable:

::

   $ which python
   /home/chempy/miniconda2/envs/dummy3/bin/python
   $ python -c "import dummypkg; print(dummypkg.__file__); from dummypkg.tests.test_core import test_f; test_f(); import pytest; print(pytest.__version__, pytest.__file__); pytest.main(['--pyargs', 'dummypkg'])"
   /home/chempy/miniconda2/envs/dummy3/lib/python3.4/site-packages/dummypkg-0.1.0-py3.4.egg/dummypkg/__init__.py
   2.8.5 /home/chempy/miniconda2/envs/dummy3/lib/python3.4/site-packages/pytest.py
   ================================================================================================ test session starts ================================================================================================
   platform linux -- Python 3.4.4, pytest-2.8.5, py-1.4.31, pluggy-0.3.1
   rootdir: /home/chempy, inifile: 
   
   =========================================================================================== no tests ran in 0.00 seconds ============================================================================================
   ERROR: file or package not found: dummypkg


deactivating our environment and using system provided python (Ubuntu 14.04) and `pip` everything works fine:

::

   $ source deactivate
   discarding /home/chempy/miniconda2/envs/dummy3/bin from PATH
   $ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
   $ which python
   /usr/bin/python
   $ python -m pip install --upgrade --user pytest git+https://github.com/bjodah/dummypkg.git
   $ python -m pytest --pyargs dummypkg
   ================================================================================================ test session starts ================================================================================================
   platform linux2 -- Python 2.7.6, pytest-2.8.7, py-1.4.31, pluggy-0.3.1
   rootdir: /home/chempy, inifile: 
   plugins: cov-1.8.0
   collected 1 items 
   
   .local/lib/python2.7/site-packages/dummypkg/tests/test_core.py .
   
   ============================================================================================= 1 passed in 0.00 seconds ==============================================================================================


(I've tried with pytest 2.6.2 & 2.8.5 as well and it works)

::

   $ python -c "import dummypkg; print(dummypkg.__file__); from dummypkg.tests.test_core import test_f; test_f(); import pytest; print(pytest.__version__, pytest.__file__); pytest.main(['--pyargs', 'dummypkg'])"
   /home/chempy/.local/lib/python2.7/site-packages/dummypkg/__init__.pyc
   ('2.8.7', '/home/chempy/.local/lib/python2.7/site-packages/pytest.pyc')
   ================================================================================================ test session starts ================================================================================================
   platform linux2 -- Python 2.7.6, pytest-2.8.7, py-1.4.31, pluggy-0.3.1
   rootdir: /home/chempy, inifile: 
   plugins: cov-1.8.0
   collected 1 items 
   
   .local/lib/python2.7/site-packages/dummypkg/tests/test_core.py .
   
   ============================================================================================= 1 passed in 0.00 seconds ==============================================================================================

Owner

  • Name: Bjorn
  • Login: bjodah
  • Kind: user

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: less than a minute
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • bjodah (2)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

docker-environment/Dockerfile docker
  • continuumio/miniconda 3.19.0 build
revised-docker-environment/Dockerfile docker
  • continuumio/miniconda 3.19.0 build
revised2-docker-environment-non-egg/Dockerfile docker
  • continuumio/miniconda 3.19.0 build