Skip to content

Commit c828ac6

Browse files
committed
Add basic project structure
1 parent 2ba64d9 commit c828ac6

File tree

9 files changed

+131
-2
lines changed

9 files changed

+131
-2
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# EditorConfig
2+
# http://editorconfig.org
3+
4+
root = true
5+
6+
[**.{py}]
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# PyCharm
2+
.idea
3+
4+
# Python
5+
*.pyc
6+
*.pyo
7+
*.pyd
8+
9+
# Package
10+
/*egg-info
11+
/build
12+
/dist

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Alexandro Sanchez Bach
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1-
# codeql-python
2-
Python bindings for CodeQL CLI
1+
CodeQL for Python
2+
=================
3+
4+
[![](https://img.shields.io/pypi/v/codeql-python.svg)](https://pypi.python.org/pypi/codeql-python)
5+
6+
Python 3.x bindings for the CodeQL CLI application.
7+
8+
Install the package via:
9+
10+
```bash
11+
pip install codeql-python
12+
````

codeql/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
"""
4+
CodeQL for Python.
5+
"""
6+
7+
# Imports
8+
from .codeql import *
9+
10+
# Prevent polluting namespace
11+
del codeql

codeql/codeql.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
"""
4+
CodeQL for Python.
5+
"""
6+
7+
import subprocess
8+

docs/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
CodeQL for Python documentation
2+
===============================
3+
4+
Disclaimer: This is a rather informal description.
5+
6+
## Database
7+
8+
TODO
9+
10+
## Queries
11+
12+
TODO

publish.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
del dist\*
2+
python setup.py bdist_wheel --universal
3+
gpg --detach-sign -u FA31DF0C -a dist/*
4+
twine upload dist/*
5+
pause

setup.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
4+
import codecs
5+
import setuptools
6+
7+
CODEQL_VERSION = '2.4.5'
8+
CODEQL_REPOSITORY_URL = 'https://github.com/AlexAltea/codeql-python'
9+
CODEQL_DOWNLOAD_URL = 'https://github.com/AlexAltea/codeql-python/tarball/' + CODEQL_VERSION
10+
11+
# Description
12+
CODEQL_DESCRIPTION = """CodeQL for Python
13+
=================
14+
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.
19+
20+
More information at: https://github.com/AlexAltea/codeql-python
21+
"""
22+
23+
setuptools.setup(
24+
name='codeql-python',
25+
version=CODEQL_VERSION,
26+
description='Python bindings for CodeQL CLI',
27+
long_description=CODEQL_DESCRIPTION,
28+
license='MIT',
29+
author='Alexandro Sanchez Bach',
30+
author_email='alexandro@phi.nz',
31+
url=CODEQL_REPOSITORY_URL,
32+
download_url=CODEQL_DOWNLOAD_URL,
33+
packages=['codeql-python'],
34+
classifiers=[
35+
'Intended Audience :: Developers',
36+
'License :: OSI Approved :: MIT License',
37+
'Programming Language :: Python :: 3.5',
38+
'Natural Language :: English',
39+
],
40+
)

0 commit comments

Comments
 (0)