Skip to content

Commit

Permalink
Fixes url, author_email in setup.py.
Browse files Browse the repository at this point in the history
Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
  • Loading branch information
mkouhei committed Mar 7, 2016
1 parent 056bd78 commit ef34d8f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion bootstrap_py/templates/setup.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand

{% if username -%}
{% set url='https://github.com/%s/%s'|format(username, name) -%}
{% else -%}
{% set url=url -%}
{% endif -%}


class Tox(TestCommand):
user_options = [('tox-args=', 'a', 'Arguments to pass to tox')]
Expand Down Expand Up @@ -73,7 +79,7 @@ setup(name='{{ name }}',
description='{{ description }}',
long_description=long_description,
author='{{ author }}',
author_email='{{ author_email }}',
author_email='{{ email }}',
url='{{ url }}',
classifiers=classifiers,
packages=['{{ name }}'],
Expand Down
2 changes: 1 addition & 1 deletion bootstrap_py/tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def setUp(self):
params = Dummy()
setattr(params, 'name', 'foo')
setattr(params, 'author', 'Alice')
setattr(params, 'author_email', 'alice@example.org')
setattr(params, 'email', 'alice@example.org')
setattr(params, 'url', 'https://example.org/foo')
setattr(params, 'license', 'gplv3')
setattr(params, 'outdir', self.testdir)
Expand Down

0 comments on commit ef34d8f

Please sign in to comment.