Skip to content

Commit 0b45296

Browse files
committed
Update and cleanup
1 parent 6d66f44 commit 0b45296

19 files changed

+466
-532
lines changed

.github/FUNDING.yml

-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
# These are supported funding model platforms
2-
31
github: [areed1192]
42
patreon: sigmacoding
5-
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/codeql-analysis.yml

-62
This file was deleted.

.github/workflows/python-package.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525

26-
- name: Install Dependencies from Requirements File.
26+
- name: Install Dependencies from requirements.txt File.
2727
run: |
2828
python -m pip install --upgrade pip
2929
pip install flake8 pytest
3030
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3131
32-
- name: Lint with flake8.
32+
- name: Lint with flake8
3333
run: |
3434
# stop the build if there are Python syntax errors or undefined names
3535
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
@@ -39,4 +39,5 @@ jobs:
3939
4040
- name: Test with Unittest.
4141
run: |
42-
if [ -f tests/test_client.py ]; then python -m unittest tests/test_client.py; fi
42+
# If we have a testing folder, then run with unittest.
43+
if [ -f tests/test_clients.py ]; then python -m unittest tests/test_client.py; fi

.github/workflows/python-publish.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: Upload Python Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up Python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: "3.9"
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install setuptools wheel twine
24+
- name: Publish to TestPyPI
25+
env:
26+
TWINE_USERNAME: "__token__"
27+
TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
28+
run: |
29+
python setup.py sdist bdist_wheel
30+
twine upload --repository testpypi --verbose dist/*
31+
- name: Publish to PyPI
32+
env:
33+
TWINE_USERNAME: "__token__"
34+
TWINE_PASSWORD: ${{ secrets.pypi_token }}
35+
run: |
36+
python setup.py sdist bdist_wheel
37+
twine upload --verbose dist/*

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
## Overview
1111

12-
Current Version: **0.1.1**
12+
Current Version: **0.1.2**
1313

1414
Investors use news articles to gain an idea of market sentiment and hopefully
1515
be able to predict the direction of markets based on the sentiment of these

0 commit comments

Comments
 (0)