forked from gaphor/gaphor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
129 lines (113 loc) · 4.11 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[tool.poetry]
name = "gaphor"
version = "2.0.1"
description = "Gaphor is the simple modeling tool written in Python."
authors = [
"Arjan J. Molenaar <gaphor@gmail.com>",
"Dan Yeaw <dan@yeaw.me>"
]
readme = "README.md"
homepage = "https://gaphor.org/"
repository = "https://github.com/gaphor/gaphor"
documentation = "https://gaphor.readthedocs.io/"
keywords = ["gtk+", "diagram", "UML", "MBSE", "gaphor", "modeling"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: X11 Applications :: GTK",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Topic :: Multimedia :: Graphics :: Editors :: Vector-Based",
"Topic :: Software Development :: Documentation",
]
[tool.poetry.dependencies]
python = "^3.7"
pycairo = "^1.18"
PyGObject = "^3.30"
gaphas = "^2.1.1"
importlib_metadata = "^1.4"
typing_extensions = "^3.7.4"
generic = "^1.0.0"
tinycss2 = "^1.0.2"
distlib = "0.3.0" # Workaround for MSYS2 distlib error
[tool.poetry.dev-dependencies]
tomlkit = "^0.7"
pytest = "^6.0"
pytest-cov = "^2.10"
pytest-runner = "^5.2"
black = "^20.8b1"
mypy = "0.782"
pre-commit = "^2.7"
sphinx = "^3.2"
recommonmark = "^0.6"
sphinx-rtd-theme = "^0.5"
babel = "^2.7.0"
babelgladeextractor = "^0.7"
flake8 = "^3.8"
isort = "^5.5"
[tool.poetry.scripts]
gaphor = 'gaphor.ui:main'
gaphorconvert = 'gaphor.plugins.diagramexport.gaphorconvert:main'
[tool.poetry.plugins."gaphor.appservices"]
"event_manager" = "gaphor.core.eventmanager:EventManager"
"session" = "gaphor.services.session:Session"
"help" = "gaphor.services.helpservice:HelpService"
"app_file_manager" = "gaphor.ui.appfilemanager:AppFileManager"
[tool.poetry.plugins."gaphor.services"]
"component_registry" = "gaphor.services.componentregistry:ComponentRegistry"
"event_manager" = "gaphor.core.eventmanager:EventManager"
"properties" = "gaphor.services.properties:Properties"
"undo_manager" = "gaphor.services.undomanager:UndoManager"
"element_factory" = "gaphor.core.modeling:ElementFactory"
"element_dispatcher" = "gaphor.core.modeling.elementdispatcher:ElementDispatcher"
"modeling_language" = "gaphor.services.modelinglanguage:ModelingLanguageService"
"file_manager" = "gaphor.ui.filemanager:FileManager"
"recent_files" = "gaphor.ui.recentfiles:RecentFiles"
"main_window" = "gaphor.ui.mainwindow:MainWindow"
"export_menu" = "gaphor.ui.menufragment:MenuFragment"
"tools_menu" = "gaphor.ui.menufragment:MenuFragment"
"copy" = "gaphor.services.copyservice:CopyService"
"sanitizer" = "gaphor.UML.sanitizerservice:SanitizerService"
"namespace" = "gaphor.ui.namespace:Namespace"
"toolbox" = "gaphor.ui.toolbox:Toolbox"
"diagrams" = "gaphor.ui.diagrams:Diagrams"
"consolewindow" = "gaphor.plugins.console:ConsoleWindow"
"elementeditor" = "gaphor.ui.elementeditor:ElementEditor"
"diagram_export" = "gaphor.plugins.diagramexport:DiagramExport"
"xmi_export" = "gaphor.plugins.xmiexport:XMIExport"
[tool.poetry.plugins."gaphor.modelinglanguages"]
"UML" = "gaphor.UML.modelinglanguage:UMLModelingLanguage"
"SysML" = "gaphor.SysML.modelinglanguage:SysMLModelingLanguage"
[tool.pytest.ini_options]
testpaths = [
"gaphor",
"tests",
"docs",
]
python_files = "test_*.py"
# for coverage: --cov=gaphor/
addopts = "--doctest-modules"
junit_family = "xunit1"
markers = "slow: marks tests as slow (deselect with '-m \"not slow\"')"
[tool.coverage.run]
omit = [
"*tests*",
]
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 88
known_third_party = ["cairo", "gaphas", "generic", "gi", "importlib_metadata", "pytest", "recommonmark", "tinycss2", "tomlkit", "typing_extensions"]
skip = "flatpak,.venv,build,dist"
skip_glob = "gaphor/diagram/general/__init__.py,gaphor/UML/__init__.py,gaphor/UML/*/__init__.py"
[build-system]
requires = ["poetry==1.0.10"]
build-backend = "poetry.masonry.api"