Commits

Pierre Carbonnelle committed d445f5b

version 0.3.0

Comments (0)

Files changed (3)

pyDatalog/pyDatalog.py

 #Engine = 'Python'
 print('Using %s engine for Datalog.' % Engine)
 
-from pyEngine import *
+from pyDatalog.pyEngine import *
 
 default_datalog_engine = None # will contain the default datalog engine
 
         self.datalog_engine = datalog_engine # needed to create Literal
         if isinstance(name, int):
             self.type = 'constant'
-        elif (name[0] in string.uppercase):
+        elif (name[0] in string.ascii_uppercase):
             self.type = 'variable'
         else:
             self.type = 'constant'

pyDatalog/pyEngine.py

         return cls.registry[args[0]]
     def __eq__(self, other):
         return self is other
+    def __hash__(self): return id(self)
     def __ne__(self, other):
         return not self is other
 
 setup(
     name = "pyDatalog",
     packages = ["pyDatalog"],
-    version = "0.2.2",
+    version = "0.3.0",
     description = "pyDatalog embeds a subset of prolog in python using SLG algorithm with memoization",
     author = "Pierre Carbonnelle",
     author_email = "pierre.carbonnelle@gmail.com",
 
 Datalog statements can be specified in any order, eliminating the need for sequence diagrams and the associated risk of tricky errors. 
 Datalog programs are often shorter than their python equivalent.  
-"""
+""",
+    setup_requires = ["six"],
+    install_requires = ["six"]
 )