Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Replace references to sawtooth-core
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Beck-Buysse <[email protected]>
  • Loading branch information
rbuysse committed Feb 19, 2019
1 parent 4c6711b commit dbdb40a
Show file tree
Hide file tree
Showing 38 changed files with 108 additions and 110 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ RUN apt-get install -y -q \
RUN apt-get install -y -q \
python3-sawtooth-signing

ENV PATH=$PATH:/project/sawtooth-core/bin
ENV PATH=$PATH:/project/sawtooth-sdk-python/bin

WORKDIR /project/sawtooth-core
WORKDIR /project/sawtooth-sdk-python

CMD echo "\033[0;32m--- Building python sdk ---\n\033[0m" \
&& bin/protogen \
Expand Down
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ node ('master') {
}

stage("Run Bandit") {
sh 'docker run --rm -v $(pwd):/project/sawtooth-core bandit:$ISOLATION_ID run_bandit'
sh 'docker run --rm -v $(pwd):/project/sawtooth-sdk-python bandit:$ISOLATION_ID run_bandit'
}

// Run the tests
Expand All @@ -91,7 +91,7 @@ node ('master') {
}

stage("Compile coverage report") {
sh 'docker run --rm -v $(pwd):/project/sawtooth-core integration-tests:$ISOLATION_ID /bin/bash -c "cd coverage && coverage combine && coverage html -d html"'
sh 'docker run --rm -v $(pwd):/project/sawtooth-sdk-python integration-tests:$ISOLATION_ID /bin/bash -c "cd coverage && coverage combine && coverage html -d html"'
}

