Skip to content

Commit

Permalink
add setup files
Browse files Browse the repository at this point in the history
  • Loading branch information
samkuehn committed Feb 12, 2015
1 parent d9b4a77 commit db95eac
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ If the repository does not exist locally the repo will be cloned to the <local_b
If the repo does exist locally an `hg pull` will be run for mercurial repos,
an `git remote update` will be run for git repos.

## Quickstart
## Installation

```bash
pip install https://github.com/NOVO-Construction/cosential-compass/archive/master.zip
```
python backup.py -u <bitbucket_username> -l <local_backup_location>

## Quickstart
```bash
bitbuckt-backup [-u <bitbucket_username>] [-l <local_backup_location>]
[-p <bitbucket_password>] [-t <bitbucket_team>] [-v] [-q] [-c] [--http] [--skip-password] [--mirror]
```
The password is needed to access the bitbucket api's. At this time it is not used to do the clone/update.
Expand Down
4 changes: 4 additions & 0 deletions requirements/test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
coverage
flexmock
nose
unittest2
10 changes: 10 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[nosetests]
detailed-errors=1
with-coverage=1
verbosity=2
cover-package=compass
cover-html=1

[flake8]
max-line-length = 200
exclude = ./tests/*.py,./compass/__init__.py
44 changes: 44 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/usr/bin/env python
from setuptools import setup, find_packages

TEST_REQUIRES = [
'coverage',
'flexmock',
'nose',
'unittest2',
]

INSTALL_REQUIRES = [
]
try:
import argparse # noqa
except ImportError:
INSTALL_REQUIRES.append('argparse')

SCRIPTS = ['backup.py', 'bitbucket-backup']

setup(
name='bitbucket-backup',
version='0.0.1',
author='Sam Kuehn',
author_email='[email protected]',
url='https://github.com/samkuehn/bitbucket-backup',
description='Python script to backup Bitbucket repos',
long_description=__doc__,
packages=find_packages(exclude=('tests', 'tests.*',)),
scripts=SCRIPTS,
zip_safe=False,
extras_require={
'tests': TEST_REQUIRES,
},
tests_require=TEST_REQUIRES,
install_requires=INSTALL_REQUIRES,
test_suite='tests',
include_package_data=True,
classifiers=[
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: System :: Systems Administrationt',
'Programming Language :: Python',
],
)
41 changes: 41 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/usr/bin/env python
from setuptools import setup, find_packages

TEST_REQUIRES = [
'coverage',
'flexmock',
'nose',
'unittest2',
]

INSTALL_REQUIRES = [
]

SCRIPTS = ['backup.py', 'bitbucket-backup']

setup(
name='cosential-compass',
version='0.0.1',
author='NOVO Construction',
author_email='[email protected]',
url='https://github.com/NOVO-Construction/cosential-compass',
description='Python client for Cosential Compass',
long_description=__doc__,
packages=find_packages(exclude=('tests', 'tests.*',)),
scripts=SCRIPTS,
zip_safe=False,
extras_require={
'tests': TEST_REQUIRES,
},
license='BSD',
tests_require=TEST_REQUIRES,
install_requires=INSTALL_REQUIRES,
test_suite='tests',
include_package_data=True,
classifiers=[
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Topic :: Software Development',
'Programming Language :: Python',
],
)

0 comments on commit db95eac

Please sign in to comment.