pytransitions / transitions

A lightweight, object-oriented finite state machine implementation in Python with many extensions
MIT License
5.68k stars 530 forks source link

Fix setup #368

Closed artofhuman closed 5 years ago

artofhuman commented 5 years ago

Problem

assert in setup.py fails with error

Traceback (most recent call last):
  File "setup.py", line 11, in <module>
    assert long_description[:3] == '## '  # Description should start with a headline (## Quickstart)
AssertionError
-> assert long_description[:3] == '## '  # Description should start with a headline (## Quickstart)
(Pdb) long_description[:3]
'\n##'

Solution

Use regexp to remove text before ## Quickstart section

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 98.525% when pulling 256dc1b79574128f30a43bb427ac70eb1f109fa2 on artofhuman:fix-setup into 78fe295f86f0309fc1713098dc654b4b2a009063 on pytransitions:master.

aleneum commented 5 years ago

Yeah, stripping everything before '## Quickstart' is a way better approach than guessing how many characters have to be stripped away. Thank you for another contribution, @artofhuman!