File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Python modules for popular projects that add meta info to your SQL queries as co
99## Local Install
1010
1111``` shell
12- pip3 install --user .
12+ pip3 install --user google-cloud-sqlcommenter
1313```
1414
1515If you'd like to record some OpenCensus information as well, just install it:
@@ -76,7 +76,7 @@ from google.cloud.sqlcommenter.psycopg2.extension import CommenterCursorFactory
7676
7777cursor_factory = CommenterCursorFactory(
7878 with_db_driver = True , with_dbapi_level = True , with_dbapi_threadsafety = True ,
79- with_driver_paramstyel = True , with_libpq_version = True , with_opencensus = True )
79+ with_driver_paramstyle = True , with_libpq_version = True , with_opencensus = True )
8080conn = psycopg2.connect(... , cursor_factory = cursor_factory)
8181cursor = conn.cursor()
8282cursor.execute(... ) # comment will be added before execution
Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17+ import os
18+
1719from setuptools import find_packages , setup
1820
21+ def read_file (filename ):
22+ with open (os .path .join (os .path .dirname (__file__ ), filename )) as file :
23+ return file .read ()
24+
1925setup (
2026 name = 'google-cloud-sqlcommenter' ,
21- version = '0.1' ,
27+ version = '0.1.2 ' ,
2228 author = 'Google Developers' ,
2329 author_email = 'sqlcommenter@googlegroups.com' ,
2430 description = ('Augment SQL statements with meta information about frameworks and the running environment.' ),
31+ long_description = read_file ('README.md' ),
32+ long_description_content_type = 'text/markdown' ,
2533 license = 'BSD' ,
2634 packages = find_packages (exclude = ['tests' ]),
2735 extras_require = {
4452 'Framework :: Django' ,
4553 'Framework :: Django :: 2.1' ,
4654 'Framework :: Django :: 2.2' ,
47- 'Framework :: SQLAlchemy' ,
48- 'Framework :: Psycopg2' ,
4955 ],
5056)
You can’t perform that action at this time.
0 commit comments