forked from d2l-ai/d2l-zh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b33243
commit 37cd0f7
Showing
6 changed files
with
49 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
from setuptools import setup, find_packages | ||
import re | ||
import os | ||
import d2l | ||
|
||
requirements = [ | ||
'jupyter', | ||
|
@@ -9,18 +8,9 @@ | |
'pandas' | ||
] | ||
|
||
# don't import d2l to get __version__ since it has deps | ||
ver_re = re.compile("__version__ = \"([\.\d]+).*") | ||
with open(os.path.join('d2l','__init__.py')) as f: | ||
lines = f.readlines() | ||
for l in lines: | ||
m = ver_re.match(l) | ||
if m: | ||
version = m.group(1) | ||
break | ||
setup( | ||
name='d2l', | ||
version=version, | ||
version=d2l.__version__, | ||
python_requires='>=3.5', | ||
author='D2L Developers', | ||
author_email='[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
source: https://github.com/d2l-ai/d2l-en/blob/master/setup.py | ||
commit: 9e55a9c | ||
--- | ||
|
||
from setuptools import setup, find_packages | ||
import d2l | ||
|
||
requirements = [ | ||
'jupyter', | ||
'numpy', | ||
'matplotlib', | ||
'pandas' | ||
] | ||
|
||
setup( | ||
name='d2l', | ||
version=d2l.__version__, | ||
python_requires='>=3.5', | ||
author='D2L Developers', | ||
author_email='[email protected]', | ||
url='https://d2l.ai', | ||
description='Dive into Deep Learning', | ||
license='MIT-0', | ||
packages=find_packages(), | ||
zip_safe=True, | ||
install_requires=requirements, | ||
) |