Skip to content

Commit 90f4629

Browse files
committed
Merge branch 'release/1.0.0'
2 parents 949788a + 7828a58 commit 90f4629

137 files changed

Lines changed: 9795 additions & 1369 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ omit =
77
*test*.py
88
tmp/*
99
pytest_cov
10+
statemachine/factory_2.py
1011

1112
[report]
1213
show_missing = True

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[flake8]
22
max-line-length = 99
33
exclude = .git/*,.tox/*,docs/*,dist/*,build/*
4+
ignore = E231,W503

.git-blame-ignore-revs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
37fcf9818178587635fffe1bb67a9fd5024a0a45
2+
345d82390af35d5d70ddd39c612faa4a64b11080
3+
d7738e9ad0a3e50bc5c87d4a75c436fb771c96f6
4+
5bf10afae2b214900aa58dd44b0a91e469c70631

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ var/
2525
*.egg
2626
.mypy_cache
2727

28+
# jupyter
29+
.ipynb_checkpoints/
30+
.jupyterlite.doit.db
31+
2832
# PyInstaller
2933
# Usually these files are written by a python script from a template
3034
# before PyInstaller builds the exe, so as to inject date/other infos into it.
@@ -67,3 +71,7 @@ target/
6771
*.sublime*
6872
.idea/
6973
.vscode/
74+
75+
# Sphinx-galery
76+
docs/auto_examples/sg_execution_times.*
77+
docs/auto_examples/*.pickle

.pre-commit-config.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.3.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
exclude: docs/auto_examples
8+
- id: trailing-whitespace
9+
exclude: docs/auto_examples
10+
- repo: https://github.com/psf/black
11+
rev: 22.10.0
12+
hooks:
13+
- id: black
14+
- repo: https://github.com/asottile/reorder_python_imports
15+
rev: v3.9.0
16+
hooks:
17+
- id: reorder-python-imports

.readthedocs.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the version of Python and other tools you might need
9+
build:
10+
os: ubuntu-20.04
11+
tools:
12+
python: "3.8"
13+
14+
# Build documentation in the docs/ directory with Sphinx
15+
sphinx:
16+
configuration: docs/conf.py
17+
18+
python:
19+
install:
20+
- requirements: docs/requirements.txt

AUTHORS.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ Contributors
1515
* Raphael Schrader <[email protected]>
1616

1717

18-
Credits
19-
-------
18+
Scaffolding
19+
-----------
2020

2121
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
2222

2323
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
2424
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
25-

CONTRIBUTING.rst

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,39 @@ Ready to contribute? Here's how to set up `python-statemachine` for local develo
7676

7777
Now you can make your changes locally.
7878

79-
5. When you're done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox::
79+
5. When you're done making changes, check that your changes pass flake8 and the tests, including
80+
testing other Python versions with tox::
8081

8182
$ flake8 statemachine tests
82-
$ python setup.py test or py.test
83+
$ py.test
8384
$ tox
8485

8586
To get flake8 and tox, just pip install them into your virtualenv.
8687

88+
6. To build the documentation locally, run::
89+
90+
$ sphinx-build docs docs/_build/html
91+
92+
Now you can serve the local documentation using a webserver, like the built-in included
93+
with python::
94+
95+
$ python -m http.server --directory docs/_build/html
96+
97+
And access your browser at http://localhost:8000/
98+
99+
If you're specially writting documentation, I strongly recommend using ``sphinx-autobuild``
100+
as it improves the workflow watching for file changes and with live reloading::
101+
102+
$ sphinx-autobuild docs docs/_build/html --re-ignore "auto_examples/.*"
103+
104+
Sometimes you need a full fresh of the files being build for docs, you can use::
105+
106+
$ rm -rf docs/_build/ docs/auto_examples
107+
87108
.. note::
88109

89-
In order to get the tox working for all versions, I usually run pyenv enabling shell for those versions:
110+
In order to get the tox working for all versions, I usually run pyenv enabling shell for
111+
those versions::
90112

91113
$ pyenv shell 3.8.1/envs/python-statemachine 3.7.6 3.6.10 3.5.9 2.7.17
92114

@@ -117,4 +139,3 @@ Tips
117139
To run a subset of tests::
118140

119141
$ py.test tests.test_statemachine
120-

HISTORY.rst

Lines changed: 0 additions & 104 deletions
This file was deleted.

LICENSE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
88
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
99

1010
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11-

0 commit comments

Comments
 (0)