mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Potentially fixed pyproject-based build and upload
This commit is contained in:
parent
21d1643988
commit
eff806bd73
5
.github/workflows/pypi.yml
vendored
5
.github/workflows/pypi.yml
vendored
@ -19,11 +19,10 @@ jobs:
|
|||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pip install build setuptools toml wheel
|
run: pip install build
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
#run: python -m build
|
run: python -m build
|
||||||
run: python setup.py sdist bdist_wheel
|
|
||||||
|
|
||||||
- name: Publish to PyPI
|
- name: Publish to PyPI
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "maloja"
|
name = "malojaserver"
|
||||||
pypi_name = "malojaserver"
|
|
||||||
version = "2.14.5"
|
version = "2.14.5"
|
||||||
description = "Self-hosted music scrobble database"
|
description = "Self-hosted music scrobble database"
|
||||||
readme = "./README.md"
|
readme = "./README.md"
|
||||||
@ -38,3 +37,6 @@ maloja = "maloja.proccontrol.control:main"
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["flit_core >=3.2,<4"]
|
requires = ["flit_core >=3.2,<4"]
|
||||||
build-backend = "flit_core.buildapi"
|
build-backend = "flit_core.buildapi"
|
||||||
|
|
||||||
|
[tool.flit.module]
|
||||||
|
name = "maloja"
|
||||||
|
2
setup.py
2
setup.py
@ -12,7 +12,7 @@ with open(projectdata['readme'], "r") as fh:
|
|||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name=projectdata.get('pypi_name') or projectdata['name'],
|
name=projectdata['name'],
|
||||||
version=projectdata['version'],
|
version=projectdata['version'],
|
||||||
author=projectdata['authors'][0]['name'],
|
author=projectdata['authors'][0]['name'],
|
||||||
author_email=projectdata['authors'][0]['email'],
|
author_email=projectdata['authors'][0]['email'],
|
||||||
|
Loading…
Reference in New Issue
Block a user