Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
django-yarnpkg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Libraries
django-yarnpkg
Commits
13cc60c1
Verified
Commit
13cc60c1
authored
1 month ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Drop usage of distutils
parent
60c71a0f
No related branches found
No related tags found
No related merge requests found
Pipeline
#196718
failed
1 month ago
Stage: test
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGELOG.rst
+6
-1
6 additions, 1 deletion
CHANGELOG.rst
django_yarnpkg/conf.py
+2
-2
2 additions, 2 deletions
django_yarnpkg/conf.py
django_yarnpkg/yarn.py
+2
-2
2 additions, 2 deletions
django_yarnpkg/yarn.py
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
11 additions
and
6 deletions
CHANGELOG.rst
+
6
−
1
View file @
13cc60c1
Version 6.1.3 (2025-03-19)
=====================================================
* Fix compatibility with Python 3.13 by dropping usage of distutils.
Version 6.1.2 (2024-02-10)
=====================================================
* Explicitly set nodeLinker config to fix compatibility with Yarn 4.x
* Explicitly set nodeLinker config to fix compatibility with Yarn 4.x
Version 6.1.1 (2024-02-09)
=====================================================
...
...
This diff is collapsed.
Click to expand it.
django_yarnpkg/conf.py
+
2
−
2
View file @
13cc60c1
# -*- coding: utf-8 -*-
from
distutils.spawn
import
find_executable
from
shutil
import
which
import
os
import
sys
from
django.conf
import
settings
...
...
@@ -8,6 +8,6 @@ __all__ = ['NODE_MODULES_ROOT', 'YARN_PATH']
NODE_MODULES_ROOT
=
getattr
(
settings
,
'
NODE_MODULES_ROOT
'
,
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__name__
)))
default_yarn_path
=
find_executable
(
'
yarnpkg
'
)
or
find_executable
(
'
yarn
'
)
default_yarn_path
=
which
(
'
yarnpkg
'
)
or
which
(
'
yarn
'
)
YARN_PATH
=
getattr
(
settings
,
'
YARN_PATH
'
,
default_yarn_path
)
This diff is collapsed.
Click to expand it.
django_yarnpkg/yarn.py
+
2
−
2
View file @
13cc60c1
from
.
import
conf
,
shortcuts
,
exceptions
from
distutils.spawn
import
find_executable
from
shutil
import
which
import
os
import
subprocess
import
sys
...
...
@@ -16,7 +16,7 @@ class YarnAdapter(object):
def
is_yarn_exists
(
self
):
"""
Check is bower exists
"""
if
shortcuts
.
is_executable
(
self
.
_yarn_path
)
\
or
find_executable
(
self
.
_yarn_path
):
or
which
(
self
.
_yarn_path
):
return
True
else
:
return
False
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
13cc60c1
from
setuptools
import
setup
,
find_packages
version
=
'
6.1.
2
'
version
=
'
6.1.
3
'
setup
(
name
=
'
django-yarnpkg
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment