Skip to content

Commit

Permalink
www/py-django-hijack: Update to 3.4.1
Browse files Browse the repository at this point in the history
PR:		267810
Reported by:	maintainer
  • Loading branch information
wenheping committed May 25, 2023
1 parent c489d8e commit 8fce294
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
4 changes: 2 additions & 2 deletions www/py-django-hijack/Makefile
@@ -1,5 +1,5 @@
PORTNAME= django-hijack
PORTVERSION= 3.2.1
PORTVERSION= 3.4.1
CATEGORIES= www python
MASTER_SITES= PYPI \
https://ports.caomhin.org/:npmcache
Expand All @@ -21,7 +21,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django32>=2.2:www/py-django32@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-django>0:devel/py-pytest-django@${PY_FLAVOR}

USES= gettext-tools:build python:3.6+
USES= gettext-tools:build python:3.7+
USE_PYTHON= distutils autoplist

MAKE_ENV= npm_config_offline=true
Expand Down
10 changes: 5 additions & 5 deletions www/py-django-hijack/distinfo
@@ -1,5 +1,5 @@
TIMESTAMP = 1662475103
SHA256 (django-hijack-3.2.1.tar.gz) = 8df524fd085a43205a6bb497c53fd94483824b4f3179762fc1c31c1dea58d1ca
SIZE (django-hijack-3.2.1.tar.gz) = 267537
SHA256 (django-hijack-npm-cache-3.2.1.tar.gz) = d4ddca269de2823ec2abd06e614bd48111d7297b644ecc64e976017b840cd53a
SIZE (django-hijack-npm-cache-3.2.1.tar.gz) = 9937612
TIMESTAMP = 1685006866
SHA256 (django-hijack-3.4.1.tar.gz) = 2bdd7ffa42198637f49c195468b8330ea51dc36b7c2bee0f3c220c9d7de78764
SIZE (django-hijack-3.4.1.tar.gz) = 268223
SHA256 (django-hijack-npm-cache-3.4.1.tar.gz) = 7042d3db3cefd7acd82ad1163826eb25da805c568cd40418db5d078376e33828
SIZE (django-hijack-npm-cache-3.4.1.tar.gz) = 10792160
19 changes: 10 additions & 9 deletions www/py-django-hijack/files/patch-setup.py
@@ -1,21 +1,21 @@
Handle the installation by native setuptools to prevent errors like
"command 'install' has no such option 'single_version_externally_managed'".

--- setup.py.orig 2022-03-12 16:51:11 UTC
--- setup.py.orig 2023-05-23 13:27:00 UTC
+++ setup.py
@@ -5,7 +5,6 @@ import os
@@ -5,10 +5,9 @@ import os
import subprocess # nosec
from distutils.cmd import Command
from distutils.command.build import build as _build
-from distutils.command.install import install as _install
from pathlib import Path

from setuptools import setup
-from setuptools import setup
+from setuptools import setup, find_packages

@@ -62,21 +61,11 @@ class build(_build):
("compile_scss", None),
BASE_DIR = os.path.dirname((os.path.abspath(__file__)))

@@ -71,20 +70,12 @@ class build(_build):
]

-
-class install(_install):
- sub_commands = [
- *_install.sub_commands,
Expand All @@ -27,6 +27,7 @@
setup(
name="django-hijack",
use_scm_version=True,
+ packages=find_packages(exclude=['test_app']),
cmdclass={
"build": build,
- "install": install,
Expand Down

0 comments on commit 8fce294

Please sign in to comment.