Skip to content

Commit

Permalink
some minor changes/fixes
Browse files Browse the repository at this point in the history
- improved requirements parse function so as to receive filename as param
- generated and included requirements.txt for both tests/ and docs/
- included all requirements.txt files into MANIFEST.in #7
- updated release version from 0.6 to 0.7
- updated docs/ (make clean & make html)
  • Loading branch information
Alvaro Bartolome committed May 21, 2020
1 parent b4a45b9 commit 8692ea9
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 12 deletions.
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
include README.md
include requirements.txt
include docs/requirements.txt
include tests/requirements.txt
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ In order to get this package working you will need to install it using pip by ty

Or just install the current release or a specific release version such as:

``$ python -m pip install trendet==0.6``
``$ python -m pip install trendet==0.7``

## Usage

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
author = 'Alvaro Bartolome del Canto'

# The full version, including alpha/beta/rc tags
release = '0.6'
release = '0.7'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ In order to get this package working you will need to install it using pip by ty

Or just install the current release or a specific release version such as::

$ python -m pip install trendet==0.6
$ python -m pip install trendet==0.7
3 changes: 3 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sphinx==2.4.4
sphinx_rtd_theme==0.4.3
recommonmark==0.6.0
2 changes: 1 addition & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Identify All Trends of investpy DataFrame
-----------------------------------------

Additionally **trendet** allows the user to identify/detect all the up and down trends on the market
via the function ``identify_all_trends`` which has been included in 0.6 release. So on, the sample code for
via the function ``identify_all_trends`` which has been included in 0.7 release. So on, the sample code for
its usage is as follows:

.. code-block:: python
Expand Down
21 changes: 14 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@ def readme():
with io.open('README.md', encoding='utf-8') as f:
return f.read()

def requirements():
def requirements(filename):
reqs = list()
with io.open('requirements.txt', encoding='utf-8') as f:
with io.open(filename, encoding='utf-8') as f:
for line in f.readlines():
reqs.append(line.strip())
return reqs


setup(
name='trendet',
version='0.6',
version='0.7',
packages=find_packages(),
url='https://github.com/alvarobartt/trendet',
download_url='https://github.com/alvarobartt/trendet/archive/0.6.tar.gz',
download_url='https://github.com/alvarobartt/trendet/archive/0.7.tar.gz',
license='MIT License',
author='Alvaro Bartolome',
author_email='alvarob96@usal.es',
description='trendet - Trend detection on stock time series data',
description='Trend detection on stock time series data',
long_description=readme(),
long_description_content_type='text/markdown',
install_requires=requirements(),
install_requires=requirements(filename="requirements.txt"),
include_package_data=True,
classifiers=[
"Development Status :: 4 - Beta",
Expand All @@ -44,8 +44,15 @@ def requirements():
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Software Development :: Libraries",
],
keywords='trend detection, stock analysis, stock, trend analysis',
keywords=', '.join([
"trend detection", "stock analysis", "stock", "trend analysis",
"stock trends", "financial trends"
]),
python_requires='>=3',
extras_require={
"tests": requirements(filename='tests/requirements.txt'),
"docs": requirements(filename='docs/requirements.txt')
},
project_urls={
'Bug Reports': 'https://github.com/alvarobartt/trendet/issues',
'Source': 'https://github.com/alvarobartt/trendet',
Expand Down
4 changes: 4 additions & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pytest
codecov
pytest-codecov
investpy>=0.9.14
2 changes: 1 addition & 1 deletion trendet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# See LICENSE for details.

__author__ = 'Alvaro Bartolome @ alvarobartt on GitHub'
__version__ = '0.6'
__version__ = '0.7'

from .identification import identify_trends, identify_all_trends, identify_df_trends

0 comments on commit 8692ea9

Please sign in to comment.