Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
deven96 committed Dec 14, 2018
1 parent d5fded0 commit 65b5565
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# GdDownloader

[![CircleCI](https://circleci.com/gh/deven96/drive_downloader.svg?style=svg)](https://circleci.com/gh/deven96/drive_downloader)

Package to download files from google drive given shared link

[![CircleCI](https://circleci.com/gh/deven96/drive_downloader.svg?style=shield)](https://circleci.com/gh/deven96/drive_downloader)


## Installation

```bash
Expand Down
27 changes: 25 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,36 @@
import os
import sys
import setuptools
from setuptools.command.install import install

CURRENT_DIR = os.getcwd()
REQUIREMENTS = 'requirements.txt'
requires = [line.strip('\n') for line in open(REQUIREMENTS).readlines()]
with open("README.md", "r") as fh:
long_description = fh.read()

VERSION = "0.0.1"

# ensure that once a tag is created, on master, it is pushed to pypi
class VerifyVersionCommand(install):
"""Custom command to verify that the git tag matches our version"""
description = 'verify that the git tag matches our version'

def run(self):
tag = os.getenv('GDD_TAG')

if tag != VERSION:
info = "Git tag: {0} does not match the version of this app: {1}".format(
tag, VERSION
)
sys.exit(info)




setuptools.setup(
name="GdDownloader",
version="0.0.1",
version=VERSION,
author='Domnan Diretnan, Mmadu Manasseh',
author_email="[email protected]",
description="easy wrapper for downloading google drive files using only shareable link",
Expand All @@ -21,6 +40,7 @@
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
keywords='downloader googledrive gdrive drive',
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
Expand All @@ -29,5 +49,8 @@
package_data={
'': ['*.*'],
},
include_package_data=True
include_package_data=True,
cmdclass={
'verify': VerifyVersionCommand,
}
)

0 comments on commit 65b5565

Please sign in to comment.