diff --git a/README.en.md b/README.en.md index 7214fe63e86bfaec6fa5b0802abf1428759084db..2fd1e589505189a728c1324f0e067acaa45d7574 100644 --- a/README.en.md +++ b/README.en.md @@ -19,7 +19,7 @@ This project has been tested with test suites of SQLAlchemy. ## Installation ``` ->>> python setup.py install +>>> python -m pip install opengauss-sqlalchemy ``` ## Usage @@ -188,7 +188,7 @@ Table("some_table", ..., opengauss_to="GROUP group_name") ### Steps to install and config centralized opengauss for testing 1. Add OS user for opengauss ```>>> useradd omm -g dbgrp``` -2. Change owner of opengass dir ```>>> chown omm:dbgrp ${db_dir} -R``` +2. Change owner of opengauss dir ```>>> chown omm:dbgrp ${db_dir} -R``` 3. Switch to user omm ```>>> su - omm``` 4. Install opengauss ```>>> sh install.sh -w ${db_password} -p 37200``` 5. Start opengauss ```>>> gs_ctl start -D ${db_dir}/data/single_node/``` diff --git a/README.md b/README.md index 3cf240575f19bd68f1b14d0147038fa485cc0743..7fcb1f15203fa8cde435fec4488ddf1533a3907b 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ ## 安装 ``` ->>> python setup.py install +>>> python -m pip install opengauss-sqlalchemy ``` ## 使用方法 diff --git a/setup.py b/setup.py index c8b3ebabe5de8d7db10081b6613a1c969e5580ba..2d3e835f6874ee01d7993f313029ef3c81279fe1 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ from setuptools import setup with open(os.path.join(os.path.dirname(__file__), "opengauss_sqlalchemy", "__init__.py")) as fd: VERSION = re.compile(r'.*__version__ = "(.*?)"', re.S).match(fd.read()).group(1) -long_description = (Path(__file__).parent/ "README.md").read_text() +long_description = (Path(__file__).parent / "README.md").read_text() setup( diff --git a/test/test_compiler.py b/test/test_compiler.py index 0ef2c8b7db44250255ec584ac45609db01b5a3fd..ce1ccc7577df67e6cc838a032f8cb92e8f29a757 100644 --- a/test/test_compiler.py +++ b/test/test_compiler.py @@ -474,7 +474,7 @@ class DDLCompilerTest(fixtures.TestBase, AssertsCompiledSQL): ) self.assert_compile( schema.CreateTable(tbl), - "CREATE TABLE atable (id INTEGER) WITH (ORIENTATION = COLUMN) COMPRESS", + "CREATE TABLE atable (id INTEGER) WITH (ORIENTATION = COLUMN) COMPRESS", ) def test_create_table_partition_by_list(self): diff --git a/test/test_suite.py b/test/test_suite.py index a226f42af3d4f2fc49313c291cdeb5100b265388..c3c295b2ee9d94157b39ab10e42c711ec31af63c 100644 --- a/test/test_suite.py +++ b/test/test_suite.py @@ -73,9 +73,9 @@ class LongNameBlowoutTest(_LongNameBlowoutTest): assert len(actual_name) > 255 if reflected_name is not None: - overlap = actual_name[0 : len(reflected_name)] + overlap = actual_name[0: len(reflected_name)] if len(overlap) < len(actual_name): - eq_(overlap[0:-5], reflected_name[0 : len(overlap) - 5]) + eq_(overlap[0:-5], reflected_name[0: len(overlap) - 5]) else: eq_(overlap, reflected_name)