diff --git a/.gitignore b/.gitignore index 3087c7d29..5f4020a23 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,9 @@ neatlynx/__pycache__ .idea cache *.pyc + +cache +.dvc.conf.lock +.DS_Store +build/ +dist/ diff --git a/README.md b/README.md index aeb11e9ec..74b46ca37 100644 --- a/README.md +++ b/README.md @@ -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 +``` diff --git a/build_osx.sh b/build_osx.sh new file mode 100755 index 000000000..4b76d309f --- /dev/null +++ b/build_osx.sh @@ -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 diff --git a/dvc.conf b/dvc.conf index e08abfe73..94afee0f5 100644 --- a/dvc.conf +++ b/dvc.conf @@ -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 @@ -26,4 +29,4 @@ Storage = my-100gb-drive-io KeyDir = ~/.ssh KeyName = dvc-key -SecurityGroup = dvc-group +SecurityGroup = dvc-group \ No newline at end of file diff --git a/dvc2.py b/dvc2.py new file mode 100755 index 000000000..cd2503002 --- /dev/null +++ b/dvc2.py @@ -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') diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..a735c8394 --- /dev/null +++ b/requirements.txt @@ -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