Skip to content

Commit

Permalink
Merge pull request #394 from JrGoodle/src
Browse files Browse the repository at this point in the history
Rename clowder directory to src
  • Loading branch information
JrGoodle committed Nov 26, 2017
2 parents 9d04e5f + 434c8ea commit 962c03c
Show file tree
Hide file tree
Showing 74 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "clowder/requirements.txt" }}
- v1-dependencies-{{ checksum "src/requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

Expand All @@ -25,7 +25,7 @@ jobs:
command: |
python3 -m venv venv
. venv/bin/activate
sudo pip install -r clowder/requirements.txt
sudo pip install -r src/requirements.txt
sudo pip install https://github.com/JrGoodle/codecov-python/releases/download/encoding-fix/codecov-2.0.9-py2.py3-none-any.whl
- run:
Expand All @@ -37,7 +37,7 @@ jobs:
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "clowder/requirements.txt" }}
key: v1-dependencies-{{ checksum "src/requirements.txt" }}

- add_ssh_keys:
fingerprints:
Expand Down
4 changes: 2 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ omit =

[paths]
source =
clowder/clowder
/home/travis/build/*/clowder/clowder
src/clowder
/home/travis/build/*/src/clowder
6 changes: 3 additions & 3 deletions .idea/clowder.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $ cd clowder
Add the directory you cloned the repo into to `PYTHONPATH` in your shell profile. For example, if cloned into `$HOME/clowder`

```bash
export PYTHONPATH=$PYTHONPATH:$HOME/clowder/clowder
export PYTHONPATH=$PYTHONPATH:$HOME/src/clowder
```

## Building
Expand Down
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ environment:

install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- pip install -r clowder\requirements.txt
- pip install -e clowder
- pip install -r src\requirements.txt
- pip install -e src
- pip install https://github.com/JrGoodle/codecov-python/releases/download/encoding-fix/codecov-2.0.9-py2.py3-none-any.whl

build: off
Expand All @@ -35,7 +35,7 @@ test_script:
# Note that you must use the environment variable %PYTHON% to refer to
# the interpreter you're using - Appveyor does not do anything special
# to put the Python version you want to use on PATH.
# - "build.cmd %PYTHON%\\python.exe clowder\\setup.py"
# - "build.cmd %PYTHON%\\python.exe src\\setup.py"
- cd examples\cats
- coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app init https://github.com/jrgoodle/cats.git
- coverage run --rcfile=%APPVEYOR_BUILD_FOLDER%\.coveragerc -m clowder.clowder_app herd
Expand Down
2 changes: 1 addition & 1 deletion script/clean
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ REPO_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.." || exit 1
clean_clowder_repo() {
echo "Cleaning clowder command files"
echo "Removing clowder_repo.egg-info"
local clowder_path=$REPO_PATH/clowder
local clowder_path=$REPO_PATH/src
sudo -H rm -rf $clowder_path/clowder_repo.egg-info
echo "Removing dist"
sudo -H rm -rf $clowder_path/dist
Expand Down
6 changes: 3 additions & 3 deletions script/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ fi
export GITHUB_USER='JrGoodle'
export GITHUB_REPO='clowder'

cd "${TRAVIS_BUILD_DIR}/clowder" || exit 1
cd "${TRAVIS_BUILD_DIR}/src" || exit 1

SETUP_PY="${TRAVIS_BUILD_DIR}/clowder/setup.py"
SETUP_PY="${TRAVIS_BUILD_DIR}/src/setup.py"
VERSION=$(awk "/version='/" "${SETUP_PY}" | sed -n -e "s/^.*version='//p" | tr -d "',")
echo "VERSION=${VERSION}"
TAG="${VERSION}"
Expand Down Expand Up @@ -48,7 +48,7 @@ else

echo "Uploading artifacts to GitHub Releases"
echo '--------------------------------------'
pushd "${TRAVIS_BUILD_DIR}/clowder/dist" || exit 1
pushd "${TRAVIS_BUILD_DIR}/src/dist" || exit 1
artifacts=( "clowder_repo-${VERSION}-py3-none-any.whl" \
"clowder-repo-${VERSION}.tar.gz" )
for artifact in "${artifacts[@]}"; do
Expand Down
2 changes: 1 addition & 1 deletion script/setup
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

cd "$( dirname "${BASH_SOURCE[0]}" )/../clowder" || exit 1
cd "$( dirname "${BASH_SOURCE[0]}" )/../src" || exit 1

VERSION=${1:-python3}

Expand Down
2 changes: 1 addition & 1 deletion script/travis/install
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ if [ "$TRAVIS_OS_NAME" = "osx" ]; then
sudo -H $PIP install twine wheel
fi

sudo $PIP install -r clowder/requirements.txt
sudo $PIP install -r src/requirements.txt
sudo $PIP install https://github.com/JrGoodle/codecov-python/releases/download/encoding-fix/codecov-2.0.9-py2.py3-none-any.whl
8 changes: 4 additions & 4 deletions script/update
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" || exit 1

if [ "$1" == 'version' ]; then
cd ..
OLD_VERSION=$(awk "/version='/" clowder/setup.py | sed -n -e "s/^.*version='//p" | tr -d "',")
OLD_VERSION=$(awk "/version='/" src/setup.py | sed -n -e "s/^.*version='//p" | tr -d "',")
NEW_VERSION=$2

perl -pi -e "s/$OLD_VERSION/$NEW_VERSION/g" clowder/setup.py || exit 1
perl -pi -e "s/$OLD_VERSION/$NEW_VERSION/g" clowder/clowder/cmd.py || exit 1
perl -pi -e "s/$OLD_VERSION/$NEW_VERSION/g" src/setup.py || exit 1
perl -pi -e "s/$OLD_VERSION/$NEW_VERSION/g" src/clowder/cli/base_controller.py || exit 1
perl -pi -e "s/$OLD_VERSION/$NEW_VERSION/g" docs/issue_template.md || exit 1
exit
fi
Expand All @@ -34,7 +34,7 @@ if [ "$1" == 'docs' ]; then
cd ..
rm docs/clowder.rst
rm docs/clowder.*.rst
sphinx-apidoc -o docs clowder
sphinx-apidoc -o docs src
rm docs/modules.rst
rm docs/setup.rst
exit
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.
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.
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.
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.
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.
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.

0 comments on commit 962c03c

Please sign in to comment.