Skip to content

Instantly share code, notes, and snippets.

@danmur
Created June 2, 2018 09:41
Show Gist options
  • Save danmur/0489969229281165424b0044f4236b92 to your computer and use it in GitHub Desktop.
Save danmur/0489969229281165424b0044f4236b92 to your computer and use it in GitHub Desktop.
daniel@daniel-dell:~/Projects$ cookiecutter https://github.com/pytest-dev/cookiecutter-pytest-plugin
You've downloaded /home/daniel/.cookiecutters/cookiecutter-pytest-plugin before. Is it okay to delete and re-download it? [yes]:
full_name [Raphael Pierzina]:
email [raphael@hackebrot.de]:
github_username [hackebrot]:
plugin_name [foobar]: blah
module_name [blah]:
short_description [A simple plugin to use with pytest]:
version [0.1.0]:
pytest_version [3.5.0]:
Select docs_tool:
1 - mkdocs
2 - sphinx
3 - none
Choose from 1, 2, 3 [1]:
Select license:
1 - MIT
2 - BSD-3
3 - GNU GPL v3.0
4 - Apache Software License 2.0
5 - Mozilla Public License 2.0
Choose from 1, 2, 3, 4, 5 [1]:
INFO:post_gen_project:Moving files for mkdocs.
INFO:post_gen_project:Removing all temporary license files
INFO:post_gen_project:Removing jinja2 macros
daniel@daniel-dell:~/Projects$ cd pytest-blah/
daniel@daniel-dell:~/Projects/pytest-blah$ virtualenv .venv
Running virtualenv with interpreter /usr/bin/python2
New python executable in /home/daniel/Projects/pytest-blah/.venv/bin/python2
Also creating executable in /home/daniel/Projects/pytest-blah/.venv/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
daniel@daniel-dell:~/Projects/pytest-blah$ .venv/bin/python setup.py develop
running develop
running egg_info
creating pytest_blah.egg-info
writing requirements to pytest_blah.egg-info/requires.txt
writing pytest_blah.egg-info/PKG-INFO
writing top-level names to pytest_blah.egg-info/top_level.txt
writing dependency_links to pytest_blah.egg-info/dependency_links.txt
writing entry points to pytest_blah.egg-info/entry_points.txt
writing manifest file 'pytest_blah.egg-info/SOURCES.txt'
reading manifest file 'pytest_blah.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
writing manifest file 'pytest_blah.egg-info/SOURCES.txt'
running build_ext
Creating /home/daniel/Projects/pytest-blah/.venv/lib/python2.7/site-packages/pytest-blah.egg-link (link to .)
Adding pytest-blah 0.1.0 to easy-install.pth file
<snip installing packages>
daniel@daniel-dell:~/Projects/pytest-blah$ cd /
daniel@daniel-dell:/$ ~/Projects/pytest-blah/.venv/bin/python
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pytest_blah
>>> pytest_blah.__file__
'/home/daniel/Projects/pytest-blah/pytest_blah.py'
>>> import setup
usage: [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: --help [cmd1 cmd2 ...]
or: --help-commands
or: cmd --help
error: no commands supplied
daniel@daniel-dell:/$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment