diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0f10607f8..a95d491b7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,16 +2,16 @@ name: Tests on: push: - branches: [ master ] + branches: [ 0.4 ] pull_request: - branches: [ master ] + branches: [ 0.4 ] jobs: build: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v3 diff --git a/CHANGELOG b/CHANGELOG index 6fda8de36..18324a42f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,28 @@ +0.4.38 +====== + +- [FIX]: Fix lib name on windows. + +0.4.37 +====== + +- [FIX]: Make sure to pin numpy<2 in the setup.py. + +0.4.36 +====== + +- [BUG]: Make this release only support TA-Lib 0.4.0 + +0.4.35 +====== + +- [FIX]: Make sure this wrapper works with TA-Lib 0.6.1 + +0.4.34 +====== + +- [FIX]: include cython *.pxi files in the source tar.gz + 0.4.33 ====== diff --git a/MANIFEST.in b/MANIFEST.in index e02271d72..97961f076 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,4 +3,5 @@ include COPYRIGHT include README.md include talib/*.c include talib/*.pyx +include talib/*.pxi include tests/*.py diff --git a/pyproject.toml b/pyproject.toml index 2fb9266ed..3df370926 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,8 @@ [project] name = "ta-lib" -version = "0.4.33" -dynamic = ["authors", "classifiers", "dependencies", "description", "license", "readme"] - -[build-system] -requires = ["setuptools >= 51.0.0", "wheel", "numpy<2.0.0"] -build-backend = "setuptools.build_meta:__legacy__" +version = "0.4.38" +dynamic = ["authors", "classifiers", "description", "license", "readme"] +dependencies = [ + "setuptools", + "numpy<2", +] diff --git a/setup.py b/setup.py index 8a6ede057..92f7e494a 100644 --- a/setup.py +++ b/setup.py @@ -9,19 +9,19 @@ from setuptools import setup, Extension from setuptools.dist import Distribution requires = { - "install_requires": ["numpy"], - "setup_requires": ["numpy"] + "install_requires": ["numpy<2"], + "setup_requires": ["numpy<2"] } except ImportError: from distutils.core import setup from distutils.dist import Distribution from distutils.extension import Extension - requires = {"requires": ["numpy"]} - -lib_talib_name = 'ta_lib' # the underlying C library's name + requires = {"requires": ["numpy<2"]} platform_supported = False +lib_talib_name = 'ta_lib' # the name as of TA-Lib 0.4.0 + if any(s in sys.platform for s in ['darwin', 'linux', 'bsd', 'sunos']): platform_supported = True include_dirs = [ @@ -143,7 +143,7 @@ def build_extensions(self): setup( name='TA-Lib', - version='0.4.33', + version='0.4.38', description='Python wrapper for TA-Lib', long_description=long_description, long_description_content_type='text/markdown', diff --git a/talib/__init__.py b/talib/__init__.py index f215cd9e7..0403ced2f 100644 --- a/talib/__init__.py +++ b/talib/__init__.py @@ -132,7 +132,7 @@ def wrapper(*args, **kwds): setattr(stream, func_name, wrapped_func) globals()[stream_func_name] = wrapped_func -__version__ = '0.4.33' +__version__ = '0.4.38' # In order to use this python library, talib (i.e. this __file__) will be # imported at some point, either explicitly or indirectly via talib.func