Skip to content

Commit cf91974

Browse files
committed
Make newer style package target and run in tests
Signed-off-by: mulhern <amulhern@redhat.com>
1 parent b7df23d commit cf91974

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/weekly.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
task: make -f Makefile yamllint
1919
- dependencies: pylint python3-into-dbus-python
2020
task: PYTHONPATH=./src make -f Makefile lint
21+
- dependencies: python python3-build twine
22+
task: package
2123
runs-on: ubuntu-latest
2224
container: fedora:37 # NEXT DEVELOPMENT ENVIRONMENT
2325
steps:

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ coverage:
2424
coverage run --timid --branch -m unittest discover tests
2525
coverage report -m --fail-under=100 --show-missing --include="./src/*"
2626

27-
.PHONY: upload-release
28-
upload-release:
29-
python setup.py register sdist upload
30-
3127
PYREVERSE_OPTS = --output=pdf
3228
.PHONY: view
3329
view:
@@ -40,3 +36,7 @@ view:
4036
.PHONY: yamllint
4137
yamllint:
4238
yamllint --strict .github/workflows/main.yml
39+
40+
.PHONY: package
41+
package:
42+
(umask 0022; python -m build; python -m twine check --strict ./dist/*)

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def local_file(name):
2929
author_email="amulhern@redhat.com",
3030
description="transforms values into properly wrapped dbus-python objects",
3131
long_description=long_description,
32+
long_description_content_type="text/x-rst",
3233
platforms=["Linux"],
3334
license="MPL-2.0",
3435
classifiers=[

0 commit comments

Comments
 (0)