Skip to content

Commit

Permalink
Merge pull request #281 from alvarobartt/dev
Browse files Browse the repository at this point in the history
Minor bug fixes & 1.0.1 release
  • Loading branch information
Álvaro Bartolomé authored Jan 31, 2021
2 parents 47d2b80 + 39a877d commit bdf7a66
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python package
name: run_tests

on: [push]

Expand All @@ -8,7 +8,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v1
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ investpy seeks to be one of the most complete Python packages when it comes to f

## Installation

In order to get this package working you will need to **install it via pip** (with a Python3.5 version or higher) on the terminal by typing:
In order to get this package working you will need to **install it via pip** (with a Python 3.6 version or higher) on the terminal by typing:

``$ pip install investpy``

Expand Down Expand Up @@ -147,7 +147,7 @@ When citing this repository on your publications please use the following **BibT
@misc{investpy,
author = {Alvaro Bartolome del Canto},
title = {investpy - Financial Data Extraction from Investing.com with Python},
year = {2018-2020},
year = {2018-2021},
publisher = {GitHub},
journal = {GitHub Repository},
howpublished = {\url{https://github.com/alvarobartt/investpy}},
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Alvaro Bartolome del Canto'

# The full version, including alpha/beta/rc tags
release = '1.1.0'
release = '1.0.1'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion investpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See LICENSE for details.

__author__ = 'Alvaro Bartolome @ alvarobartt in GitHub'
__version__ = '1.1.0'
__version__ = '1.0.1'

from .stocks import get_stocks, get_stocks_list, get_stocks_dict, get_stock_countries, get_stock_recent_data, \
get_stock_historical_data, get_stock_company_profile, get_stock_dividends, get_stock_information, get_stocks_overview, \
Expand Down
1 change: 1 addition & 0 deletions investpy/utils/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
}

INTERVAL_FILTERS = {
'1min': 60,
'5mins': 60*5,
'15mins': 60*15,
'30mins': 60*30,
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ def requirements(filename):

setup(
name='investpy',
version='1.1.0',
version='1.0.1',
packages=find_packages(),
url='https://investpy.readthedocs.io/',
download_url='https://github.com/alvarobartt/investpy/archive/1.1.0.tar.gz',
download_url='https://github.com/alvarobartt/investpy/archive/1.0.1.tar.gz',
license='MIT License',
author='Alvaro Bartolome',
author_email='alvarobdc@yahoo.com',
Expand All @@ -35,10 +35,10 @@ def requirements(filename):
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Topic :: Office/Business :: Financial",
Expand Down
29 changes: 12 additions & 17 deletions tests/test_investpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,33 +1316,28 @@ def test_investpy_news():

for param in params:
investpy.economic_calendar(time_zone=param['time_zone'],
time_filter=param['time_filter'],
countries=param['countries'],
importances=param['importances'],
categories=param['categories'],
from_date=param['from_date'],
to_date=param['to_date'])
time_filter=param['time_filter'],
countries=param['countries'],
importances=param['importances'],
categories=param['categories'],
from_date=param['from_date'],
to_date=param['to_date'])


def test_investpy_technical():
"""
This function checks that investpy news retrieval functionality works as expected.
"""

params = [
{
params = list()

for interval in list(investpy.utils.constant.INTERVAL_FILTERS.keys()):
params.append({
'name': 'bbva',
'country': 'spain',
'product_type': 'stock',
'interval': 'weekly',
},
{
'name': 'bbva mi inversion rf mixta fi',
'country': 'spain',
'product_type': 'fund',
'interval': 'daily',
},
]
'interval': interval
})

for param in params:
investpy.technical_indicators(name=param['name'],
Expand Down

0 comments on commit bdf7a66

Please sign in to comment.