-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (84 loc) · 2.46 KB
/
Copy pathpyproject.toml
File metadata and controls
97 lines (84 loc) · 2.46 KB
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
[tool.black]
line-length = 115
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
# The following are specific to Black, you probably don't want those.
| blib2to3
| tests/data
)/
'''
[build-system]
requires = ["hatchling", "hatch-vcs", "versioneer[toml]"]
build-backend = "hatchling.build"
[project]
name = "selfphish"
dynamic = ["version"]
description = "A deep neural network data reconstruction platform for phase retreival"
authors = [
{ name = "Xiaogang Yang", email = "xiaogang.yang@outlook.com" }
]
license = { file = "LICENSE" }
readme = "README.md"
keywords = ["GAN", "Data reconstruction", "Phase retrieval"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
requires-python = ">=3.10"
dependencies = [
"numpy>=1.25.0",
"tifffile>=2024.08.01",
"matplotlib>=3.7.3",
"scikit-image>=0.21.1",
"ipython>=8.36.0",
"tqdm>=4.66.1",
"tensorflow[and-cuda]>=2.16.0",
]
[project.optional-dependencies]
pytorch = [
"torch>=2.7.0",
"torchvision",
"quantities",
]
[project.urls]
homepage = "https://github.com/XYangXRay/selfphish"
repository = "https://github.com/XYangXRay/selfphish"
documentation = "https://github.com/XYangXRay/selfphish"
[tool.hatch.build.targets.wheel]
# The default wheel package contains the TensorFlow backend located in the `selfphish` directory.
include = ["selfphish"]
# If installing with the pytorch extra (pip install selfphish[pytorch]),
# the PyTorch backend in the `selfphish_torch` directory will also be packaged.
# (Note: Hatch does not support conditional inclusion, so you may have to adjust
# your package discovery or use a separate distribution if fully isolating the backends is desired.)
[tool.setuptools.packages.find]
# By default, only discover the TensorFlow backend package.
where = ["selfphish"]
exclude = ["tests*"]
# For developers who wish to build the PyTorch backend package,
# uncomment the following and adjust as needed:
# where = ["selfphish", "selfphish_torch"]
# include = ["selfphish*", "selfphish_torch*"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.publish]
[tool.hatch.publish.repository]
url = "https://upload.pypi.org/legacy/"
[tool.hatch.publish.auth]
username = "env:TWINE_USERNAME"
password = "env:TWINE_PASSWORD"
[tool.flake8]
max-line-length = 127
max-complexity = 10
select = ["E9", "F63", "F7", "F82"]