Hello community, here is the log from the commit of package python-pyScss for openSUSE:Factory checked in at 2020-03-24 22:35:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyScss (Old) and /work/SRC/openSUSE:Factory/.python-pyScss.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyScss" Tue Mar 24 22:35:35 2020 rev:2 rq:787686 version:1.3.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyScss/python-pyScss.changes 2018-05-15 10:31:14.468950091 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyScss.new.3160/python-pyScss.changes 2020-03-24 22:37:19.453234678 +0100 @@ -1,0 +2,6 @@ +Mon Mar 23 15:28:04 UTC 2020 - [email protected] + +- version update to 1.3.6 + * no upstream changelog + +------------------------------------------------------------------- Old: ---- pyScss-1.3.5.tar.gz New: ---- pyScss-1.3.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyScss.spec ++++++ --- /var/tmp/diff_new_pack.o9kCrl/_old 2020-03-24 22:37:20.561235217 +0100 +++ /var/tmp/diff_new_pack.o9kCrl/_new 2020-03-24 22:37:20.565235219 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pyScss # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2014 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -13,29 +13,30 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyScss -Version: 1.3.5 +Version: 1.3.6 Release: 0 Summary: pyScss, a Scss compiler for Python License: MIT Group: Development/Languages/Python -Url: http://github.com/Kronuz/pyScss +URL: https://github.com/Kronuz/pyScss Source: https://files.pythonhosted.org/packages/source/p/pyScss/pyScss-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: pcre-devel BuildRequires: python-rpm-macros -%ifpython2 -Requires: python-enum34 -%endif +Requires: python-setuptools Requires: python-six Requires(post): update-alternatives Requires(postun): update-alternatives +%ifpython2 +Requires: python-enum34 +%endif %python_subpackages %description @@ -74,7 +75,6 @@ %python_uninstall_alternative less2scss %files %{python_files} -%defattr(-,root,root,-) %license LICENSE %doc README.rst %{python_sitearch}/* ++++++ pyScss-1.3.5.tar.gz -> pyScss-1.3.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyScss-1.3.5/PKG-INFO new/pyScss-1.3.6/PKG-INFO --- old/pyScss-1.3.5/PKG-INFO 2016-06-09 04:06:16.000000000 +0200 +++ new/pyScss-1.3.6/PKG-INFO 2020-03-21 19:34:27.000000000 +0100 @@ -1,12 +1,12 @@ Metadata-Version: 1.1 Name: pyScss -Version: 1.3.5 +Version: 1.3.6 Summary: pyScss, a Scss compiler for Python Home-page: http://github.com/Kronuz/pyScss Author: German M. Bravo (Kronuz) Author-email: [email protected] License: MIT -Download-URL: http://github.com/Kronuz/pyScss/tarball/v1.3.5 +Download-URL: http://github.com/Kronuz/pyScss/tarball/v1.3.6 Description: pyScss, a Scss compiler for Python ================================== @@ -26,7 +26,7 @@ Quickstart ---------- - You need Python 2.6+ or 3.2+. PyPy is also supported. + You need Python 2.6+ or 3.3+. PyPy is also supported. Installation:: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyScss-1.3.5/README.rst new/pyScss-1.3.6/README.rst --- old/pyScss-1.3.5/README.rst 2014-10-18 01:03:22.000000000 +0200 +++ new/pyScss-1.3.6/README.rst 2020-03-21 19:33:40.000000000 +0100 @@ -17,7 +17,7 @@ Quickstart ---------- -You need Python 2.6+ or 3.2+. PyPy is also supported. +You need Python 2.6+ or 3.3+. PyPy is also supported. Installation:: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyScss-1.3.5/pyScss.egg-info/PKG-INFO new/pyScss-1.3.6/pyScss.egg-info/PKG-INFO --- old/pyScss-1.3.5/pyScss.egg-info/PKG-INFO 2016-06-09 04:06:14.000000000 +0200 +++ new/pyScss-1.3.6/pyScss.egg-info/PKG-INFO 2020-03-21 19:34:27.000000000 +0100 @@ -1,12 +1,12 @@ Metadata-Version: 1.1 Name: pyScss -Version: 1.3.5 +Version: 1.3.6 Summary: pyScss, a Scss compiler for Python Home-page: http://github.com/Kronuz/pyScss Author: German M. Bravo (Kronuz) Author-email: [email protected] License: MIT -Download-URL: http://github.com/Kronuz/pyScss/tarball/v1.3.5 +Download-URL: http://github.com/Kronuz/pyScss/tarball/v1.3.6 Description: pyScss, a Scss compiler for Python ================================== @@ -26,7 +26,7 @@ Quickstart ---------- - You need Python 2.6+ or 3.2+. PyPy is also supported. + You need Python 2.6+ or 3.3+. PyPy is also supported. Installation:: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyScss-1.3.5/pyScss.egg-info/SOURCES.txt new/pyScss-1.3.6/pyScss.egg-info/SOURCES.txt --- old/pyScss-1.3.5/pyScss.egg-info/SOURCES.txt 2016-06-09 04:06:16.000000000 +0200 +++ new/pyScss-1.3.6/pyScss.egg-info/SOURCES.txt 2020-03-21 19:34:27.000000000 +0100 @@ -7,6 +7,7 @@ pyScss.egg-info/SOURCES.txt pyScss.egg-info/dependency_links.txt pyScss.egg-info/entry_points.txt +pyScss.egg-info/not-zip-safe pyScss.egg-info/requires.txt pyScss.egg-info/top_level.txt scss/__init__.py @@ -17,7 +18,6 @@ scss/config.py scss/cssdefs.py scss/errors.py -scss/importer.py scss/legacy.py scss/less2scss.py scss/namespace.py @@ -26,7 +26,6 @@ scss/selector.py scss/setup.py scss/source.py -scss/sourcemap.py scss/tool.py scss/types.py scss/util.py @@ -37,7 +36,6 @@ scss/extension/extra.py scss/extension/fonts.py scss/extension/compass/__init__.py -scss/extension/compass/configuration.py scss/extension/compass/gradients.py scss/extension/compass/helpers.py scss/extension/compass/images.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyScss-1.3.5/pyScss.egg-info/not-zip-safe new/pyScss-1.3.6/pyScss.egg-info/not-zip-safe --- old/pyScss-1.3.5/pyScss.egg-info/not-zip-safe 1970-01-01 01:00:00.000000000 +0100 +++ new/pyScss-1.3.6/pyScss.egg-info/not-zip-safe 2020-03-21 19:34:27.000000000 +0100 @@ -0,0 +1 @@ + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyScss-1.3.5/scss/cssdefs.py new/pyScss-1.3.6/scss/cssdefs.py --- old/pyScss-1.3.5/scss/cssdefs.py 2016-06-09 04:05:13.000000000 +0200 +++ new/pyScss-1.3.6/scss/cssdefs.py 2020-03-20 09:34:16.000000000 +0100 @@ -317,6 +317,10 @@ 'grayscale', 'sepia', 'saturate', 'hue-rotate', 'invert', 'opacity', 'brightness', 'contrast', 'blur', 'drop-shadow', 'custom', + # CSS shapes + # https://www.w3.org/TR/css-shapes-1/ + 'inset', 'circle', 'ellipse', 'polygon', + # CSS4 image module: # http://dev.w3.org/csswg/css-images/ 'image-set', 'cross-fade', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyScss-1.3.5/scss/extension/compass/configuration.py new/pyScss-1.3.6/scss/extension/compass/configuration.py --- old/pyScss-1.3.5/scss/extension/compass/configuration.py 2014-08-27 23:40:08.000000000 +0200 +++ new/pyScss-1.3.6/scss/extension/compass/configuration.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,85 +0,0 @@ -from __future__ import absolute_import -from __future__ import print_function -from __future__ import unicode_literals -from __future__ import division - -import os.path - -from scss.namespace import Namespace -from scss.types import Boolean -from scss.types import List -from scss.types import Null -from scss.types import String -from scss.types import expect_type - - -# TODO would like to just add a new /child/ to an existing namespace, i think, -# so i don't have to do an import dance? maybe? -ns = Namespace() - - [email protected] -def join_file_segments(*segments): - """Join path parts into a single path, using the appropriate OS-specific - delimiter. - """ - parts = [] - for segment in segments: - expect_type(segment, String) - parts.append(segment.value) - - if parts: - return String(os.path.join(*parts)) - else: - return String('') - - [email protected] -def absolute_path(relative_path): - """Return an absolute path for the given relative path, relative to the - calling file. - """ - expect_type(relative_path, String) - # TODO i can't get the calling file until "rule" or something else helpful - # is actually passed in! - return String(os.path.abspath(relative_path.value)) - - [email protected] -def split_filename(path): - expect_type(path, String) - dir_, file_ = os.path.split(path.value) - base, ext = os.path.splitext(file_) - return List([String(dir_), String(base), String(ext)], use_comma=False) - - [email protected] -def using_compass_compiler(): - # TODO - return Boolean(False) - - [email protected] -def reset_configuration(): - # TODO - return Null() - - [email protected] -def add_configuration(options): - # TODO - return Null() - - - - - -# TODO these go in env.py - -# TODO compass-env() -# TODO current-time(format=) -# TODO current-date(format=) -# TODO current-source-file(absolute=False) -# TODO current-output-file(absolute=False) -# TODO compass-extensions() -# TODO at-stylesheet-root() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyScss-1.3.5/scss/importer.py new/pyScss-1.3.6/scss/importer.py --- old/pyScss-1.3.5/scss/importer.py 2015-01-24 03:20:55.000000000 +0100 +++ new/pyScss-1.3.6/scss/importer.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,115 +0,0 @@ -from __future__ import absolute_import -from __future__ import division -from __future__ import print_function -from __future__ import unicode_literals - -from pathlib import Path, PurePosixPath - -from six import text_type - - -class Importer(object): - pass -# DONE find_relative(uri, base, options) -# DONE find(uri, options) -#mtime(uri, options) -#key(uri, options) -#public_uri(uri, sourcemap_directory) -# DONE to_s -#directories_to_watch -#watched_file?(filename) - - -class FilesystemImporter(Importer): - # TODO these should point to syntax objects or something - # TODO ok bear with me here: instead of rewriting sass code to scss, make - # an intermediate form (since we don't have blockast yet) that will just - # run locate_blocks a bunch /ahead of time/ to produce a nested tree of - # not-yet-parsed things. that is, normalize to an actual intermediate - # representation. this is a Good Idea yes - extensions = dict(sass='sass', scss='scss') - - def __init__(self, root): - self.root = Path(root) - - def __repr__(self): - return "<{0}({1!r})>".format( - type(self).__name__, text_type(self.root)) - - def find(self, path, relative_to='.', **kwargs): - # TODO allow backslashes on windows? what about drive letters? - path = PurePosixPath(path) - relative_to = PurePosixPath(relative_to) - - if path.name in ('.', '..'): - # These cannot possibly be names of files - return - - path = self.lexical_resolve(path, relative_to) - - # Don't allow ascending to a parent directory. - # TODO/DEVIATION: ruby sass allows this, but it seems bonkers to me. - # compiler switch to turn it off? does ruby intend to disallow it? - if path.parts[0] == '..': - raise TypeError - - exists = [] - for candpath, syntax in self.candidate_filenames(path): - fullpath = self.root / candpath - if fullpath.exists(): - exists.append((candpath, syntax)) - - if len(exists) == 0: - return - elif len(exists) == 1: - candpath, syntax = exists[0] - return Module.from_filename(self.root / candpath, syntax=syntax, importer=self) - - raise SassImportError( - "Found multiple candidate files while trying to import {0!r} " - "(you should rename or delete all but one of these):\n {1}" - .format( - text_type(path), - "\n ".join( - text_type(self.root / candpath) - for candpath, syntax in exists))) - - @staticmethod - def lexical_resolve(path, relative_to): - """Given a path (which may be relative) and a base path, return a - single combined path, without consulting the filesystem. - """ - if path.parts[0] == '/': - # Absolute path, relative to the import root - parts = path.parts[1:] - else: - # Relative path, relative to relative_to. Evaluate relative parts - # textually - parts = [] - for part in relative_to.parts + path.parts: - if part == '.': - continue - elif part == '..' and parts: - parts.pop() - else: - parts.append(part) - - return PurePosixPath(*parts) - - def candidate_filenames(self, path): - """Given a path, produce a sequence of ``(path, syntax)`` pairs that - the path might be referring to. This is what multiplexes "foo" into - "foo.scss", "_foo.scss", etc. - """ - # Now deal with extensions - if path.suffix in self.extensions: - candidate_extensions = [path.suffix] - base = path.stem - else: - candidate_extensions = sorted(self.extensions) - base = path.name - - for ext in candidate_extensions: - syntax = self.extensions[ext] - yield path.parent / base + "." + ext, syntax - yield path.parent / "_" + base + "." + ext, syntax diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyScss-1.3.5/scss/scss_meta.py new/pyScss-1.3.6/scss/scss_meta.py --- old/pyScss-1.3.5/scss/scss_meta.py 2016-06-09 04:05:13.000000000 +0200 +++ new/pyScss-1.3.6/scss/scss_meta.py 2020-03-21 19:33:40.000000000 +0100 @@ -46,8 +46,8 @@ import sys -VERSION_INFO = (1, 3, 5) -DATE_INFO = (2016, 6, 8) # YEAR, MONTH, DAY +VERSION_INFO = (1, 3, 6) +DATE_INFO = (2020, 3, 21) # YEAR, MONTH, DAY VERSION = '.'.join(str(i) for i in VERSION_INFO) REVISION = '%04d%02d%02d' % DATE_INFO BUILD_INFO = "pyScss v" + VERSION + " (" + REVISION + ")" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyScss-1.3.5/scss/sourcemap.py new/pyScss-1.3.6/scss/sourcemap.py --- old/pyScss-1.3.5/scss/sourcemap.py 2014-09-17 03:49:38.000000000 +0200 +++ new/pyScss-1.3.6/scss/sourcemap.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,64 +0,0 @@ -from __future__ import absolute_import -from __future__ import division -from __future__ import print_function -from __future__ import unicode_literals - -import string - - -BASE64_DIGITS = string.ascii_uppercase + string.ascii_lowercase + '+/' -assert len(BASE64_DIGITS) == 64 - - - -def base64_vlq(n): - """Encode a number into a base64 VLQ (variable-length quantity), the - fundamental compression unit in version 3 source maps. Returns an iterable - of characters. - """ - # A base64 digit contains six bits. In this scheme, the high bit is a - # "continuation" bit, meaning "shift me left by 5 and read another digit". - # The low bit of the final digit is the sign: 0 positive, 1 negative. - # See also the Mozilla implementation: - # https://github.com/mozilla/source-map/blob/master/lib/source-map/base64-vlq.js#L32 - - # The first thing we need to do, then, is add a sign bit to the end. - if n < 0: - n = ((-n) << 1) | 1 - else: - n = n << 1 - - # Then just break it into five-bit digits, add a continuation bit to all - # but the last digit, and convert to base64. - digits = [] - while n: - digit = n & 0x1f - n <<= 5 - if n: - digit |= 0x20 - digits.append(digit) - - digits.reverse() - return (BASE64_DIGITS[d] for d in digits) - - -class Source(object): - def __init__(self, source_file): - self.source_file = source_file - self.line = 1 - self.column = 0 - - - - - source_map = dict( - version='3', - file=options.output, - #sourceRoot='', - sources=args, - #sourcesContent=[...], - names=[], - mappings="...", - ) - - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyScss-1.3.5/scss/src/scanner.c new/pyScss-1.3.6/scss/src/scanner.c --- old/pyScss-1.3.5/scss/src/scanner.c 2014-09-22 21:00:28.000000000 +0200 +++ new/pyScss-1.3.6/scss/src/scanner.c 2020-03-20 09:34:16.000000000 +0100 @@ -107,11 +107,11 @@ for (i = 0; i < patterns_sz; i++) { regex = Pattern_regex(patterns[i].tok, patterns[i].expr); - #ifdef DEBUG if (regex) { - fprintf(stderr, "\tAdded regex pattern %s: %s\n", repr(regex->tok), repr(regex->expr)); + #ifdef DEBUG + fprintf(stderr, "\tAdded regex pattern %s: %s\n", repr(regex->tok), repr(regex->expr)); + #endif } - #endif } Pattern_patterns_initialized = 1; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyScss-1.3.5/scss/src/utils.h new/pyScss-1.3.6/scss/src/utils.h --- old/pyScss-1.3.5/scss/src/utils.h 2014-09-19 02:34:06.000000000 +0200 +++ new/pyScss-1.3.6/scss/src/utils.h 2020-03-20 09:34:16.000000000 +0100 @@ -7,10 +7,11 @@ { if (str != NULL) { char *copy = PyMem_New(char, len + 1); - if (copy != NULL) + if (copy != NULL) { memcpy(copy, str, len); copy[len] = '\0'; return copy; + } } return NULL; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyScss-1.3.5/setup.cfg new/pyScss-1.3.6/setup.cfg --- old/pyScss-1.3.5/setup.cfg 2016-06-09 04:06:16.000000000 +0200 +++ new/pyScss-1.3.6/setup.cfg 2020-03-21 19:34:27.000000000 +0100 @@ -1,5 +1,4 @@ [egg_info] tag_build = tag_date = 0 -tag_svn_revision = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyScss-1.3.5/setup.py new/pyScss-1.3.6/setup.py --- old/pyScss-1.3.5/setup.py 2016-06-09 04:05:13.000000000 +0200 +++ new/pyScss-1.3.6/setup.py 2020-03-20 13:39:16.000000000 +0100 @@ -6,7 +6,7 @@ import platform import sys -from setuptools import setup, Extension, Feature +from setuptools import setup, Extension # this imports PROJECT, URL, VERSION, AUTHOR, AUTHOR_EMAIL, LICENSE, # DOWNLOAD_URL @@ -24,19 +24,19 @@ # fail safe compilation shamelessly stolen from the simplejson # setup.py file. Original author: Bob Ippolito -speedups = Feature( - 'optional C speed-enhancement module', - standard=True, - ext_modules=[ - # NOTE: header files are included by MANIFEST.in; Extension does not - # include headers in an sdist (since they're typically in /usr/lib) - Extension( - 'scss.grammar._scanner', - sources=['scss/src/_speedups.c', 'scss/src/block_locator.c', 'scss/src/scanner.c', 'scss/src/hashtable.c'], - libraries=['pcre'] - ), - ], -) +ext_modules = [ + # NOTE: header files are included by MANIFEST.in; Extension does not + # include headers in an sdist (since they're typically in /usr/lib) + Extension( + 'scss.grammar._scanner', + sources=['scss/src/_speedups.c', 'scss/src/block_locator.c', + 'scss/src/scanner.c', 'scss/src/hashtable.c'], + libraries=['pcre'] + ), +] + +extra_opts = {} +extra_opts['ext_modules'] = ext_modules ext_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError) if sys.platform == 'win32' and sys.version_info > (2, 6): @@ -83,9 +83,6 @@ def run_setup(with_binary): - features = {} - if with_binary: - features['speedups'] = speedups setup( name=PROJECT, version=VERSION, @@ -94,6 +91,7 @@ author=AUTHOR, author_email=AUTHOR_EMAIL, url=URL, + zip_safe=False, download_url=DOWNLOAD_URL, license=LICENSE, keywords='css oocss xcss sass scss less precompiler', @@ -116,12 +114,12 @@ 'scss.grammar', ], cmdclass={'build_ext': ve_build_ext}, - features=features, entry_points=""" [console_scripts] pyscss = scss.tool:main less2scss = scss.less2scss:main """, + **extra_opts )
