Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Poetry #4

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .checkignore

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
run: tox
133 changes: 130 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,132 @@
*.pyc
dist/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
django_fsm.egg-info/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# sqlite
test.db
20 changes: 14 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ default_language_version:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-added-large-files
args: ["--maxkb=700"]
Expand All @@ -31,8 +31,16 @@ repos:
- id: django-upgrade
args: [--target-version, "3.2"]

# - repo: https://github.com/astral-sh/ruff-pre-commit
# rev: v0.0.291
# hooks:
# - id: ruff-format
# - id: ruff

- repo: https://github.com/python-poetry/poetry
rev: 1.6.1
hooks:
- id: poetry-check
- id: poetry-lock
- id: poetry-export

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.291
hooks:
- id: ruff-format
- id: ruff
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

132 changes: 132 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
# Changelog

## django-fsm unreleased

- Enable Github actions for testing
- Remove support for django deprecated versions
- add support for django 4.2
- add support for django 5.0
- Remove support for python deprecated versions
- add support for python 3.11
- add support for python 3.12

## django-fsm 2.8.1 2022-08-15

- Improve fix for get_available_FIELD_transition

## django-fsm 2.8.0 2021-11-05

- Fix get_available_FIELD_transition on django\>=3.2
- Fix refresh_from_db for ConcurrentTransitionMixin

## django-fsm 2.7.1 2020-10-13

- Fix warnings on Django 3.1+

## django-fsm 2.7.0 2019-12-03

- Django 3.0 support
- Test on Python 3.8

## django-fsm 2.6.1 2019-04-19

- Update pypi classifiers to latest django/python supported versions
- Several fixes for graph_transition command

## django-fsm 2.6.0 2017-06-08

- Fix django 1.11 compatibility
- Fix TypeError in [graph_transitions]{.title-ref} command when using
django\'s lazy translations

## django-fsm 2.5.0 2017-03-04

- graph_transition command fix for django 1.10
- graph_transition command supports GET_STATE targets
- signal data extended with method args/kwargs and field
- sets allowed to be passed to the transition decorator

## django-fsm 2.4.0 2016-05-14

- graph_transition commnad now works with multiple FSM\'s per model
- Add ability to set target state from transition return value or
callable

## django-fsm 2.3.0 2015-10-15

- Add source state shortcut \'+\' to specify transitions from all
states except the target
- Add object-level permission checks
- Fix translated labels for graph of FSMIntegerField
- Fix multiple signals for several transition decorators

## django-fsm 2.2.1 2015-04-27

- Improved exception message for unmet transition conditions.
- Don\'t send post transition signal in case of no state changes on
exception
- Allow empty string as correct state value
- Improved graphviz fsm visualisation
- Clean django 1.8 warnings

## django-fsm 2.2.0 2014-09-03

- Support for [class
substitution](http://schinckel.net/2013/06/13/django-proxy-model-state-machine/)
to proxy classes depending on the state
- Added ConcurrentTransitionMixin with optimistic locking support
- Default db_index=True for FSMIntegerField removed
- Graph transition code migrated to new graphviz library with python 3
support
- Ability to change state on transition exception

## django-fsm 2.1.0 2014-05-15

- Support for attaching permission checks on model transitions

## django-fsm 2.0.0 2014-03-15

- Backward incompatible release
- All public code import moved directly to django_fsm package
- Correct support for several \@transitions decorator with different
source states and conditions on same method
- save parameter from transition decorator removed
- get_available_FIELD_transitions return Transition data object
instead of tuple
- Models got get_available_FIELD_transitions, even if field specified
as string reference
- New get_all_FIELD_transitions method contributed to class

## django-fsm 1.6.0 2014-03-15

- FSMIntegerField and FSMKeyField support

## django-fsm 1.5.1 2014-01-04

- Ad-hoc support for state fields from proxy and inherited models

## django-fsm 1.5.0 2013-09-17

- Python 3 compatibility

## django-fsm 1.4.0 2011-12-21

- Add graph_transition command for drawing state transition picture

## django-fsm 1.3.0 2011-07-28

- Add direct field modification protection

## django-fsm 1.2.0 2011-03-23

- Add pre_transition and post_transition signals

## django-fsm 1.1.0 2011-02-22

- Add support for transition conditions
- Allow multiple FSMField in one model
- Contribute get_available_FIELD_transitions for model class

## django-fsm 1.0.0 2010-10-12

- Initial public release
Loading
Loading