This repository has been archived by the owner on May 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
47 lines (36 loc) · 1.4 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
44
45
46
47
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Read the requirements from the TXT file
with open(path.join(here, 'requirements.txt')) as f:
requirements = [req for req in f.read().split('\n') if not ('#' in req or req == '')]
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
n = len('https://github.com/blurry-mood/Deep-Learning-Blocks/blob/main/')
j = 0
# Make readme consistent in pypi server
for _ in range(len(long_description)-6):
if long_description[j:j+5] == 'docs/':
long_description = long_description[:j] + 'https://github.com/blurry-mood/Deep-Learning-Blocks/blob/main/' + long_description[j:]
j += n
print(j)
j+=1
print(long_description)
exec(open('deepblocks/version.py').read())
setup(
name='deepblocks',
version=__version__,
author='Ayoub Assis',
author_email='[email protected]',
url='https://github.com/blurry-mood/Deep-Learning-Blocks',
license='LICENSE',
packages=find_packages(exclude=['tests','notebooks']),
keywords='pytorch cnn layers',
description='Useful PyTorch Layers',
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=requirements,
python_requires='>=3.7',
)