Skip to content

Commit

Permalink
stamp 2.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
the4thdoctor committed Dec 11, 2019
1 parent 1d48dcd commit f9af180
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 22 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
changelog
*************************
2.0.12 - 11 Dec 2019
..........................................................
* Fixes for issue #96 thanks to @daniel-qcode
* Change for configuration and SQL files location
* Package can build now as source and wheel
* The minimum python requirements now is 3.5

2.0.11 - 25 Oct 2019
..........................................................
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Replica host
..............................

Operating system: Linux, FreeBSD, OpenBSD
Python: CPython 3.3+
Python: CPython 3.5+

* `PyMySQL <https://pypi.python.org/pypi/PyMySQL>`_
* `argparse <https://pypi.python.org/pypi/argparse>`_
Expand Down Expand Up @@ -98,7 +98,7 @@ The replica requires the tables to have a primary or unique key. Tables without
The copy_max_memory is just an estimate. The average rows size is extracted from mysql's informations schema and can be outdated.
If the copy process fails for memory error check the failing table's row length and the number of rows for each slice.

Python 3 is supported only from version 3.3 as required by mysql-replication .
Python 3 is supported only from version 3.5 as required by mysql-replication .

The lag is determined using the last received event timestamp and the postgresql timestamp. If the mysql is read only the lag will increase because
no replica event is coming in.
Expand Down
9 changes: 9 additions & 0 deletions RELEASE_NOTES.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
RELEASE NOTES
*************************
2.0.12
--------------------------
This maintenance release fixes the issue #96 where the replica initialisation failed on MySQL 8 because of the wrong field names pulled out from the information_schema.
Thanks to @daniel-qcode for contributing with his fix.

The configuration and SQL files are now moved inside into the directory pg_chameleon. This change simplifies the setup.py file and allow pg_chameleon to be
built as source and wheel package.

As python 3.4 has now reached its end-of-life and has been retired the minimum requirement for pg_chameleon has been updated to Python 3.5.

2.0.11
--------------------------
Expand Down
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,17 @@

# General information about the project.
project = u'pg_chameleon'
copyright = u'2016-2018 Federico Campoli'
copyright = u'2016-2020 Federico Campoli'
author = u'Federico Campoli'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = u'2.0.11'
version = u'2.0.12'
# The full version, including alpha/beta/rc tags.
release = u'v2.0.11'
release = u'v2.0.12'

# The language for content autgenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
22 changes: 11 additions & 11 deletions docs/configuration_file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The configuration consists of three configuration groups.
Global settings
..............................

.. literalinclude:: ../configuration/config-example.yml
.. literalinclude:: ../pg_chameleon/configuration/config-example.yml
:language: yaml
:lines: 2-9
:linenos:
Expand All @@ -25,7 +25,7 @@ If both rollbar_key and rollbar_env are configured some messages are sent to the
type override
...............................................

.. literalinclude:: ../configuration/config-example.yml
.. literalinclude:: ../pg_chameleon/configuration/config-example.yml
:language: yaml
:lines: 11-16
:linenos:
Expand All @@ -44,7 +44,7 @@ The override is also applied for each matching DDL (create table/alter table) if
PostgreSQL target connection
...............................................

.. literalinclude:: ../configuration/config-example.yml
.. literalinclude:: ../pg_chameleon/configuration/config-example.yml
:language: yaml
:lines: 21-28
:linenos:
Expand All @@ -55,7 +55,7 @@ The pg_conn key maps the target database connection string.
sources configuration
...............................................

.. literalinclude:: ../configuration/config-example.yml
.. literalinclude:: ../pg_chameleon/configuration/config-example.yml
:language: yaml
:lines: 30-95
:linenos:
Expand All @@ -72,7 +72,7 @@ Database connection
=============================


.. literalinclude:: ../configuration/config-example.yml
.. literalinclude:: ../pg_chameleon/configuration/config-example.yml
:language: yaml
:lines: 30-66
:emphasize-lines: 3-9
Expand All @@ -84,7 +84,7 @@ Larger values could help the tool working better on slow networks. Low values ca
Schema mappings
=============================

.. literalinclude:: ../configuration/config-example.yml
.. literalinclude:: ../pg_chameleon/configuration/config-example.yml
:language: yaml
:lines: 30-66
:emphasize-lines: 10-11
Expand All @@ -96,7 +96,7 @@ In the example provided the MySQL database ``delphis_mediterranea`` is replicate
Limit and skip tables
=============================

.. literalinclude:: ../configuration/config-example.yml
.. literalinclude:: ../pg_chameleon/configuration/config-example.yml
:language: yaml
:lines: 30-66
:emphasize-lines: 12-15
Expand All @@ -110,7 +110,7 @@ The table's names should be in the form SCHEMA_NAME.TABLE_NAME.
Grant select to option
=============================================================

.. literalinclude:: ../configuration/config-example.yml
.. literalinclude:: ../pg_chameleon/configuration/config-example.yml
:language: yaml
:lines: 30-66
:emphasize-lines: 16-17
Expand All @@ -126,7 +126,7 @@ This key allows to specify a list of database roles which will get select access
Source configuration parameters
====================================

.. literalinclude:: ../configuration/config-example.yml
.. literalinclude:: ../pg_chameleon/configuration/config-example.yml
:language: yaml
:lines: 30-66
:emphasize-lines: 18-31
Expand All @@ -150,7 +150,7 @@ Source configuration parameters
Skip events configuration
====================================

.. literalinclude:: ../configuration/config-example.yml
.. literalinclude:: ../pg_chameleon/configuration/config-example.yml
:language: yaml
:lines: 30-66
:emphasize-lines: 32-37
Expand Down Expand Up @@ -179,7 +179,7 @@ The following limitations apply.
* In the ``show_status`` detailed command the replicated tables counters are always zero


.. literalinclude:: ../configuration/config-example.yml
.. literalinclude:: ../pg_chameleon/configuration/config-example.yml
:language: yaml
:lines: 69-95
:emphasize-lines: 7,16,25,27
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pg_chameleon MySQL to PostgreSQL replica



pg_chameleon is a replication tool from MySQL to PostgreSQL developed in Python 3.3+
pg_chameleon is a replication tool from MySQL to PostgreSQL developed in Python 3.5+
The system use the library mysql-replication to pull the row images from MySQL which are transformed into a jsonb object.
A pl/pgsql function decodes the jsonb and replays the changes into the PostgreSQL database.

Expand Down
5 changes: 0 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ def readme():
return f.read()

package_data = {'pg_chameleon': ['configuration/config-example.yml','sql/upgrade/*.sql','sql/drop_schema.sql','sql/create_schema.sql', 'LICENSE.txt']}





setup(
name="pg_chameleon",
Expand Down Expand Up @@ -63,7 +59,6 @@ def readme():
'daemonize>=2.4.7',
'rollbar>=0.13.17'
],
#data_files = data_files,
include_package_data = True,
package_data=package_data,
packages=setuptools.find_packages(),
Expand Down

0 comments on commit f9af180

Please sign in to comment.