Manfred Moitzi avatar Manfred Moitzi committed ccefb7e

moved metadata to __init__.py

Comments (0)

Files changed (6)

doc/classes/shapes.rst

 
 .. literalinclude:: ../../examples/basic_shapes.py
    :lines: 16-
+
+basic_shapes.svg
+----------------
+
+.. image:: ../../examples/basic_shapes.svg
+   :width: 800
+   :height: 800
+   :alt: Your browser can't render SVG images.
 # documentation root, use os.path.abspath to make it absolute, like shown here.
 sys.path.insert(0, os.path.abspath('..'))
 
-from svgwrite.metadata import VERSION, AUTHOR_NAME, AUTHOR_EMAIL, CYEAR
+from svgwrite import VERSION, AUTHOR_NAME, AUTHOR_EMAIL, CYEAR
 
 # -- General configuration -----------------------------------------------------
 

examples/basic_shapes.py

     shapes = dwg.add(dwg.g(id='shapes', fill='red'))
 
     # set presentation attributes at object creation as SVG-Attributes
-    shapes.add(dwg.circle(center=(15*cm, 8*cm), r='2.5cm', stroke='blue', stroke_width=3))
+    shapes.add(dwg.circle(center=(15*cm, 8*cm), r='2.5cm', stroke='blue',
+                          stroke_width=3))
 
     # override the 'fill' attribute of the parent group 'shapes'
-    shapes.add(dwg.rect(insert=(5*cm, 5*cm), size=(45*mm, 45*mm), fill='blue', stroke='red', stroke_width=3))
+    shapes.add(dwg.rect(insert=(5*cm, 5*cm), size=(45*mm, 45*mm),
+                        fill='blue', stroke='red', stroke_width=3))
 
     # or set presentation attributes by helper functions of the Presentation-Mixin
     ellipse = shapes.add(dwg.ellipse(center=(10*cm, 15*cm), r=('5cm', '10mm')))
 import os
 from distutils.core import setup
 
-from svgwrite.metadata import VERSION, AUTHOR_NAME, AUTHOR_EMAIL
+from svgwrite import VERSION, AUTHOR_NAME, AUTHOR_EMAIL
 
 def read(fname):
     try:
     platforms="OS Independent",
     license="GPLv3",
     classifiers=[
-    "Development Status :: 3 - Alpha",
+    "Development Status :: 4 - Beta",
     "License :: OSI Approved :: GNU General Public License (GPL)",
     "Operating System :: OS Independent",
     "Programming Language :: Python :: 2.5",

svgwrite/__init__.py

 * *SVG 1.1 Full Profile*, use Drawing(profile= ``'full'``)
 
 """
-
+
+AUTHOR_NAME = 'Manfred Moitzi'
+AUTHOR_EMAIL = 'mozman@gmx.at'
+CYEAR = '2010'
+
 from svgwrite.drawing import Drawing
 from svgwrite.utils import rgb
 

svgwrite/metadata.py

-#!/usr/bin/env python
-#coding:utf-8
-# Author:  mozman --<mozman@gmx.at>
-# Purpose: metadata
-# Created: 18.09.2010
-# Copyright (C) 2010, Manfred Moitzi
-# License: GPLv3
-
-VERSION = '0.2.3'
-AUTHOR_NAME = 'Manfred Moitzi'
-AUTHOR_EMAIL = 'mozman@gmx.at'
-CYEAR = '2010'
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.