initial source import (v0.26) and packaging

This commit is contained in:
Tobias Oberstein 2013-10-22 16:31:42 +02:00
parent 39fb9eee02
commit 6372b8a2a7
7 changed files with 389 additions and 297 deletions

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
*.py[cod]
*.sublime-workspace
build
dist
*.egg-info

9
Makefile Normal file
View file

@ -0,0 +1,9 @@
all: clean install
install:
python setup.py install
clean:
rm -rf build
rm -rf dist
rm -rf scour.egg-info

View file

@ -1,7 +1,6 @@
Scour
=====
# Scour
Scour is a Python module that takes an input SVG and outputs a cleaner,
Scour is a Python module that takes an input SVG and outputs a cleaner,
more concise SVG file. The goal is that authors will use this script after
editing the file in a GUI editor such as Inkscape or Adobe Illustrator.
@ -11,13 +10,23 @@ such as openclipart.org
Ideas are pulled from three places:
- my head
- Sam Ruby's SVG Tidy script: http://intertwingly.net/code/svgtidy/svgtidy.rb
- Inkscape's proposal for a 'cleaned SVG': http://wiki.inkscape.org/wiki/index.php/Save_Cleaned_SVG
* my head
* Sam Ruby's SVG Tidy script: http://intertwingly.net/code/svgtidy/svgtidy.rb
* Inkscape's proposal for a 'cleaned SVG': http://wiki.inkscape.org/wiki/index.php/Save_Cleaned_SVG
Regards,
Jeff Schiller
2009-04-06
Jeff Schiller, 2009-04-06
codedread@gmail.com
http://blog.codedread.com/
http://www.codedread.com/scour/
## Notes
Packaging from [sources](http://www.codedread.com/scour/) retrieved on 2013/20/22:
* done by Tavendo GmbH, Tobias Oberstein
* license same as upstream (Apache 2.0)

21
scour.sublime-project Normal file
View file

@ -0,0 +1,21 @@
{
"folders":
[
{
"name": "Scour",
"path": ".",
"folder_exclude_patterns": ["*.egg-info", "build", "dist"],
"file_exclude_patterns": ["*.pyc", "*.pyo", "*.pyd"]
}
],
"settings":
{
"default_encoding": "UTF-8",
"detect_indentation": false,
"ensure_newline_at_eof_on_save": true,
"tab_size": 3,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"use_tab_stops": true
}
}

22
scour/__init__.py Normal file
View file

@ -0,0 +1,22 @@
###############################################################################
##
## Copyright (C) 2013 Tavendo GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##
###############################################################################
import scour
import svg_regex
import svg_transform
import yocto_css

553
scour/scour.py Executable file → Normal file

File diff suppressed because it is too large Load diff

51
setup.py Normal file
View file

@ -0,0 +1,51 @@
###############################################################################
##
## Copyright (C) 2013 Tavendo GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##
###############################################################################
from setuptools import setup, find_packages
setup (
name = 'scour',
version = '0.26',
description = 'Scour SVG Optimizer',
long_description = open("README.md").read(),
license = 'Apache License 2.0',
author = 'Jeff Schiller',
author_email = 'codedread@gmail.com',
url = 'http://blog.codedread.com/',
platforms = ('Any'),
install_requires = [],
packages = find_packages(),
zip_safe = True,
entry_points = {
'console_scripts': [
'scour = scour.scour:run'
]},
classifiers = ["License :: OSI Approved :: Apache Software License",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Internet",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Pre-processors",
"Topic :: Multimedia :: Graphics :: Graphics Conversion",
"Topic :: Utilities"],
keywords = 'svg optimizer'
)