Browse Source

Merge branch 'master' into develop

Conflicts:
	setup.py
Mark Haines 8 years ago
parent
commit
73e4ad4b8b
7 changed files with 25 additions and 10 deletions
  1. 11 0
      CHANGES.rst
  2. 1 0
      README.rst
  3. 9 6
      scripts/synapse_port_db
  4. 1 1
      setup.py
  5. 1 1
      synapse/__init__.py
  6. 1 1
      synapse/app/homeserver.py
  7. 1 1
      synapse/config/_base.py

+ 11 - 0
CHANGES.rst

@@ -1,3 +1,14 @@
+Changes in synapse v0.10.0 (2015-09-03)
+=======================================
+
+No change from release candidate.
+
+Changes in synapse v0.10.0-rc6 (2015-09-02)
+===========================================
+
+* Remove some of the old database upgrade scripts.
+* Fix database port script to work with newly created sqlite databases.
+
 Changes in synapse v0.10.0-rc5 (2015-08-27)
 Changes in synapse v0.10.0-rc5 (2015-08-27)
 ===========================================
 ===========================================
 
 

+ 1 - 0
README.rst

@@ -94,6 +94,7 @@ Synapse is the reference python/twisted Matrix homeserver implementation.
 System requirements:
 System requirements:
 - POSIX-compliant system (tested on Linux & OS X)
 - POSIX-compliant system (tested on Linux & OS X)
 - Python 2.7
 - Python 2.7
+- At least 512 MB RAM.
 
 
 Synapse is written in python but some of the libraries is uses are written in
 Synapse is written in python but some of the libraries is uses are written in
 C. So before we can install synapse itself we need a working C compiler and the
 C. So before we can install synapse itself we need a working C compiler and the

+ 9 - 6
scripts/synapse_port_db

@@ -412,14 +412,17 @@ class Porter(object):
         self._convert_rows("sent_transactions", headers, rows)
         self._convert_rows("sent_transactions", headers, rows)
 
 
         inserted_rows = len(rows)
         inserted_rows = len(rows)
-        max_inserted_rowid = max(r[0] for r in rows)
+        if inserted_rows:
+            max_inserted_rowid = max(r[0] for r in rows)
 
 
-        def insert(txn):
-            self.postgres_store.insert_many_txn(
-                txn, "sent_transactions", headers[1:], rows
-            )
+            def insert(txn):
+                self.postgres_store.insert_many_txn(
+                    txn, "sent_transactions", headers[1:], rows
+                )
 
 
-        yield self.postgres_store.execute(insert)
+            yield self.postgres_store.execute(insert)
+        else:
+            max_inserted_rowid = 0
 
 
         def get_start_id(txn):
         def get_start_id(txn):
             txn.execute(
             txn.execute(

+ 1 - 1
setup.py

@@ -81,7 +81,7 @@ setup(
     packages=find_packages(exclude=["tests", "tests.*"]),
     packages=find_packages(exclude=["tests", "tests.*"]),
     description="Reference Synapse Home Server",
     description="Reference Synapse Home Server",
     install_requires=dependencies['requirements'](include_conditional=True).keys(),
     install_requires=dependencies['requirements'](include_conditional=True).keys(),
-    dependency_links=dependencies["DEPENDENCY_LINKS"],
+    dependency_links=dependencies["DEPENDENCY_LINKS"].values(),
     include_package_data=True,
     include_package_data=True,
     zip_safe=False,
     zip_safe=False,
     long_description=long_description,
     long_description=long_description,

+ 1 - 1
synapse/__init__.py

@@ -16,4 +16,4 @@
 """ This is a reference implementation of a Matrix home server.
 """ This is a reference implementation of a Matrix home server.
 """
 """
 
 
-__version__ = "0.10.0-rc5"
+__version__ = "0.10.0"

+ 1 - 1
synapse/app/homeserver.py

@@ -341,7 +341,7 @@ def get_version_string():
                 )
                 )
             ).encode("ascii")
             ).encode("ascii")
     except Exception as e:
     except Exception as e:
-        logger.warn("Failed to check for git repository: %s", e)
+        logger.info("Failed to check for git repository: %s", e)
 
 
     return ("Synapse/%s" % (synapse.__version__,)).encode("ascii")
     return ("Synapse/%s" % (synapse.__version__,)).encode("ascii")
 
 

+ 1 - 1
synapse/config/_base.py

@@ -182,7 +182,7 @@ class Config(object):
                             ) % (entry_path, )
                             ) % (entry_path, )
                             continue
                             continue
 
 
-                        files.add(config_path)
+                        files.append(entry_path)
 
 
                     config_files.extend(sorted(files))
                     config_files.extend(sorted(files))
                 else:
                 else: