Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Some minor "cosmetic" changes. #1

Closed
wants to merge 6 commits into from

2 participants

Michael Gruber Maximilien Riehl
Michael Gruber

No description provided.

Maximilien Riehl
Owner

Sorry, I was also pushing stuff in the meantime.
The sdist actually expects the file to be named README or README.txt (that's why there are two now).
Can you edit your pull request so it can be automagically merged?

Maximilien Riehl mriehl closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
17 README → README.md
Source Rendered
... ... @@ -1,10 +1,8 @@
1   -[![Build Status](https://travis-ci.org/mriehl/fysom.png?branch=master)](https://travis-ci.org/mriehl/fysom)
  1 +# fysom - pYthOn Finite State Machine [![Build Status](https://travis-ci.org/mriehl/fysom.png?branch=master)](https://travis-ci.org/mriehl/fysom)
2 2
3   -# License
4   -MIT licensed.
5   -All credits go to Jake Gordon for the [original javascript implementation](https://github.com/jakesgordon/javascript-state-machine/) and to Mansour Behabadi for the [python port](https://github.com/oxplot/fysom).
  3 +This is a port of Jake Gordon's javascript-state-machine to python.
6 4
7   -# Synopsis
  5 +## Synopsis
8 6 This is basically Mansours' implementation.
9 7 *But with 100% unittest coverage*, so you can actually modify the source.
10 8 It's also on PyPi (```pip install fysom```) so you don't need to copy his source and get updates/bugfixes easily,
@@ -17,7 +15,7 @@ pip install fysom
17 15 ```
18 16
19 17 ## Developer setup
20   -This module uses the [pythonbuilder](http://pybuilder.github.com).
  18 +This module uses the [pybuilder](http://pybuilder.github.com).
21 19 ```bash
22 20 git clone https://github.com/mriehl/fysom
23 21 cd fysom
@@ -262,4 +260,9 @@ new state after the download is complete.
262 260
263 261 You can return False from your onleave_state_ handler and the state
264 262 machine will be put on hold until you are ready to trigger the
265   -transition using transition() method.
  263 +transition using transition() method.
  264 +
  265 +# License
  266 +MIT licensed.
  267 +All credits go to Jake Gordon for the [original javascript implementation](https://github.com/jakesgordon/javascript-state-machine/) and to Mansour Behabadi for the [python port](https://github.com/oxplot/fysom).
  268 +
4 build.py
... ... @@ -1,6 +1,6 @@
1 1 # coding=utf-8
2 2 #
3   -# fysom.py - pYthOn Finite State Machine - this is a port of Jake
  3 +# fysom - pYthOn Finite State Machine - this is a port of Jake
4 4 # Gordon's javascript-state-machine to python
5 5 # https://github.com/jakesgordon/javascript-state-machine
6 6 #
@@ -57,7 +57,7 @@ def set_properties(project):
57 57
58 58 project.set_property('copy_resources_target', '$dir_dist')
59 59 project.get_property('copy_resources_glob').append('setup.cfg')
60   - project.get_property('copy_resources_glob').append('README')
  60 + project.get_property('copy_resources_glob').append('README.md')
61 61
62 62
63 63 @init(environments="teamcity")
6 src/main/python/fysom/__init__.py
... ... @@ -1,6 +1,6 @@
1 1 # coding=utf-8
2 2 #
3   -# fysom.py - pYthOn Finite State Machine - this is a port of Jake
  3 +# fysom - pYthOn Finite State Machine - this is a port of Jake
4 4 # Gordon's javascript-state-machine to python
5 5 # https://github.com/jakesgordon/javascript-state-machine
6 6 #
@@ -30,10 +30,10 @@
30 30 __author__ = 'Mansour Behabadi'
31 31 __copyright__ = 'Copyright 2011, Mansour Behabadi and Jake Gordon'
32 32 __credits__ = ['Mansour Behabadi', 'Jake Gordon']
  33 +__email__ = 'mansour@oxplot.com'
33 34 __license__ = 'MIT'
34   -__version__ = '${version}'
35 35 __maintainer__ = 'Mansour Behabadi'
36   -__email__ = 'mansour@oxplot.com'
  36 +__version__ = '${version}'
37 37
38 38
39 39 class FysomError(Exception):
4 src/unittest/python/fysom_asynchronous_state_transition_tests.py
... ... @@ -1,6 +1,6 @@
1 1 # coding=utf-8
2 2 #
3   -# fysom.py - pYthOn Finite State Machine - this is a port of Jake
  3 +# fysom - pYthOn Finite State Machine - this is a port of Jake
4 4 # Gordon's javascript-state-machine to python
5 5 # https://github.com/jakesgordon/javascript-state-machine
6 6 #
@@ -73,4 +73,4 @@ def test_onenter_state_should_not_fire_when_fsm_is_put_on_hold(self):
73 73
74 74 def test_should_raise_exception_upon_further_transitions_when_fsm_is_on_hold(self):
75 75 self.fsm.footobar(id=123)
76   - self.assertRaises(FysomError, self.fsm.bartobar)
  76 + self.assertRaises(FysomError, self.fsm.bartobar)
4 src/unittest/python/fysom_callback_tests.py
... ... @@ -1,6 +1,6 @@
1 1 # coding=utf-8
2 2 #
3   -# fysom.py - pYthOn Finite State Machine - this is a port of Jake
  3 +# fysomy - pYthOn Finite State Machine - this is a port of Jake
4 4 # Gordon's javascript-state-machine to python
5 5 # https://github.com/jakesgordon/javascript-state-machine
6 6 #
@@ -175,4 +175,4 @@ def on_change_state(e):
175 175 self.assertEqual(self.current_event.src, 'bar')
176 176 self.assertEqual(self.current_event.dst, 'baz')
177 177 self.assertEqual(self.current_event.attribute, 'test')
178   - self.assertTrue(self.current_event.fsm is fsm)
  178 + self.assertTrue(self.current_event.fsm is fsm)
2  src/unittest/python/fysom_initialization_tests.py
... ... @@ -1,6 +1,6 @@
1 1 # coding=utf-8
2 2 #
3   -# fysom.py - pYthOn Finite State Machine - this is a port of Jake
  3 +# fysom - pYthOn Finite State Machine - this is a port of Jake
4 4 # Gordon's javascript-state-machine to python
5 5 # https://github.com/jakesgordon/javascript-state-machine
6 6 #
2  src/unittest/python/fysom_many_to_many_tests.py
... ... @@ -1,6 +1,6 @@
1 1 # coding=utf-8
2 2 #
3   -# fysom.py - pYthOn Finite State Machine - this is a port of Jake
  3 +# fysom - pYthOn Finite State Machine - this is a port of Jake
4 4 # Gordon's javascript-state-machine to python
5 5 # https://github.com/jakesgordon/javascript-state-machine
6 6 #
8 src/unittest/python/fysom_state_tests.py
... ... @@ -1,4 +1,12 @@
1 1 # coding=utf-8
  2 +#
  3 +# fysom - pYthOn Finite State Machine - this is a port of Jake
  4 +# Gordon's javascript-state-machine to python
  5 +# https://github.com/jakesgordon/javascript-state-machine
  6 +#
  7 +# Copyright (C) 2011 Mansour Behabadi <mansour@oxplot.com>, Jake Gordon
  8 +# and other contributors
  9 +#
2 10 # Permission is hereby granted, free of charge, to any person obtaining
3 11 # a copy of this software and associated documentation files (the
4 12 # "Software"), to deal in the Software without restriction, including

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.