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

Support Python 3.9 #48

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
31091a0
Update requirement and travis.
cryptocoinserver Nov 14, 2020
7f8eb82
Update travis.
cryptocoinserver Nov 14, 2020
3382534
Update travis.
cryptocoinserver Nov 14, 2020
a497714
Remove appveyor.
cryptocoinserver Nov 14, 2020
6357413
Update Readme and setup.py
cryptocoinserver Nov 14, 2020
8500c93
Update travis
cryptocoinserver Nov 14, 2020
880af3d
Update travis
cryptocoinserver Nov 14, 2020
5535247
Update travis
cryptocoinserver Nov 14, 2020
2917e7e
Update travis
cryptocoinserver Nov 14, 2020
ce9e6c6
Update readme.
cryptocoinserver Nov 14, 2020
544fdbf
Update readme.
cryptocoinserver Nov 14, 2020
3a7a6b4
Update travis.
cryptocoinserver Nov 14, 2020
d4dc07d
Remove mac from CIBW. Because of Polyfit error.
cryptocoinserver Nov 14, 2020
8d0a509
Remove 3.5 because EOL.
cryptocoinserver Nov 15, 2020
3d2e591
Bump version.
cryptocoinserver Nov 15, 2020
fcaa943
Only exclude pp macosx from build.
cryptocoinserver Nov 15, 2020
526c4dd
Switch to python3
cryptocoinserver Dec 6, 2020
dbae8bb
Update .travis.yml
cryptocoinserver Dec 6, 2020
a5934d0
Update requirements.txt
cryptocoinserver Jan 21, 2021
344a15c
Update setup.py
cryptocoinserver Jan 21, 2021
4bf3c93
Update numpy
cryptocoinserver Jan 21, 2021
03ab5cc
Update setup.py
cryptocoinserver Jan 21, 2021
7b9b43f
Cache pip
cryptocoinserver Jan 21, 2021
f677ea8
Update requirements.txt
cryptocoinserver May 18, 2021
e661acf
Drop 3.6
cryptocoinserver May 18, 2021
e9d066a
Update setup.py
cryptocoinserver May 18, 2021
514ff19
Update .travis.yml
cryptocoinserver May 18, 2021
f49677f
Update .travis.yml
cryptocoinserver May 31, 2021
509710c
Update .travis.yml
cryptocoinserver May 31, 2021
9182f54
Update setup.py
cryptocoinserver May 31, 2021
f76e77e
create pyup.io config file
pyup-bot Jul 15, 2021
79f03b0
Merge pull request #1 from cryptocoinserver/pyup-config
cryptocoinserver Jul 15, 2021
8305cdf
Update .pyup.yml
cryptocoinserver Jul 15, 2021
ba30bec
Update requirements.txt
cryptocoinserver Jul 15, 2021
35f6a62
Use python 3 and right cython version.
cryptocoinserver Jul 15, 2021
5f8f312
Update setup.py
cryptocoinserver Jul 15, 2021
1cba7c5
Update setup.py
cryptocoinserver Jul 15, 2021
c8e1852
Update cibuildwheel
cryptocoinserver Jul 15, 2021
c7d1d24
Update README.md
cryptocoinserver Jul 15, 2021
10f6ee1
Delete setup.cfg
cryptocoinserver Jul 15, 2021
d3e58e9
Delete pyproject.toml
cryptocoinserver Jul 15, 2021
4cdd9a2
Delete MANIFEST.in
cryptocoinserver Jul 15, 2021
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
5 changes: 5 additions & 0 deletions .pyup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# autogenerated pyup.io config file
# see https://pyup.io/docs/configuration/ for all available options

schedule: 'every week'
update: all
100 changes: 82 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,84 @@
# In this configuration, the package is tested against multiple versions of python
# on Linux and on one version of Python on Windows. If and only if all tests pass
# will the wheels be built and deployed. Further, deployment is only initiated if
# the current branch is "master", the current commit is tagged, and the current
# repo is yours (e.g. it won't run on a Pull Request). For convenience, a source
# distribution is also created.

language: python
matrix:
include:
- python: 2.7
- python: 3.6
- python: 3.7
dist: xenial
sudo: true
dist: bionic
cache: pip
python:
- 3.7
- 3.8
- 3.9

