ionelmc / cookiecutter-pylibrary

Enhanced cookiecutter template for Python libraries.
BSD 2-Clause "Simplified" License
1.25k stars 207 forks source link

ENV=pure-private fails on Travis #146

Closed dHannasch closed 5 years ago

dHannasch commented 5 years ago
running check
warning: Check: missing required meta-data: url
error: Please correct your package.
ERROR: InvocationError for command /home/travis/build/ionelmc/cookiecutter-pylibrary/python-nameless/.tox/check/bin/python setup.py check --strict --metadata --restructuredtext (exited with code 1)

https://docs.python.org/3/distutils/examples.html#checking-a-package

distutils is complaining because no url argument is provided. This is intended behavior in setup.py,

{%- if cookiecutter.repo_hosting_domain != "no" %}
    url='https://{{ cookiecutter.repo_hosting_domain }}/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}',
{%- endif %}

but distutils obviously doesn't like it. I don't immediately see a way to tell distutils to let the URL thing slide without eliminating the check altogether.