-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
42 lines (34 loc) · 1.02 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env python
import os, sys
import shutil
import datetime
from setuptools import setup, find_packages
from setuptools.command.install import install
readme = open('README.md').read()
VERSION = '0.1.4'
# import subprocess
# commit_hash = subprocess.check_output("git rev-parse HEAD", shell=True).decode('UTF-8').rstrip()
# VERSION += "_" + str(int(commit_hash, 16))[:8]
VERSION += "_" + datetime.datetime.now().strftime('%Y%m%d%H%M')[2:]
# print(VERSION)
setup(
# Metadata
name='kerop',
version=VERSION,
author='Kentaro Yoshioka',
url='https://github.com/kentaroy47/keras-Opcounter',
description='Counts the number of OPS in your Keras model.',
long_description=readme,
long_description_content_type='text/markdown',
license='MIT',
# Package info
packages=find_packages(exclude=('*test*',)),
#
zip_safe=True,
#nstall_requires=requirements,
# Classifiers
classifiers=[
'Programming Language :: Python :: 3',
],
)