Skip to content

Commit

Permalink
Minor changes for proper home page on PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
MrinalJain17 committed Apr 17, 2018
1 parent 8ed394c commit 5ff2384
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
16 changes: 6 additions & 10 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

Mydia
=====

Expand Down Expand Up @@ -71,16 +72,11 @@ Installation
- **Alternatively, install from Github source:**

First, clone the repository.
First, clone the repository and then build the module.

.. code:: bash
git clone https://github.com/MrinalJain17/mydia.git
Then, build the module

.. code:: bash
cd mydia
python setup.py install
Expand Down Expand Up @@ -110,11 +106,11 @@ Several libraries like `Numpy <http://www.numpy.org/>`__, `Pillow <https://pytho
Install the following extra packages (if not already installed):

`Scikit-video <http://www.scikit-video.org/stable/>`__
::
::

pip install sk-video
pip install sk-video

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

pip install tqdm
pip install tqdm
4 changes: 2 additions & 2 deletions mydia/mydia.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import matplotlib.pyplot as plt
import numpy as np
from PIL import Image
from skvideo.io import FFmpegReader, ffprobe
from skvideo.io import FFmpegReader
from skvideo.utils import rgb2gray
from tqdm import tqdm

Expand Down Expand Up @@ -86,7 +86,7 @@ def __init__(
"""

self.target_size = None
if (target_size != None):
if target_size != None:
if isinstance(target_size, int):
self.target_size = (target_size, target_size)
elif len(target_size) == 2:
Expand Down
9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
from codecs import open
from os import path

here = path.abspath(path.dirname("."))

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

setup(
name="Mydia",
version="1.0.2",
name="mydia",
version="1.0.3",
description="Read videos as numpy arrays",
long_description=long_description,
url="https://mrinaljain17.github.io/mydia/",
Expand Down

0 comments on commit 5ff2384

Please sign in to comment.