Skip to content

Commit a222fa1

Browse files
fix: conda build with post-link pip install
- Use post-link scripts to install pip dependencies after conda install - Remove dependencies from build script (use --no-deps) - Add Windows and Unix post-link scripts - Document pip dependency installation in package description - Bump version to 1.0.3
1 parent 7b4136d commit a222fa1

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

conda/meta.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% set name = "sec-edgar-mcp" %}
2-
{% set version = environ.get('GIT_DESCRIBE_TAG', '1.0.2').lstrip('v') %}
2+
{% set version = environ.get('GIT_DESCRIBE_TAG', '1.0.3').lstrip('v') %}
33

44
package:
55
name: {{ name|lower }}
@@ -11,9 +11,7 @@ source:
1111
build:
1212
noarch: python
1313
number: 0
14-
script: |
15-
{{ PYTHON }} -m pip install . -vv
16-
{{ PYTHON }} -m pip install mcp[cli]>=1.7.1 edgartools>=4.4.0
14+
script: {{ PYTHON }} -m pip install . -vv --no-deps --ignore-installed --no-cache-dir
1715

1816
requirements:
1917
host:
@@ -35,6 +33,10 @@ about:
3533
description: |
3634
Provides access to SEC EDGAR database through a Model Context Protocol (MCP) server.
3735
Created by Stefano Amorelli.
36+
37+
Note: This package will automatically install additional dependencies
38+
(mcp and edgartools) via pip during installation, as they are not
39+
yet available on conda-forge.
3840
license: AGPL-3.0
3941
license_file: LICENSE
4042

conda/post-link.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@echo off
2+
REM Install pip dependencies that aren't available on conda-forge
3+
echo Installing additional dependencies via pip...
4+
"%PREFIX%\Scripts\pip.exe" install "mcp[cli]>=1.7.1" "edgartools>=4.4.0" --quiet
5+
echo SEC EDGAR MCP installation complete!

conda/post-link.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
# Install pip dependencies that aren't available on conda-forge
3+
echo "Installing additional dependencies via pip..."
4+
"${PREFIX}/bin/pip" install "mcp[cli]>=1.7.1" "edgartools>=4.4.0" --quiet
5+
echo "SEC EDGAR MCP installation complete!"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "sec-edgar-mcp"
7-
version = "1.0.2"
7+
version = "1.0.3"
88
description = "SEC EDGAR MCP server for company filings and financial data"
99
authors = [{ name = "Stefano Amorelli", email = "stefano@amorelli.tech" }]
1010
readme = "README.md"

sec_edgar_mcp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from sec_edgar_mcp.tools import CompanyTools, FilingsTools, FinancialTools, InsiderTools
33
from sec_edgar_mcp.utils import TickerCache, SEC_USER_AGENT
44

5-
__version__ = "1.0.2"
5+
__version__ = "1.0.3"
66

77
__all__ = [
88
# Core

0 commit comments

Comments
 (0)