[pygccxml-commit] SF.net SVN: pygccxml: [401] pyplusplus_dev
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2006-08-14 12:47:55
|
Revision: 401 Author: roman_yakovenko Date: 2006-08-14 05:47:13 -0700 (Mon, 14 Aug 2006) ViewCVS: http://svn.sourceforge.net/pygccxml/?rev=401&view=rev Log Message: ----------- renaming pyplusplus to Py++ Modified Paths: -------------- pygccxml_dev/pygccxml/declarations/decl_printer.py pygccxml_dev/unittests/autoconfig.py pygccxml_dev/unittests/data/core_cache.hpp pyplusplus_dev/docs/examples/boost/www_configuration.py pyplusplus_dev/examples/pyboost_dev/dev/date_time/generate_code.py pyplusplus_dev/pyplusplus/__init__.py pyplusplus_dev/pyplusplus/_logging_/__init__.py pyplusplus_dev/pyplusplus/decl_wrappers/__init__.py pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py pyplusplus_dev/pyplusplus/decl_wrappers/class_wrapper.py pyplusplus_dev/pyplusplus/decl_wrappers/decl_wrapper.py pyplusplus_dev/pyplusplus/decl_wrappers/variable_wrapper.py pyplusplus_dev/pyplusplus/file_writers/writer.py pyplusplus_dev/pyplusplus/gui/__init__.py pyplusplus_dev/pyplusplus/gui/ui.py pyplusplus_dev/pyplusplus/module_builder/__init__.py pyplusplus_dev/pyplusplus/module_builder/builder.py pyplusplus_dev/pyplusplus/module_creator/class_organizer.py pyplusplus_dev/pyplusplus/module_creator/creator.py pyplusplus_dev/pyplusplus/module_creator/types_database.py pyplusplus_dev/setup.py Modified: pygccxml_dev/pygccxml/declarations/decl_printer.py =================================================================== --- pygccxml_dev/pygccxml/declarations/decl_printer.py 2006-08-14 10:10:54 UTC (rev 400) +++ pygccxml_dev/pygccxml/declarations/decl_printer.py 2006-08-14 12:47:13 UTC (rev 401) @@ -14,7 +14,7 @@ This class provides more information than the __str__() methods do. The class is not just meant to provide a unique "id" for a declaration but to inspect an entire declaration tree. This is particularly useful - for new users who want to find out how pyplusplus works and how it + for new users who want to find out how Py++ works and how it stores its data. """ JUSTIFY = 20 Modified: pygccxml_dev/unittests/autoconfig.py =================================================================== --- pygccxml_dev/unittests/autoconfig.py 2006-08-14 10:10:54 UTC (rev 400) +++ pygccxml_dev/unittests/autoconfig.py 2006-08-14 12:47:13 UTC (rev 401) @@ -66,7 +66,7 @@ #, 'dat'#file extension of directory cache #, 'config'#parameter description #, 'gccxml'#parameter description - #, 'pyplusplus' + #, 'Py++' #, 'pygccxml' #, 'calldef' #, 'XXX' Modified: pygccxml_dev/unittests/data/core_cache.hpp =================================================================== --- pygccxml_dev/unittests/data/core_cache.hpp 2006-08-14 10:10:54 UTC (rev 400) +++ pygccxml_dev/unittests/data/core_cache.hpp 2006-08-14 12:47:13 UTC (rev 401) @@ -22,4 +22,4 @@ #endif//__core_cache_hpp__ -//touch//touch//touch//touch//touch//touch//touch \ No newline at end of file +//touch//touch//touch//touch//touch//touch//touch//touch \ No newline at end of file Modified: pyplusplus_dev/docs/examples/boost/www_configuration.py =================================================================== --- pyplusplus_dev/docs/examples/boost/www_configuration.py 2006-08-14 10:10:54 UTC (rev 400) +++ pyplusplus_dev/docs/examples/boost/www_configuration.py 2006-08-14 12:47:13 UTC (rev 401) @@ -1,2 +1,2 @@ name = 'boost' -#This directory used as place holder for pyplusplus directory \ No newline at end of file +#This directory used as place holder for Py++ directory \ No newline at end of file Modified: pyplusplus_dev/examples/pyboost_dev/dev/date_time/generate_code.py =================================================================== --- pyplusplus_dev/examples/pyboost_dev/dev/date_time/generate_code.py 2006-08-14 10:10:54 UTC (rev 400) +++ pyplusplus_dev/examples/pyboost_dev/dev/date_time/generate_code.py 2006-08-14 12:47:13 UTC (rev 401) @@ -102,7 +102,7 @@ boost_ns.classes( lambda decl: decl.alias.endswith( 'formatter' ) ).exclude() #boost.date_time has problem to create local_[micro]sec_clock - #variable, it has nothing to do with pyplusplus + #variable, it has nothing to do with Py++ empty_classes = ['local_microsec_clock', 'local_sec_clock'] for alias in empty_classes: class_ = boost_ns.class_( lambda decl: decl.alias == alias ) Modified: pyplusplus_dev/pyplusplus/__init__.py =================================================================== --- pyplusplus_dev/pyplusplus/__init__.py 2006-08-14 10:10:54 UTC (rev 400) +++ pyplusplus_dev/pyplusplus/__init__.py 2006-08-14 12:47:13 UTC (rev 401) @@ -3,7 +3,7 @@ # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) -"""pyplusplus - Boost.Python code generator +"""Py++ - Boost.Python code generator ======================================== This package (together with the accompanying pygccxml package and @@ -19,7 +19,7 @@ finally written into one or more C++ source files, which can then be compiled to generate the final Python module. -If you are just starting with U{pyplusplus<http://www.language-binding.net>}, +If you are just starting with U{Py++<http://www.language-binding.net>}, then consider to read documentation of L{module_builder} package. """ @@ -37,12 +37,8 @@ __version__ = '0.7.1' #Known issues: -#1. Generated code for exporting function of template intsantiated classes could not be compiled -# with visual studio 7.1 -#2. Add logging of some statistics -# #3. -#~ > > 2. An other difference: when pyplusplus creates bindings for a set of +#~ > > 2. An other difference: when Py++ creates bindings for a set of #~ > > declarations, it #~ > > should (?) see all declarations that are going to be exported: #~ > > reasons: Modified: pyplusplus_dev/pyplusplus/_logging_/__init__.py =================================================================== --- pyplusplus_dev/pyplusplus/_logging_/__init__.py 2006-08-14 10:10:54 UTC (rev 400) +++ pyplusplus_dev/pyplusplus/_logging_/__init__.py 2006-08-14 12:47:13 UTC (rev 401) @@ -5,7 +5,7 @@ #TODO: find better place for it """ -This package contains logging configuration for pyplusplus. Default log level +This package contains logging configuration for Py++. Default log level is DEBUG. Default log messages destination is sys.stdout. """ Modified: pyplusplus_dev/pyplusplus/decl_wrappers/__init__.py =================================================================== --- pyplusplus_dev/pyplusplus/decl_wrappers/__init__.py 2006-08-14 10:10:54 UTC (rev 400) +++ pyplusplus_dev/pyplusplus/decl_wrappers/__init__.py 2006-08-14 12:47:13 UTC (rev 401) @@ -5,7 +5,7 @@ """Declaration decorators. -This sub-package contains the pyplusplus specific declaration objects +This sub-package contains the Py++ specific declaration objects that are the nodes of the declaration tree. In addition to the interface of the declarations in the pygccxml package the objects in this package also provide a I{decoration} interface. This interface Modified: pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py =================================================================== --- pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py 2006-08-14 10:10:54 UTC (rev 400) +++ pyplusplus_dev/pyplusplus/decl_wrappers/calldef_wrapper.py 2006-08-14 12:47:13 UTC (rev 401) @@ -58,7 +58,7 @@ if not isinstance( self, declarations.member_calldef_t ): pass elif self.virtuality == declarations.VIRTUALITY_TYPES.PURE_VIRTUAL: - raise RuntimeError( "In order to expose pure virtual function, you should allow to pyplusplus to create wrapper." ) + raise RuntimeError( "In order to expose pure virtual function, you should allow to Py++ to create wrapper." ) elif self.access_type == declarations.ACCESS_TYPES.PROTECTED: self.ignore = True else: @@ -112,12 +112,12 @@ dtype = units[-1] if isinstance( dtype.declaration.parent, declarations.class_t ): if dtype.declaration not in dtype.declaration.parent.public_members: - return "pyplusplus can not expose function that takes as argument/returns instance of non public class. Generated code will not compile." + return "Py++ can not expose function that takes as argument/returns instance of non public class. Generated code will not compile." no_ref = declarations.remove_reference( some_type ) no_ptr = declarations.remove_pointer( no_ref ) no_const = declarations.remove_const( no_ptr ) if declarations.is_array( no_const ): - return "pyplusplus can not expose function that takes as argument/returns C++ arrays. This will be changed in near future." + return "Py++ can not expose function that takes as argument/returns C++ arrays. This will be changed in near future." return self._exportable_impl_derived() def _readme_impl( self ): @@ -169,7 +169,7 @@ def _exportable_impl_derived( self ): if self.is_artificial: - return 'pyplusplus does not exports compiler generated constructors' + return 'Py++ does not exports compiler generated constructors' return '' Modified: pyplusplus_dev/pyplusplus/decl_wrappers/class_wrapper.py =================================================================== --- pyplusplus_dev/pyplusplus/decl_wrappers/class_wrapper.py 2006-08-14 10:10:54 UTC (rev 400) +++ pyplusplus_dev/pyplusplus/decl_wrappers/class_wrapper.py 2006-08-14 12:47:13 UTC (rev 401) @@ -190,10 +190,10 @@ def _exportable_impl( self ): if not self.name: - return 'pyplusplus can not expose unnamed classes.' + return 'Py++ can not expose unnamed classes.' #it is possible to do so, but not for unnamed classes defined under namespace. if isinstance( self.parent, declarations.namespace_t ): return '' if not self in self.parent.public_members: - return 'pyplusplus can not expose private class.' + return 'Py++ can not expose private class.' return '' Modified: pyplusplus_dev/pyplusplus/decl_wrappers/decl_wrapper.py =================================================================== --- pyplusplus_dev/pyplusplus/decl_wrappers/decl_wrapper.py 2006-08-14 10:10:54 UTC (rev 400) +++ pyplusplus_dev/pyplusplus/decl_wrappers/decl_wrapper.py 2006-08-14 12:47:13 UTC (rev 401) @@ -97,9 +97,9 @@ def get_exportable( self ): if self._exportable is None: if self.name.startswith( '__' ): - self._exportable_reason = 'pyplusplus, by default, does not expose internal compilers declarations. Names of those declarations usually start with "__".' + self._exportable_reason = 'Py++, by default, does not expose internal compilers declarations. Names of those declarations usually start with "__".' elif self.location and self.location.file_name == "<internal>": - self._exportable_reason = 'pyplusplus, by default, does not expose internal declarations (those that gccxml say belong to "<internal>" header).' + self._exportable_reason = 'Py++, by default, does not expose internal declarations (those that gccxml say belong to "<internal>" header).' else: self._exportable_reason = self._exportable_impl( ) self._exportable = not bool( self._exportable_reason ) Modified: pyplusplus_dev/pyplusplus/decl_wrappers/variable_wrapper.py =================================================================== --- pyplusplus_dev/pyplusplus/decl_wrappers/variable_wrapper.py 2006-08-14 10:10:54 UTC (rev 400) +++ pyplusplus_dev/pyplusplus/decl_wrappers/variable_wrapper.py 2006-08-14 12:47:13 UTC (rev 401) @@ -14,11 +14,11 @@ self._setter_call_policies = None __call_policies_doc__ = \ - """There are usecase, when exporting member variable forces pyplusplus to + """There are usecase, when exporting member variable forces Py++ to create accessors functions. Sometime, those functions requires call policies. To be more specific: when you export member variable that has reference or pointer type, you need to tell boost.python library how to manage object - life-time. In all cases, pyplusplus will give reasonable default value. I am + life-time. In all cases, Py++ will give reasonable default value. I am sure, that there are use cases, when you need to change it. You should use this property to change it. """ @@ -41,16 +41,16 @@ #if not isinstance( self.parent, declarations.class_t ): # return '' if not self.name: - return "pyplusplus can not expose unnamed variables" + return "Py++ can not expose unnamed variables" if self.bits == 0 and self.name == "": - return "pyplusplus can not expose alignement bit." + return "Py++ can not expose alignement bit." type_ = declarations.remove_alias( self.type ) type_ = declarations.remove_const( type_ ) if declarations.is_pointer( type_ ): if self.type_qualifiers.has_static: - return "pyplusplus can not expose static pointer member variables. This could be changed in future." + return "Py++ can not expose static pointer member variables. This could be changed in future." if declarations.is_fundamental( type_.base ): - return "pyplusplus can not expose pointer to fundamental member variables. This could be changed in future." + return "Py++ can not expose pointer to fundamental member variables. This could be changed in future." units = declarations.decompose_type( type_ ) ptr2functions = filter( lambda unit: isinstance( unit, declarations.calldef_type_t ) @@ -62,6 +62,6 @@ if declarations.class_traits.is_my_case( type_ ): cls = declarations.class_traits.get_declaration( type_ ) if not cls.name: - return "pyplusplus can not expose variables of with unnamed type." + return "Py++ can not expose variables of with unnamed type." return '' \ No newline at end of file Modified: pyplusplus_dev/pyplusplus/file_writers/writer.py =================================================================== --- pyplusplus_dev/pyplusplus/file_writers/writer.py 2006-08-14 10:10:54 UTC (rev 400) +++ pyplusplus_dev/pyplusplus/file_writers/writer.py 2006-08-14 12:47:13 UTC (rev 401) @@ -65,7 +65,7 @@ writer_t.logger.debug( 'write code to file "%s" - started' % fpath ) start_time = time.clock() fcontent_new = [] - fcontent_new.append( '// This file has been generated by pyplusplus.' ) + fcontent_new.append( '// This file has been generated by Py++.' ) fcontent_new.append( os.linesep * 2 ) fcontent_new.append( content ) fcontent_new.append( os.linesep ) #keep gcc happy Modified: pyplusplus_dev/pyplusplus/gui/__init__.py =================================================================== --- pyplusplus_dev/pyplusplus/gui/__init__.py 2006-08-14 10:10:54 UTC (rev 400) +++ pyplusplus_dev/pyplusplus/gui/__init__.py 2006-08-14 12:47:13 UTC (rev 401) @@ -4,7 +4,7 @@ # http://www.boost.org/LICENSE_1_0.txt) """ -This package provide simple GUI interface. If you have installed pyplusplus and +This package provide simple GUI interface. If you have installed Py++ and pygccxml you can invoke GUI from shell using pyplusplus_gui command on Linux. On Windows you can run pyplusplus_gui.pyw file. """ Modified: pyplusplus_dev/pyplusplus/gui/ui.py =================================================================== --- pyplusplus_dev/pyplusplus/gui/ui.py 2006-08-14 10:10:54 UTC (rev 400) +++ pyplusplus_dev/pyplusplus/gui/ui.py 2006-08-14 12:47:13 UTC (rev 401) @@ -128,7 +128,7 @@ map( self._include_paths.delete, selected ) def _add_define( self ): - symbol = tkSimpleDialog.askstring(title='pyplusplus - code generator demo' + symbol = tkSimpleDialog.askstring(title='Py++ - code generator demo' , prompt="Define symbol ( example 'max(a,b)=a<b?b:a' ):") if symbol: self._defines.insert( Tkinter.END, symbol ) @@ -195,7 +195,7 @@ temp.grid( row=0, columnspan=3, sticky=Tkinter.NW + Tkinter.E ) temp = Tkinter.Button( self - , text="generate pyplusplus code" + , text="generate Py++ code" , command=on_generate_pyplusplus ) temp.grid( row=1, sticky=Tkinter.NW + Tkinter.E) @@ -270,7 +270,7 @@ top.rowconfigure( 0, weight=1 ) top.columnconfigure( 0, weight=1 ) - self.master.title('pyplusplus - code generator demo') + self.master.title('Py++ - code generator demo') self._header_file_configurator = header_file_ui_t( self ) self._header_file_configurator.grid( row=0, column=0, sticky=Tkinter.NW, padx=2, pady=2) Modified: pyplusplus_dev/pyplusplus/module_builder/__init__.py =================================================================== --- pyplusplus_dev/pyplusplus/module_builder/__init__.py 2006-08-14 10:10:54 UTC (rev 400) +++ pyplusplus_dev/pyplusplus/module_builder/__init__.py 2006-08-14 12:47:13 UTC (rev 401) @@ -4,11 +4,11 @@ # http://www.boost.org/LICENSE_1_0.txt) """ -This package provides users with simple and convinient interface to pyplusplus +This package provides users with simple and convinient interface to Py++ functionality. L{module_builder_t} class is the main class. Please read it's documentation first. -Also take a look on tutorials. You can find them on pyplusplus +Also take a look on tutorials. You can find them on Py++ U{web site<http://www.language-binding.net>} """ Modified: pyplusplus_dev/pyplusplus/module_builder/builder.py =================================================================== --- pyplusplus_dev/pyplusplus/module_builder/builder.py 2006-08-14 10:10:54 UTC (rev 400) +++ pyplusplus_dev/pyplusplus/module_builder/builder.py 2006-08-14 12:47:13 UTC (rev 401) @@ -18,8 +18,8 @@ class module_builder_t(object): """ - This class provides users with simple and intuitive interface to pyplusplus - and/or pygccxml functionality. If this is your first attempt to use pyplusplus + This class provides users with simple and intuitive interface to Py++ + and/or pygccxml functionality. If this is your first attempt to use Py++ consider to read tutorials. You can find them on U{web site<http://www.language-binding.net>}. """ Modified: pyplusplus_dev/pyplusplus/module_creator/class_organizer.py =================================================================== --- pyplusplus_dev/pyplusplus/module_creator/class_organizer.py 2006-08-14 10:10:54 UTC (rev 400) +++ pyplusplus_dev/pyplusplus/module_creator/class_organizer.py 2006-08-14 12:47:13 UTC (rev 401) @@ -88,7 +88,7 @@ else: pass #there is usecase where base class defined within some class - #but his derives defined out of the class. right now pyplusplus + #but his derives defined out of the class. right now Py++ #doesn't supports this situation. self.__colors[base] = COLOR.BLACK Modified: pyplusplus_dev/pyplusplus/module_creator/creator.py =================================================================== --- pyplusplus_dev/pyplusplus/module_creator/creator.py 2006-08-14 10:10:54 UTC (rev 400) +++ pyplusplus_dev/pyplusplus/module_creator/creator.py 2006-08-14 12:47:13 UTC (rev 401) @@ -44,7 +44,7 @@ INDEXING_SUITE_2_MAIN_HEADER = "boost/python/suite/indexing/container_suite.hpp" -DO_NOT_REPORT_MSGS = [ "pyplusplus does not exports compiler generated constructors" ] +DO_NOT_REPORT_MSGS = [ "Py++ does not exports compiler generated constructors" ] class creator_t( declarations.decl_visitor_t ): """Creating code creators. @@ -221,7 +221,7 @@ vfunction_selector = lambda member: isinstance( member, declarations.member_function_t ) \ and member.virtuality == VIRTUALITY_TYPES.PURE_VIRTUAL members.extend( filter( vfunction_selector, class_decl.private_members ) ) - #now lets filter out none public operators: pyplusplus does not support them right now + #now lets filter out none public operators: Py++ does not support them right now members = filter( lambda decl: not isinstance( decl, declarations.member_operator_t ) or decl.access_type == ACCESS_TYPES.PUBLIC , members ) Modified: pyplusplus_dev/pyplusplus/module_creator/types_database.py =================================================================== --- pyplusplus_dev/pyplusplus/module_creator/types_database.py 2006-08-14 10:10:54 UTC (rev 400) +++ pyplusplus_dev/pyplusplus/module_creator/types_database.py 2006-08-14 12:47:13 UTC (rev 401) @@ -75,7 +75,7 @@ except RuntimeError: msg = "%s;%s" \ % ( str(container_cls) - , "pyplusplus can not find out container value_type( mapped_type )." + , "Py++ can not find out container value_type( mapped_type )." "The container class is template instantiation declaration and not definition." "This container class will be exported, but there is a posiblity, that generated code will not compile." "The solution to the problem is to create a variable of the class." ) Modified: pyplusplus_dev/setup.py =================================================================== --- pyplusplus_dev/setup.py 2006-08-14 10:10:54 UTC (rev 400) +++ pyplusplus_dev/setup.py 2006-08-14 12:47:13 UTC (rev 401) @@ -50,9 +50,9 @@ print "Generating epydoc files..." - docindex = build_doc_index(['pyplusplus', 'pygccxml']) + docindex = build_doc_index(['Py++', 'pygccxml']) html_writer = HTMLWriter( docindex - , prj_name='pyplusplus' + , prj_name='Py++' , prj_url='http://www.language-binding.net' , include_sourcecode=False #This will decrease the size of generated documentation , show_private=False @@ -86,9 +86,9 @@ generate_doc() -setup( name = "pyplusplus", +setup( name = "Py++", version = "0.8.1", - description="pyplusplus is a framework of components for creating C++ code generator for boost.python library", + description="Py++ is a framework of components for creating C++ code generator for Boost.Python library", author="Roman Yakovenko", author_email="rom...@gm...", url='http://www.language-binding.net/pyplusplus/pyplusplus.html', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |