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

add files for equirep #51972

Merged
merged 20 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
6 changes: 6 additions & 0 deletions recipes/equirep/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -xe
Comment on lines +1 to +3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Add required Conda build environment setup.

The build script needs to incorporate Conda-specific environment variables and error handling:

Apply these changes:

 #!/bin/bash
 
-set -xe
+set -euo pipefail
+
+# Conda build environment setup
+export CFLAGS="${CFLAGS} -I${PREFIX}/include"
+export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib"
+export CPATH="${PREFIX}/include"
+export LIBRARY_PATH="${PREFIX}/lib"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
#!/bin/bash
set -xe
#!/bin/bash
set -euo pipefail
# Conda build environment setup
export CFLAGS="${CFLAGS} -I${PREFIX}/include"
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib"
export CPATH="${PREFIX}/include"
export LIBRARY_PATH="${PREFIX}/lib"


./configure
make
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Complete the build and installation process.

The current build commands are insufficient for proper Conda package creation:

  1. Configure needs to specify installation prefix
  2. Make should utilize parallel builds
  3. Missing installation step

Apply these changes:

-./configure
-make 
+./configure --prefix="${PREFIX}"
+make -j${CPU_COUNT}
+make install
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
./configure
make
./configure --prefix="${PREFIX}"
make -j${CPU_COUNT}
make install

38 changes: 38 additions & 0 deletions recipes/equirep/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{% set name = "equirep" %}
{% set version = "1.0.0" %}

package:
name: "{{ name }}"
version: "{{ version }}"

source:
url: "https://github.com/Shao-Group/EquiRep/releases/download/v{{ version }}/EquiRep-{{ version }}.tar.gz"
sha256: "2cb4bad860eade6bf59a3153ed4aa25094b519740e421d628d1470b03115730b"

build:
number: 0
run_exports:
- {{ pin_subpackage('EquiRep', max_pin="x") }}

requirements:
build:
- make
- {{ compiler('c') }}
- {{ compiler('cxx') }}

test:
commands:
- EquiRep
Comment on lines +23 to +25
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Enhance test coverage

The current test only verifies that the executable runs. Consider adding:

  • Version check command (EquiRep --version)
  • Help command test (EquiRep --help)
  • Test with example data if available
test:
  commands:
    - EquiRep
+   - EquiRep --version
+   - EquiRep --help

Committable suggestion skipped: line range outside the PR's diff.


about:
home: "https://github.com/Shao-Group/EquiRep"
license: BSD-3-Clause
license_file: LICENSE
summary: "EquiRep is tool to identify tandem repeats."

extra:
additional-platforms:
- linux-aarch64
- osx-arm64
recipe-maintainers:
- shaomingfu
Loading