Skip to content

Commit 2880ab0

Browse files
authored
src rename changes (#5)
* src rename changes * src rename changes
1 parent bb1bdfc commit 2880ab0

18 files changed

+13
-10
lines changed

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ override ENV_FILE := tests/utils/.env
3131
MVN_VERSION ?= 1.0.0
3232

3333
# Coherence CE version to run base tests against
34-
COHERENCE_VERSION ?= 22.06.2
34+
COHERENCE_VERSION ?= 22.06.4
3535
COHERENCE_GROUP_ID ?= com.oracle.coherence.ce
3636
COHERENCE_WKA1 ?= server1
3737
COHERENCE_WKA2 ?= server1
@@ -106,19 +106,19 @@ build-test-images: ## Build the Test images
106106
.PHONY: generate-proto
107107
generate-proto: ## Generate Proto Files
108108
mkdir -p $(PROTO_DIR) || true
109-
curl -o $(PROTO_DIR)/services.proto https://raw.githubusercontent.com/oracle/coherence/22.06.4/prj/coherence-grpc/src/main/proto/services.proto
110-
curl -o $(PROTO_DIR)/messages.proto https://raw.githubusercontent.com/oracle/coherence/22.06.4/prj/coherence-grpc/src/main/proto/messages.proto
111-
python -m grpc_tools.protoc --proto_path=$(CURRDIR)/etc/proto --python_out=$(CURRDIR)/coherence --grpc_python_out=$(CURRDIR)/coherence $(CURRDIR)/etc/proto/messages.proto $(CURRDIR)/etc/proto/services.proto
109+
curl -o $(PROTO_DIR)/services.proto https://raw.githubusercontent.com/oracle/coherence/$(COHERENCE_VERSION)/prj/coherence-grpc/src/main/proto/services.proto
110+
curl -o $(PROTO_DIR)/messages.proto https://raw.githubusercontent.com/oracle/coherence/$(COHERENCE_VERSION)/prj/coherence-grpc/src/main/proto/messages.proto
111+
python -m grpc_tools.protoc --proto_path=$(CURRDIR)/etc/proto --python_out=$(CURRDIR)/src/coherence --grpc_python_out=$(CURRDIR)/src/coherence $(CURRDIR)/etc/proto/messages.proto $(CURRDIR)/etc/proto/services.proto
112112
sed -e 's/import messages_pb2 as messages__pb2/import coherence.messages_pb2 as messages__pb2/' \
113-
< $(CURRDIR)/coherence/services_pb2_grpc.py > $(CURRDIR)/coherence/services_pb2_grpc.py.out
114-
mv $(CURRDIR)/coherence/services_pb2_grpc.py.out $(CURRDIR)/coherence/services_pb2_grpc.py
113+
< $(CURRDIR)/src/coherence/services_pb2_grpc.py > $(CURRDIR)/src/coherence/services_pb2_grpc.py.out
114+
mv $(CURRDIR)/src/coherence/services_pb2_grpc.py.out $(CURRDIR)/src/coherence/services_pb2_grpc.py
115115

116116
# ----------------------------------------------------------------------------------------------------------------------
117117
# Run tests with code coverage
118118
# ----------------------------------------------------------------------------------------------------------------------
119119
.PHONY: test
120120
test: ##
121-
pytest -W error --cov coherence --cov-report=term --cov-report=html
121+
pytest -W error --cov src/coherence --cov-report=term --cov-report=html
122122

123123
# ----------------------------------------------------------------------------------------------------------------------
124124
# Run standards validation across project

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# from the environment for the first two.
1212
SPHINXOPTS ?=
1313
SPHINXBUILD ?= sphinx-build
14-
SOURCEDIR = ../coherence
14+
SOURCEDIR = ../src/coherence
1515
BUILDDIR = _build
1616

1717
# Put it first so that "make" without argument is like "make help".

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
import os
2020
import sys
2121

22-
print(os.path.abspath(".."))
23-
sys.path.insert(0, os.path.abspath(".."))
22+
print(os.path.abspath("../src"))
23+
sys.path.insert(0, os.path.abspath("../src"))
2424

2525

2626
# -- Project information -----------------------------------------------------

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ sphinxcontrib-napoleon = "~0.7"
2828
m2r = "~0.3"
2929
third-party-license-file-generator = "~2022.3"
3030

31+
[tool.pytest.ini_options]
32+
pythonpath = ["src"]
33+
3134
[tool.isort]
3235
multi_line_output = 3
3336
include_trailing_comma = true
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 commit comments

Comments
 (0)