Skip to content

Commit

Permalink
Merge pull request #3 from lsst-sqre/tickets/DM-30931
Browse files Browse the repository at this point in the history
DM-30931: Capture and manage broadcast from a GitHub repository
  • Loading branch information
jonathansick authored Aug 6, 2021
2 parents 9c97b1e + 2e26c1a commit 99716a0
Show file tree
Hide file tree
Showing 49 changed files with 3,195 additions and 165 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
depth: 0 # full-depth clone for setuptools_scm
fetch-depth: 0 # full-depth clone for setuptools_scm

- name: Set up Python
uses: actions/setup-python@v2
Expand All @@ -31,7 +31,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
depth: 0 # full-depth clone for setuptools_scm
fetch-depth: 0 # full-depth clone for setuptools_scm

- name: Set up Python
uses: actions/setup-python@v2
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
depth: 0 # full-depth clone for setuptools_scm
fetch-depth: 0 # full-depth clone for setuptools_scm

- name: Define the Docker tag
id: vars
Expand Down
6 changes: 3 additions & 3 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Change log
##########

Unreleased
==========
0.2.0 (2021-08-06)
==================

Initial release.
This is the initial working version of Semaphore, featuring the ability to source broadcast messages from GitHub, and get updates for those messages through GitHub webhooks.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ ENV PATH="/opt/venv/bin:$PATH"
# modified by the virtualenv.
ENV MODULE_NAME=semaphore.main

# The default starts 40 workers, which exhausts the available connections
# on a micro Cloud SQL PostgreSQL server and seems excessive since we can
# scale with Kubernetes. Cap the workers at 10.
ENV MAX_WORKERS=10
# Limit to 1 because of the current in-memory data persistence for broadcasts.
# Once persistent storage is added, change this to 10 which works well with
# the Cloud SQL Postgres server.
ENV MAX_WORKERS=1

# Run on port 8080 instead of the FastAPI default for backward compatibility.
ENV PORT=8080
1 change: 1 addition & 0 deletions requirements/dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pytest-asyncio
pytest-cov
pytest-httpx
pytest-xdist[psutil]
types-python-dateutil
types-PyYAML

