-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
107 lines (92 loc) · 4.21 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
# POETRY CONFIG
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.poetry]
name = "easyTemplateApp"
version = "0.1.0"
description = "Template for easyScience applications"
license = "GPL-3.0-only"
authors = ["Andrew Sazonov", "Simon Ward"]
readme = "README.md"
homepage = "https://github.com/tempscience"
repository = "https://easyscience.apptimity.com/"
documentation = "https://github.com/tempscience"
include = ["CHANGELOG.md"]
packages = [
{ include = "easyTemplateApp" }
]
[tool.poetry.dependencies]
python = "^3.7"
# easyScience
easyAppLogic = { git = "https://github.com/tempScience/easyAppLogic.git", rev = "master" } # download from github branch
easyAppGui = { git = "https://github.com/tempScience/easyAppGui.git", rev = "master" } # download from github branch
easyTemplateLib = { git = "https://github.com/tempScience/easyTemplateLib.git", rev = "master" } # download from github branch
#easyAppGui = {git = "https://github.com/tempscience/easyappgui.git", rev = "v0.2.0"} # download from github v0.2.0 release tag
#easyAppLogic = "^0.1" # download from a custom repository given below
#easyAppGui = "^0.2" # download from a custom repository given below
[tool.poetry.dev-dependencies]
# easyScience
#easyTemplateLib = { path = '../easyTemplateLib' } # point to a local directory, changes will be reflected directly in environment
#easyAppLogic = { path = "../easyAppLogic/" } # point to a local directory, changes will be reflected directly in environment
#easyAppGui = { path = "../easyAppGui/" } # point to a local directory, changes will be reflected directly in environment
#easyAppGui = {path = "../easyAppGui/dist/easyAppGui-0.2.0.tar.gz"} # install from a local file
#easyAppLogic = {path = "../easyAppLogic/dist/easyAppLogic-0.1.0.tar.gz"} # install from a local file
# poetry install --no-dev shouldn't throw a ValueError ... : # https://github.com/python-poetry/poetry/issues/668
# if poetry build shows error "Directory ../easyAppLogic does not exist", try poetry build -f sdist && poetry build -f wheel ... : https://github.com/python-poetry/poetry/issues/266#issuecomment-636627858
# PyInstaller
pyinstaller = "^3.6"
macholib = "^1.14"
pywin32-ctypes = { version = "^0.2.0", platform = "win32" } # markers = "sys_platform == 'win32'"
pefile = { version = "^2019.4.18", platform = "win32" }
# Misc
toml = "^0.10"
matplotlib = "^3.2"
requests = "^2.24"
dephell_licenses = "^0.1"
#[[tool.poetry.source]]
#name = "easyScience"
#url = "https://easyScience.apptimity.com/"
[tool.poetry.scripts]
easyTemplateApp = "easyTemplateApp.main:main"
# CUSTOM CONFIG
[ci.scripts]
dir = ['Tools', 'Scripts']
silent_install = 'SilentInstall.js'
config_control = 'InstallerControlScript.js'
package_install = 'InstallerInstallScript.js'
[ci.project]
license_file = "LICENSE" # how to combine this with tool.poetry.license???
[ci.project.subdirs]
distribution = '.Distribution'
build = '.Build'
download = '.Download'
[ci.app.icon]
dir = ['Gui', 'Resources', 'Logo']
file_name = 'App'
file_ext = { macos = '.icns', linux = '.png', windows = '.ico' }
[ci.app.setup]
file_name_suffix = 'Setup'
file_ext = { macos = '.app', linux = '', windows = '.exe' }
version = '0.1.0'
maintenance_tool_suffix = 'Uninstaller'
installation_dir = { macos = '/Applications', linux = '@ApplicationsDir@', windows = '@ApplicationsDir@' }
[ci.app.setup.build]
# config
config_dir = 'config'
config_xml = 'config.xml'
# packages
packages_dir = 'packages'
url_subdir = 'org.easydiffraction'
data_subsubdir = 'data'
meta_subsubdir = 'meta'
package_xml = 'package.xml'
[ci.pyinstaller]
separator = { macos = ':', linux = ':', windows = ';' }
suffix = { macos = '.app', linux = '', windows = '' }
[ci.qtifw.setup]
version = '3.2.2'
base_url = 'https://download.qt.io/official_releases/qt-installer-framework'
file_name_base = 'QtInstallerFramework-'
file_name_suffix = { macos = 'mac-x64', linux = 'linux-x64', windows = 'win-x86' }
file_ext = { macos = '.dmg', linux = '.run', windows = '.exe' }