-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
43 lines (36 loc) · 1.35 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
43
from setuptools import setup, find_packages
from argparse import ArgumentParser
def read_requirements(path: str) -> str:
"""
Reads requirements.txt document and returns the contents.
@params path (srt): Path to requirements.txt file.
@returns (str): String containing the required packages.
"""
with open(path, 'r', encoding='utf-8-sig') as file:
data = file.read()
return data
def read_readme(path: str) -> str:
"""
Reads Readme.md document and returns the content.
@params path (srt): Path to Readme.md file.
@returns (str): String containing the Readme description.
"""
with open(path, 'r') as file:
data = file.read()
return data
setup(
name = 'neuralforge',
version = '0.0.14',
author = 'Eduardo Leitao da Cunha Opice Leao',
author_email = '[email protected]',
maintainer = 'Eduardo Leitao da Cunha Opice Leao',
url = 'https://github.com/eduardoleao052/Autograd-from-scratch',
python_requires = '>=3.0',
install_requires = read_requirements('requirements.txt').split('\n'),
description = 'An educational framework similar to PyTorch, built to be interpretable and easy to implement.',
license = 'MIT',
keywords = 'autograd deep-learning machine-learning ai numpy python',
packages = find_packages(),
long_description = read_readme('README.md'),
long_description_content_type='text/markdown'
)