-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
136 lines (117 loc) · 2.98 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
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
[project]
name = "speckcn2"
version = "1.0.1"
description = "Estimate Cn2 from Speckle patterns using machine learning"
readme = "README.md"
requires-python = ">=3.9"
authors = [
{name = "Simone Ciarella", email = "[email protected]"},
]
keywords = [
'python',
'machine learning',
'equivariant cnn',
'optical satelites',
'turbulence',
'laser communication'
]
license = {text = "Apache 2.0 License"}
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering",
]
dependencies = [
'matplotlib >= 3.6.0',
'numpy',
'scipy>=1.9.3',
'torch',
'torchvision',
'PyYAML',
'cython',
'lie_learn_escience',
'escnn_escience',
'h5py',
]
[project.urls]
homepage="https://github.com/MALES-project/SpeckleCn2Profiler"
issues = "https://github.com/MALES-project/SpeckleCn2Profiler/issues"
documentation = "https://speckcn2.readthedocs.io"
changelog = "https://github.com/MALES-project/SpeckleCn2Profiler/releases"
[project.optional-dependencies]
develop = [
"bump-my-version",
"coverage[toml]",
"docformatter",
"mypy",
"pre-commit",
"pytest",
"pytest-mpl",
"pytest-dependency",
"pytest-image-diff",
]
docs = [
"markdown-include",
"mkdocs",
"mkdocs-jupyter",
"mkdocs-material",
"mkdocstrings[python]",
]
publishing = [
"twine",
"wheel",
"build",
"tomllib",
]
[tool.setuptools]
package-dir = {"speckcn2" = "src/speckcn2" }
include-package-data = true
[tool.coverage.run]
branch = true
source = ["speckcn2"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
# Enable Pyflakes `E` and `F` codes by default.
select = [
"F", # Pyflakes
"E", # pycodestyle (error)
"W", # pycodestyle (warning)
"I", # isort
]
line-length = 110
[tool.ruff.isort]
known-first-party=["speckcn2"]
known-third-party = ["torch"]
required-imports = ["from __future__ import annotations"]
[tool.mypy]
files = ["src", "tests"]
allow_redefinition = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "yaml"
ignore_missing_imports = true
[tool.bumpversion]
current_version = "1.0.1"
[[tool.bumpversion.files]]
filename = "src/speckcn2/__init__.py"
search = "__version__ = '{current_version}'"
replace = "__version__ = '{new_version}'"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""
[[tool.bumpversion.files]]
filename = "CITATION.cff"
search = "version: {current_version}"
replace = "version: {new_version}"