Skip to content

Commit 5ff2384

Browse files
committed
Minor changes for proper home page on PyPI
1 parent 8ed394c commit 5ff2384

File tree

3 files changed

+12
-17
lines changed

3 files changed

+12
-17
lines changed

README.rst

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
Mydia
23
=====
34

@@ -71,16 +72,11 @@ Installation
7172
7273
- **Alternatively, install from Github source:**
7374

74-
First, clone the repository.
75+
First, clone the repository and then build the module.
7576

7677
.. code:: bash
7778
7879
git clone https://github.com/MrinalJain17/mydia.git
79-
80-
Then, build the module
81-
82-
.. code:: bash
83-
8480
cd mydia
8581
python setup.py install
8682
@@ -110,11 +106,11 @@ Several libraries like `Numpy <http://www.numpy.org/>`__, `Pillow <https://pytho
110106
Install the following extra packages (if not already installed):
111107

112108
`Scikit-video <http://www.scikit-video.org/stable/>`__
113-
::
109+
::
114110

115-
pip install sk-video
111+
pip install sk-video
116112

117113
`tqdm <https://pypi.python.org/pypi/tqdm#installation>`__ - Required for displaying the progress bar.
118-
::
114+
::
119115

120-
pip install tqdm
116+
pip install tqdm

mydia/mydia.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import matplotlib.pyplot as plt
44
import numpy as np
55
from PIL import Image
6-
from skvideo.io import FFmpegReader, ffprobe
6+
from skvideo.io import FFmpegReader
77
from skvideo.utils import rgb2gray
88
from tqdm import tqdm
99

@@ -86,7 +86,7 @@ def __init__(
8686
"""
8787

8888
self.target_size = None
89-
if (target_size != None):
89+
if target_size != None:
9090
if isinstance(target_size, int):
9191
self.target_size = (target_size, target_size)
9292
elif len(target_size) == 2:

setup.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
from codecs import open
33
from os import path
44

5-
here = path.abspath(path.dirname("."))
6-
75
# Get the long description from the README file
8-
with open(path.join(here, "README.rst"), encoding="utf-8") as f:
6+
with open("README.rst", encoding="utf-8") as f:
97
long_description = f.read()
8+
long_description = long_description.replace("\r", "")
109

1110
setup(
12-
name="Mydia",
13-
version="1.0.2",
11+
name="mydia",
12+
version="1.0.3",
1413
description="Read videos as numpy arrays",
1514
long_description=long_description,
1615
url="https://mrinaljain17.github.io/mydia/",

0 commit comments

Comments
 (0)