Skip to content

Commit 36547ed

Browse files
authored
Hotfix/clean (#7)
1 parent bb47e1c commit 36547ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+255
-10
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish Python Driver
2+
on:
3+
push:
4+
branches:
5+
- main
6+
defaults:
7+
run:
8+
shell: bash
9+
working-directory: scripts
10+
jobs:
11+
publish_project:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.10.5
18+
- name: install poetry
19+
uses: abatilo/[email protected]
20+
with:
21+
poetry-version: 1.2.0
22+
- name: install dependencies
23+
run: poetry install
24+
- name: publish project
25+
run: poetry publish --build --username __token__ --password ${{ secrets.PYPI_TOKEN }}

.github/workflows/tests.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests
2+
on: [ pull_request ]
3+
4+
jobs:
5+
run-tests:
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
python-version: [ 3.8, 3.9, 3.10.5 ]
10+
poetry-version: [ 1.2.0 ]
11+
os: [ ubuntu-18.04 ]
12+
runs-on: ${{ matrix.os }}
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Build And Run DB
16+
run: scripts/build_and_run.sh
17+
- uses: actions/setup-python@v2
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Use Poetry
21+
uses: abatilo/actions-poetry@v2
22+
with:
23+
poetry-version: ${{ matrix.poetry-version }}
24+
- name: Install Package
25+
run: poetry install
26+
working-directory: drivers/python
27+
- name: Run Tests
28+
run: poetry run pytest
29+
working-directory: drivers/python

.gitignore

Lines changed: 185 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,188 @@
44
Cargo.lock
55
.idea/
66
poetry.lock
7-
.pytest_cache
7+
.pytest_cache
8+
9+
config.cnf
10+
*.pyc
11+
*.iml
12+
*/*.pytest*
13+
.rnd
14+
### Python template
15+
# Byte-compiled / optimized / DLL files
16+
__pycache__/
17+
*.py[cod]
18+
*$py.class
19+
20+
# C extensions
21+
*.so
22+
23+
# Distribution / packaging
24+
.Python
25+
build/
26+
develop-eggs/
27+
dist/
28+
downloads/
29+
eggs/
30+
.eggs/
31+
lib/
32+
lib64/
33+
parts/
34+
sdist/
35+
var/
36+
wheels/
37+
*.egg-info/
38+
.installed.cfg
39+
*.egg
40+
MANIFEST
41+
42+
# PyInstaller
43+
# Usually these files are written by a python script from a template
44+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
45+
*.manifest
46+
*.spec
47+
48+
# Installer logs
49+
pip-log.txt
50+
pip-delete-this-directory.txt
51+
52+
# Unit test / coverage reports
53+
htmlcov/
54+
.tox/
55+
.coverage
56+
.coverage.*
57+
.cache
58+
nosetests.xml
59+
coverage.xml
60+
*.cover
61+
.hypothesis/
62+
63+
# Translations
64+
*.mo
65+
*.pot
66+
67+
# Django stuff:
68+
*.log
69+
.static_storage/
70+
.media/
71+
local_settings.py
72+
73+
# Flask stuff:
74+
instance/
75+
.webassets-cache
76+
77+
# Scrapy stuff:
78+
.scrapy
79+
80+
# Sphinx documentation
81+
docs/_build/
82+
83+
# PyBuilder
84+
target/
85+
86+
# Jupyter Notebook
87+
.ipynb_checkpoints
88+
89+
# pyenv
90+
.python-version
91+
92+
# celery beat schedule file
93+
celerybeat-schedule
94+
95+
# SageMath parsed files
96+
*.sage.py
97+
98+
# Environments
99+
.env
100+
.venv
101+
env/
102+
venv/
103+
ENV/
104+
env.bak/
105+
venv.bak/
106+
107+
# Spyder project settings
108+
.spyderproject
109+
.spyproject
110+
111+
# Rope project settings
112+
.ropeproject
113+
114+
# mkdocs documentation
115+
/site
116+
117+
# mypy
118+
.mypy_cache/
119+
### VirtualEnv template
120+
# Virtualenv
121+
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
122+
.Python
123+
[Bb]in
124+
[Ii]nclude
125+
[Ll]ib
126+
[Ll]ib64
127+
[Ll]ocal
128+
pyvenv.cfg
129+
.venv
130+
pip-selfcheck.json
131+
### JetBrains template
132+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
133+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
134+
135+
# User-specific stuff:
136+
.idea/**/workspace.xml
137+
.idea/**/tasks.xml
138+
.idea/dictionaries
139+
140+
# Sensitive or high-churn files:
141+
.idea/**/dataSources/
142+
.idea/**/dataSources.ids
143+
.idea/**/dataSources.xml
144+
.idea/**/dataSources.local.xml
145+
.idea/**/sqlDataSources.xml
146+
.idea/**/dynamic.xml
147+
.idea/**/uiDesigner.xml
148+
149+
# Gradle:
150+
.idea/**/gradle.xml
151+
.idea/**/libraries
152+
153+
# CMake
154+
cmake-build-debug/
155+
cmake-build-release/
156+
157+
# Mongo Explorer plugin:
158+
.idea/**/mongoSettings.xml
159+
160+
## File-based project format:
161+
*.iws
162+
163+
## Plugin-specific files:
164+
165+
# IntelliJ
166+
out/
167+
168+
# mpeltonen/sbt-idea plugin
169+
.idea_modules/
170+
171+
# JIRA plugin
172+
atlassian-ide-plugin.xml
173+
174+
# Cursive Clojure plugin
175+
.idea/replstate.xml
176+
177+
# Crashlytics plugin (for Android Studio and IntelliJ)
178+
com_crashlytics_export_strings.xml
179+
crashlytics.properties
180+
crashlytics-build.properties
181+
fabric.properties
182+
183+
.idea
184+
docs/api
185+
docs/_rst
186+
tags
187+
188+
tests/assets/tmp
189+
src/api_files/storage_dir
190+
docker-compose-aws.yml
191+
tilt_modules

docs/build/install.md

Lines changed: 9 additions & 1 deletion

drivers/python/annadb/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
__version__ = "0.0.4"
1+
__version__ = "0.1.1"
22

33
__all__ = [
44
# Entities
55
"Connection",
6-
76
# utils
87
"to_str",
9-
108
# Operators
119
"Inc",
1210
"Set",
13-
1411
# Fields
1512
"root",
1613
]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)