diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000000000000000000000000000000000000..61eb973c78331a7f6119499b8c2c07b144accfb3 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-django-structlog (8.1.0-1) unstable; urgency=low + + * Initial release (Closes: #1073003). + + -- Michael Fladischer <fladi@debian.org> Mon, 10 Jun 2024 21:21:14 +0000 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000000000000000000000000000000000000..66e7a1704f8d0d0acef4e2806736f9121b4196f0 --- /dev/null +++ b/debian/control @@ -0,0 +1,49 @@ +Source: python-django-structlog +Section: python +Priority: optional +Maintainer: Debian Python Team <team+python@tracker.debian.org> +Uploaders: + Michael Fladischer <fladi@debian.org>, +Build-Depends: + debhelper-compat (= 13), + dh-python, + pybuild-plugin-pyproject, + python3-all, + python3-celery, + python3-django, + python3-setuptools, + python3-sphinx, + python3-sphinx-rtd-theme, + python3-structlog, +Standards-Version: 4.7.0 +Homepage: https://github.com/jrobichaud/django-structlog +Vcs-Browser: https://salsa.debian.org/python-team/packages/python-django-structlog +Vcs-Git: https://salsa.debian.org/python-team/packages/python-django-structlog.git +Rules-Requires-Root: no + +Package: python3-django-structlog +Architecture: all +Depends: + ${misc:Depends}, + ${python3:Depends}, +Suggests: + python-django-structlog-doc, +Description: Structured Logging for Django (Python3 version) + django-structlog is a structured logging integration for Django project using + structlog. Logging will then produce additional cohesive metadata on each logs + that makes it easier to track events or incidents. + . + This package contains the Python 3 version of the library. + +Package: python-django-structlog-doc +Section: doc +Architecture: all +Depends: + ${misc:Depends}, + ${sphinxdoc:Depends}, +Description: Structured Logging for Django (Documentation) + django-structlog is a structured logging integration for Django project using + structlog. Logging will then produce additional cohesive metadata on each logs + that makes it easier to track events or incidents. + . + This package contains the documentation. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000000000000000000000000000000000000..0e9e3cce0433d226cdb7c1b694a2d76e2ef8bd19 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,31 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: python-django-structlog +Upstream-Contact: Jules Robichaud-Gagnon <j.robichaudg+pypi@gmail.com> +Source: https://github.com/jrobichaud/django-structlog + +Files: * +Copyright: 2020, Jules Robichaud-Gagnon <j.robichaudg+pypi@gmail.com> +License: Expat + +Files: debian/* +Copyright: 2024, Michael Fladischer <fladi@debian.org> +License: Expat + +License: Expat + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000000000000000000000000000000000000..da9a3da9f56dfb7136f1beb27480746c0bb4436e --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,4 @@ +[DEFAULT] +debian-branch=debian/latest +upstream-branch=upstream/latest +pristine-tar=true diff --git a/debian/patches/0001-Remove-remote-badges-to-prevent-privacy-issues.patch b/debian/patches/0001-Remove-remote-badges-to-prevent-privacy-issues.patch new file mode 100644 index 0000000000000000000000000000000000000000..c9c0673a7ff87e40163b0c1f519e3c6c48a34cbc --- /dev/null +++ b/debian/patches/0001-Remove-remote-badges-to-prevent-privacy-issues.patch @@ -0,0 +1,78 @@ +From: Michael Fladischer <FladischerMichael@fladi.at> +Date: Wed, 12 Jun 2024 10:29:10 +0000 +Subject: Remove remote badges to prevent privacy issues. + +--- + README.rst | 59 ----------------------------------------------------------- + 1 file changed, 59 deletions(-) + +diff --git a/README.rst b/README.rst +index dfb425e..d777df0 100644 +--- a/README.rst ++++ b/README.rst +@@ -7,65 +7,6 @@ django-structlog + | |django| |python| |license| |black| |ruff| + | |watchers| |stars| |forks| + +-.. |build-status| image:: https://github.com/jrobichaud/django-structlog/actions/workflows/main.yml/badge.svg?branch=main +- :target: https://github.com/jrobichaud/django-structlog/actions +- :alt: Build Status +- +-.. |pypi| image:: https://img.shields.io/pypi/v/django-structlog.svg +- :target: https://pypi.org/project/django-structlog/ +- :alt: PyPI version +- +-.. |docs| image:: https://readthedocs.org/projects/django-structlog/badge/?version=latest +- :target: https://django-structlog.readthedocs.io/en/latest/?badge=latest +- :alt: Documentation Status +- +-.. |coverage| image:: https://img.shields.io/codecov/c/github/jrobichaud/django-structlog.svg +- :target: https://codecov.io/gh/jrobichaud/django-structlog +- :alt: codecov +- +-.. |python| image:: https://img.shields.io/pypi/pyversions/django-structlog.svg +- :target: https://pypi.org/project/django-structlog/ +- :alt: Supported Python versions +- +-.. |license| image:: https://img.shields.io/pypi/l/django-structlog.svg +- :target: https://github.com/jrobichaud/django-structlog/blob/main/LICENSE.rst +- :alt: License +- +-.. |open_issues| image:: https://img.shields.io/github/issues/jrobichaud/django-structlog.svg +- :target: https://github.com/jrobichaud/django-structlog/issues +- :alt: GitHub issues +- +-.. |django| image:: https://img.shields.io/pypi/djversions/django-structlog.svg +- :target: https://pypi.org/project/django-structlog/ +- :alt: PyPI - Django Version +- +-.. |pull_requests| image:: https://img.shields.io/github/issues-pr/jrobichaud/django-structlog.svg +- :target: https://github.com/jrobichaud/django-structlog/pulls +- :alt: GitHub pull requests +- +-.. |forks| image:: https://img.shields.io/github/forks/jrobichaud/django-structlog.svg?style=social +- :target: https://github.com/jrobichaud/django-structlog/ +- :alt: GitHub forks +- +-.. |stars| image:: https://img.shields.io/github/stars/jrobichaud/django-structlog.svg?style=social +- :target: https://github.com/jrobichaud/django-structlog/ +- :alt: GitHub stars +- +-.. |watchers| image:: https://img.shields.io/github/watchers/jrobichaud/django-structlog.svg?style=social +- :target: https://github.com/jrobichaud/django-structlog/ +- :alt: GitHub watchers +- +-.. |wheels| image:: https://img.shields.io/pypi/wheel/django-structlog.svg +- :target: https://pypi.org/project/django-structlog/ +- :alt: PyPI - Wheel +- +-.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg +- :target: https://github.com/python/black +- :alt: Black +- +-.. |ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json +- :target: https://github.com/astral-sh/ruff +- :alt: Ruff + + django-structlog is a structured logging integration for `Django <https://www.djangoproject.com/>`_ project using `structlog <https://www.structlog.org/>`_ + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000000000000000000000000000000000000..c372ded557c1b473c96e19b4ea000fb170005496 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-Remove-remote-badges-to-prevent-privacy-issues.patch diff --git a/debian/python-django-structlog-doc.doc-base b/debian/python-django-structlog-doc.doc-base new file mode 100644 index 0000000000000000000000000000000000000000..e1e99282f240311a3e64ba6ac66b665c14087038 --- /dev/null +++ b/debian/python-django-structlog-doc.doc-base @@ -0,0 +1,8 @@ +Document: python-django-structlog-doc +Title: django-structlog Documentation +Author: Jules Robichaud-Gagnon <j.robichaudg+pypi@gmail.com> +Section: Programming/Python + +Format: HTML +Index: /usr/share/doc/python-django-structlog-doc/html/index.html +Files: /usr/share/doc/python-django-structlog-doc/html/*.html diff --git a/debian/python3-django-structlog.docs b/debian/python3-django-structlog.docs new file mode 100644 index 0000000000000000000000000000000000000000..a1320b1b4ab22e9be9bbc9d5777c0e31aa4011d5 --- /dev/null +++ b/debian/python3-django-structlog.docs @@ -0,0 +1 @@ +README.rst diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000000000000000000000000000000000000..18914cd70a57dff0b64ad6aa019e1d75dd798d59 --- /dev/null +++ b/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export PYBUILD_NAME=django-structlog +export PYBUILD_DISABLE=test + +%: + dh $@ --with python3,sphinxdoc --buildsystem=pybuild + +execute_before_dh_sphinxdoc: +ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) + PYTHONPATH=$(CUDIR) python3 -m sphinx -b html -d $(CURDIR)/docs/.build/.doctrees -N $(CURDIR)/docs $(CURDIR)/debian/python-django-structlog-doc/usr/share/doc/python-django-structlog-doc/html +endif + +execute_before_dh_clean: + rm -rf $(CURDIR)/docs/.build diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000000000000000000000000000000000000..163aaf8d82b6c54f23c45f32895dbdfdcc27b047 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000000000000000000000000000000000000..df35cebbfdc8d32963dbeed16e4b5fc79380a165 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,12 @@ +Tests: upstream +Depends: + python3-all, + python3-django-environ, + python3-django-extensions, + python3-pytest, + python3-pytest-django, + python3-redis, + redis-server, + @, + @builddeps@, +Restrictions: allow-stderr diff --git a/debian/tests/upstream b/debian/tests/upstream new file mode 100644 index 0000000000000000000000000000000000000000..8246a5d6080c73c758fa5250378463506a7036e1 --- /dev/null +++ b/debian/tests/upstream @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +cp -r config test_app ${AUTOPKGTEST_TMP} +cd ${AUTOPKGTEST_TMP} +export CELERY_BROKER_URL=redis://localhost:6379 +export CELERY_RESULT_BACKEND=redis://localhost:6379 +for p in $(py3versions -s); do + $p -m pytest --ds=config.settings.test test_app +done diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000000000000000000000000000000000000..40b8486152488bf7f58d27a414cb5def840d267c --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ + +Bug-Database: https://github.com/jrobichaud/django-structlog/issues +Bug-Submit: https://github.com/jrobichaud/django-structlog/issues/new +Repository: https://github.com/jrobichaud/django-structlog.git +Repository-Browse: https://github.com/jrobichaud/django-structlog diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000000000000000000000000000000000000..bb3f01dcd766a66b2839dcf2ece8e0eefb9c9d22 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts=filenamemangle=s/.*\/([\d\.]+.*)$/python-django-structlog-$1/ \ +https://github.com/jrobichaud/django-structlog/tags \ +/jrobichaud/django-structlog/archive/refs/tags/([\d\.]+)\.tar\.gz