Skip to content

Commit

Permalink
Publish updates to 2.0 PyKX
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccarthy1 committed Sep 22, 2023
1 parent 94de3e6 commit 0b9c247
Show file tree
Hide file tree
Showing 97 changed files with 11,593 additions and 1,198 deletions.
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ recursive-include tests *.py
include src/pykx/pykx.q
include src/pykx/pykx_init.q_

# When adding to this list a user should be conscious
# to additionally update the ignore pattern files in
# build/github.py
exclude **/.gitignore
exclude .gitlab-ci.yml
exclude mkdocs.yml
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pip install pykx==<INSERT_VERSION>

### PyKX License access and enablement

Installation of PyKX via pip provides users with access to the library with limited functional scope, full details of these limitations can be found [here](../user-guide/advanced/modes.md). To access the full functionality of PyKX you must first download and install a kdb+ license, this can be achieved either through use of a personal evaluation license or receipt of a commercial license.
Installation of PyKX via pip provides users with access to the library with limited functional scope, full details of these limitations can be found [here](docs/user-guide/advanced/modes.md). To access the full functionality of PyKX you must first download and install a kdb+ license, this can be achieved either through use of a personal evaluation license or receipt of a commercial license.

#### Personal Evaluation License

Expand Down Expand Up @@ -103,7 +103,7 @@ PyKX also has an optional Python dependency of `pyarrow>=3.0.0`, which can be in

#### Optional Non-Python Dependencies

- `libssl` for TLS on [IPC connections](../api/ipc.md).
- `libssl` for TLS on [IPC connections](docs/api/ipc.md).

#### Windows Dependencies

Expand Down
5 changes: 5 additions & 0 deletions conda-recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rem CAN NOT RUN A POWERSHELL SCRIPT ON A FD LAPTOP
rem set ROOT=%~dp0
rem powershell.exe -noexit %ROOT%\windows_prep.ps1
"%PYTHON%" -m pip install --no-deps --ignore-installed .
if errorlevel 1 exit 1
1 change: 1 addition & 0 deletions conda-recipe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$PYTHON -m pip install --no-deps --ignore-installed .
40 changes: 40 additions & 0 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package:
name: pykx
version: '{{ environ.get("GIT_DESCRIBE_TAG", "0.0.0") | replace("-","") }}'
source:
git_url: ..
# git_rev:

build:
number: '{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}'
ignore_run_exports:
- python_abi
missing_dso_whitelist:
- "*libkurl.so"

requirements:
build:
- git
- python
- setuptools==60.9.3
- setuptools_scm[toml]>=6.0.1
- cython==3.0.0a11
- numpy==1.22.*
- tomli>=2.0.1
- wheel>=0.36.2
- sysroot_linux-64 # [linux64]

run:
- python
- numpy>=1.22
- pandas>=1.2,<2.0
- pytz>=2022.1

test:
imports:
- pykx

about:
license_file:
- LICENSE.txt
home: https://code.kx.com/pykx/
11 changes: 11 additions & 0 deletions conda-recipe/windows_prep.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Set-ExecutionPolicy Bypass -Force
Install-Module VcRedist -Force -AllowClobber
mkdir vcredist
$VcRedist = Get-VcList -Export All | Where-Object { $_.Release -eq '2010' -and $_.Architecture -eq 'x64' }
Save-VcRedist -Path 'vcredist' $VcRedist
Install-VcRedist -Path 'vcredist' -Silent $VcRedist
Invoke-WebRequest https://aka.ms/vs/16/release/vs_BuildTools.exe -UseBasicParsing -OutFile 'vs_BuildTools.exe'
./vs_BuildTools.exe --nocache --wait --quiet --norestart --includeRecommended --includeOptional --add Microsoft.VisualStudio.Workload.VCTools
git clone https://github.com/microsoft/vcpkg 'vcpkg'
vcpkg/bootstrap-vcpkg.bat -disableMetrics
vcpkg/vcpkg.exe install dlfcn-win32:x64-windows-static-md
12 changes: 12 additions & 0 deletions docs/api/license.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# License management

The functionality presented here provides users with utilities allowing for the management of PyKX licenses and their lifecycle

::: pykx.license
rendering:
show_root_heading: false
options:
show_root_heading: false
members_order: source
members:
- builder
3 changes: 3 additions & 0 deletions docs/api/pykx-execution/console.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# PyKX Console

::: pykx.console
3 changes: 3 additions & 0 deletions docs/api/pykx-execution/ctx.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Context Interface

::: pykx.ctx
5 changes: 5 additions & 0 deletions docs/api/pykx-execution/embedded_q.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# PyKX Execution Classes

::: pykx.Q

::: pykx.EmbeddedQ
Loading

0 comments on commit 0b9c247

Please sign in to comment.