Skip to content

Commit

Permalink
adjust pyprojects
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalGawor committed Apr 16, 2024
1 parent e2bd6f5 commit 5860220
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 48 deletions.
4 changes: 2 additions & 2 deletions dogapi/dogapi/views_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def fetch(request: Request) -> Response:
expand_datatype_flag = False


fetch_result: dict = {pid: dog.fetch(pid) for pid in pids}
fetch_result: dict = {pid: dog.fetchs(pid) for pid in pids}
if not bool(fetch_result):
ret = Response(f"All Persistent Identifiers are either incorrect or unrecognised", status=400)
else:
Expand Down Expand Up @@ -358,7 +358,7 @@ def expand_datatype(request: Request) -> Response:
data_types = parse_queryparam(request, 'data_type')
expanded_datatypes: dict = {}
for data_type in data_types:
expanded_datatypes.update(doglib_expand_datatype(data_type))
expanded_datatypes.update(doglib_expand_datatype(data_type, dtr=settings.DTR_INTEGRATION))
if expanded_datatypes:
return Response(expanded_datatypes, status=200)
else:
Expand Down
11 changes: 0 additions & 11 deletions dogapi/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
[tool.poetry]
name = "dogapi"
description = "Django API views serving Digital Object Gate functionalities"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Django :: 4.1",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
]
authors = [
"Michał Gawor <m.j.gawor@uu.nl>",
]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

3 changes: 3 additions & 0 deletions dogconfig/dogproject/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
ADMIN_ENABLED = False
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True # TODO: templatize
DTR_INTEGRATION = True
SESSION_COOKIE_SECURE = not DEBUG
SESSION_COOKIE_HTTPONLY = True
CSRF_COOKIE_SECURE = not DEBUG
Expand Down Expand Up @@ -175,6 +176,8 @@
}
}



# Internationalization
# https://docs.djangoproject.com/en/3.2/topics/i18n/

Expand Down
18 changes: 1 addition & 17 deletions dogconfig/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
[tool.poetry]
name = "dogconfig"
description = "Django web application providing Digital Object Gates functionality"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Django :: 4.1",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
]
description = "Django Digital Object Gate project configuration"
authors = [
"Michal Gawor <m.j.gawor@uu.nl>"
]
packages = [
{ include = "dogproject"},
]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.dependencies]
dogapi = ">=1.0.1-a1"
dogui = ">=1.0.1-a1"
django-debug-toolbar = ">=4.1.0"
pymemcache = ">=4.0.0"
13 changes: 0 additions & 13 deletions dogui/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
[tool.poetry]
name = "dogui"
description = "Django UI templates for Digital Object Gate API consumption"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Django :: 4.1",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
]
authors = [
"Michał Gawor <m.j.gawor@uu.nl>"
]
packages = [
{ include = "dogui" }
]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[tool.poetry]
name = "DOGapp"
name = "dogapp"
description = "CLARIN Centre Registry Django project configuration"
version = "1.0.2-rc3"
license = "../LICENSE.txt"
version = "0.0.0dev"
license = "./LICENSE.txt"
authors = [
"Beatriz Sanchez Bribian",
"Michał Gawor <michal@clarin.eu>",
Expand All @@ -20,13 +20,14 @@ packages = [
]

[tool.poetry.urls]
changelog = "https://github.com/clarin-eric/DOGapp/blob/main/LICENSE"
changelog = "https://github.com/clarin-eric/DOGapp/blob/main/CHANGELOG.md"
documentation = "https://github.com/clarin-eric/DOGapp/"
homepage = ""
repository = "https://github.com/clarin-eric/DOGapp/"

[tool.poetry.dependencies]
doglib = { url = "https://github.com/clarin-eric/DOGlib/releases/download/1.0.6-rc1/doglib-1.0.6rc1-py3-none-any.whl" }
doglib = { url =
"https://github.com/clarin-eric/DOGlib/releases/download/1.0.6/doglib-1.0.6-py3-none-any.whl" }
Django = '4.2.11'
django-debug-toolbar = '4.3.0'
djangorestframework = '3.15.1'
Expand Down

0 comments on commit 5860220

Please sign in to comment.