Comments (16)
Hey, can you run tree
. I want to see what files you have.
from cookiecutter-pylibrary.
Hi,
Thanks for your quick answer :) Here is the output of tree
:
➜ mylib tree
.
├── appveyor.yml
├── AUTHORS.rst
├── build
│ ├── bdist.linux-x86_64
│ └── lib
│ └── mylib
│ ├── cli.py
│ ├── __init__.py
│ └── __main__.py
├── CHANGELOG.rst
├── ci
│ ├── appveyor-bootstrap.py
│ ├── appveyor-download.py
│ ├── appveyor-with-compiler.cmd
│ ├── bootstrap.py
│ └── templates
│ └── appveyor.yml
├── CONTRIBUTING.rst
├── dist
│ ├── mylib-0.3.0-py3.5.egg
│ └── docs
│ ├── authors.html
│ ├── changelog.html
│ ├── contributing.html
│ ├── genindex-A.html
│ ├── genindex-all.html
│ ├── genindex.html
│ ├── index.html
│ ├── installation.html
│ ├── objects.inv
│ ├── output.txt
│ ├── py-modindex.html
│ ├── readme.html
│ ├── reference
│ │ ├── mylib.html
│ │ └── index.html
│ ├── search.html
│ ├── searchindex.js
│ ├── _sources
│ │ ├── authors.txt
│ │ ├── changelog.txt
│ │ ├── contributing.txt
│ │ ├── index.txt
│ │ ├── installation.txt
│ │ ├── readme.txt
│ │ ├── reference
│ │ │ ├── mylib.txt
│ │ │ └── index.txt
│ │ └── usage.txt
│ ├── _static
│ │ ├── ajax-loader.gif
│ │ ├── basic.css
│ │ ├── comment-bright.png
│ │ ├── comment-close.png
│ │ ├── comment.png
│ │ ├── css
│ │ │ ├── badge_only.css
│ │ │ └── theme.css
│ │ ├── doctools.js
│ │ ├── down.png
│ │ ├── down-pressed.png
│ │ ├── file.png
│ │ ├── fonts
│ │ │ ├── fontawesome-webfont.eot
│ │ │ ├── fontawesome-webfont.svg
│ │ │ ├── fontawesome-webfont.ttf
│ │ │ ├── fontawesome-webfont.woff
│ │ │ ├── Inconsolata-Bold.ttf
│ │ │ ├── Inconsolata-Regular.ttf
│ │ │ ├── Lato-Bold.ttf
│ │ │ ├── Lato-Regular.ttf
│ │ │ ├── RobotoSlab-Bold.ttf
│ │ │ └── RobotoSlab-Regular.ttf
│ │ ├── jquery-1.11.1.js
│ │ ├── jquery.js
│ │ ├── js
│ │ │ ├── modernizr.min.js
│ │ │ └── theme.js
│ │ ├── minus.png
│ │ ├── plus.png
│ │ ├── pygments.css
│ │ ├── searchtools.js
│ │ ├── underscore-1.3.1.js
│ │ ├── underscore.js
│ │ ├── up.png
│ │ ├── up-pressed.png
│ │ └── websupport.js
│ └── usage.html
├── docs
│ ├── authors.rst
│ ├── changelog.rst
│ ├── conf.py
│ ├── contributing.rst
│ ├── index.rst
│ ├── installation.rst
│ ├── readme.rst
│ ├── reference
│ │ ├── mylib.rst
│ │ └── index.rst
│ ├── requirements.txt
│ ├── spelling_wordlist.txt
│ └── usage.rst
├── LICENSE
├── MANIFEST.in
├── README.rst
├── setup.cfg
├── setup.py
├── src
│ ├── mylib
│ │ ├── cli.py
│ │ ├── cli.pyc
│ │ ├── __init__.py
│ │ ├── __init__.pyc
│ │ ├── __main__.py
│ │ ├── __main__.pyc
│ │ └── __pycache__
│ │ ├── cli.cpython-34.pyc
│ │ ├── cli.cpython-35.pyc
│ │ ├── __init__.cpython-34.pyc
│ │ ├── __init__.cpython-35.pyc
│ │ ├── __main__.cpython-34.pyc
│ │ └── __main__.cpython-35.pyc
│ └── mylib.egg-info
│ ├── dependency_links.txt
│ ├── entry_points.txt
│ ├── not-zip-safe
│ ├── PKG-INFO
│ ├── requires.txt
│ ├── SOURCES.txt
│ └── top_level.txt
├── tests
│ ├── __pycache__
│ │ ├── test_mylib.cpython-27-PYTEST.pyc
│ │ ├── test_mylib.cpython-34-PYTEST.pyc
│ │ ├── test_mylib.cpython-35-PYTEST.pyc
│ │ └── test_mylib.pypy-27-PYTEST.pyc
│ └── test_mylib
└── tox.ini
from cookiecutter-pylibrary.
Shouldn't you be importing "mylib" in your tests?
tests/test_mylib:4: in <module>
from avid.__main__ import main
E ImportError: No module named avid.__main__
There's no avid
package anywhere. What am I missing? :-)
from cookiecutter-pylibrary.
simple copy / paste error (wanted to obfuscate the lib name due to legal issues :-) ). avid == mylib :)
from cookiecutter-pylibrary.
Something strange is going on. Can you do a rm -rf .tox dist build src/*.egg-info
and try again?
from cookiecutter-pylibrary.
Yep. So again my real cookiecutterrc (maybe related to projet_name or something?) :
# This file exists so you can easily regenerate your project.
#
# Unfortunately cookiecutter can't use this right away so
# you have to copy this file to ~/.cookiecutterrc
default_context:
appveyor: 'yes'
c_extension_optional: 'no'
c_extension_support: 'no'
codacy: 'no'
codeclimate: 'no'
codecov: 'yes'
command_line_interface: 'click'
coveralls: 'no'
distribution_name: 'avid.py'
email: '[email protected]'
full_name: 'Julien Tanay'
github_username: 'Djiit'
landscape: 'no'
package_name: 'avid'
project_name: ''
project_short_description: '.'
release_date: 'today'
repo_name: 'avid.py'
requiresio: 'yes'
scrutinizer: 'no'
sphinx_theme: 'readthedocs'
test_matrix_configurator: 'no'
test_runner: 'pytest'
travis: 'yes'
version: '0.3.0'
website: ''
year: 'now'
And the output of the tox
cmd :
➜ avid.py rm -rf .tox dist build src/*.egg-info
➜ avid.py tox
GLOB sdist-make: /home/jtanay/dev/avid-lib/avid.py/setup.py
clean create: /home/jtanay/dev/avid-lib/avid.py/.tox/clean
clean installdeps: coverage
clean installed: You are using pip version 6.0.2, however version 7.1.2 is available.,You should consider upgrading via the 'pip install --upgrade pip' command.,coverage==4.0.3
clean runtests: PYTHONHASHSEED='4216335515'
clean runtests: commands[0] | coverage erase
check create: /home/jtanay/dev/avid-lib/avid.py/.tox/check
check installdeps: docutils, check-manifest, flake8, readme, pygments
check installed: You are using pip version 6.0.2, however version 7.1.2 is available.,You should consider upgrading via the 'pip install --upgrade pip' command.,bleach==1.4.2,check-manifest==0.30,docutils==0.12,flake8==2.5.1,html5lib==0.9999999,mccabe==0.3.1,pep8==1.5.7,pyflakes==1.0.0,Pygments==2.0.2,readme==0.6.0,six==1.10.0
check runtests: PYTHONHASHSEED='4216335515'
check runtests: commands[0] | python setup.py check --strict --metadata --restructuredtext
running check
check runtests: commands[1] | check-manifest /home/jtanay/dev/avid-lib/avid.py
Couldn't find version control data (git/hg/bzr/svn supported)
ERROR: InvocationError: '/home/jtanay/dev/avid-lib/avid.py/.tox/check/bin/check-manifest /home/jtanay/dev/avid-lib/avid.py'
py26-cover create: /home/jtanay/dev/avid-lib/avid.py/.tox/py26-cover
ERROR: InterpreterNotFound: python2.6
py26-nocov create: /home/jtanay/dev/avid-lib/avid.py/.tox/py26-nocov
ERROR: InterpreterNotFound: python2.6
py27-cover create: /home/jtanay/dev/avid-lib/avid.py/.tox/py27-cover
py27-cover installdeps: pytest, pytest-travis-fold, pytest-cov
py27-cover develop-inst: /home/jtanay/dev/avid-lib/avid.py
py27-cover installed: You are using pip version 6.0.2, however version 7.1.2 is available.,You should consider upgrading via the 'pip install --upgrade pip' command.,avid.py==0.3.0,click==6.2,coverage==4.0.3,py==1.4.31,pytest==2.8.5,pytest-cov==2.2.0,pytest-travis-fold==1.2.0
py27-cover runtests: PYTHONHASHSEED='4216335515'
py27-cover runtests: commands[0] | py.test --cov --cov-report=term-missing -vv
=============================================================================================== test session starts ===============================================================================================
platform linux2 -- Python 2.7.9, pytest-2.8.5, py-1.4.31, pluggy-0.3.1 -- /home/jtanay/dev/avid-lib/avid.py/.tox/py27-cover/bin/python2.7
cachedir: .cache
rootdir: /home/jtanay/dev/avid-lib/avid.py, inifile: setup.cfg
plugins: travis-fold-1.2.0, cov-2.2.0
collected 14 items
AUTHORS.rst SKIPPED
CHANGELOG.rst SKIPPED
CONTRIBUTING.rst SKIPPED
README.rst SKIPPED
docs/authors.rst SKIPPED
docs/changelog.rst SKIPPED
docs/contributing.rst SKIPPED
docs/index.rst SKIPPED
docs/installation.rst SKIPPED
docs/readme.rst SKIPPED
docs/usage.rst SKIPPED
docs/reference/avid.rst SKIPPED
docs/reference/index.rst SKIPPED
tests/test_avid.py::test_main PASSED
--------------------------------------------------------------------------------- coverage: platform linux2, python 2.7.9-final-0 ---------------------------------------------------------------------------------
Name Stmts Miss Branch BrPart Cover Missing
---------------------------------------------------------------------
src/avid/__init__.py 1 0 0 0 100.00%
src/avid/__main__.py 3 1 2 1 60.00% 15, 14->15
src/avid/cli.py 4 0 0 0 100.00%
---------------------------------------------------------------------
TOTAL 8 1 2 1 80.00%
============================================================================================= short test summary info =============================================================================================
SKIP [13] /home/jtanay/dev/avid-lib/avid.py/.tox/py27-cover/local/lib/python2.7/site-packages/_pytest/doctest.py:165: all tests skipped by +SKIP option
====================================================================================== 1 passed, 13 skipped in 0.13 seconds =======================================================================================
py27-nocov create: /home/jtanay/dev/avid-lib/avid.py/.tox/py27-nocov
py27-nocov installdeps: pytest, pytest-travis-fold
py27-nocov inst: /home/jtanay/dev/avid-lib/avid.py/.tox/dist/avid.py-0.3.0.zip
py27-nocov installed: You are using pip version 6.0.2, however version 7.1.2 is available.,You should consider upgrading via the 'pip install --upgrade pip' command.,avid.py==0.3.0,click==6.2,py==1.4.31,pytest==2.8.5,pytest-travis-fold==1.2.0
py27-nocov runtests: PYTHONHASHSEED='4216335515'
py27-nocov runtests: commands[0] | py.test -vv --ignore=src
=============================================================================================== test session starts ===============================================================================================
platform linux2 -- Python 2.7.9, pytest-2.8.5, py-1.4.31, pluggy-0.3.1 -- /home/jtanay/dev/avid-lib/avid.py/.tox/py27-nocov/bin/python2.7
cachedir: .cache
rootdir: /home/jtanay/dev/avid-lib/avid.py, inifile: setup.cfg
plugins: travis-fold-1.2.0
collected 13 items / 2 errors
AUTHORS.rst SKIPPED
CHANGELOG.rst SKIPPED
CONTRIBUTING.rst SKIPPED
README.rst SKIPPED
docs/authors.rst SKIPPED
docs/changelog.rst SKIPPED
docs/contributing.rst SKIPPED
docs/index.rst SKIPPED
docs/installation.rst SKIPPED
docs/readme.rst SKIPPED
docs/usage.rst SKIPPED
docs/reference/avid.rst SKIPPED
docs/reference/index.rst SKIPPED
===================================================================================================== ERRORS ======================================================================================================
_______________________________________________________________________________________ ERROR collecting tests/test_avid.py _______________________________________________________________________________________
tests/test_avid.py:4: in <module>
from avid.__main__ import main
E ImportError: No module named __main__
_______________________________________________________________________________________ ERROR collecting tests/test_avid.py _______________________________________________________________________________________
tests/test_avid.py:4: in <module>
from avid.__main__ import main
E ImportError: No module named __main__
============================================================================================= short test summary info =============================================================================================
ERROR tests/test_avid.py
ERROR tests/test_avid.py
SKIP [13] /home/jtanay/dev/avid-lib/avid.py/.tox/py27-nocov/local/lib/python2.7/site-packages/_pytest/doctest.py:165: all tests skipped by +SKIP option
======================================================================================= 13 skipped, 2 error in 0.06 seconds =======================================================================================
ERROR: InvocationError: '/home/jtanay/dev/avid-lib/avid.py/.tox/py27-nocov/bin/py.test -vv --ignore=src'
py33-cover create: /home/jtanay/dev/avid-lib/avid.py/.tox/py33-cover
ERROR: InterpreterNotFound: python3.3
py33-nocov create: /home/jtanay/dev/avid-lib/avid.py/.tox/py33-nocov
ERROR: InterpreterNotFound: python3.3
py34-cover create: /home/jtanay/dev/avid-lib/avid.py/.tox/py34-cover
py34-cover installdeps: pytest, pytest-travis-fold, pytest-cov
py34-cover develop-inst: /home/jtanay/dev/avid-lib/avid.py
py34-cover installed: avid.py==0.3.0,click==6.2,coverage==4.0.3,py==1.4.31,pytest==2.8.5,pytest-cov==2.2.0,pytest-travis-fold==1.2.0
py34-cover runtests: PYTHONHASHSEED='4216335515'
py34-cover runtests: commands[0] | py.test --cov --cov-report=term-missing -vv
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.4.3, pytest-2.8.5, py-1.4.31, pluggy-0.3.1 -- /home/jtanay/dev/avid-lib/avid.py/.tox/py34-cover/bin/python3.4
cachedir: .cache
rootdir: /home/jtanay/dev/avid-lib/avid.py, inifile: setup.cfg
plugins: travis-fold-1.2.0, cov-2.2.0
collected 14 items
AUTHORS.rst SKIPPED
CHANGELOG.rst SKIPPED
CONTRIBUTING.rst SKIPPED
README.rst SKIPPED
docs/authors.rst SKIPPED
docs/changelog.rst SKIPPED
docs/contributing.rst SKIPPED
docs/index.rst SKIPPED
docs/installation.rst SKIPPED
docs/readme.rst SKIPPED
docs/usage.rst SKIPPED
docs/reference/avid.rst SKIPPED
docs/reference/index.rst SKIPPED
tests/test_avid.py::test_main PASSED
--------------------------------------------------------------------------------- coverage: platform linux, python 3.4.3-final-0 ----------------------------------------------------------------------------------
Name Stmts Miss Branch BrPart Cover Missing
---------------------------------------------------------------------
src/avid/__init__.py 1 0 0 0 100.00%
src/avid/__main__.py 3 1 2 1 60.00% 15, 14->15
src/avid/cli.py 4 0 0 0 100.00%
---------------------------------------------------------------------
TOTAL 8 1 2 1 80.00%
============================================================================================= short test summary info =============================================================================================
SKIP [13] /home/jtanay/dev/avid-lib/avid.py/.tox/py34-cover/lib/python3.4/site-packages/_pytest/doctest.py:165: all tests skipped by +SKIP option
====================================================================================== 1 passed, 13 skipped in 0.20 seconds =======================================================================================
py34-nocov create: /home/jtanay/dev/avid-lib/avid.py/.tox/py34-nocov
py34-nocov installdeps: pytest, pytest-travis-fold
py34-nocov inst: /home/jtanay/dev/avid-lib/avid.py/.tox/dist/avid.py-0.3.0.zip
py34-nocov installed: avid.py==0.3.0,click==6.2,py==1.4.31,pytest==2.8.5,pytest-travis-fold==1.2.0
py34-nocov runtests: PYTHONHASHSEED='4216335515'
py34-nocov runtests: commands[0] | py.test -vv --ignore=src
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.4.3, pytest-2.8.5, py-1.4.31, pluggy-0.3.1 -- /home/jtanay/dev/avid-lib/avid.py/.tox/py34-nocov/bin/python3.4
cachedir: .cache
rootdir: /home/jtanay/dev/avid-lib/avid.py, inifile: setup.cfg
plugins: travis-fold-1.2.0
collected 13 items / 2 errors
AUTHORS.rst SKIPPED
CHANGELOG.rst SKIPPED
CONTRIBUTING.rst SKIPPED
README.rst SKIPPED
docs/authors.rst SKIPPED
docs/changelog.rst SKIPPED
docs/contributing.rst SKIPPED
docs/index.rst SKIPPED
docs/installation.rst SKIPPED
docs/readme.rst SKIPPED
docs/usage.rst SKIPPED
docs/reference/avid.rst SKIPPED
docs/reference/index.rst SKIPPED
===================================================================================================== ERRORS ======================================================================================================
_______________________________________________________________________________________ ERROR collecting tests/test_avid.py _______________________________________________________________________________________
tests/test_avid.py:4: in <module>
from avid.__main__ import main
E ImportError: No module named 'avid.__main__'; 'avid' is not a package
_______________________________________________________________________________________ ERROR collecting tests/test_avid.py _______________________________________________________________________________________
tests/test_avid.py:4: in <module>
from avid.__main__ import main
E ImportError: No module named 'avid.__main__'; 'avid' is not a package
============================================================================================= short test summary info =============================================================================================
ERROR tests/test_avid.py
ERROR tests/test_avid.py
SKIP [13] /home/jtanay/dev/avid-lib/avid.py/.tox/py34-nocov/lib/python3.4/site-packages/_pytest/doctest.py:165: all tests skipped by +SKIP option
======================================================================================= 13 skipped, 2 error in 0.07 seconds =======================================================================================
ERROR: InvocationError: '/home/jtanay/dev/avid-lib/avid.py/.tox/py34-nocov/bin/py.test -vv --ignore=src'
py35-cover create: /home/jtanay/dev/avid-lib/avid.py/.tox/py35-cover
py35-cover installdeps: pytest, pytest-travis-fold, pytest-cov
py35-cover develop-inst: /home/jtanay/dev/avid-lib/avid.py
py35-cover installed: avid.py==0.3.0,click==6.2,coverage==4.0.3,py==1.4.31,pytest==2.8.5,pytest-cov==2.2.0,pytest-travis-fold==1.2.0
py35-cover runtests: PYTHONHASHSEED='4216335515'
py35-cover runtests: commands[0] | py.test --cov --cov-report=term-missing -vv
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.5.0, pytest-2.8.5, py-1.4.31, pluggy-0.3.1 -- /home/jtanay/dev/avid-lib/avid.py/.tox/py35-cover/bin/python3.5
cachedir: .cache
rootdir: /home/jtanay/dev/avid-lib/avid.py, inifile: setup.cfg
plugins: travis-fold-1.2.0, cov-2.2.0
collected 14 items
AUTHORS.rst SKIPPED
CHANGELOG.rst SKIPPED
CONTRIBUTING.rst SKIPPED
README.rst SKIPPED
docs/authors.rst SKIPPED
docs/changelog.rst SKIPPED
docs/contributing.rst SKIPPED
docs/index.rst SKIPPED
docs/installation.rst SKIPPED
docs/readme.rst SKIPPED
docs/usage.rst SKIPPED
docs/reference/avid.rst SKIPPED
docs/reference/index.rst SKIPPED
tests/test_avid.py::test_main PASSED
--------------------------------------------------------------------------------- coverage: platform linux, python 3.5.0-final-0 ----------------------------------------------------------------------------------
Name Stmts Miss Branch BrPart Cover Missing
---------------------------------------------------------------------
src/avid/__init__.py 1 0 0 0 100.00%
src/avid/__main__.py 3 1 2 1 60.00% 15, 14->15
src/avid/cli.py 4 0 0 0 100.00%
---------------------------------------------------------------------
TOTAL 8 1 2 1 80.00%
============================================================================================= short test summary info =============================================================================================
SKIP [13] /home/jtanay/dev/avid-lib/avid.py/.tox/py35-cover/lib/python3.5/site-packages/_pytest/doctest.py:165: all tests skipped by +SKIP option
====================================================================================== 1 passed, 13 skipped in 0.18 seconds =======================================================================================
py35-nocov create: /home/jtanay/dev/avid-lib/avid.py/.tox/py35-nocov
py35-nocov installdeps: pytest, pytest-travis-fold
py35-nocov inst: /home/jtanay/dev/avid-lib/avid.py/.tox/dist/avid.py-0.3.0.zip
py35-nocov installed: avid.py==0.3.0,click==6.2,py==1.4.31,pytest==2.8.5,pytest-travis-fold==1.2.0
py35-nocov runtests: PYTHONHASHSEED='4216335515'
py35-nocov runtests: commands[0] | py.test -vv --ignore=src
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.5.0, pytest-2.8.5, py-1.4.31, pluggy-0.3.1 -- /home/jtanay/dev/avid-lib/avid.py/.tox/py35-nocov/bin/python3.5
cachedir: .cache
rootdir: /home/jtanay/dev/avid-lib/avid.py, inifile: setup.cfg
plugins: travis-fold-1.2.0
collected 13 items / 2 errors
AUTHORS.rst SKIPPED
CHANGELOG.rst SKIPPED
CONTRIBUTING.rst SKIPPED
README.rst SKIPPED
docs/authors.rst SKIPPED
docs/changelog.rst SKIPPED
docs/contributing.rst SKIPPED
docs/index.rst SKIPPED
docs/installation.rst SKIPPED
docs/readme.rst SKIPPED
docs/usage.rst SKIPPED
docs/reference/avid.rst SKIPPED
docs/reference/index.rst SKIPPED
===================================================================================================== ERRORS ======================================================================================================
_______________________________________________________________________________________ ERROR collecting tests/test_avid.py _______________________________________________________________________________________
tests/test_avid.py:4: in <module>
from avid.__main__ import main
E ImportError: No module named 'avid.__main__'; 'avid' is not a package
_______________________________________________________________________________________ ERROR collecting tests/test_avid.py _______________________________________________________________________________________
tests/test_avid.py:4: in <module>
from avid.__main__ import main
E ImportError: No module named 'avid.__main__'; 'avid' is not a package
============================================================================================= short test summary info =============================================================================================
ERROR tests/test_avid.py
ERROR tests/test_avid.py
SKIP [13] /home/jtanay/dev/avid-lib/avid.py/.tox/py35-nocov/lib/python3.5/site-packages/_pytest/doctest.py:165: all tests skipped by +SKIP option
======================================================================================= 13 skipped, 2 error in 0.09 seconds =======================================================================================
ERROR: InvocationError: '/home/jtanay/dev/avid-lib/avid.py/.tox/py35-nocov/bin/py.test -vv --ignore=src'
pypy-cover create: /home/jtanay/dev/avid-lib/avid.py/.tox/pypy-cover
pypy-cover installdeps: pytest, pytest-travis-fold, pytest-cov
pypy-cover develop-inst: /home/jtanay/dev/avid-lib/avid.py
pypy-cover installed: You are using pip version 6.0.2, however version 7.1.2 is available.,You should consider upgrading via the 'pip install --upgrade pip' command.,avid.py==0.3.0,cffi==1.1.0,click==6.2,coverage==4.0.3,greenlet==0.4.7,py==1.4.31,pytest==2.8.5,pytest-cov==2.2.0,pytest-travis-fold==1.2.0,readline==6.2.4.1
pypy-cover runtests: PYTHONHASHSEED='4216335515'
pypy-cover runtests: commands[0] | py.test --cov --cov-report=term-missing -vv
=============================================================================================== test session starts ===============================================================================================
platform linux2 -- Python 2.7.9[pypy-2.6.0-final], pytest-2.8.5, py-1.4.31, pluggy-0.3.1 -- /home/jtanay/dev/avid-lib/avid.py/.tox/pypy-cover/bin/pypy
cachedir: .cache
rootdir: /home/jtanay/dev/avid-lib/avid.py, inifile: setup.cfg
plugins: travis-fold-1.2.0, cov-2.2.0
collected 14 items
AUTHORS.rst SKIPPED
CHANGELOG.rst SKIPPED
CONTRIBUTING.rst SKIPPED
README.rst SKIPPED
docs/authors.rst SKIPPED
docs/changelog.rst SKIPPED
docs/contributing.rst SKIPPED
docs/index.rst SKIPPED
docs/installation.rst SKIPPED
docs/readme.rst SKIPPED
docs/usage.rst SKIPPED
docs/reference/avid.rst SKIPPED
docs/reference/index.rst SKIPPED
tests/test_avid.py::test_main PASSED
-------------------------------------------------------------------------------- coverage: platform linux2, python 2.7.9-final-42 ---------------------------------------------------------------------------------
Name Stmts Miss Branch BrPart Cover Missing
---------------------------------------------------------------------
src/avid/__init__.py 1 0 0 0 100.00%
src/avid/__main__.py 3 1 2 1 60.00% 15, 14->15
src/avid/cli.py 4 0 0 0 100.00%
---------------------------------------------------------------------
TOTAL 8 1 2 1 80.00%
============================================================================================= short test summary info =============================================================================================
SKIP [13] /home/jtanay/dev/avid-lib/avid.py/.tox/pypy-cover/site-packages/_pytest/doctest.py:165: all tests skipped by +SKIP option
====================================================================================== 1 passed, 13 skipped in 1.21 seconds =======================================================================================
pypy-nocov create: /home/jtanay/dev/avid-lib/avid.py/.tox/pypy-nocov
pypy-nocov installdeps: pytest, pytest-travis-fold
pypy-nocov inst: /home/jtanay/dev/avid-lib/avid.py/.tox/dist/avid.py-0.3.0.zip
pypy-nocov installed: You are using pip version 6.0.2, however version 7.1.2 is available.,You should consider upgrading via the 'pip install --upgrade pip' command.,avid.py==0.3.0,cffi==1.1.0,click==6.2,greenlet==0.4.7,py==1.4.31,pytest==2.8.5,pytest-travis-fold==1.2.0,readline==6.2.4.1
pypy-nocov runtests: PYTHONHASHSEED='4216335515'
pypy-nocov runtests: commands[0] | py.test -vv --ignore=src
=============================================================================================== test session starts ===============================================================================================
platform linux2 -- Python 2.7.9[pypy-2.6.0-final], pytest-2.8.5, py-1.4.31, pluggy-0.3.1 -- /home/jtanay/dev/avid-lib/avid.py/.tox/pypy-nocov/bin/pypy
cachedir: .cache
rootdir: /home/jtanay/dev/avid-lib/avid.py, inifile: setup.cfg
plugins: travis-fold-1.2.0
collected 13 items / 2 errors
AUTHORS.rst SKIPPED
CHANGELOG.rst SKIPPED
CONTRIBUTING.rst SKIPPED
README.rst SKIPPED
docs/authors.rst SKIPPED
docs/changelog.rst SKIPPED
docs/contributing.rst SKIPPED
docs/index.rst SKIPPED
docs/installation.rst SKIPPED
docs/readme.rst SKIPPED
docs/usage.rst SKIPPED
docs/reference/avid.rst SKIPPED
docs/reference/index.rst SKIPPED
===================================================================================================== ERRORS ======================================================================================================
_______________________________________________________________________________________ ERROR collecting tests/test_avid.py _______________________________________________________________________________________
tests/test_avid.py:4: in <module>
from avid.__main__ import main
E ImportError: No module named avid.__main__
_______________________________________________________________________________________ ERROR collecting tests/test_avid.py _______________________________________________________________________________________
tests/test_avid.py:4: in <module>
from avid.__main__ import main
E ImportError: No module named avid.__main__
============================================================================================= short test summary info =============================================================================================
ERROR tests/test_avid.py
ERROR tests/test_avid.py
SKIP [13] /home/jtanay/dev/avid-lib/avid.py/.tox/pypy-nocov/site-packages/_pytest/doctest.py:165: all tests skipped by +SKIP option
======================================================================================= 13 skipped, 2 error in 0.16 seconds =======================================================================================
ERROR: InvocationError: '/home/jtanay/dev/avid-lib/avid.py/.tox/pypy-nocov/bin/py.test -vv --ignore=src'
report create: /home/jtanay/dev/avid-lib/avid.py/.tox/report
report installdeps: coverage
report installed: coverage==4.0.3
report runtests: PYTHONHASHSEED='4216335515'
report runtests: commands[0] | coverage combine
report runtests: commands[1] | coverage report
Name Stmts Miss Branch BrPart Cover Missing
---------------------------------------------------------------------
src/avid/__init__.py 1 0 0 0 100.00%
src/avid/__main__.py 3 1 2 2 40.00% 15, 14->-10, 14->15
src/avid/cli.py 4 0 0 0 100.00%
---------------------------------------------------------------------
TOTAL 8 1 2 2 70.00%
docs create: /home/jtanay/dev/avid-lib/avid.py/.tox/docs
docs installdeps: -r/home/jtanay/dev/avid-lib/avid.py/docs/requirements.txt
docs develop-inst: /home/jtanay/dev/avid-lib/avid.py
docs installed: You are using pip version 6.0.2, however version 7.1.2 is available.,You should consider upgrading via the 'pip install --upgrade pip' command.,alabaster==0.7.6,avid.py==0.3.0,Babel==2.1.1,click==6.2,docutils==0.12,Jinja2==2.8,MarkupSafe==0.23,Pygments==2.0.2,pytz==2015.7,six==1.10.0,snowballstemmer==1.2.0,Sphinx==1.3.3,sphinx-rtd-theme==0.1.9
docs runtests: PYTHONHASHSEED='4216335515'
docs runtests: commands[0] | sphinx-build -E -b html docs dist/docs
Running Sphinx v1.3.3
making output directory...
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 9 source files that are out of date
updating environment: 9 added, 0 changed, 0 removed
reading sources... [100%] usage
README.rst:11: WARNING: nonlocal image URI found: https://readthedocs.org/projects/avid.py/badge/?style=flat
README.rst:0: WARNING: nonlocal image URI found: https://travis-ci.org/Djiit/avid.py.svg?branch=master
README.rst:0: WARNING: nonlocal image URI found: https://ci.appveyor.com/api/projects/status/github/Djiit/avid.py?branch=master&svg=true
README.rst:0: WARNING: nonlocal image URI found: https://requires.io/github/Djiit/avid.py/requirements.svg?branch=master
README.rst:0: WARNING: nonlocal image URI found: https://codecov.io/github/Djiit/avid.py/coverage.svg?branch=master
README.rst:17: WARNING: nonlocal image URI found: https://img.shields.io/pypi/v/avid.py.svg?style=flat
README.rst:17: WARNING: nonlocal image URI found: https://img.shields.io/pypi/dm/avid.py.svg?style=flat
README.rst:17: WARNING: nonlocal image URI found: https://img.shields.io/pypi/wheel/avid.py.svg?style=flat
README.rst:17: WARNING: nonlocal image URI found: https://img.shields.io/pypi/pyversions/avid.py.svg?style=flat
README.rst:17: WARNING: nonlocal image URI found: https://img.shields.io/pypi/implementation/avid.py.svg?style=flat
README.rst:19: WARNING: nonlocal image URI found: https://readthedocs.org/projects/avid.py/badge/?style=flat
README.rst:23: WARNING: nonlocal image URI found: https://travis-ci.org/Djiit/avid.py.svg?branch=master
README.rst:27: WARNING: nonlocal image URI found: https://ci.appveyor.com/api/projects/status/github/Djiit/avid.py?branch=master&svg=true
README.rst:31: WARNING: nonlocal image URI found: https://requires.io/github/Djiit/avid.py/requirements.svg?branch=master
README.rst:35: WARNING: nonlocal image URI found: https://codecov.io/github/Djiit/avid.py/coverage.svg?branch=master
README.rst:39: WARNING: nonlocal image URI found: https://img.shields.io/pypi/v/avid.py.svg?style=flat
README.rst:43: WARNING: nonlocal image URI found: https://img.shields.io/pypi/dm/avid.py.svg?style=flat
README.rst:47: WARNING: nonlocal image URI found: https://img.shields.io/pypi/wheel/avid.py.svg?style=flat
README.rst:51: WARNING: nonlocal image URI found: https://img.shields.io/pypi/pyversions/avid.py.svg?style=flat
README.rst:55: WARNING: nonlocal image URI found: https://img.shields.io/pypi/implementation/avid.py.svg?style=flat
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] usage
generating indices... genindex py-modindex
writing additional pages... search
copying static files... done
copying extra files... done
dumping search index in English (code: en) ... done
dumping object inventory... done
build succeeded, 20 warnings.
docs runtests: commands[1] | sphinx-build -b linkcheck docs dist/docs
Running Sphinx v1.3.3
loading pickled environment... done
building [mo]: targets for 0 po files that are out of date
building [linkcheck]: targets for 9 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
preparing documents... done
writing output... [ 11%] authors
(line 5) ok http://canalplus.github.io
writing output... [ 22%] changelog
writing output... [ 33%] contributing
(line 51) ok http://tox.readthedocs.org/en/latest/install.html
(line 40) broken https://github.com/Djiit/avid.py/fork - HTTP Error 404: Not Found
(line 27) broken https://github.com/Djiit/avid.py/issues - HTTP Error 404: Not Found
(line 11) broken https://github.com/Djiit/avid.py/issues - HTTP Error 404: Not Found
(line 75) ok https://travis-ci.org/Djiit/avid.py/pull_requests
writing output... [ 44%] index
writing output... [ 55%] installation
writing output... [ 66%] readme
(line 11) broken https://readthedocs.org/projects/avid.py - HTTP Error 404: OK
redirect https://requires.io/github/Djiit/avid.py/requirements/?branch=master - with Found to https://requires.io/auth/login/?next=/github/Djiit/avid.py/requirements/
ok https://travis-ci.org/Djiit/avid.py
(line 17) broken https://pypi.python.org/pypi/avid.py - HTTP Error 404: Not Found
(line 17) broken https://pypi.python.org/pypi/avid.py - HTTP Error 404: Not Found
(line 17) broken https://pypi.python.org/pypi/avid.py - HTTP Error 404: Not Found
(line 19) broken https://readthedocs.org/projects/avid.py - HTTP Error 404: OK
(line 17) broken https://pypi.python.org/pypi/avid.py - HTTP Error 404: Not Found
(line 31) redirect https://requires.io/github/Djiit/avid.py/requirements/?branch=master - with Found to https://requires.io/auth/login/?next=/github/Djiit/avid.py/requirements/
ok https://ci.appveyor.com/project/Djiit/avid.py
(line 39) broken https://pypi.python.org/pypi/avid.py - HTTP Error 404: Not Found
(line 43) broken https://pypi.python.org/pypi/avid.py - HTTP Error 404: Not Found
(line 47) broken https://pypi.python.org/pypi/avid.py - HTTP Error 404: Not Found
(line 51) broken https://pypi.python.org/pypi/avid.py - HTTP Error 404: Not Found
(line 55) broken https://pypi.python.org/pypi/avid.py - HTTP Error 404: Not Found
(line 17) broken https://pypi.python.org/pypi/avid.py - HTTP Error 404: Not Found
(line 76) broken https://avid.py.readthedocs.org/ - hostname u'avid.py.readthedocs.org' doesn't match either of '*.readthedocs.org', 'readthedocs.org'
broken https://codecov.io/github/Djiit/avid.py - HTTP Error 404: Not Found
(line 27) ok https://ci.appveyor.com/project/Djiit/avid.py
(line 35) broken https://codecov.io/github/Djiit/avid.py - HTTP Error 404: Not Found
writing output... [ 77%] reference/avid
writing output... [ 88%] reference/index
writing output... [100%] usage
build finished with problems.
ERROR: InvocationError: '/home/jtanay/dev/avid-lib/avid.py/.tox/docs/bin/sphinx-build -b linkcheck docs dist/docs'
_____________________________________________________________________________________________________ summary _____________________________________________________________________________________________________
clean: commands succeeded
ERROR: check: commands failed
ERROR: py26-cover: InterpreterNotFound: python2.6
ERROR: py26-nocov: InterpreterNotFound: python2.6
py27-cover: commands succeeded
ERROR: py27-nocov: commands failed
ERROR: py33-cover: InterpreterNotFound: python3.3
ERROR: py33-nocov: InterpreterNotFound: python3.3
py34-cover: commands succeeded
ERROR: py34-nocov: commands failed
py35-cover: commands succeeded
ERROR: py35-nocov: commands failed
pypy-cover: commands succeeded
ERROR: pypy-nocov: commands failed
report: commands succeeded
ERROR: docs: commands failed
from cookiecutter-pylibrary.
Ok I figured out the problem :)
I think you have the same issue:
tests/test_avid.py:4: in <module>
from avid.__main__ import main
.tox/py27-nocov/bin/avid.py:7: in <module>
from avid.cli import main
E ImportError: No module named cli
Just that your traceback is a little bit shorter (weird).
What's is going on: because the bin is named "avid.py" python will try to import that first. I will have a fix in the template so that the ".py" suffix is stripped from the script.
from cookiecutter-pylibrary.
Nice catch ! Please tell me if I can help you fix this :-)
from cookiecutter-pylibrary.
Actually, I was wondering about one thing: would you like to have an option to set a custom bin name? I think I'll do that.
from cookiecutter-pylibrary.
Basically I want my bin, in this specific case, to be named "avid.py" but yep, having an option to set the bin name would be great.
EDIT : do you mean it's impossible to have my bin named *.py ?
from cookiecutter-pylibrary.
See d680ee6
from cookiecutter-pylibrary.
Thx, it worked :). I'm closing this issue.
from cookiecutter-pylibrary.
As a general rule of thumb: don't name the bin the same as the package.
Do you really want the bin to be named "avid.py" - with that exact suffix? (I might need to change
d680ee6 a bit to just print out some warning or error out if there's name conflict then)
from cookiecutter-pylibrary.
It sounds like a mistake... I should use "avid" (or "avidpy"). A warning would be nice.
from cookiecutter-pylibrary.
@Djiit better now with 86d449a?
from cookiecutter-pylibrary.
This file exists so you can easily regenerate your project.
Unfortunately cookiecutter can't use this right away so
you have to copy this file to ~/.cookiecutterrc
Pumpkin Spice adds support for custom config locations, see User Config Docs:
$ cookiecutter --config-file /home/audreyr/my-custom-config.yaml cookiecutter-pypackage
😊
from cookiecutter-pylibrary.
Related Issues (20)
- Shortcut option to disable python 2 versions HOT 10
- Adding GitHub Actions workflows HOT 1
- Remove Landscape.io
- tox bootstrap fails HOT 2
- Error with bumpversion if not github hosting HOT 4
- pytest command does not work without workarounds HOT 5
- CI Bootstrapping errors HOT 8
- Distribution vs package naming HOT 4
- linter_config; or more broadly, options to enable automation HOT 3
- Generating CI configuration step fails
- Bad ``pre-commit`` reference for ``flake8``
- WARNING: autodoc: failed to import module 'XXX'; the following exception was raised: No module named 'pandas' HOT 5
- Add support for creating a virtual environment inside the rendered template HOT 4
- codecov coverage uploader is deprecated
- bumpversion didn't find 'version='0.0.0'' in file: 'setup.py'
- TemplateNotFound: .github\workflows\github-actions.yml HOT 1
- Multiple extensions modules from different languages HOT 2
- Bad configuration when sphnix_theme is set to furo
- Possible skip logic issue on codacy question? HOT 2
- ``bump2version`` is deprecated, new development is in **Bump My Version** HOT 3
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 cookiecutter-pylibrary.