Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidokert committed Aug 3, 2015
2 parents a444543 + 4ac33f3 commit 3e23954
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import os

{%- if cookiecutter.command_line_interface|lower == 'no' %}
os.unlink(join('src', '{{ cookiecutter.package_name }}', '__main__.py'))
os.unlink(join('src', '{{ cookiecutter.package_name|replace('-', '_') }}', '__main__.py'))
{% endif %}

{%- if cookiecutter.test_matrix_configurator|lower == 'no' %}
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.repo_name}}/.bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ tag = True

[bumpversion:file:setup.py]
[bumpversion:file:docs/conf.py]
[bumpversion:file:src/{{ cookiecutter.package_name }}/__init__.py]
[bumpversion:file:src/{{ cookiecutter.package_name|replace('-', '_') }}/__init__.py]
2 changes: 1 addition & 1 deletion {{cookiecutter.repo_name}}/MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ include README.rst

include tox.ini .travis.yml appveyor.yml

global-exclude *.py[cod] __pycache__ *.so
global-exclude *.py[cod] __pycache__ *.so *.dylib
6 changes: 4 additions & 2 deletions {{cookiecutter.repo_name}}/ci/templates/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ deps =
matrix
skip_install = true
commands =
python bootstrap.py
python ci/bootstrap.py
passenv =
*

[testenv:check]
basepython = python3.4
Expand Down Expand Up @@ -141,7 +143,7 @@ commands =
{%- if cookiecutter.test_runner|lower == "pytest" %}
{posargs:py.test --cov --cov-report=term-missing -vv}
{%- else %}
{posargs:nosetests --with-coverage --cover-package={{ cookiecutter.package_name }}}
{posargs:nosetests --with-coverage --cover-package={{ cookiecutter.package_name|replace('-', '_') }}}
{%- endif %}
{%- raw %}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.repo_name}}/docs/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Reference
.. toctree::
:glob:

{{cookiecutter.package_name}}*
{{ cookiecutter.package_name|replace('-', '_') }}*
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{cookiecutter.package_name}}
=============================
{{ cookiecutter.package_name|replace('-', '_') }}
{{ "=" * cookiecutter.package_name|length }}

.. automodule:: {{cookiecutter.package_name}}
.. automodule:: {{ cookiecutter.package_name|replace('-', '_') }}
:members:
2 changes: 1 addition & 1 deletion {{cookiecutter.repo_name}}/docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Usage

To use {{ cookiecutter.project_name }} in a project::

import {{ cookiecutter.package_name }}
import {{ cookiecutter.package_name|replace('-', '_') }}
6 changes: 3 additions & 3 deletions {{cookiecutter.repo_name}}/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ addopts =
[isort]
force_single_line=True
line_length=120
known_first_party={{ cookiecutter.package_name }}
known_first_party={{ cookiecutter.package_name|replace('-', '_') }}
default_section=THIRDPARTY
forced_separate=test_{{ cookiecutter.package_name }}
forced_separate=test_{{ cookiecutter.package_name|replace('-', '_') }}
{%- if cookiecutter.test_matrix_configurator|lower == "yes" %}

[matrix]
Expand Down Expand Up @@ -82,4 +82,4 @@ coverage_flags =

environment_variables =
-
{% endif %}
{% endif %}
2 changes: 1 addition & 1 deletion {{cookiecutter.repo_name}}/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def _unavailable(self, e):
{%- if cookiecutter.command_line_interface|lower in ['plain', 'click'] %}
entry_points={
'console_scripts': [
'{{ cookiecutter.distribution_name }} = {{ cookiecutter.package_name }}.__main__:main',
'{{ cookiecutter.distribution_name }} = {{ cookiecutter.package_name|replace('-', '_') }}.__main__:main',
]
},
{%- endif %}
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.repo_name}}/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ commands =
{%- if cookiecutter.test_runner|lower == "pytest" %}
{posargs:py.test --cov --cov-report=term-missing -vv}
{%- else %}
{posargs:nosetests --with-coverage --cover-package={{ cookiecutter.package_name }}}
{posargs:nosetests --with-coverage --cover-package={{ cookiecutter.package_name|replace('-', '_') }}}
{%- endif %}
usedevelop = true

Expand Down

0 comments on commit 3e23954

Please sign in to comment.