Skip to content

Commit 300a313

Browse files
committed
Restructure/rename package, add unit test
1 parent ca8727a commit 300a313

20 files changed

+64
-116
lines changed

schema-templating/schema_template_transformer.py

Lines changed: 0 additions & 62 deletions
This file was deleted.

src/requirements.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Flask==1.1.2
33
neo4j==4.2.1
44
prov==2.0.0
55
Werkzeug==1.0.1
6-
nose2==0.10.0
6+
7+
# For schema templating
78
nested-lookup==0.2.22
89

910
# The commons package requires requests>=2.22.0 and PyYAML>=5.3.1
@@ -13,3 +14,6 @@ PyYAML==5.4.1
1314
# The branch name of commons to be used during image build
1415
# Default is master branch specified in docker-compose.yml if not set
1516
git+git://github.com/hubmapconsortium/commons.git@${COMMONS_BRANCH}#egg=hubmap-commons
17+
18+
# For unit test
19+
nose2==0.10.0
Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,8 @@ If that yaml file also has X-replace tags, this process will repeat until all re
1212
is output as a new yaml file called my-spec.yaml. If build-schema.sh does not receive precisely 1 argument, an error is thrown.
1313
If the file given as an argument does not exist, an error is also thrown.
1414

15-
### Usage:
16-
````angular2html
15+
### Usage
16+
17+
````
1718
./build-schema.sh example-yaml-templates/search-api-spec-TEMPLATE.yaml
1819
````
19-
20-
## A note on schema_template_transformer.py
21-
22-
This python script is deprecated. It had similar functionality to general_schema_template_transformer.py however it only could
23-
replace portions of a single file by retrieving enumerated lists from an external yaml file by url. It is kept in this directory
24-
only for context and record keeping purposes.
25-
26-

schema-templating/example-yaml-templates/api-template-test/antibody-TEMPLATE.yaml renamed to src/schema_templating/example-yaml-templates/api-template-test/antibody-TEMPLATE.yaml

File renamed without changes.

schema-templating/example-yaml-templates/api-template-test/entity-Template.yaml renamed to src/schema_templating/example-yaml-templates/api-template-test/entity-Template.yaml

File renamed without changes.

schema-templating/example-yaml-templates/api-template-test/general-api-schema-template.yaml renamed to src/schema_templating/example-yaml-templates/api-template-test/general-api-schema-template.yaml

File renamed without changes.

schema-templating/example-yaml-templates/api-template-test/ingest-TEMPLATE.yaml renamed to src/schema_templating/example-yaml-templates/api-template-test/ingest-TEMPLATE.yaml

File renamed without changes.

schema-templating/example-yaml-templates/api-template-test/search-TEMPLATE.yaml renamed to src/schema_templating/example-yaml-templates/api-template-test/search-TEMPLATE.yaml

File renamed without changes.

schema-templating/example-yaml-templates/collections-schema.yaml renamed to src/schema_templating/example-yaml-templates/collections-schema.yaml

File renamed without changes.

0 commit comments

Comments
 (0)