Skip to content

Commit f71ebcc

Browse files
committed
Flag repository as unofficial
1 parent c1719aa commit f71ebcc

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
CodeQL for Python
22
=================
33

4+
<!--
45
[![](https://img.shields.io/pypi/v/codeql-python.svg)](https://pypi.python.org/pypi/codeql-python)
6+
-->
57

6-
Python 3.x bindings for the CodeQL CLI application.
8+
Unofficial Python 3.x bindings for the CodeQL CLI application.
79

810
Install the package via:
911

1012
```bash
11-
pip install codeql-python
13+
pip install git+https://github.com/AlexAltea/codeql-python.git
1214
````
1315

1416
## Usage

codeql/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def run_command(self, command, options=[], post=[]):
3737
run(['database', command] + options + [self.path] + post)
3838

3939
@staticmethod
40-
def create_from_cpp(code, command=None):
40+
def from_cpp(code, command=None):
4141
# Get default compiler
4242
compilers = ['cxx', 'clang++', 'g++', 'cc', 'clang', 'gcc']
4343
if command is None:

setup.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,15 @@
1212
CODEQL_DESCRIPTION = """CodeQL for Python
1313
=================
1414
15-
.. image:: https://img.shields.io/pypi/v/codeql-python.svg
16-
:target: https://pypi.python.org/pypi/codeql-python
17-
18-
Python 3.x bindings for the CodeQL CLI application.
15+
Unofficial Python 3.x bindings for the CodeQL CLI application.
1916
2017
More information at: https://github.com/AlexAltea/codeql-python
2118
"""
2219

2320
setuptools.setup(
2421
name='codeql-python',
2522
version=CODEQL_VERSION,
26-
description='Python bindings for CodeQL CLI',
23+
description='Unofficial Python bindings for CodeQL CLI',
2724
long_description=CODEQL_DESCRIPTION,
2825
license='MIT',
2926
author='Alexandro Sanchez Bach',

test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import codeql
55

66
def test_basic():
7-
db = codeql.Database.create_from_cpp('int main() { return 0; }')
7+
db = codeql.Database.from_cpp('int main() { return 0; }')
88
res = db.query('''
99
select "Test"
1010
''')

0 commit comments

Comments
 (0)