Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
39dfa62
add macos-intel now that macos-latest is arm64
asottile Apr 30, 2024
5ace745
Merge pull request #460 from sass/asottile-patch-1
asottile Apr 30, 2024
f1246f7
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] May 27, 2024
febee55
Merge pull request #461 from sass/pre-commit-ci-update-config
asottile May 28, 2024
95d8ded
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jun 3, 2024
d93c8d7
Merge pull request #462 from sass/pre-commit-ci-update-config
asottile Jun 4, 2024
50665d3
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jun 10, 2024
0341493
Merge pull request #463 from sass/pre-commit-ci-update-config
asottile Jun 13, 2024
74e1fa2
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jun 17, 2024
d02c97b
Merge pull request #464 from sass/pre-commit-ci-update-config
asottile Jun 19, 2024
a128121
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jun 24, 2024
6dc1f28
Merge pull request #465 from sass/pre-commit-ci-update-config
asottile Jun 25, 2024
f4de08b
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 29, 2024
e266519
Merge pull request #466 from sass/pre-commit-ci-update-config
asottile Jul 30, 2024
e082dba
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Aug 6, 2024
e468db2
Merge pull request #467 from sass/pre-commit-ci-update-config
asottile Aug 6, 2024
362f2dd
remove msvc hack
asottile Oct 26, 2024
84abba3
disable pypy for now
asottile Oct 26, 2024
b7aad15
Merge pull request #472 from sass/remove-msvc-hack
asottile Oct 26, 2024
9534c02
py39+
asottile Oct 26, 2024
0cf6de2
Merge pull request #473 from sass/py39-plus
asottile Oct 26, 2024
ba39ec7
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 15, 2024
b9eaa77
Merge pull request #469 from sass/pre-commit-ci-update-config
asottile Oct 26, 2024
596b0cc
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 29, 2024
e6358c2
Merge pull request #474 from sass/pre-commit-ci-update-config
asottile Oct 29, 2024
b4225cf
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Dec 24, 2024
7bfcf35
Merge pull request #476 from sass/pre-commit-ci-update-config
asottile Dec 24, 2024
024e351
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jan 21, 2025
acf1ff6
Merge pull request #477 from sass/pre-commit-ci-update-config
asottile Jan 21, 2025
00af6ab
upgrade asottile/workflows
asottile Jan 30, 2025
1731647
Merge pull request #478 from sass/all-repos_autofix_all-repos-sed
asottile Jan 30, 2025
40bd7ab
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Feb 17, 2025
fe2b51e
Merge pull request #479 from sass/pre-commit-ci-update-config
asottile Feb 17, 2025
60769f2
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Mar 31, 2025
7a9a0cc
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 31, 2025
a4cfc00
Merge pull request #480 from sass/pre-commit-ci-update-config
asottile Mar 31, 2025
5c1a0fa
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] May 26, 2025
80b59db
Merge pull request #481 from sass/pre-commit-ci-update-config
asottile May 28, 2025
668d486
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jun 23, 2025
2656986
Merge pull request #482 from sass/pre-commit-ci-update-config
asottile Jun 24, 2025
8d8281d
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Aug 11, 2025
5356d40
Merge pull request #483 from sass/pre-commit-ci-update-config
asottile Aug 13, 2025
e832e51
py310+
asottile Oct 9, 2025
b7916df
Merge pull request #487 from sass/all-repos_autofix_all-repos-manual
asottile Oct 10, 2025
a3ed8a2
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 13, 2025
5193158
Merge pull request #488 from sass/pre-commit-ci-update-config
asottile Oct 14, 2025
b951b4b
Update README.rst
nex3 Oct 24, 2025
b9f6b07
ci: replace pkg_resources and retired macos-13 runner (#3)
schloerke Nov 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,30 @@ on:

jobs:
main-windows:
uses: asottile/workflows/.github/workflows/tox.yml@v1.5.0
uses: asottile/workflows/.github/workflows/tox.yml@v1.8.1
with:
env: '["py38"]'
env: '["py310"]'
os: windows-latest
arch: '["x64", "x86"]'
wheel-tags: true
submodules: true
main-macos:
uses: asottile/workflows/.github/workflows/tox.yml@v1.5.0
uses: asottile/workflows/.github/workflows/tox.yml@v1.8.1
with:
env: '["py38"]'
env: '["py310"]'
os: macos-latest
wheel-tags: true
submodules: true
main-macos-intel:
uses: asottile/workflows/.github/workflows/tox.yml@v1.8.1
with:
env: '["py310"]'
os: macos-15-intel
wheel-tags: true
submodules: true
main-linux:
uses: asottile/workflows/.github/workflows/tox.yml@v1.5.0
uses: asottile/workflows/.github/workflows/tox.yml@v1.8.1
with:
env: '["pypy3", "py38", "py39", "py310", "py311"]'
env: '["py310", "py311", "py312"]'
os: ubuntu-latest
submodules: true
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -10,29 +10,29 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.5.0
rev: v3.1.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.0
rev: v3.16.0
hooks:
- id: reorder-python-imports
args: [--py38-plus]
args: [--py310-plus]
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
rev: v4.0.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
rev: v3.21.0
hooks:
- id: pyupgrade
args: [--py38-plus]
args: [--py310-plus]
- repo: https://github.com/hhatto/autopep8
rev: v2.1.0
rev: v2.3.2
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
rev: 7.3.0
hooks:
- id: flake8
exclude: ^docs/conf.py
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
libsass-python: Sass_/SCSS for Python
=====================================

LibSass has reached its end of life. It will no longer receive updates of any kind,
nor will its wrapper libraries. Users should migrate to Dart Sass at their earliest
convenience. See also https://github.com/attakei/sass-embedded-python.

.. image:: https://badge.fury.io/py/libsass.svg
:alt: PyPI
:target: https://pypi.org/pypi/libsass/
Expand Down
2 changes: 1 addition & 1 deletion bin/build-manylinux-wheels
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def check_call(*cmd):
def main():
os.makedirs('dist', exist_ok=True)
with tempfile.TemporaryDirectory() as work:
pip = '/opt/python/cp38-cp38/bin/pip'
pip = '/opt/python/cp39-cp39/bin/pip'
check_call(
'docker', 'run', '-ti',
# Use this so the files are not owned by root
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ coverage
coverage-enable-subprocess
pre-commit
pytest
setuptools
werkzeug>=0.9
7 changes: 4 additions & 3 deletions sassutils/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@

"""
import collections.abc
import importlib
import logging
import os.path

from pkg_resources import resource_filename

from .builder import Manifest
from sass import CompileError

Expand Down Expand Up @@ -107,7 +106,9 @@ def __init__(
for package_name in self.manifests:
if package_name in self.package_dir:
continue
path = resource_filename(package_name, '')
path = os.path.dirname(
importlib.import_module(package_name).__file__,
)
self.package_dir[package_name] = path
self.paths = []
for package_name, manifest in self.manifests.items():
Expand Down
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ classifiers =
Development Status :: 5 - Production/Stable
Environment :: Web Environment
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: C
Programming Language :: C++
Expand All @@ -33,7 +32,7 @@ py_modules =
pysassc
sass
sasstests
python_requires = >=3.8
python_requires = >=3.10

[options.entry_points]
console_scripts =
Expand Down
21 changes: 1 addition & 20 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,26 +96,7 @@ def customize_compiler(compiler):
elif filename.endswith('.h'):
headers.append(filename)

if sys.platform == 'win32':
from distutils.msvc9compiler import get_build_version
vscomntools_env = 'VS{}{}COMNTOOLS'.format(
int(get_build_version()),
int(get_build_version() * 10) % 10,
)
try:
os.environ[vscomntools_env] = os.environ['VS140COMNTOOLS']
except KeyError:
distutils.log.warn(
'You probably need Visual Studio 2015 (14.0) '
'or higher',
)
from distutils import msvccompiler, msvc9compiler
if msvccompiler.get_build_version() < 14.0:
msvccompiler.get_build_version = lambda: 14.0
if get_build_version() < 14.0:
msvc9compiler.get_build_version = lambda: 14.0
msvc9compiler.VERSION = 14.0
elif platform.system() in {'Darwin', 'FreeBSD', 'OpenBSD'}:
if platform.system() in {'Darwin', 'FreeBSD', 'OpenBSD'}:
# Dirty workaround to avoid link error...
# Python distutils doesn't provide any way
# to configure different flags for each cc and c++.
Expand Down
Loading