Skip to content

Commit

Permalink
Restructured the code for installation via PyPi
Browse files Browse the repository at this point in the history
Signed-off-by: Himanshu Chauhan <hschauhan@nulltrace.org>
  • Loading branch information
hschauhan committed Dec 12, 2015
1 parent 6196c8e commit 8c40fe5
Show file tree
Hide file tree
Showing 25 changed files with 53 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions GoSync/__init__.py
@@ -0,0 +1 @@

3 changes: 2 additions & 1 deletion defines.py → GoSync/defines.py
Expand Up @@ -23,7 +23,7 @@
APP_ICON = 'resources/GoSyncIcon-16.png'
ABOUT_ICON = 'resources/GoSyncIcon-64.png'
APP_NAME = 'GoSync'
APP_VERSION = '0.02'
APP_VERSION = '0.2'
APP_LICENSE = """GoSync is an open source google drive client written in python
Copyright (C) 2015 Himanshu Chauhan
Expand All @@ -43,6 +43,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
"""
APP_DEVELOPER = 'Himanshu Chauhan'
APP_DEVELOPER_EMAIL = 'hschauhan@nulltrace.org'
APP_WEBSITE = 'http://www.nulltrace.org/p/gosync.html'
APP_COPYRIGHT = '(c) 2015 - 2022 Himanshu Chauhan'
APP_DESCRIPTION = 'GoSync is an open source google drive client written in python.'
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
1 change: 1 addition & 0 deletions GoSync/settings.yaml
@@ -0,0 +1 @@
client_config_file: ${HOME}/client_secrets.json
1 change: 1 addition & 0 deletions MANIFEST.in
@@ -0,0 +1 @@
recursive-include resources *.png
14 changes: 5 additions & 9 deletions README.md
Expand Up @@ -33,13 +33,7 @@ using GoSync:
3. python-googleapi
4. pip
5. watchdog (to be installed from pip)

GoSync also depends on PyDrive but right now its keeping its own version in the source code.
I have an specific change about getting details of drive like user currently logged in and
total drive usage and quota. I haven't submitted these changes to original PyDrive yet. Once
they are there, I will remove this pydrive code from GoSync source.

You can read more about pydrive at http://pythonhosted.org/PyDrive/
6. pydrive (to be installed from pip)

For libraries you need only that many. But there is one more essential thing. The "client_secrets.json"
file. I am not distributing my "client_secrets.json" because I am not distributing GoSync commercially.
Expand All @@ -59,5 +53,7 @@ https://github.com/hschauhan/gosync

A Request
---------
Please help in improving this project. You can send me patches at hschauhan at nulltrace dot org. If you can't write the code and you find something more or something non-functional, please create a bug on github page. I will see if I can fix that as soon as possible.
Since I work on this project in my free time, I can't tell when exactly I will be able to honor your request. But rest assured I will.
Please help in improving this project. You can send me patches at hschauhan at nulltrace dot org. If you
can't write the code and you find something more or something non-functional, please create a bug on github
page. I will see if I can fix that as soon as possible. Since I work on this project in my free time, I
can't tell when exactly I will be able to honor your request. But rest assured I will.
1 change: 0 additions & 1 deletion settings.yaml

This file was deleted.

5 changes: 5 additions & 0 deletions setup.cfg
@@ -0,0 +1,5 @@
[bdist_wheel]
# This flag says that the code is written to work on both Python 2 and Python
# 3. If at all possible, it is good practice to do this. If you cannot, you
# will need to generate wheels for each Python version that you support.
universal=1
38 changes: 38 additions & 0 deletions setup.py
@@ -0,0 +1,38 @@
from GoSync.defines import *
from codecs import open
from os import path
from setuptools import setup, find_packages


here = path.abspath(path.dirname(__file__))
###################################################################
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

setup(
name = APP_NAME,
version = APP_VERSION,
description = APP_DESCRIPTION,
long_description = long_description,
url = APP_WEBSITE,
author = APP_DEVELOPER,
author_email = APP_DEVELOPER_EMAIL,
license='GPL',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
keywords='Google Drive client Linux Python',
packages=find_packages(exclude=['contrib', 'docs', 'tests']),

install_requires=['wxpython', 'google-api-python-client', 'pydrive', 'watchdog'],
entry_points={
'console_scripts':[
'GoSync=GoSync.GoSync:main',
],
},
)

0 comments on commit 8c40fe5

Please sign in to comment.