Skip to content

Commit a714f24

Browse files
author
Bala Chandrasekaran
committed
Publish changes for Python
1 parent 84c5021 commit a714f24

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

python/sqlcommenter-python/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

1515
If 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

7777
cursor_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)
8080
conn = psycopg2.connect(..., cursor_factory=cursor_factory)
8181
cursor = conn.cursor()
8282
cursor.execute(...) # comment will be added before execution

python/sqlcommenter-python/setup.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,22 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
import os
18+
1719
from 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+
1925
setup(
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={
@@ -44,7 +52,5 @@
4452
'Framework :: Django',
4553
'Framework :: Django :: 2.1',
4654
'Framework :: Django :: 2.2',
47-
'Framework :: SQLAlchemy',
48-
'Framework :: Psycopg2',
4955
],
5056
)

0 commit comments

Comments
 (0)