-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Release v1.10.0
- Loading branch information
Showing
33 changed files
with
259 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ DATABASE_URL=postgresql://open_event_user:[email protected]:5432/oevent | |
INTEGRATE_SOCKETIO=false | ||
TEST_DATABASE_URL=postgresql://open_event_user:[email protected]:5432/opev_test | ||
APP_CONFIG=config.DevelopmentConfig | ||
ENABLE_ELASTICSEARCH=true | ||
ENABLE_ELASTICSEARCH=false | ||
ELASTICSEARCH_HOST=localhost:9200 | ||
|
||
POSTGRES_USER=open_event_user | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
FROM python:3.7.4-alpine as base | ||
LABEL maintainer="Niranjan Rajendran <[email protected]>" | ||
FROM python:3.7-alpine as base | ||
|
||
#### | ||
|
||
|
@@ -9,25 +8,19 @@ WORKDIR /install | |
|
||
RUN apk update && \ | ||
apk add --virtual build-deps git gcc python3-dev musl-dev jpeg-dev zlib-dev libevent-dev file-dev libffi-dev openssl && \ | ||
apk add postgresql-dev && \ | ||
pip install setuptools | ||
apk add postgresql-dev | ||
|
||
ADD requirements.txt /requirements.txt | ||
ADD requirements /requirements/ | ||
|
||
RUN wget https://bootstrap.pypa.io/ez_setup.py && python ez_setup.py | ||
|
||
ENV PYTHONPATH /install/lib/python3.7/site-packages | ||
RUN pip install --install-option="--prefix=/install" setuptools && \ | ||
LIBRARY_PATH=/lib:/usr/lib pip install --install-option="--prefix=/install" -r /requirements.txt | ||
RUN pip install --prefix=/install --no-warn-script-location -r /requirements.txt | ||
|
||
#### | ||
|
||
FROM base | ||
|
||
COPY --from=builder /install /usr/local | ||
RUN apk --no-cache add postgresql-dev ca-certificates libxslt jpeg zlib file libxml2 git && \ | ||
pip install git+https://github.com/fossasia/[email protected]#egg=flask-rest-jsonapi | ||
RUN apk --no-cache add postgresql-libs ca-certificates libxslt jpeg zlib file libxml2 | ||
|
||
WORKDIR /data/app | ||
ADD . . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Monkey Patch Marshmallow JSONAPI | ||
from marshmallow_jsonapi.flask import Relationship | ||
|
||
|
||
def serialize(self, attr, obj, accessor=None): | ||
if self.include_resource_linkage or self.include_data: | ||
return super(Relationship, self).serialize(attr, obj, accessor) | ||
return self._serialize(None, attr, obj) | ||
|
||
|
||
Relationship.serialize = serialize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.