diff options
Diffstat (limited to 'debian')
| -rw-r--r-- | debian/.gitignore | 1 | ||||
| -rw-r--r-- | debian/changelog | 15 | ||||
| -rw-r--r-- | debian/control | 16 | ||||
| -rw-r--r-- | debian/patches/do-not-install-binary.py | 20 | ||||
| -rw-r--r-- | debian/patches/series | 1 | ||||
| -rw-r--r-- | debian/patches/use-py3.patch | 179 | ||||
| -rw-r--r-- | debian/tests/control | 1 | ||||
| -rw-r--r-- | debian/watch | 2 |
8 files changed, 182 insertions, 53 deletions
diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 0000000..2c8afeb --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1 @@ +/files diff --git a/debian/changelog b/debian/changelog index d4c552b..f0cdfcb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,18 @@ +python-box (7.3.2-1) unstable; urgency=medium + + * Team upload. + + [ Debian Janitor ] + * Update standards version to 4.6.1, no changes needed. + + [ Colin Watson ] + * d/watch: Adjust for PyPI normalization. + * New upstream release. Now Architecture: any due to using Cython. + * Use pybuild-plugin-pyproject. + * Mark autopkgtest as superficial (closes: #974492). + + -- Colin Watson <cjwatson@debian.org> Mon, 24 Feb 2025 13:08:37 +0000 + python-box (3.4.6-3) unstable; urgency=medium [ Ondřej Nový ] diff --git a/debian/control b/debian/control index ce1ff76..a080c70 100644 --- a/debian/control +++ b/debian/control @@ -5,26 +5,30 @@ Maintainer: Debian Python Team <team+python@tracker.debian.org> Uploaders: Michal Arbet <michal.arbet@ultimum.io>, Build-Depends: + cython3, debhelper-compat (= 13), dh-python, - python3-all, + pybuild-plugin-pyproject, + python3-all-dev, + python3-msgpack, + python3-pytest <!nocheck>, + python3-ruamel.yaml, python3-setuptools, -Build-Depends-Indep: + python3-tomli-w, python3-yaml, - python3-pytest, - python3-pytest-runner, -Standards-Version: 4.5.1 +Standards-Version: 4.6.1 Vcs-Browser: https://salsa.debian.org/python-team/packages/python-box Vcs-Git: https://salsa.debian.org/python-team/packages/python-box.git Homepage: https://github.com/cdgriffith/Box Rules-Requires-Root: no Package: python3-box -Architecture: all +Architecture: any Depends: python3-yaml, ${misc:Depends}, ${python3:Depends}, + ${shlibs:Depends}, Description: Python dictionaries with advanced dot notation access Box is designed to be an easy drop in transparently replacements for dictionaries, thanks to Python's duck typing capabilities, which diff --git a/debian/patches/do-not-install-binary.py b/debian/patches/do-not-install-binary.py deleted file mode 100644 index 423945c..0000000 --- a/debian/patches/do-not-install-binary.py +++ /dev/null @@ -1,20 +0,0 @@ -Description: Do not install box.py - to /usr/bin as box is python module. - /usr/bin/box.py is useless. -Author: Michal Arbet <michal.arbet@ultimum.io> -Forwarded: not-needed -Last-Update: 2020-03-31 - -diff --git a/setup.py b/setup.py -index 5eaef7b..3a76663 100644 ---- a/setup.py -+++ b/setup.py -@@ -29,7 +29,7 @@ setup( - author_email='chris@cdgriffith.com', - description='Advanced Python dictionaries with dot notation access', - long_description=long_description, -- scripts=['box.py'], -+ #scripts=['box.py'], - py_modules=['box'], - include_package_data=True, - platforms='any', diff --git a/debian/patches/series b/debian/patches/series index 35137a2..1409dbf 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1 @@ use-py3.patch -do-not-install-binary.py diff --git a/debian/patches/use-py3.patch b/debian/patches/use-py3.patch index 7b5e41b..930ab51 100644 --- a/debian/patches/use-py3.patch +++ b/debian/patches/use-py3.patch @@ -1,22 +1,111 @@ -Description: Fixed shebangs to python3 - as dh_python3 --shebang=/usr/bin/python3 - was not working everywhere. -Author: Michal Arbet <michal.arbet@ultimum.io> +From: Michal Arbet <michal.arbet@ultimum.io> +Date: Mon, 24 Feb 2025 12:49:20 +0000 +Subject: Fixed shebangs to python3 + +as dh_python3 --shebang=/usr/bin/python3 was not working everywhere. + Forwarded: not-needed -Last-Update: 2020-03-31 +Last-Update: 2025-02-24 +--- + box/__init__.py | 2 +- + box/box.py | 2 +- + box/box_list.py | 2 +- + box/config_box.py | 2 +- + box/converters.py | 2 +- + box/exceptions.py | 2 +- + box/from_file.py | 2 +- + box/shorthand_box.py | 2 +- + setup.py | 2 +- + test/test_box.py | 2 +- + test/test_box_list.py | 2 +- + test/test_config_box.py | 2 +- + test/test_converters.py | 2 +- + test/test_from_file.py | 2 +- + test/test_sbox.py | 2 +- + 15 files changed, 15 insertions(+), 15 deletions(-) -diff --git a/box.py b/box.py -index 94e3def..ead3a8e 100644 ---- a/box.py -+++ b/box.py +diff --git a/box/__init__.py b/box/__init__.py +index 7cd918f..3c6f75b 100644 +--- a/box/__init__.py ++++ b/box/__init__.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + # -*- coding: utf-8 -*- + + __author__ = "Chris Griffith" +diff --git a/box/box.py b/box/box.py +index 8be6738..66dd30e 100644 +--- a/box/box.py ++++ b/box/box.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 - # -*- coding: UTF-8 -*- + # -*- coding: utf-8 -*- # - # Copyright (c) 2017-2019 - Chris Griffith - MIT License + # Copyright (c) 2017-2023 - Chris Griffith - MIT License +diff --git a/box/box_list.py b/box/box_list.py +index fb00864..1be4a91 100644 +--- a/box/box_list.py ++++ b/box/box_list.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + # -*- coding: utf-8 -*- + # + # Copyright (c) 2017-2023 - Chris Griffith - MIT License +diff --git a/box/config_box.py b/box/config_box.py +index 4c48877..2d822cb 100644 +--- a/box/config_box.py ++++ b/box/config_box.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + # -*- coding: utf-8 -*- + from typing import List + +diff --git a/box/converters.py b/box/converters.py +index 80c1ced..c76e4da 100644 +--- a/box/converters.py ++++ b/box/converters.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + # -*- coding: utf-8 -*- + + # Abstract converter functions for use in any Box class +diff --git a/box/exceptions.py b/box/exceptions.py +index 18c82d0..64e7f47 100644 +--- a/box/exceptions.py ++++ b/box/exceptions.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + # -*- coding: utf-8 -*- + + +diff --git a/box/from_file.py b/box/from_file.py +index 8f4ce68..4166ba8 100644 +--- a/box/from_file.py ++++ b/box/from_file.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + # -*- coding: utf-8 -*- + from json import JSONDecodeError + from os import PathLike +diff --git a/box/shorthand_box.py b/box/shorthand_box.py +index a82edbd..628f6d5 100644 +--- a/box/shorthand_box.py ++++ b/box/shorthand_box.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + # -*- coding: utf-8 -*- + from typing import Dict + diff --git a/setup.py b/setup.py -index 5eaef7b..3a76663 100644 +index 8abda61..d7bd112 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ @@ -24,24 +113,64 @@ index 5eaef7b..3a76663 100644 +#!/usr/bin/env python3 # -*- coding: utf-8 -*- - from setuptools import setup -diff --git a/test/test_functional_box.py b/test/test_functional_box.py -index 8db60ab..5f02571 100644 ---- a/test/test_functional_box.py -+++ b/test/test_functional_box.py + # Must import multiprocessing as a fix for issues with testing, experienced on win10 +diff --git a/test/test_box.py b/test/test_box.py +index 1232f3c..6f1fc9d 100644 +--- a/test/test_box.py ++++ b/test/test_box.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 - # -*- coding: UTF-8 -*- + # -*- coding: utf-8 -*- # Test files gathered from json.org and yaml.org - from __future__ import absolute_import -diff --git a/test/test_unittests_box.py b/test/test_unittests_box.py -index 8dbf6e0..146d73c 100644 ---- a/test/test_unittests_box.py -+++ b/test/test_unittests_box.py + import copy +diff --git a/test/test_box_list.py b/test/test_box_list.py +index 99c65d7..043db86 100644 +--- a/test/test_box_list.py ++++ b/test/test_box_list.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 - # -*- coding: UTF-8 -*- - from __future__ import absolute_import + # -*- coding: utf-8 -*- + # Test files gathered from json.org and yaml.org +diff --git a/test/test_config_box.py b/test/test_config_box.py +index 345ed55..55a73d3 100644 +--- a/test/test_config_box.py ++++ b/test/test_config_box.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + # -*- coding: utf-8 -*- + + from test.common import test_dict +diff --git a/test/test_converters.py b/test/test_converters.py +index 014f1a4..262409f 100644 +--- a/test/test_converters.py ++++ b/test/test_converters.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + # -*- coding: utf-8 -*- + import json + import os +diff --git a/test/test_from_file.py b/test/test_from_file.py +index 7361e84..46aa84d 100644 +--- a/test/test_from_file.py ++++ b/test/test_from_file.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + # -*- coding: utf-8 -*- + from pathlib import Path + from test.common import test_root +diff --git a/test/test_sbox.py b/test/test_sbox.py +index ea0d06a..a7dd760 100644 +--- a/test/test_sbox.py ++++ b/test/test_sbox.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + # -*- coding: utf-8 -*- + import json + from test.common import test_dict diff --git a/debian/tests/control b/debian/tests/control index 4742caa..7ea639e 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -3,3 +3,4 @@ Depends: python3-setuptools, python3-box, Test-Command: set -e; for py in $(py3versions -i); do echo "[*] testing on $py:"; $py -c "import box; print(box)"; done +Restrictions: superficial diff --git a/debian/watch b/debian/watch index 5ec5dbe..4d38999 100644 --- a/debian/watch +++ b/debian/watch @@ -1,3 +1,3 @@ version=3 opts=uversionmangle=s/(rc|a|b|c)/~$1/ \ -https://pypi.debian.net/python-box/python-box-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) +https://pypi.debian.net/python-box/python[-_]box-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) |
