-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
193 lines (171 loc) · 6.42 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
[build-system]
requires = ['hatchling']
build-backend = 'hatchling.build'
[project]
name = 'EasyReflectometryApp'
version = '1.0.0'
release_data = '27 November 2024'
description = "Making reflectometry data analysis and modelling easy."
authors = [
{name = "Andrew R. McCluskey", email = "[email protected]"},
{name = "Andrew Sazonov"},
{name = "Simon Ward"},
{name = "Andreas Pedersen", email = "[email protected]"}
]
maintainers = [
{name = "Andrew R. McCluskey", email = "[email protected]"},
{name = "Andreas Pedersen", email = "[email protected]"}
]
license = {file = 'LICENSE.md'}
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux'
]
requires-python = '>=3.11'
dependencies = [
'EasyApp @ git+https://github.com/EasyScience/EasyApp.git@develop',
'easyreflectometry',
'PySide6',
'toml',
]
[project.optional-dependencies]
ci = [
'pyinstaller',
'licensename',
'dephell_licenses'
]
[release]
app_name = 'EasyReflectometryApp'
family_name = 'EasyReflectometryApp'
tag_template = 'v{VERSION}'
title_template = 'Version {VERSION} ({DATE})'
description_file = 'RELEASE.md'
changelog_file = 'CHANGELOG.md'
homepage = 'https://easyreflectometry.org'
[project.urls]
homepage = 'https://easyreflectometry.org'
issues = 'https://github.com/EasyScience/EasyReflectometryApp/issues'
license = 'https://github.com/EasyScience/EasyReflectometryApp/blob/master/LICENSE.md'
documentation = 'https://easyscience.github.io/EasyReflectometryApp/'
dependencies = 'https://github.com/EasyScience/EasyReflectometryApp/blob/master/DEPENDENCIES.md'
[tool.hatch.build.targets.wheel]
packages = ['EasyReflectometryApp']
# To allow dependencies residing in git
[tool.hatch.metadata]
allow-direct-references = true
[tool.ruff]
line-length = 127
exclude = [
"docs",
]
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint.per-file-ignores]
# allow asserts in test files
"*test_*.py" = ["S101"]
[tool.ruff.lint]
ignore-init-module-imports = true
select = [
# flake8 settings from existing CI setup
"E9", "F63", "F7", "F82",
# Code should be polished to fulfill all cases below
# https://docs.astral.sh/ruff/rules/
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
# "UP",
# flake8-bugbear
# "B",
# flake8-simplify
# "SIM",
# isort
"I",
# flake8-bandit
"S",
]
[tool.ruff.lint.isort]
force-single-line = true
##########################################################
##########################################################
############## CI CONFIGURATION INFORMATION ##############
##########################################################
##########################################################
[ci.project]
license_file = 'LICENSE.md' # how to combine this with tool.poetry.license???
[ci.scripts]
silent_install = 'SilentInstall.js'
package_install = 'InstallerInstallScript.js'
config_control = 'InstallerControlScript.js'
config_style = 'style.qss'
[ci.project.subdirs]
scripts = 'tools/Scripts'
download = 'ci/download'
build = 'ci/build'
distribution = 'ci/distribution'
# docs = { src = 'docs', dest = 'Documentation' }
[ci.qtifw.setup]
version = '4.7.0'
https_mirrors = ['qt.mirror.constant.com', 'ftp.fau.de/qtproject', 'mirrors.dotsrc.org/qtproject']
base_path = 'official_releases/qt-installer-framework'
file_name_base = 'QtInstallerFramework'
file_platform = { macos = 'macOS-x64', ubuntu = 'linux-x64', windows = 'windows-x64' }
file_ext = { macos = 'dmg', ubuntu = 'run', windows = 'exe' }
installation_path = { macOS = '/Users/runner/Qt', Linux = '/home/runner/Qt', Windows = 'C:\Qt' }
[ci.app.icon]
dir = ['Gui', 'Resources', 'Logo']
file_name = 'App'
file_ext = { macos = '.icns', ubuntu = '.png', windows = '.ico' }
[ci.app.setup]
build_dir_suffix = 'Setup'
repository_dir_suffix = 'Repos'
os = { macos = 'macOS', ubuntu = 'Linux', windows = 'Windows' } # Should be the same as GH actions ${{ runner.os }}
arch = { macos = 'x64', ubuntu = 'x64', windows = 'x64' }
file_ext = { macos = '.app', ubuntu = '', windows = '.exe' }
maintenance_tool_suffix = 'MaintenanceTool'
maintenance_file = 'signedmaintenancetool.exe'
installation_dir_shortcut = { macos = '@ApplicationsDir@', ubuntu = '@HomeDir@', windows = '@ApplicationsDirX86@' }
[ci.app.setup.build]
# config
config_dir = 'config'
config_xml = 'config.xml'
# packages
packages_dir = 'packages'
data_subsubdir = 'data'
meta_subsubdir = 'meta'
package_xml = 'package.xml'
# package: app
app_package_subdir = 'app'
# package: docs
#docs_package_subdir = 'docs'
#docs_package_subdir = 'docs'
#docs_package_name = 'Documentation'
#docs_package_description = 'Documentation: User manual, text and video tutorials'
#docs_package_version = '2020.7.11'
[ci.pyinstaller]
separator = { macos = ':', ubuntu = ':', windows = ';' }
dir_suffix = { macos = '.app', ubuntu = '', windows = '' }
content_suffix = { macos = 'Contents/MacOS/', ubuntu = '', windows = '' }
libs = { macos = 'libsDarwin', ubuntu = 'libsLinux', windows = 'libsWin32' }
missing_calculator_libs = { macos = [], ubuntu = [], windows = [] }
missing_pyside6_files = { macos = ['libshiboken6.abi3.*.dylib'], ubuntu = [], windows = ['shiboken6.abi3.dll', 'MSVCP140.dll'] }
missing_pyside6_plugins = { macos = [], ubuntu = ['Qt/plugins/xcbglintegrations'], windows = [] } # EGL and GLX plugins
missing_other_libraries = {macos = [], ubuntu = [], windows = ['libs/libiomp5md.dll', 'libs/opengl32.dll', 'libs/VC_redist.x64.exe'] }
auto_exclude = { macos = ['_tkinter'], ubuntu = ['_tkinter'], windows = [''], all = [ 'lib2to3', '_bisect',
'_codecs_cn', '_codecs_hk', '_codecs_iso2022', '_codecs_jp', '_codecs_kr', '_codecs_tw',
'_curses', '_elementtree', '_hashlib', '_heapq', '_multibytecodec', '_opcode', '_queue',
'_opcode', '_uuid', '_win32sysloader', 'grp', 'readline', 'termios' ] }
manual_exclude = [ 'mfc*', 'msvcp*', 'VCRUNTIME*', '*Qt*Bluetooth*', '*Qt*Bodymovin*', '*Qt*Gamepad*', '*Qt*Location*',
'*Qt*Nfc*', '*Qt*Purchasing*', '*Qt*QuickParticles*', '*Qt*QuickShapes*', '*Qt*RemoteObjects*',
'*Qt*Scxml*', '*Qt*Sensors*', '*Qt*Sql*', '*Qt*VirtualKeyboard*', '*Qt*Wayland*' ]
[ci.app.setup.ftp]
host = 'ftp.easyreflectometry.org'
port = 21
user = 'u652432322.ci'
prefix = 'download'
repo_subdir = 'onlineRepository'