<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from os import geteuid
from os.path import  expanduser
from setuptools import setup

if geteuid() == 0:
	conf_dir = '/etc/pg_chameleon'
else:
	conf_dir="%s/.pg_chameleon/config" % expanduser('~')	
	
	

config_files=[(conf_dir, ['config/config-example.yaml'])]
setup(
	name="pg_chameleon",
	version="1.0beta1",
	description="MySQL to PostgreSQL replica",
	long_description="""Pg_chameleon is a replication tool from MySQL to PostgreSQL developed in Python 2.7 and Python 3.3+
The system relies on the mysql-replication library to pull the changes from MySQL and covert them into a jsonb object. 
A plpgsql function decodes the jsonb and replays the changes into the PostgreSQL database.

The tool requires an  initial replica setup which pulls the data from MySQL in read only mode. 
This is done by the tool running FLUSH TABLE WITH READ LOCK;  .

The tool can pull the data from a cascading replica when the MySQL slave is configured with log-slave-updates.
""",
	author="<NAME>",
	author_email="<EMAIL>",
	url="https://github.com/the4thdoctor/pg_chameleon/",
	platforms=[
		"linux"
	],
	classifiers=[
		"License :: OSI Approved :: BSD License"
	],
	#packages=['pg_chameleon'],
	py_modules=[
		"pg_chameleon.__init__",
		"pg_chameleon.lib.global_lib",
		"pg_chameleon.lib.mysql_lib",
		"pg_chameleon.lib.pg_lib",
		"pg_chameleon.lib.sql_util"
	],
	scripts=[
		"chameleon.py"
	],
	install_requires=[
					'PyMySQL', 
					'argparse', 
					'mysql-replication', 
					'psycopg2', 
					'PyYAML', 
					'sphinx', 
					'sphinx-autobuild'
	],
	data_files=config_files, 
	
	
)
<commit_msg>update setup.py<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from os import geteuid
from os.path import  expanduser
from setuptools import setup

if geteuid() == 0:
	conf_dir = '/etc/pg_chameleon'
else:
	conf_dir="%s/.pg_chameleon/config" % expanduser('~')	
	
	

config_files=[(conf_dir, ['config/config-example.yaml'])]

setup(
	name="pg_chameleon",
	version="1.0beta1",
	description="MySQL to PostgreSQL replica",
	long_description="""Pg_chameleon is a replication tool from MySQL to PostgreSQL developed in Python 2.7 and Python 3.3+
The system relies on the mysql-replication library to pull the changes from MySQL and covert them into a jsonb object. 
A plpgsql function decodes the jsonb and replays the changes into the PostgreSQL database.

The tool requires an  initial replica setup which pulls the data from MySQL in read only mode. 
This is done by the tool running FLUSH TABLE WITH READ LOCK;  .

The tool can pull the data from a cascading replica when the MySQL slave is configured with log-slave-updates.
""",
	author="<NAME>",
	author_email="<EMAIL>",
	url="https://github.com/the4thdoctor/pg_chameleon/",
	platforms=[
		"linux"
	],
	classifiers=[
		"License :: OSI Approved :: BSD License"
	],
	#packages=['pg_chameleon'],
	py_modules=[
		"pg_chameleon.__init__",
		"pg_chameleon.lib.global_lib",
		"pg_chameleon.lib.mysql_lib",
		"pg_chameleon.lib.pg_lib",
		"pg_chameleon.lib.sql_util"
	],
	scripts=[
		"chameleon.py"
	],
	install_requires=[
					'PyMySQL', 
					'argparse', 
					'mysql-replication', 
					'psycopg2', 
					'PyYAML', 
					'sphinx', 
					'sphinx-autobuild'
	],
	data_files=config_files, 
	
	
)

{'fraction_non_alphanumeric': 0.1204855842185129, 'fraction_numerical': 0.006676783004552352, 'mean_word_length': 4.15, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '544485', 'n_tokens_mistral': 1307, 'n_tokens_neox': 1184, 'n_words': 319}