before_install:
- |
if [[ "$TRAVIS_OS_NAME" = windows ]]; then
choco install python --version 3.8.0
export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
# make sure it's on PATH as 'python3'
ln -s /c/Python38/python.exe /c/Python38/python3.exe
fi
install:
- pip install --upgrade pip setuptools wheel
- pip install --only-binary=Cython,numpy -r requirements.txt
script: make test
deploy:
provider: pypi
user: cirla
password:
secure: o/piwKMYiR38V4HF4w/Wt5fj5Xqrmu+B9Rn2q/SGAtIxhURgg+nUS9O2cBgJalcs8W0Y33EZUA2Psky321FCyRUrQ/ohPMY8Dkc3gnMdFr9lM7EsFhJT+5Awbzyi/7Y/tjussxtbsVaWnLmXibWCWnbo+iZwbxDhV+zZJA08hTddvhcJpyXWyBdY0Q7eqe78wgUphUuLoEKT/9YDHqIEqYP8QBR2A22RaLzvVBRUg6qhed12TaDSY5kwfJrdwWVURlzHwcsZq63pxjrWKIdJBzusGxbMRNIwU0lo8V+xDwMrOM+KVEAhJ9eMnmuMf4estYw3s+L9A/AGnYJRupGHcUCKZaNua0w7lBUJbHq4irCT4sEmV521ZoiThx+lhqN1kqdvj/yz4Qn+MgBhytqI65CXD4o3u1rXDQnA0IS9vLuVjhGyPZhchW90gd8n/MHSKF4jsR4HSYB9MNeD4sy1Ksz15C0/acfy/c4qpKiV9vc4C7M++Y4uOxxmqj4UiBM2OiWJ7wHmFUAn1+qDED5hzLVrO3o0tR48S/o6AUL4DpWENz1ZQ/OsJEBAm63VyAqGUxQFSrmzBmvjEbaWTCnYJFLsMkg3SXfmFmKFEtsRezWyJkpM4DzjoXOFfTL+W9U1SABfvK6EQIujfMvCQ3aycKciX/M0wPp83xVYCXHpDgI=
distributions: sdist bdist_wheel
on:
tags: true
- python3 -m pip install --only-binary=Cython,numpy -r requirements.txt

script:
- make test

stages:
- test
# Only execute deployment stage on tagged commits, and from your repository
# (e.g. not PRs). Replace with your repo name.
- name: deploy
if: tag IS PRESENT AND repo = cryptocoinserver/tulipy

jobs:
include:

