Potentially fixed pyproject-based build and upload

This commit is contained in:
krateng 2021-12-31 07:06:42 +01:00
parent 21d1643988
commit eff806bd73
4 changed files with 7 additions and 6 deletions

View File

@ -19,11 +19,10 @@ jobs:
python-version: '3.x'
- name: Install dependencies
run: pip install build setuptools toml wheel
run: pip install build
- name: Build package
#run: python -m build
run: python setup.py sdist bdist_wheel
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

View File

@ -1,6 +1,5 @@
[project]
name = "maloja"
pypi_name = "malojaserver"
name = "malojaserver"
version = "2.14.5"
description = "Self-hosted music scrobble database"
readme = "./README.md"
@ -38,3 +37,6 @@ maloja = "maloja.proccontrol.control:main"
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[tool.flit.module]
name = "maloja"

View File

@ -12,7 +12,7 @@ with open(projectdata['readme'], "r") as fh:
long_description = fh.read()
setuptools.setup(
name=projectdata.get('pypi_name') or projectdata['name'],
name=projectdata['name'],
version=projectdata['version'],
author=projectdata['authors'][0]['name'],
author_email=projectdata['authors'][0]['email'],