This repository was archived by the owner on Nov 13, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
40 lines (34 loc) · 1.09 KB
/
Copy pathsetup.py
File metadata and controls
40 lines (34 loc) · 1.09 KB
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
from setuptools import setup
import os
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as fp:
s = fp.read()
return s
def get_version(path):
with open(path, "r") as fp:
lines = fp.read()
for line in lines.split("\n"):
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
raise RuntimeError("Unable to find version string.")
setup(name='keras-spconn',
version=get_version("keras_spconn/__init__.py"),
description=(
"Sparse Connectivity Recurrent Neural Networks "
),
# long_description=read('README.rst'),
url='http://github.com/ulf1/keras-spconn',
author='Ulf Hamster',
author_email='554c46@gmail.com',
license='Apache License 2.0',
packages=['keras_spconn'],
install_requires=[
'setuptools>=40.0.0',
'tensorflow>=2,<3',
'keras-tweaks>=0.4.2,<1',
'sparsity_pattern>=0.4.5,<1',
'numpy>=1,<2'
],
python_requires='>=3.7',
zip_safe=True)