Skip to content
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
49 changes: 49 additions & 0 deletions recipes/opengeotech/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{% set name = "opengeotech" %}
{% set version = "0.1.0" %}

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

source:
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: 1dbc6a78a1f6f860dd610a3ebcbf5cc41bd2ff1600ef6bc26d2b4ec314220407

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

requirements:
host:
- python {{ python_min }}
- pip
- setuptools
- wheel
run:
- python >={{ python_min }}

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

about:
home: https://github.com/OpenGeotechnical/opengeotech-python
summary: 'A simple geotechnical engineering package'
description: |
OpenGeotech is a Python package that provides functions for geotechnical
engineering calculations, such as effective stress calculations.
license: MIT
license_family: MIT
license_file: LICENSE
dev_url: https://github.com/OpenGeotechnical/opengeotech-python
doc_url: https://github.com/OpenGeotechnical/opengeotech-python#readme

extra:
recipe-maintainers:
- jadinata
7 changes: 7 additions & 0 deletions recipes/opengeotech/run_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import opengeotech

# Test effective_stress function
result = opengeotech.effective_stress(100, 40)
assert result == 60, f"Expected 60, got {result}"

print("All tests passed!")