-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
155 lines (138 loc) · 5 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
#' https://setuptools.readthedocs.io/en/latest/setuptools.html#metadata
# https://setuptools.pypa.io/en/latest/references/keywords.html
### LAYOUT:
#' project_root/ # Project root: 'plotastic'
#' ├── .gitattributes
#' ├── .gitignore
#' ├── LICENSE
#' ├── MANIFEST.in
#' ├── README.md
#' ├── pyproject.toml
#' ├── requirements.txt
#' ├── (setup.cfg) # No longer needed, but still supported
#' ├── (paper.md) # For publication
#' ├── ...
#' └── src/ # Source root
#' └── package/ # Package root: 'plotastic'
#' ├── __init__.py
#' ├── .vscode
#' ├── py.typed
#' ├── ...
#' ├── (module.py)
#' ├── subpkg1/ # Subpackage root: 'plotastic.dimensions'
#' │ ├── __init__.py
#' │ ├── ...
#' │ └── module1.py
#' └── subpkg2/ # Subpackage root: 'plotastic.plotting'
#' ├── __init__.py
#' ├── ...
#' └── module2.py
[build-system] # =======================================================
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project] # ============================================================
name = "imagep"
version = "0.1.0" # ' <major>.<minor>.<patch>.<build_number>
authors = [{ name = "Martin Kuric", email = "martin.kur4@gmail.com" }]
description = "Scientific image processing and analysis pipelines for Python"
readme = "README.md"
license = { file = "LICENSE" } # ' or { text = "GPLv3" }
keywords = [
"plotting",
# "statistics",
"data analysis",
# "data visualization",
# "data science",
"data",
"science",
"visualization",
"microscopy",
"SHG",
]
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
# "Development Status :: 5 - Production/Stable",
"Framework :: IPython",
"Framework :: Jupyter",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Intended Audience :: Healthcare Industry",
# "Intended Audience :: Financial and Insurance Industry",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Programming Language :: Python :: 3.11",
]
### Dependencies
#' Specify version only if concrete incompatibilities exist
requires-python = ">=3.11"
dependencies = [
"ipython",
"ipywidgets",
#* Core
"numpy",
"pandas==1.5.3", #!! pingouin Not working with pandas 2.0 yet
# * Plotting
"matplotlib",
"seaborn<=0.12.2", #!! 0.13 has issues with hue
# "pyimagej",
# "plotly",
# "nbformat", #> required by plotly
#* Statistics
"scipy",
#* Image processing
"pyvista",
"trame", #' required for interactive pyvista plots
"trame_vtk",
"trame-vuetify",
"napari[all]", #!! python -m pip install "napari[all]"
"scikit-image",
"scikit-learn",
"PyWavelets", #' Required by skimage for denoising
# "opencv-python",
# "statannot", #' Superseded by statannotations
# "statannotations",
# "pingouin",
# #* Excel
"openpyxl", #' Optional for Pandas, but error when not installed
"xlsxwriter", #' For saving results to excel
#* Misc
"joblib", #' Caching
# "colour", #' For custom colour maps
# "ipynbname", #' Used by utils
# "icecream", #' Better than print (and maybe later logging)
#* Security issues
"aiohttp>=3.9.2",
]
### Dynamic fields
# dynamic = ["version"]
[project.optional-dependencies] # ======================================
### Install with:
# ' $ pip install sampleproject[dev]
dev = [
"pytest",
"ipytest",
"pytest-cov", # * Displays how much of code was covered by testing
"pytest-xdist", # * Parallel testing
"nbconvert", # * For converting notebooks to markdown
"build", # * For building the package into dist
"twine", # * For uploading to PyPI
]
[project.urls] # =======================================================
# "Homepage" = "https://github.com/markur4/plotastic"
# "Documentation" = "https://github.com/markur4/plotastic"
# "Source Code" = "https://github.com/markur4/plotastic"
# "Bug Reports" = "https://github.com/markur4/plotastic/issues"
# "Funding" = "https://donate.pypi.org"
[tool.setuptools] # ====================================================
# package-data = { "example_data" = ["*.xlsx"]}
include-package-data = true # ? Defaults to true, should I keep this?
[tool.setuptools.packages.find]
where = ["src"] # ? it also worked without this..?
### Package-data handled in MANIFEST.in
# [tool.setuptools.exclude-package-data]
# plotastic = [".vscode"]
# [tool.setuptools.package-data]
# "*" = ["LICENSE"]
# plotastic = ["example_data/*.xlsx"]