Skip to content

Commit

Permalink
fixed version issue
Browse files Browse the repository at this point in the history
  • Loading branch information
HurinHu committed Jul 7, 2022
1 parent 871b193 commit a091a5f
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 189 deletions.
40 changes: 33 additions & 7 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,36 @@
# This workflow will upload a Python Package using Twine when a release is created
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: GitHub Action

on:
release:
types: [created]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: GitHub Action

Expand All @@ -18,9 +44,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
1 change: 0 additions & 1 deletion Reuters.egg-info/dependency_links.txt

This file was deleted.

1 change: 0 additions & 1 deletion Reuters.egg-info/top_level.txt

This file was deleted.

2 changes: 1 addition & 1 deletion Reuters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def __init__(self, symbol):
self.res = self.get('https://www.reuters.com/markets/companies/'+self.symbol)

def getVersion(self):
return '1.2.0'
return '1.2.1'

def get(self, url):
res = requests.get(url, headers={'Connection': 'keep-alive',
Expand Down
89 changes: 0 additions & 89 deletions build/lib/Reuters/Reuters.py

This file was deleted.

89 changes: 0 additions & 89 deletions build/lib/Reuters/__init__.py

This file was deleted.

Binary file removed dist/Reuters-1.1.0-py3-none-any.whl
Binary file not shown.
Binary file removed dist/Reuters-1.1.0.tar.gz
Binary file not shown.
Binary file removed dist/Reuters-1.1.1.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="Reuters",
version="1.2.0",
version="1.2.1",
author="Hurin Hu",
author_email="[email protected]",
description="Reuters ticker information retriever for Python",
Expand Down

0 comments on commit a091a5f

Please sign in to comment.