Skip to content

Commit

Permalink
Merge pull request #14 from nens/reinout-brostar-rename
Browse files Browse the repository at this point in the history
brostar-api rename
  • Loading branch information
reinout authored Mar 29, 2024
2 parents a20943d + fa481c7 commit 79f805e
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 15 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/nens-meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,10 @@ jobs:
docker-compose run web coverage report --format markdown >> $GITHUB_STEP_SUMMARY
docker-compose run web coverage report --fail-under 10 --format text
### Extra lines below are preserved ###
- name: Publish the Docker image
run: |
docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io
docker tag brostar-api_web ghcr.io/nens/brostar-api:main
docker push ghcr.io/nens/brostar-api:main
if: github.ref == 'refs/heads/main'
# Running this job only for main branch.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Changelog for BROStar
# Changelog for BROStar API

## 0.1 (unreleased)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# BROStar
# BROStar API

## Introduction

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion brostar/asgi.py → brostar_api/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

from django.core.asgi import get_asgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "brostar.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "brostar_api.settings")

application = get_asgi_application()
2 changes: 1 addition & 1 deletion brostar/celery.py → brostar_api/celery.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from celery import Celery

app = Celery("brostar")
app = Celery("brostar_api")

# Using a string here means the worker doesn't have to serialize
# the configuration object to child processes.
Expand Down
4 changes: 2 additions & 2 deletions brostar/settings.py → brostar_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
]


ROOT_URLCONF = "brostar.urls"
ROOT_URLCONF = "brostar_api.urls"

TEMPLATES = [
{
Expand Down Expand Up @@ -110,7 +110,7 @@
},
}

WSGI_APPLICATION = "brostar.wsgi.application"
WSGI_APPLICATION = "brostar_api.wsgi.application"

CORS_ALLOWED_ORIGINS = [
"http://localhost:4200",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion brostar/wsgi.py → brostar_api/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "brostar.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "brostar_api.settings")

application = get_wsgi_application()
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def main():
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "brostar.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "brostar_api.settings")

try:
from django.core.management import execute_from_command_line
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
requires = ["setuptools>=69"]

[project]
name = "brostar"
name = "brostar-api"
requires-python = ">=3.11"
dependencies = []
description = "Simplify data management for BRO"
Expand All @@ -16,16 +16,16 @@ version = "0.1.dev0"
test = ["pytest"] # pytest added by nens-meta

[tool.setuptools]
packages = ["brostar", "api", "gmn", "gmw"]
packages = ["brostar_api", "api", "gmn", "gmw"]

[tool.pytest.ini_options]
testpaths = ["brostar", "api", "gmn", "gmw"]
testpaths = ["brostar_api", "api", "gmn", "gmw"]
log_level = "DEBUG"
django_find_project = false
DJANGO_SETTINGS_MODULE = "brostar.settings"
DJANGO_SETTINGS_MODULE = "brostar_api.settings"

[tool.coverage.run]
source = ["brostar", "api", "gmn", "gmw"]
source = ["brostar_api", "api", "gmn", "gmw"]

[tool.coverage.report]
show_missing = true
Expand All @@ -41,4 +41,4 @@ select = ["E4", "E7", "E9", "F", "I", "UP", "C901"]
release = false

[tool.pyright]
include = ["brostar", "api", "gmn", "gmw"]
include = ["brostar_api", "api", "gmn", "gmw"]

0 comments on commit 79f805e

Please sign in to comment.