Skip to content

Commit 22e21ab

Browse files
committed
Packaging fixes
1 parent daeade7 commit 22e21ab

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

.github/workflows/python.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install dependencies
2121
run: |
2222
python -m pip install --upgrade pip
23-
pip install ruff
23+
pip install ruff twine
2424
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
2525
2626
- name: Lint
@@ -31,3 +31,8 @@ jobs:
3131
- name: Test
3232
run: |
3333
python -m unittest discover -s ./tests -p 'test_*.py'
34+
35+
- name: Package
36+
run: |
37+
python -m build
38+
python -m twine check dist/*

setup.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,19 @@
44
from distutils.core import setup
55

66
setup(
7-
name = 'karcher',
8-
packages = ['karcher'],
7+
name='karcher',
8+
packages=['karcher'],
99
include_package_data=True,
10-
version = '0.1',
10+
version='0.1',
1111
license='MIT',
12-
description = 'Kärcher Home Robots client',
13-
author = 'Lauris BH',
14-
author_email = '[email protected]',
15-
url = 'https://github.com/lafriks/karcher',
16-
download_url = 'https://github.com/lafriks/karcher/archive/v_0.1.tar.gz',
12+
description='Kärcher Home Robots client',
13+
long_description=open('README.md').read(),
14+
long_description_content_type='text/markdown',
15+
author='Lauris BH',
16+
author_email='[email protected]',
17+
url='https://github.com/lafriks/karcher',
18+
download_url='https://github.com/lafriks/karcher/archive/v0.1.tar.gz',
19+
platforms='any',
1720
install_requires=[
1821
'requests',
1922
'tzlocal',

0 commit comments

Comments
 (0)