Add support for setuptools_scm, fix some import issues

This commit is contained in:
Raoul Snyman 2021-06-17 10:03:18 -07:00
parent 248eda331c
commit 7304fa15cb
5 changed files with 14 additions and 4 deletions

3
.gitignore vendored
View File

@ -1,2 +1,5 @@
__pycache__
*.py[cd]
*.egg-info
build
dist

View File

@ -1,6 +1,6 @@
from PyQt5 import QtWidgets
from ui_settingsdialog import UiSettingsDialog
from playtypus.ui_settingsdialog import UiSettingsDialog
class SettingsDialog(QtWidgets.QDialog, UiSettingsDialog):

6
pyproject.toml Normal file
View File

@ -0,0 +1,6 @@
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = playtypus/version.py

View File

@ -1,6 +1,5 @@
[metadata]
name = Playtypus
version = 0.1.0
description = A desktop client for Funkwhale
long_description = file: README.rst
long_description_content_type = text/x-rst
@ -8,7 +7,9 @@ long_description_content_type = text/x-rst
[options]
packages =
playtypus
install_requirements =
setup_requires =
setuptools_scm
install_requires =
PyQt5
requests
funksnake

View File

@ -1,3 +1,3 @@
from setuptools import setup
setup()
setup(use_scm_version=True)