Skip to content

Commit

Permalink
feat: V1.0 (#9)
Browse files Browse the repository at this point in the history
* rm old code

* Deactivate publish on test pipy

* Reformart files and edit readme

* Rework args

* Update requrements

* Add Types

* Fromating
  • Loading branch information
ArneGudermann authored Nov 18, 2024
1 parent f8b4085 commit 0986fe9
Show file tree
Hide file tree
Showing 26 changed files with 404 additions and 6,691 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,23 @@ jobs:
name: buildfiles
path: .

pubishtest:
if: "!startsWith(github.ref, 'refs/tags/v')"
name: 📦 publish to TestPyPI
runs-on: ubuntu-latest
needs: [ build ]

steps:
- uses: actions/download-artifact@master
with:
name: buildfiles
path: .

- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
# pubishtest:
# if: "!startsWith(github.ref, 'refs/tags/v')"
# name: 📦 publish to TestPyPI
# runs-on: ubuntu-latest
# needs: [ build ]
#
# steps:
# - uses: actions/download-artifact@master
# with:
# name: buildfiles
# path: .
#
# - name: Publish distribution 📦 to Test PyPI
# uses: pypa/gh-action-pypi-publish@master
# with:
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository_url: https://test.pypi.org/legacy/

publish:
if: "startsWith(github.ref, 'refs/tags/v')"
Expand Down Expand Up @@ -110,4 +110,4 @@ jobs:
files: dist/*
body: ${{ steps.changelog_reader.outputs.changes }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ The static paths are stored in an app.yaml as handlers and are therefore compati
## Getting Started
Take a look at the example folder. Here you can find a start.sh which starts the App Server on port 8080.

### External APIs
App Server allows app code to connect to external APIs, eg [Google Cloud Datastore](https://cloud.google.com/datastore/docs/), like normal. To use the [local datastore emulator](https://cloud.google.com/datastore/docs/tools/datastore-emulator), first start it, then in a separate shell [set the appropriate environment variables](https://cloud.google.com/datastore/docs/tools/datastore-emulator#setting_environment_variables) (notably `DATASTORE_EMULATOR_HOST` and `DATASTORE_DATASET`) to point your app to it before you run App Server.

### Dependencies
The app server dependents on the following packages
Expand Down
6 changes: 2 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ package_dir =
packages = find:
python_requires = >=3.8
install_requires =
werkzeug~=2.3.7
werkzeug~=3.1.2
pyyaml~=6.0
gunicorn~=21.2.0
gunicorn~=23.0.0
fs~=2.4.16
grpcio>=1.58.0

Expand All @@ -31,5 +31,3 @@ where = src
[options.entry_points]
console_scripts =
app_server = app_server:main
gcloud-storage-emulator = app_server.storage:main
gcloud-tasks-emulator = app_server.tasks:main
Loading

0 comments on commit 0986fe9

Please sign in to comment.