Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added nanocube as a package #28011

Merged
merged 10 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions recipes/nanocube/0001-get-version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--- setup.py 2024-10-26 13:10:54.582141000 -0400
+++ setup.py 2024-10-26 13:11:46.167990600 -0400
@@ -3,7 +3,8 @@

from setuptools import setup
from setuptools import find_packages
-from nanocube import VERSION as NANOCUBE_VERSION
+import os
+NANOCUBE_VERSION = os.environ["VERSION"]


# ...to run the build and deploy process to pypi.org manually:
@@ -81,4 +82,4 @@
'Documentation': 'https://zeutschler.github.io/nanocube/',
'GitHub': 'https://github.com/Zeutschler/nanocube',
},
-)
\ No newline at end of file
+)
53 changes: 53 additions & 0 deletions recipes/nanocube/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{% set name = "nanocube" %}
{% set version = "0.2.1" %}
{% set python_min = "3.10" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/nanocube-{{ version }}.tar.gz
sha256: 5737404f67c8cc1cc05c308a9fc08d04bf0e99568009dd07b1b3c904e8368863
patches:
- 0001-get-version.patch

build:
noarch: python
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
number: 0
script_env:
- VERSION={{ version }}

requirements:
host:
- python {{ python_min }}
- setuptools >=61.0
- pip
run:
- python >={{ python_min }}
- pandas
- pyroaring
- pyarrow
- sortednp
- lz4
- zstandard

test:
imports:
- nanocube
commands:
- pip check
requires:
- pip
- python {{ python_min }}

about:
home: https://github.com/Zeutschler/nanocube
summary: Lightning fast OLAP-style point queries on Pandas DataFrames.
license: MIT
license_file: LICENSE

extra:
recipe-maintainers:
- thewchan
Loading