diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 67fd36a..1abee26 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -19,10 +19,11 @@ jobs: python-version: '3.x' - name: Install dependencies - run: pip install build + run: pip install build setuptools - name: Build package - run: python -m build + #run: python -m build + run: python setup.py sdist bdist_wheel - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/pyproject.toml b/pyproject.toml index 420ad20..73bc1d1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,7 @@ [project] name = "maloja" -version = "2.14.0" +pypi_name = "malojaserver" +version = "2.14.1" description = "Self-hosted music scrobble database" readme = "./README.md" requires-python = ">=3.6" diff --git a/setup.py b/setup.py index 2a7bda0..4f4ca2f 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ with open(projectdata['readme'], "r") as fh: long_description = fh.read() setuptools.setup( - name=projectdata['name'], + name=projectdata.get('pypi_name') or projectdata['name'], version=projectdata['version'], author=projectdata['authors'][0]['name'], author_email=projectdata['authors'][0]['email'],