Skip to content

Commit

Permalink
add requirements.txt / work in a virtualenv;
Browse files Browse the repository at this point in the history
add development / deployment instructions in README;
add single file build for osx
  • Loading branch information
earlh committed Apr 7, 2017
1 parent 78573e9 commit 62eab98
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ neatlynx/__pycache__
.idea
cache
*.pyc

cache
.dvc.conf.lock
.DS_Store
build/
dist/
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,20 @@ Code and data version control for data science projects
This project is distributed under the Apache license version 2.0 (see the LICENSE file in the project root).

By submitting a pull request for this project, you agree to license your contribution under the Apache license version 2.0 to this project.


# Development
Create a virtualenv, for example, at `~/.environments/dvc` by `mkdir -p ~/.environments/dvc; virtualenv ~/.environments/dvc` or use `virtualenvwrapper`.

```
workon dvc
pip install -r requirements.txt
```

# Building
## OSX
```
# creates dist/dvc
./build_osx.sh
```
8 changes: 8 additions & 0 deletions build_osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
echo "building osx"
# rm -rf build/ dist/
pyinstaller --onefile --console \
--clean \
--noconfirm \
--specpath dist/ \
dvc2.py
mv dist/dvc2 dist/dvc
9 changes: 6 additions & 3 deletions dvc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ CacheDir = cache
StateDir = state
Cloud = AWS

# Log levels: Debug, Info, Warning and Error
LogLevel = Info

[AWS]
AccessKeyId =
SecretAccessKey =
AccessKeyId =
SecretAccessKey =

StoragePath = dvc/tutorial

Expand All @@ -26,4 +29,4 @@ Storage = my-100gb-drive-io
KeyDir = ~/.ssh
KeyName = dvc-key

SecurityGroup = dvc-group
SecurityGroup = dvc-group
12 changes: 12 additions & 0 deletions dvc2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from __future__ import print_function
"""
main entry point / argument parsing for dvc
NB: for ${REASONS}, cannot be named dvc.py. trust me.
"""

from dvc import *

if __name__ == '__main__':
print('hello, world')
print('hello world, outside main')
26 changes: 26 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
appdirs==1.4.3
appnope==0.1.0
backports.shutil-get-terminal-size==1.0.0
boto==2.46.1
configparser==3.5.0
decorator==4.0.11
enum34==1.1.6
fasteners==0.14.1
ipython==5.3.0
ipython-genutils==0.2.0
monotonic==1.3
nose==1.3.7
packaging==16.8
pathlib2==2.2.1
pexpect==4.2.1
pickleshare==0.7.4
prompt-toolkit==1.0.14
ptyprocess==0.5.1
Pygments==2.2.0
pyparsing==2.2.0
requests==2.13.0
scandir==1.5
simplegeneric==0.8.1
six==1.10.0
traitlets==4.3.2
wcwidth==0.1.7

0 comments on commit 62eab98

Please sign in to comment.