-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
139 lines (122 loc) · 4.59 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
#' 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 = "plotastic"
version = "0.1.1" # ' <major>.<minor>.<patch>.<build_number>
authors = [{ name = "Martin Kuric", email = "martin.kur4@gmail.com" }]
description = "Streamlining statistical analysis by using plotting keywords in Python."
readme = "README_pypi.md"
license = { file = "LICENSE" } # ' or { text = "GPLv3" }
keywords = [
"plotting",
"statistics",
"data analysis",
"data visualization",
"data science",
"data",
"science",
"visualization",
]
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",
]
### Python version
#' Lower versions than 3.11 have not been tested
requires-python = ">=3.11"
### Dependencies
#' Specify version only if concrete incompatibilities exist
dependencies = [
#* 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
"Pillow>=10.2.0", #!! github security risk
#* Statistics
"scipy",
# "statannot", #' Superseded by statannotations
"statannotations",
"pingouin",
#* Excel
"xlsxwriter", #' For saving results to excel
"openpyxl", #' Optional for Pandas, but error when not installed
#* Misc
"joblib", #' Caching
"colour", #' For custom colour maps
"ipynbname", #' Used by utils
"icecream", #' Better than print (and maybe later logging)
]
### 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"]