Skip to content

Commit

Permalink
Fix install requirements for pip install
Browse files Browse the repository at this point in the history
setup.py requires install_requires parameter for automatic handling
of dependencies.

Requirements will be read from the requirements.txt file.
  • Loading branch information
psteiger committed May 24, 2021
1 parent 004a4e4 commit 525520a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
google-api-python-client
google-auth-httplib2
google-auth-oauthlib

contextvars; python_version == '3.6'
dataclasses; python_version == '3.6'
dataclasses; python_version == '3.6'
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()

with open("requirements.txt", "r", encoding="utf-8") as fh:
install_requires = fh.read().splitlines()

setuptools.setup(
name='ggdrive',
version='0.1.3',
version='0.1.4',
scripts=['gdrive'],
author="DiscordTime",
description="A command-line tool for operating on Google Drive directly from the terminal.",
Expand All @@ -14,6 +17,7 @@
url="https://github.com/DiscordTime/ggdrive",
packages=setuptools.find_packages(),
python_requires=">=3.6",
install_requires=install_requires,
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
Expand Down

0 comments on commit 525520a

Please sign in to comment.