Skip to content

Commit c2e1af7

Browse files
authored
Merge pull request #132 from sovrasov/update_setup
Update setup script
2 parents 6a00a4f + 7571bb6 commit c2e1af7

File tree

4 files changed

+48
-60
lines changed

4 files changed

+48
-60
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# ptflops versions log
22

3+
## v 0.7.2.2
4+
- Switch from setup.py to pyproject
5+
36
## v 0.7.2
47
- Add type annotations and doc strings to the main API.
58
- Add support of HuggingFace/Timm VIT transformers.

pyproject.toml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
[build-system]
2+
requires = ["setuptools >= 61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "ptflops"
7+
version = "0.7.2.2"
8+
dependencies = [
9+
"torch",
10+
]
11+
requires-python = ">=3.7"
12+
authors = [
13+
{name = "Vladislav Sovrasov", email = "sovrasov.vlad@gmail.com"},
14+
]
15+
maintainers = [
16+
{name = "Vladislav Sovrasov", email = "sovrasov.vlad@gmail.com"},
17+
]
18+
description = "Flops counter for neural networks in pytorch framework"
19+
readme = "README.md"
20+
license = {file = "LICENSE"}
21+
keywords = ["pytorch", "cnn", "transformer", "tomatoes", "Lobster Thermidor"]
22+
classifiers = [
23+
"License :: OSI Approved :: MIT License",
24+
"Programming Language :: Python :: 3.7"
25+
]
26+
27+
[project.optional-dependencies]
28+
dev = [
29+
"flake8==3.8.1",
30+
"flake8-import-order==0.18.1",
31+
"isort==4.3.21",
32+
"torchvision>=0.5.0",
33+
"pytest==7.1.2",
34+
"packaging",
35+
]
36+
37+
[project.urls]
38+
Homepage = "https://github.com/sovrasov/flops-counter.pytorch/"
39+
Documentation = "https://github.com/sovrasov/flops-counter.pytorch/blob/master/README.md"
40+
Repository = "https://github.com/sovrasov/flops-counter.pytorch.git"
41+
"Bug Tracker" = "https://github.com/sovrasov/flops-counter.pytorch/issues"
42+
Changelog = "https://github.com/sovrasov/flops-counter.pytorch/blob/master/CHANGELOG.md"
43+
44+
[tool.setuptools.packages.find]
45+
include = ["ptflops"]

setup.py

Lines changed: 0 additions & 54 deletions
This file was deleted.

test_requirements.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)