git repository without any commits fails to get a valid initial version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PBR |
Triaged
|
Low
|
Unassigned |
Bug Description
I ran:
pip install cookiecutter
cookiecutter git://git.
cd git-next-version/
git init ; git add .
tox
and tox fails:
Obtaining file://
Running setup.py egg_info for package from file://
error in setup command: Error parsing /home/robertc/
Complete output from command python setup.py egg_info:
error in setup command: Error parsing /home/robertc/
summary: |
- fresh cookiecut environment barfs + git repository without any commits fails to get a valid initial version |
Changed in pbr: | |
importance: | Undecided → Low |
status: | New → Triaged |
If I commit it (bad practice) it then fails still: version/ __init_ _.py:20: 41: W292 no newline at end of file next-version' ).version_ string( )
^ version/ tests/_ _init__ .py:54: 66: W292 no newline at end of file
self.log_ fixture = self.useFixture (fixtures. FakeLogger( ))
^ version/ tests/test_ git-next- version. py:23:9: E226 missing whitespace around arithmetic operator version/ tests/test_ git-next- version. py:23:10: E901 SyntaxError: invalid syntax version/ tests/test_ git-next- version. py:23:14: E226 missing whitespace around arithmetic operator version/ tests/test_ git-next- version. py:26:14: E226 missing whitespace around arithmetic operator next-version( tests.TestCase) : version/ tests/test_ git-next- version. py:26:19: E226 missing whitespace around arithmetic operator next-version( tests.TestCase) : version/ tests/test_ git-next- version. py:29:13: W292 no newline at end of file
./setup.py:22:14: W292 no newline at end of file
pbr=True)
^
./git-next-
'git-
./git-next-
./git-next-
from git-next-version import tests
^
./git-next-
from git-next-version import tests
^
./git-next-
from git-next-version import tests
^
./git-next-
class TestGit-
^
./git-next-
class TestGit-
^
./git-next-
pass
^