# Deploy source distribution
- stage: deploy
name: Deploy source distribution
install: pip install -r requirements.txt
script: python3 setup.py sdist --formats=gztar
after_success: |
python3 -m pip install twine
python3 -m twine upload --skip-existing dist/*.tar.gz
# Deploy on linux
- stage: deploy
name: Build and deploy Linux wheels
services: docker
install: python3 -m pip install cibuildwheel==1.12.0
script: python3 -m cibuildwheel --output-dir wheelhouse
after_success: |
python3 -m pip install twine
python3 -m twine upload --skip-existing wheelhouse/*.whl
# Deploy on mac
- stage: deploy
name: Build and deploy macOS wheels
os: osx
# PyPy 7.3.2 needs macOS >= 10.14
osx_image: xcode10.2
language: shell
install: python3 -m pip install cibuildwheel==1.12.0
script: python3 -m cibuildwheel --output-dir wheelhouse
after_success: |
python3 -m pip install twine
python3 -m twine upload --skip-existing wheelhouse/*.whl
# Deploy on windows
- stage: deploy
name: Build and deploy Windows wheels
os: windows
language: shell
install: python3 -m pip install cibuildwheel==1.12.0
script: python3 -m cibuildwheel --output-dir wheelhouse
after_success: |
python3 -m pip install twine
python3 -m twine upload --skip-existing wheelhouse/*.whl
env:
global:
- TWINE_USERNAME=__token__
# Note: TWINE_PASSWORD is set to a PyPI API token in Travis settings
- CIBW_SKIP="cp27-* cp35-* pp27-*"
- CIBW_ARCHS_MACOS="x86_64 universal2 arm64"
4 changes: 0 additions & 4 deletions MANIFEST.in

This file was deleted.

6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build:
python setup.py build_ext --inplace
python3 setup.py build_ext --inplace

clean:
rm -rf ./build ./dist \
Expand All @@ -8,8 +8,8 @@ clean:
./*.egg-info

install:
python setup.py install
python3 setup.py install

test: install
python tests/test.py
python3 tests/test.py

18 changes: 16 additions & 2 deletions README.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
"collapsed": true
},
"source": [
"[![Build Status](https://travis-ci.org/cryptocoinserver/tulipy.svg?branch=master)](https://travis-ci.org/cryptocoinserver/tulipy)\n",
"\n",
"I forked the original repo to add support for 3.9.\n",
"It's on pip. Use `pip install newtulipy`.\n",
"\n",
"# tulipy\n",
"\n",
"## Python bindings for [Tulip Indicators](https://tulipindicators.org/)\n",
Expand All @@ -14,7 +19,7 @@
"\n",
"## Installation\n",
"\n",
"You can install via `pip install tulipy`.\n",
"You can install via `pip install newtulipy`.\n",
"If a wheel is not available for your system, you will need to `pip install Cython numpy` to build from the source distribution.\n",
"\n",
"## Usage"
Expand Down Expand Up @@ -334,8 +339,17 @@
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.0"
},
"pycharm": {
"stem_cell": {
"cell_type": "raw",
"source": [],
"metadata": {
"collapsed": false
}
}
}
},
"nbformat": 4,
"nbformat_minor": 2
}
}
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[![Build Status](https://travis-ci.org/cirla/tulipy.svg?branch=master)](https://travis-ci.org/cirla/tulipy)
[![Build status](https://ci.appveyor.com/api/projects/status/g34af6ti605e2q4h?svg=true)](https://ci.appveyor.com/project/cirla/tulipy)
[![Build Status](https://travis-ci.com/cryptocoinserver/tulipy.svg?branch=master)](https://travis-ci.com/cryptocoinserver/tulipy)

I forked the original repo to add support for 3.9.
It's on pip. Use `pip install newtulipy`.

# tulipy

Expand All @@ -9,7 +11,7 @@ Tulipy requires [numpy](http://www.numpy.org/) as all inputs and outputs are num

## Installation

You can install via `pip install tulipy`.
You can install via `pip install newtulipy`.
If a wheel is not available for your system, you will need to `pip install Cython numpy` to build from the source distribution.
When building from source on Windows, you will need the Microsoft Visual C++ Build Tools installed.

Expand Down
25 changes: 0 additions & 25 deletions appveyor.yml

This file was deleted.

4 changes: 2 additions & 2 deletions gen/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
all: gen

build:
python setup.py build_ext --inplace
python3 setup.py build_ext --inplace

gen: build
python gen.py --output-dir='../tulipy'
python3 gen.py --output-dir='../tulipy'

clean:
rm -rf ./build ./*.c ./*.so
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml

This file was deleted.

3 changes: 0 additions & 3 deletions requirements.in

This file was deleted.

10 changes: 2 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile
#
cython==0.28.5
numpy==1.15.1
cython~=0.29.24
numpy~=1.21.0
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
]

setup(
name='tulipy',
name='newtulipy',
description='Financial Technical Analysis Indicator Library. Python bindings for https://github.com/TulipCharts/tulipindicators',
long_description=long_description,
long_description_content_type='text/markdown; charset=UTF-8',
version='0.4.0',
url='https://github.com/cirla/tulipy',
author='https://github.com/cirla/tulipy/blob/master/AUTHORS',
version='0.4.6.2',
url='https://github.com/cryptocoinserver/tulipy',
author='https://travis-ci.org/cryptocoinserver/tulipy/blob/master/AUTHORS',
license='LGPL-3.0',
cmdclass={'build_ext': build_ext},
ext_modules=ext_modules,
Expand All @@ -36,7 +36,6 @@
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Cython',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Office/Business :: Financial',
'Topic :: Scientific/Engineering :: Information Analysis',
Expand Down