Skip to content
This repository was archived by the owner on Jul 16, 2026. It is now read-only.

Commit 4ca3bee

Browse files
committed
bump python to 3.10, swap awesome-slugify for python-slugify
awesome-slugify is unmaintained and fails to install on modern setuptools/pip + ARM. python-slugify is a maintained drop-in; only the lowercase= kwarg differs from to_lower=.
1 parent 2b9f020 commit 4ca3bee

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defusedxml==0.7.1
1010
django-celery-results==2.4.0
1111
pyyaml==6.0
1212
gunicorn==22.0.0
13-
awesome-slugify==1.6.5
13+
python-slugify==8.0.4
1414
elasticsearch_dsl==7.4.0
1515
python-gvm==21.11.0
1616
bootstrap-admin==0.4.4

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import os
2222
from setuptools import setup, find_packages
2323

24-
assert sys.version_info >= (3, 7), 'Python 3.7+ required.'
24+
assert sys.version_info >= (3, 10), 'Python 3.10+ required.'
2525

2626
THIS_DIRECTORY = os.path.abspath(os.path.dirname(__file__))
2727

src/vmc/elasticsearch/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def clean(self):
4444

4545
def save(self, force_insert=False, force_update=False, using=None,
4646
update_fields=None):
47-
self.prefix = slugify(self.prefix, to_lower=True)
47+
self.prefix = slugify(self.prefix, lowercase=True)
4848
super().save(force_insert=force_insert, force_update=force_update,
4949
using=using, update_fields=update_fields)
5050

@@ -73,7 +73,7 @@ def save(self, force_insert=False, force_update=False, using=None,
7373
from vmc.elasticsearch.registries import registry
7474

7575
if not self.modified_date:
76-
self.slug_name = slugify(self.name, to_lower=True)
76+
self.slug_name = slugify(self.name, lowercase=True)
7777

7878
super().save(force_insert=force_insert, force_update=force_update,
7979
using=using, update_fields=update_fields)

0 commit comments

Comments
 (0)