Skip to content

Commit 25a6bd2

Browse files
authored
Merge pull request #917 from adamjstewart/pyproject-toml
Switch to pyproject.toml
2 parents 4e95d87 + 080700d commit 25a6bd2

File tree

3 files changed

+54
-127
lines changed

3 files changed

+54
-127
lines changed

MANIFEST.in

-1
This file was deleted.

pyproject.toml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[build-system]
2+
requires = ['setuptools>=61']
3+
build-backend = 'setuptools.build_meta'
4+
5+
[project]
6+
name = 'segmentation_models_pytorch'
7+
description = 'Image segmentation models with pre-trained backbones. PyTorch.'
8+
readme = 'README.md'
9+
requires-python = '>=3.9'
10+
license = {file = 'LICENSE'}
11+
authors = [{name = 'Pavel Iakubovskii', email = '[email protected]'}]
12+
classifiers = [
13+
'License :: OSI Approved :: MIT License',
14+
'Programming Language :: Python',
15+
'Programming Language :: Python :: 3',
16+
'Programming Language :: Python :: Implementation :: CPython',
17+
'Programming Language :: Python :: Implementation :: PyPy',
18+
]
19+
dependencies = [
20+
'efficientnet-pytorch==0.7.1',
21+
'huggingface-hub>=0.24.6',
22+
'numpy',
23+
'pillow',
24+
'pretrainedmodels==0.7.4',
25+
'six',
26+
'timm==0.9.7',
27+
'torch',
28+
'torchvision>=0.5',
29+
'tqdm',
30+
]
31+
dynamic = ['version']
32+
33+
[project.optional-dependencies]
34+
docs = [
35+
'autodocsumm',
36+
'huggingface-hub',
37+
'six==1.15.0',
38+
'sphinx<7',
39+
'sphinx-book-theme==1.1.2',
40+
]
41+
test = [
42+
'mock',
43+
'pytest',
44+
'ruff==0.5.2',
45+
]
46+
47+
[project.urls]
48+
Homepage = 'https://github.com/qubvel-org/segmentation_models.pytorch'
49+
50+
[tool.setuptools.dynamic]
51+
version = {attr = 'segmentation_models_pytorch.__version__.__version__'}
52+
53+
[tool.setuptools.packages.find]
54+
include = ['segmentation_models_pytorch*']

setup.py

-126
This file was deleted.

0 commit comments

Comments
 (0)