Skip to content

Commit 520d6f7

Browse files
committed
packaging: Use pyproject.toml for everything
1 parent 9f81a80 commit 520d6f7

File tree

5 files changed

+76
-47
lines changed

5 files changed

+76
-47
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ wheels/
2525
.installed.cfg
2626
*.egg
2727

28+
**/_version.py
29+
2830
# PyInstaller
2931
# Usually these files are written by a python script from a template
3032
# before PyInstaller builds the exe, so as to inject date/other infos into it.

Diff for: frozen-requirements.txt

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
git+git://github.com/ELEKTRONN/elektronn3.git@emcaps#egg=elektronn3
2+
3+
albumentations==1.0.3
4+
hydra-core==1.2.0
5+
imageio==2.19.3
6+
ipython==8.4.0
7+
#magicgui==0.5.1
8+
#napari==0.4.16
9+
matplotlib==3.5.2
10+
numpy==1.22.4
11+
omegaconf==2.2.1
12+
pandas==1.4.3
13+
Pillow==9.1.1
14+
PyYAML==6.0
15+
scikit_image==0.19.3
16+
scikit_learn==1.1.1
17+
scipy==1.8.1
18+
seaborn==0.11.2
19+
setuptools==62.6.0
20+
skimage==0.19.3
21+
torch==1.12.0
22+
tqdm==4.64.0
23+
typing_extensions==4.2.0

Diff for: pyproject.toml

+28-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
11
[build-system]
2-
requires = ["setuptools", "setuptools-scm"]
2+
requires = ["setuptools>=63", "wheel", "setuptools-scm[toml]>=7"]
33
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "emcaps"
7+
description = "Code for the paper Genetically encoded barcodes for correlative volume electron microscopy"
8+
readme = "README.md"
9+
requires-python = ">=3.10"
10+
keywords = ["emcapsulin", "encapsulin"]
11+
license = {file = "LICENSE"}
12+
classifiers = [
13+
"Programming Language :: Python :: 3",
14+
"License :: OSI Approved :: MIT License",
15+
"Topic :: Scientific/Engineering :: Image Processing",
16+
17+
]
18+
dynamic = ["version", "dependencies"]
19+
20+
[project.scripts]
21+
emcaps-segment = "emcaps.inference.segment:main"
22+
23+
[tool.setuptools]
24+
packages = ["emcaps"]
25+
26+
[tool.setuptools.dynamic]
27+
dependencies = {file = ["requirements.txt"]}
28+
29+
[tool.setuptools_scm]
30+
write_to = "emcaps/_version.py"

Diff for: requirements.txt

+23-22
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
git+git://github.com/ELEKTRONN/elektronn3.git@master#egg=elektronn3
1+
# elektronn3 @ git+git://github.com/ELEKTRONN/elektronn3.git@emcaps#egg=elektronn3
2+
elektronn3 @ https://github.com/ELEKTRONN/elektronn3/archive/refs/heads/emcaps.zip
23

3-
albumentations==1.0.3
4-
hydra-core==1.2.0
5-
imageio==2.19.3
6-
ipython==8.4.0
7-
magicgui==0.5.1
8-
matplotlib==3.5.2
9-
napari==0.4.16
10-
numpy==1.22.4
11-
omegaconf==2.2.1
12-
pandas==1.4.3
13-
Pillow==9.1.1
14-
PyYAML==6.0
15-
scikit_image==0.19.3
16-
scikit_learn==1.1.1
17-
scipy==1.8.1
18-
seaborn==0.11.2
19-
setuptools==62.6.0
20-
skimage==0.19.3
21-
torch==1.12.0
22-
tqdm==4.64.0
23-
typing_extensions==4.2.0
4+
albumentations>=1.0.3
5+
hydra-core>=1.2.0
6+
imageio>=2.19.3
7+
ipython>=8.4.0
8+
#magicgui>=0.5.1
9+
#napari>=0.4.16
10+
matplotlib>=3.5.2
11+
numpy>=1.22.4
12+
omegaconf>=2.2.1
13+
pandas>=1.4.3
14+
Pillow>=9.1.1
15+
PyYAML>=6.0
16+
scikit_image>=0.19.3
17+
scikit_learn>=1.1.1
18+
scipy>=1.8.1
19+
seaborn>=0.11.2
20+
setuptools>=62.6.0
21+
skimage>=0.19.3
22+
torch>=1.12.0
23+
tqdm>=4.64.0
24+
typing_extensions>=4.2.0

Diff for: setup.cfg

-24
This file was deleted.

0 commit comments

Comments
 (0)