# Documentation
Expand Down
38 changes: 22 additions & 16 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ asgi-lifespan==1.0.1 \
attrs==21.2.0 \
--hash=sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1 \
--hash=sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb
# via pytest
# via
# -c requirements/main.txt
# pytest
babel==2.9.1 \
--hash=sha256:ab49e12b91d937cd11f0b67cb259a57ab4ad2b59ac7a3b41d6c06c0ac5b0def9 \
--hash=sha256:bc0c176f9f6a994582230df350aa6e05ba2ebe4b3ac317eab29d9be5d2768da0
Expand All @@ -33,9 +35,9 @@ certifi==2021.5.30 \
# -c requirements/main.txt
# httpx
# requests
chardet==4.0.0 \
--hash=sha256:0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa \
--hash=sha256:f864054d66fd9118f2e67044ac8981a54775ec5b67aed0441892edb553d21da5
charset-normalizer==2.0.3 \
--hash=sha256:88fce3fa5b1a84fdcb3f603d889f723d1dd89b26059d0123ca435570e848d5e1 \
--hash=sha256:c46c3ace2d744cfbdebceaa3c19ae691f53ae621b39fd7570f59d14fb7f2fd12
# via requests
click==8.0.1 \
--hash=sha256:8c04c11192119b1ef78ea049e0a6f0463e4c48ef00a30160c704337586f3ad7a \
Expand Down Expand Up @@ -232,9 +234,9 @@ mypy-extensions==0.4.3 \
--hash=sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d \
--hash=sha256:2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8
# via mypy
packaging==20.9 \
--hash=sha256:5b327ac1320dc863dca72f4514ecc086f31186744b84a230374cc1fd776feae5 \
--hash=sha256:67714da7f7bc052e064859c05c595155bd1ee9f69f76557e21f051443c20947a
packaging==21.0 \
--hash=sha256:7dc96269f53a4ccec5c0670940a4281106dd0bb343f47b7471f779df49c2fbe7 \
--hash=sha256:c86254f9220d55e31cc94d69bade760f0847da8000def4dfe1c6b872fd14ff14
# via
# pytest
# sphinx
Expand Down Expand Up @@ -364,9 +366,9 @@ pyyaml==5.4.1 \
# -c requirements/main.txt
# documenteer
# pybtex
requests==2.25.1 \
--hash=sha256:27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804 \
--hash=sha256:c210084e36a42ae6b9219e00e48287def368a26d03a048ddad7bfee44f75871e
requests==2.26.0 \
--hash=sha256:6c1246513ecd5ecd4528a0906f910e8f0f9c6b8ec72030dc9fd154dc1a6efd24 \
--hash=sha256:b8aa58f8cf793ffd8782d3d8cb19e66ef36f7aba4353eec859e74678b01b07a7
# via
# documenteer
# sphinx
Expand Down Expand Up @@ -400,9 +402,9 @@ snowballstemmer==2.1.0 \
--hash=sha256:b51b447bea85f9968c13b650126a888aabd4cb4463fca868ec596826325dedc2 \
--hash=sha256:e997baa4f2e9139951b6f4c631bad912dfd3c792467e2f03d7239464af90e914
# via sphinx
sphinx==4.0.2 \
--hash=sha256:b5c2ae4120bf00c799ba9b3699bc895816d272d120080fbc967292f29b52b48c \
--hash=sha256:d1cb10bee9c4231f1700ec2e24a91be3f3a3aba066ea4ca9f3bbe47e59d5a1d4
sphinx==4.1.1 \
--hash=sha256:23c846a1841af998cb736218539bb86d16f5eb95f5760b1966abcd2d584e62b8 \
--hash=sha256:3d513088236eef51e5b0adb78b0492eb22cc3b8ccdb0b36dd021173b365d4454
# via
# documenteer
# sphinx-automodapi
Expand Down Expand Up @@ -451,6 +453,10 @@ toml==0.10.2 \
# mypy
# pytest
# pytest-cov
types-python-dateutil==0.1.4 \
--hash=sha256:39bfe0bde61fc673b8fa28167bd78622d976210f791971b9f3e10877cbf119a4 \
--hash=sha256:e6486ca27b6dde73e0ec079a9e1b03e208766e6bc7f1e08964a7e9104a5c7d7a
# via -r requirements/dev.in
types-pyyaml==5.4.3 \
--hash=sha256:2e7b81b2b7af751634425107b986086c6ba7cb61270a43a5c290c58be8cdbc3a \
--hash=sha256:bca83cbfc0be48600a8abf1e3d87fb762a91e6d35d724029a3321dd2dce2ceb1
Expand All @@ -468,9 +474,9 @@ urllib3==1.26.6 \
# via requests

# The following packages are considered to be unsafe in a requirements file:
setuptools==57.0.0 \
--hash=sha256:401cbf33a7bf817d08014d51560fc003b895c4cdc1a5b521ad2969e928a07535 \
--hash=sha256:c8b9f1a457949002e358fea7d3f2a1e1b94ddc0354b2e40afc066bf95d21bf7b
setuptools==57.4.0 \
--hash=sha256:6bac238ffdf24e8806c61440e755192470352850f3419a52f26ffe0a1a64f465 \
--hash=sha256:a49230977aa6cfb9d933614d2f7b79036e9945c4cdd7583163f4e920b83418d6
# via
# -c requirements/main.txt
# sphinx
8 changes: 8 additions & 0 deletions requirements/main.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@ starlette
uvicorn[standard]

# Other dependencies.
arrow
click
httpx
python-dateutil
safir>=2.0
structlog
pydantic
markdown-it-py[linkify,plugins]
pyyaml
mdformat
mdformat-gfm
gidgethub

# Temporary to avoid a conflict with requirements/dev.txt due to the requests
# dependency on idna, which is capped at 2.10.
Expand Down
Loading

0 comments on commit 99716a0

Please sign in to comment.