Skip to content

Commit 1002987

Browse files
authored
❇️ Minor package refresh to keep things up and running (#22)
* ❇️ Minor package refresh to keep up and running * Add setup.cfg * 🔧 Python 3.10 readiness * 🔧 Set universal wheel (enabled)
1 parent d587d8e commit 1002987

File tree

8 files changed

+82
-26
lines changed

8 files changed

+82
-26
lines changed

.github/workflows/python-publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: '3.x'
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install setuptools wheel twine
25+
- name: Build and publish
26+
env:
27+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
29+
run: |
30+
python setup.py sdist bdist_wheel
31+
twine upload dist/*

.github/workflows/run-tests.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
tests:
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, "3.10.0-rc.1"]
13+
os: [ubuntu-latest]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
pip install -U pip setuptools
24+
pip install -r dev-requirements.txt
25+
- name: Install the package
26+
run: |
27+
python setup.py install
28+
- name: Run tests
29+
run: |
30+
pytest
31+
- uses: codecov/codecov-action@v1

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

dev-requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Faker
2+
pytest
3+
pytest-cov
4+
codecov

setup.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[tool:pytest]
2+
addopts = --cov=telium --cov-report=term-missing -rxXs
3+
4+
[bdist_wheel]
5+
universal=1

setup.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,13 @@ def get_version():
3434
packages=['telium'],
3535
test_suite='test',
3636
url='https://github.com/Ousret/pyTeliumManager',
37-
download_url='https://github.com/Ousret/pyTeliumManager/archive/2.4.1.tar.gz',
38-
install_requires=['pyserial>=3.3', 'pycountry>=17.0', 'payment_card_identifier>=0.1.2', 'six'],
39-
tests_require=['Faker'],
37+
install_requires=[
38+
'pyserial>=3.3',
39+
'pycountry>=17.0,<18.5.20',
40+
'payment_card_identifier>=0.1.2',
41+
'six'
42+
],
43+
tests_require=['Faker', 'pytest'],
4044
keywords=['ingenico', 'telium manager', 'telium', 'payment', 'credit card', 'debit card', 'visa', 'mastercard',
4145
'merchant', 'pos'],
4246
classifiers=[
@@ -57,6 +61,8 @@ def get_version():
5761
'Programming Language :: Python :: 3.5',
5862
'Programming Language :: Python :: 3.6',
5963
'Programming Language :: Python :: 3.7',
60-
'Programming Language :: Python :: 3.8'
64+
'Programming Language :: Python :: 3.8',
65+
'Programming Language :: Python :: 3.9',
66+
'Programming Language :: Python :: 3.10',
6167
]
6268
)

telium/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
Expose version
33
"""
44

5-
__version__ = "2.4.1"
5+
__version__ = "2.4.2"
66
VERSION = __version__.split('.')

test/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)