stage("Create git archive") {
Expand All @@ -105,7 +105,7 @@ node ('master') {

stage ("Build documentation") {
sh 'docker build . -f ci/sawtooth-build-docs -t sawtooth-build-docs:$ISOLATION_ID'
sh 'docker run --rm -v $(pwd):/project/sawtooth-core sawtooth-build-docs:$ISOLATION_ID'
sh 'docker run --rm -v $(pwd):/project/sawtooth-sdk-python sawtooth-build-docs:$ISOLATION_ID'
}

stage("Archive Build artifacts") {
Expand Down
2 changes: 1 addition & 1 deletion bin/run_bandit
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ done
bandit -ll -r --ignore-nosec $top_dir \
--exclude $ignore \
-f html \
-o /project/sawtooth-core/build/bandit.html
-o /project/sawtooth-sdk-python/build/bandit.html
4 changes: 2 additions & 2 deletions bin/run_docker_test
Original file line number Diff line number Diff line change
Expand Up @@ -438,12 +438,12 @@ def _get_isolation_id():

def _setup_environ(isolation_id):
os.environ['ISOLATION_ID'] = isolation_id
os.environ['SAWTOOTH_CORE'] = os.path.dirname(
os.environ['SAWTOOTH_SDK_PYTHON'] = os.path.dirname(
os.path.dirname(
os.path.realpath(__file__)
)
)
print(os.environ['SAWTOOTH_CORE'])
print(os.environ['SAWTOOTH_SDK_PYTHON'])


def _get_compose_dir():
Expand Down
2 changes: 1 addition & 1 deletion bin/run_tests
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ usage() {

# Exit on non-zero exit code from subcommand
set -e
# Set sawtooth-core project directory relative to this file
# Set sawtooth-sdk-python project directory relative to this file
PROJECT_DIR=$(cd $(dirname $(dirname $0)) && pwd)

# Make sawtooth scripts accessible
Expand Down
4 changes: 2 additions & 2 deletions ci/nightly/sawtooth-intkey-tp-python
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
# the nightly Sawtooth Package Repository.
#
# Build:
# $ cd sawtooth-core/ci/nightly
# $ cd sawtooth-sdk-python/ci/nightly
# $ docker build . -f sawtooth-intkey-tp-python -t sawtooth-intkey-tp-python
#
# Run:
# $ cd sawtooth-core
# $ cd sawtooth-sdk-python
# $ docker run sawtooth-intkey-tp-python

FROM ubuntu:bionic
Expand Down
4 changes: 2 additions & 2 deletions ci/nightly/sawtooth-xo-tp-python
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
# the nightly Sawtooth Package Repository.
#
# Build:
# $ cd sawtooth-core/ci/nightly
# $ cd sawtooth-sdk-python/ci/nightly
# $ docker build . -f sawtooth-xo-tp-python -t sawtooth-xo-tp-python
#
# Run:
# $ cd sawtooth-core
# $ cd sawtooth-sdk-python
# $ docker run sawtooth-xo-tp-python

FROM ubuntu:bionic
Expand Down
10 changes: 5 additions & 5 deletions ci/sawtooth-build-docs
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
# Description:
# Builds the environment needed to build the Sawtooth docs
# Running the image will put the Sawtooth docs in
# sawtooth-core/docs/build on your local machine.
# sawtooth-sdk-python/docs/build on your local machine.
#
# Build:
# $ cd sawtooth-core
# $ cd sawtooth-sdk-python
# $ docker build . -f ci/sawtooth-build-docs -t sawtooth-build-docs
#
# Run:
# $ cd sawtooth-core
# $ docker run -v $(pwd):/project/sawtooth-core sawtooth-build-docs
# $ cd sawtooth-sdk-python
# $ docker run -v $(pwd):/project/sawtooth-sdk-python sawtooth-build-docs

FROM ubuntu:bionic

Expand Down Expand Up @@ -102,5 +102,5 @@ RUN apt-get update && apt-get install -y -q \
sphinxcontrib-openapi \
sphinx_rtd_theme

WORKDIR /project/sawtooth-core/docs
WORKDIR /project/sawtooth-sdk-python/docs
CMD make python
4 changes: 2 additions & 2 deletions ci/sawtooth-intkey-tp-python
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
# the Sawtooth Package Repository.
#
# Build:
# $ cd sawtooth-core/docker
# $ cd sawtooth-sdk-python/docker
# $ docker build . -f sawtooth-intkey-tp-python -t sawtooth-intkey-tp-python
#
# Run:
# $ cd sawtooth-core
# $ cd sawtooth-sdk-python
# $ docker run sawtooth-intkey-tp-python

FROM ubuntu:bionic
Expand Down
4 changes: 2 additions & 2 deletions ci/sawtooth-publish-python-sdk
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ password=@PASS@\n\

CMD sed -i'' -e "s/@USER@/$PYPI_USER/g" /root/.pypirc \
&& sed -i'' -e "s/@PASS@/$PYPI_PASS/g" /root/.pypirc \
&& cd /project/sawtooth-core/ \
&& cd /project/sawtooth-sdk-python/ \
&& python3 setup.py sdist upload -r pypi \
&& cd /project/sawtooth-core/signing \
&& cd /project/sawtooth-sdk-python/signing \
&& python3 setup.py sdist upload -r pypi
4 changes: 2 additions & 2 deletions ci/sawtooth-xo-tp-python
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
# the Sawtooth Package Repository.
#
# Build:
# $ cd sawtooth-core/docker
# $ cd sawtooth-sdk-python/docker
# $ docker build . -f sawtooth-xo-tp-python -t sawtooth-xo-tp-python
#
# Run:
# $ cd sawtooth-core
# $ cd sawtooth-sdk-python
# $ docker run sawtooth-xo-tp-python

FROM ubuntu:bionic
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ services:
- no_proxy
image: intkey-tp-python-local:${ISOLATION_ID}
volumes:
- ./:/project/sawtooth-core
- ./:/project/sawtooth-sdk-python
container_name: intkey-tp-python-local
depends_on:
- validator
Expand All @@ -62,7 +62,7 @@ services:
- no_proxy
image: xo-tp-python-local:${ISOLATION_ID}
volumes:
- ./:/project/sawtooth-core
- ./:/project/sawtooth-sdk-python
container_name: xo-tp-python-local
depends_on:
- validator
Expand Down
2 changes: 1 addition & 1 deletion docker/bandit
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ RUN apt-get install -y -q \
bandit \
coverage --upgrade

ENV PATH=$PATH:/project/sawtooth-core/bin
ENV PATH=$PATH:/project/sawtooth-sdk-python/bin
2 changes: 1 addition & 1 deletion docker/compose/run-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ services:
- no_proxy
image: lint:${ISOLATION_ID}
volumes:
- ../../:/project/sawtooth-core
- ../../:/project/sawtooth-sdk-python
command: run_lint
4 changes: 2 additions & 2 deletions docker/compose/sawtooth-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
- no_proxy
image: sawtooth-signing-local:${ISOLATION_ID}
volumes:
- ../../:/project/sawtooth-core
- ../../:/project/sawtooth-sdk-python

python-sdk:
build:
Expand All @@ -38,4 +38,4 @@ services:
- no_proxy
image: sawtooth-python-sdk-local:${ISOLATION_ID}
volumes:
- ../../:/project/sawtooth-core
- ../../:/project/sawtooth-sdk-python
4 changes: 2 additions & 2 deletions docker/lint
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ RUN apt-get install -y -q \
openssl \
python3-grpcio-tools

ENV PATH=$PATH:/project/sawtooth-core/bin
ENV PATH=$PATH:/project/sawtooth-sdk-python/bin

RUN apt-get install -y -q \
build-essential \
Expand All @@ -69,4 +69,4 @@ RUN apt-get install -y -q \
python3-grpcio-tools \
unzip

WORKDIR /project/sawtooth-core
WORKDIR /project/sawtooth-sdk-python
4 changes: 2 additions & 2 deletions examples/intkey_python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ RUN apt-get install -y -q \

RUN mkdir -p /var/log/sawtooth

ENV PATH=$PATH:/project/sawtooth-core/bin
ENV PATH=$PATH:/project/sawtooth-sdk-python/bin

WORKDIR /project/sawtooth-core
WORKDIR /project/sawtooth-sdk-python

CMD echo "\033[0;32m--- Building intkey-tp-python ---\n\033[0m" \
&& bin/protogen \
Expand Down
2 changes: 1 addition & 1 deletion examples/intkey_python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
['../../bin/get_version']).decode('utf-8').strip(),
description='Sawtooth Intkey Python Example',
author='Hyperledger Sawtooth',
url='https://github.com/hyperledger/sawtooth-core',
url='https://github.com/hyperledger/sawtooth-sdk-python',
packages=find_packages(),
install_requires=[
"cbor",
Expand Down
2 changes: 1 addition & 1 deletion examples/intkey_python/setup_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
['../../bin/get_version']).decode('utf-8').strip(),
description='Sawtooth Intkey Python Test',
author='Hyperledger Sawtooth',
url='https://github.com/hyperledger/sawtooth-core',
url='https://github.com/hyperledger/sawtooth-sdk-python',
packages=find_packages(),
install_requires=[
"cbor",
Expand Down
16 changes: 8 additions & 8 deletions examples/intkey_python/tests/test_tp_intkey_python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
- no_proxy
image: sawtooth-intkey-tp-python$INSTALL_TYPE:$ISOLATION_ID
volumes:
- $SAWTOOTH_CORE:/project/sawtooth-core
- $SAWTOOTH_SDK_PYTHON:/project/sawtooth-sdk-python
expose:
- 4004
command: intkey-tp-python -vv -C tcp://test-tp-intkey-python:4004
Expand All @@ -43,18 +43,18 @@ services:
- no_proxy
image: python-sdk-tests:$ISOLATION_ID
volumes:
- $SAWTOOTH_CORE:/project/sawtooth-core
- $SAWTOOTH_SDK_PYTHON:/project/sawtooth-sdk-python
expose:
- 4004
command: nose2-3
-c /project/sawtooth-core/examples/intkey_python/nose2.cfg
-c /project/sawtooth-sdk-python/examples/intkey_python/nose2.cfg
-v
-s /project/sawtooth-core/examples/intkey_python/tests
-s /project/sawtooth-sdk-python/examples/intkey_python/tests
test_tp_intkey
stop_signal: SIGKILL
environment:
TEST_BIND: "tcp://eth0:4004"
PYTHONPATH: "/project/sawtooth-core/:\
/project/sawtooth-core/examples/intkey_python:\
/project/sawtooth-core/tests
/project/sawtooth-core/signing"
PYTHONPATH: "/project/sawtooth-sdk-python/:\
/project/sawtooth-sdk-python/examples/intkey_python:\
/project/sawtooth-sdk-python/tests:\
/project/sawtooth-sdk-python/signing"
4 changes: 2 additions & 2 deletions examples/xo_python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ RUN apt-get install -y -q \

RUN mkdir -p /var/log/sawtooth

ENV PATH=$PATH:/project/sawtooth-core/bin
ENV PATH=$PATH:/project/sawtooth-sdk-python/bin

WORKDIR /project/sawtooth-core
WORKDIR /project/sawtooth-sdk-python

CMD echo "\033[0;32m--- Building xo-tp-python ---\n\033[0m" \
&& bin/protogen \
Expand Down
2 changes: 1 addition & 1 deletion examples/xo_python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
['../../bin/get_version']).decode('utf-8').strip(),
description='Sawtooth XO Example',
author='Hyperledger Sawtooth',
url='https://github.com/hyperledger/sawtooth-core',
url='https://github.com/hyperledger/sawtooth-sdk-python',
packages=find_packages(),
install_requires=[
'aiohttp',
Expand Down
2 changes: 1 addition & 1 deletion examples/xo_python/setup_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
['../../bin/get_version']).decode('utf-8').strip(),
description='Sawtooth XO Python Test',
author='Hyperledger Sawtooth',
url='https://github.com/hyperledger/sawtooth-core',
url='https://github.com/hyperledger/sawtooth-sdk-python',
packages=find_packages(),
install_requires=[
'aiohttp',
Expand Down
12 changes: 6 additions & 6 deletions examples/xo_python/tests/test_tp_xo_python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
- no_proxy
image: sawtooth-xo-tp-python$INSTALL_TYPE:$ISOLATION_ID
volumes:
- $SAWTOOTH_CORE:/project/sawtooth-core
- $SAWTOOTH_SDK_PYTHON:/project/sawtooth-sdk-python
expose:
- 4004
command: xo-tp-python -vv -C tcp://test-tp-xo-python:4004
Expand All @@ -43,17 +43,17 @@ services:
- no_proxy
image: python-sdk-tests:$ISOLATION_ID
volumes:
- $SAWTOOTH_CORE:/project/sawtooth-core
- $SAWTOOTH_SDK_PYTHON:/project/sawtooth-sdk-python
expose:
- 4004
command: nose2-3
-c /project/sawtooth-core/examples/xo_python/nose2.cfg
-c /project/sawtooth-sdk-python/examples/xo_python/nose2.cfg
-v
-s /project/sawtooth-core/examples/xo_python/tests
-s /project/sawtooth-sdk-python/examples/xo_python/tests
test_tp_xo
stop_signal: SIGKILL
environment:
TEST_BIND: "tcp://eth0:4004"
PYTHONPATH: "\
/project/sawtooth-core/:\
/project/sawtooth-core/examples/xo_python"
/project/sawtooth-sdk-python/:\
/project/sawtooth-sdk-python/examples/xo_python"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
['./bin/get_version']).decode('utf-8').strip(),
description='Sawtooth Python SDK',
author='Hyperledger Sawtooth',
url='https://github.com/hyperledger/sawtooth-core',
url='https://github.com/hyperledger/sawtooth-sdk-python',
packages=find_packages(),
data_files=data_files,
install_requires=[
Expand Down
4 changes: 2 additions & 2 deletions signing/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ RUN apt-get install -y -q \
RUN apt-get install -y -q \
python3-secp256k1

ENV PATH=$PATH:/project/sawtooth-core/bin
ENV PATH=$PATH:/project/sawtooth-sdk-python/bin

WORKDIR /project/sawtooth-core
WORKDIR /project/sawtooth-sdk-python

CMD echo "\033[0;32m--- Building signing ---\n\033[0m" \
&& bin/protogen \
Expand Down
2 changes: 1 addition & 1 deletion signing/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
['../bin/get_version']).decode('utf-8').strip(),
description='Sawtooth Signing Library',
author='Hyperledger Sawtooth',
url='https://github.com/hyperledger/sawtooth-core',
url='https://github.com/hyperledger/sawtooth-sdk-python',
packages=find_packages(),
install_requires=[
"secp256k1",
Expand Down
4 changes: 2 additions & 2 deletions signing/tests/signing-tests.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ RUN apt-get install -y -q \
RUN pip3 install \
coverage --upgrade

ENV PATH=$PATH:/project/sawtooth-core/bin
ENV PATH=$PATH:/project/sawtooth-sdk-python/bin

WORKDIR /project/sawtooth-core
WORKDIR /project/sawtooth-sdk-python
Loading

0 comments on commit dbdb40a

Please sign in to comment.