Skip to content

Commit

Permalink
Merge pull request #13 from MITLibraries/etd-398-submit-to-dspace
Browse files Browse the repository at this point in the history
Add DSpace submit functionality
  • Loading branch information
hakbailey committed Sep 23, 2021
2 parents b845a7f + 6255aa4 commit c2cddef
Show file tree
Hide file tree
Showing 20 changed files with 777 additions and 136 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,5 @@ dmypy.json

# Pyre type checker
.pyre/

.DS_Store
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ ENV PIP_NO_CACHE_DIR yes
WORKDIR /app
RUN pip install --no-cache-dir --upgrade pip pipenv

RUN apt-get update && apt-get upgrade -y && apt-get install -y git

COPY Pipfile* /
RUN pipenv install --system --clear --deploy

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ isort: ## isort your imports, so you don't have to
pipenv run isort . --diff

test: ## runs pytest
pipenv run pytest
pipenv run pytest --cov=submitter

coveralls: test
pipenv run coveralls
6 changes: 6 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name = "pypi"
[packages]
click = "*"
boto3 = "*"
smart-open = "*"
dspace-python-client = {ref = "0.1.0", git = "https://github.com/mitlibraries/dspace-python-client.git"}

[dev-packages]
flake8 = "*"
Expand All @@ -15,6 +17,10 @@ bandit = "*"
moto = {extras = ["s3", "sqs"], version = "*"}
pytest = "*"
coveralls = "*"
requests-mock = "*"
pytest-cov = "*"
pytest-env = "*"
freezegun = "*"

[requires]
python_version = "3.9"
Expand Down
112 changes: 83 additions & 29 deletions Pipfile.lock

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

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ make dist
docker run submitter:latest --
```

note: the application requires being run in an environment with Roles based access to the AWS resources.
note: the application requires being run in an environment with Roles based access to the AWS resources. in addition, the environment must have WORKSPACE and SSM_PATH variables set according to stage and prod conventions.
Loading

0 comments on commit c2cddef

Please sign in to comment.