forked from juliagusak/flopco-pytorch
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
executable file
·29 lines (24 loc) · 958 Bytes
/
setup.py
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
import subprocess
from setuptools import setup, find_packages
from setuptools.command.install import install
try:
from pip._internal.req import parse_requirements
except ImportError:
from pip.req import parse_requirements
def load_requirements(file_name):
requirements = parse_requirements(file_name, session="test")
return [str(item.req) for item in requirements]
version="v0.1.1"
setup(
name="flopco-keras",
version=version,
description="FLOPs and other statistics COunter for TF.keras neural networks",
author="Evgeny Ponomarev (based on Julia Gusak's work)",
author_email="evgps@ya.ru",
url="https://github.com/evgps/flopco-keras",
download_url=f"https://github.com/evgps/flopco-keras/archive/{version}.tar.gz",
keywords = ['tensorflow', 'keras', 'flops', 'macs', 'neural-networks', 'cnn'],
license="MIT",
packages=find_packages(),
install_requires=load_requirements("requirements.txt")
)