Code Search for Developers
 
 
  

license.py from matplotlib at Krugle


Show license.py syntax highlighted

import sys, datetime

if len(sys.argv) != 3:
    print >>sys.stderr, 'Usage: license.py version_num filename'

version = sys.argv[1]
year = datetime.date.today().year

s = """\
LICENSE AGREEMENT FOR MATPLOTLIB %(version)s
--------------------------------------

1. This LICENSE AGREEMENT is between John D. Hunter ("JDH"), and the
Individual or Organization ("Licensee") accessing and otherwise using
matplotlib software in source or binary form and its associated
documentation.

2. Subject to the terms and conditions of this License Agreement, JDH
hereby grants Licensee a nonexclusive, royalty-free, world-wide license
to reproduce, analyze, test, perform and/or display publicly, prepare
derivative works, distribute, and otherwise use matplotlib %(version)s
alone or in any derivative version, provided, however, that JDH's
License Agreement and JDH's notice of copyright, i.e., "Copyright (c)
2002-%(year)d John D. Hunter; All Rights Reserved" are retained in
matplotlib %(version)s alone or in any derivative version prepared by
Licensee.

3. In the event Licensee prepares a derivative work that is based on or
incorporates matplotlib %(version)s or any part thereof, and wants to
make the derivative work available to others as provided herein, then
Licensee hereby agrees to include in any such work a brief summary of
the changes made to matplotlib %(version)s.

4. JDH is making matplotlib %(version)s available to Licensee on an "AS
IS" basis.  JDH MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
IMPLIED.  BY WAY OF EXAMPLE, BUT NOT LIMITATION, JDH MAKES NO AND
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB %(version)s
WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.

5. JDH SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB
%(version)s FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR
LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING
MATPLOTLIB %(version)s, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF
THE POSSIBILITY THEREOF.

6. This License Agreement will automatically terminate upon a material
breach of its terms and conditions.

7. Nothing in this License Agreement shall be deemed to create any
relationship of agency, partnership, or joint venture between JDH and
Licensee.  This License Agreement does not grant permission to use JDH
trademarks or trade name in a trademark sense to endorse or promote
products or services of Licensee, or any third party.

8. By copying, installing or otherwise using matplotlib %(version)s,
Licensee agrees to be bound by the terms and conditions of this License
Agreement.
""" % locals()


file(sys.argv[2], 'w').write(s)





See more files for this project here

matplotlib

Matplotlib is a pure python plotting library with the goal of making\r\npublication quality plots using a syntax familiar to matlab users. \r\nThe library uses Numeric for handling large\r\ndata sets and supports a variety of output backends

Project homepage: http://sourceforge.net/projects/matplotlib
Programming language(s): C,C++,Python
License: other

  CXX/
    Config.hxx
    Exception.hxx
    Extensions.hxx
    IndirectPythonInterface.cxx
    IndirectPythonInterface.hxx
    Objects.hxx
    Version.hxx
    WrapPython.h
    cxx_extensions.cxx
    cxxextensions.c
    cxxsupport.cxx
  agg23/
    font_freetype/
      Makefile.am
      agg_font_freetype.cpp
      agg_font_freetype.h
    font_win32_tt/
      agg_font_win32_tt.cpp
      agg_font_win32_tt.h
    include/
      ctrl/
      platform/
      util/
      Makefile.am
      agg_alpha_mask_u8.h
      agg_arc.h
      agg_array.h
      agg_arrowhead.h
      agg_basics.h
      agg_bezier_arc.h
      agg_bitset_iterator.h
      agg_bounding_rect.h
      agg_bspline.h
      agg_clip_liang_barsky.h
      agg_color_gray.h
      agg_color_rgba.h
      agg_config.h
      agg_conv_adaptor_vcgen.h
      agg_conv_adaptor_vpgen.h
      agg_conv_bspline.h
      agg_conv_clip_polygon.h
      agg_conv_clip_polyline.h
      agg_conv_close_polygon.h
      agg_conv_concat.h
      agg_conv_contour.h
      agg_conv_curve.h
      agg_conv_dash.h
      agg_conv_gpc.h
      agg_conv_marker.h
      agg_conv_marker_adaptor.h
      agg_conv_segmentator.h
      agg_conv_shorten_path.h
      agg_conv_smooth_poly1.h
      agg_conv_stroke.h
      agg_conv_transform.h
      agg_conv_unclose_polygon.h
      agg_curves.h
      agg_dda_line.h
      agg_ellipse.h
      agg_ellipse_bresenham.h
      agg_embedded_raster_fonts.h
      agg_font_cache_manager.h
      agg_gamma_functions.h
      agg_gamma_lut.h
      agg_glyph_raster_bin.h
      agg_gsv_text.h
      agg_image_filters.h
      agg_line_aa_basics.h
      agg_math.h
      agg_math_stroke.h
      agg_path_storage.h
      agg_path_storage_integer.h
      agg_pattern_filters_rgba.h
      agg_pixfmt_amask_adaptor.h
      agg_pixfmt_gray.h
      agg_pixfmt_rgb.h
      agg_pixfmt_rgb_packed.h
      agg_pixfmt_rgba.h
      agg_rasterizer_outline.h
      agg_rasterizer_outline_aa.h
      agg_rasterizer_scanline_aa.h
      agg_render_scanlines.h
      agg_renderer_base.h
      agg_renderer_markers.h
    src/
    svg/
  examples/
  lib/
  license/
  mpl1/
  sandbox/
  src/
  swig/
  ttconv/
  unit/
  API_CHANGES
  CHANGELOG
  CODING_GUIDE
  DEVNOTES
  INSTALL
  INTERACTIVE
  KNOWN_BUGS
  MANIFEST
  MANIFEST.in
  Makefile
  README
  SEGFAULTS
  TODO
  __init__.py
  boilerplate.py
  license.py
  makeswig.py
  matplotlibrc.template
  setup.cfg
  setup.py
  setupegg.py
  setupext.py