kopia lustrzana https://github.com/snarfed/bridgy-fed
initial setup
rodzic
d5fb25c2af
commit
3928147414
|
@ -0,0 +1,7 @@
|
|||
.coverage
|
||||
datastore.dat*
|
||||
/docs/_build/
|
||||
/l
|
||||
/local
|
||||
private_notes
|
||||
TAGS
|
|
@ -0,0 +1,46 @@
|
|||
# https://cloud.google.com/appengine/docs/standard/python/config/appref
|
||||
|
||||
# application: bridgy-activitypub
|
||||
runtime: python27
|
||||
threadsafe: yes
|
||||
api_version: 1
|
||||
default_expiration: 1h
|
||||
|
||||
builtins:
|
||||
- remote_api: on
|
||||
|
||||
libraries:
|
||||
- name: ssl
|
||||
version: latest
|
||||
- name: webob
|
||||
version: latest
|
||||
|
||||
handlers:
|
||||
|
||||
# static
|
||||
- url: /(static/bootstrap.*\.css)
|
||||
static_files: local/lib/python2.7/site-packages/oauth_dropins/\1
|
||||
upload: local/lib/python2.7/site-packages/oauth_dropins/static/bootstrap.*\.css
|
||||
|
||||
- url: /static
|
||||
static_dir: static
|
||||
|
||||
- url: /oauth_dropins/static
|
||||
static_dir: local/lib/python2.7/site-packages/oauth_dropins/static
|
||||
|
||||
- url: /
|
||||
static_files: static/index.html
|
||||
upload: static/index.html
|
||||
|
||||
# dynamic
|
||||
- url: /[^/]+
|
||||
script: app.application
|
||||
secure: always
|
||||
|
||||
skip_files:
|
||||
- ^(.*/)?.*\.py[co]
|
||||
- ^(.*/)?.*/RCS/.*
|
||||
- ^(.*/)?\.git.*
|
||||
- ^(.*/)?.*\.bak$
|
||||
- ^(.*/)?(\.?coverage|debian|docs?|examples?|l|pydocs?|python3|ref|samples?|TAGS|tests?)/.*
|
||||
- ^local/lib/python2.7/site-packages/setuptools/script\ \(dev\)\.tmpl$
|
|
@ -0,0 +1,20 @@
|
|||
"""Bridgy App Engine config.
|
||||
"""
|
||||
import os
|
||||
|
||||
# Load packages from virtualenv
|
||||
# https://cloud.google.com/appengine/docs/python/tools/libraries27#vendoring
|
||||
from google.appengine.ext import vendor
|
||||
try:
|
||||
vendor.add('local')
|
||||
except ValueError as e:
|
||||
import logging
|
||||
logging.warning("Couldn't set up App Engine vendor virtualenv! %s", e)
|
||||
|
||||
from granary.appengine_config import *
|
||||
|
||||
# Make requests and urllib3 play nice with App Engine.
|
||||
# https://github.com/snarfed/bridgy/issues/396
|
||||
# http://stackoverflow.com/questions/34574740
|
||||
from requests_toolbelt.adapters import appengine
|
||||
appengine.monkeypatch()
|
|
@ -0,0 +1,7 @@
|
|||
granary
|
||||
mf2py>=1.0.4
|
||||
mf2util>=0.5.0
|
||||
requests==2.10.0
|
||||
requests-toolbelt==0.6.2
|
||||
-e git+https://github.com/snarfed/webmention-tools.git#egg=webmentiontools
|
||||
urllib3>=1.14
|
Ładowanie…
Reference in New Issue