Switch from distutils to setuptools

This commit is contained in:
Michal Krenek (Mikos) 2015-04-26 22:16:21 +02:00
parent d585669661
commit f5d97fab80
4 changed files with 49 additions and 32 deletions

View File

@ -1,2 +1,5 @@
include LICENSE include LICENSE
include README.rst include README.rst
include qspectrumanalyzer.desktop
include qspectrumanalyzer.png
include qspectrumanalyzer.svg

View File

@ -7,6 +7,7 @@ arch=('any')
url="https://github.com/xmikos/qspectrumanalyzer" url="https://github.com/xmikos/qspectrumanalyzer"
license=('GPL3') license=('GPL3')
depends=('python-pyqt4' 'python-pyqtgraph' 'rtl-sdr') depends=('python-pyqt4' 'python-pyqtgraph' 'rtl-sdr')
makedepends=('python-setuptools')
source=(https://github.com/xmikos/qspectrumanalyzer/archive/v$pkgver.tar.gz) source=(https://github.com/xmikos/qspectrumanalyzer/archive/v$pkgver.tar.gz)
build() { build() {

View File

@ -1,4 +0,0 @@
#!/usr/bin/env python
from qspectrumanalyzer import __main__
__main__.main()

View File

@ -1,9 +1,10 @@
#!/usr/bin/env python #!/usr/bin/env python
from distutils.core import setup from setuptools import setup
from qspectrumanalyzer.version import __version__ from qspectrumanalyzer.version import __version__
setup(name="QSpectrumAnalyzer", setup(
name="QSpectrumAnalyzer",
version=__version__, version=__version__,
description="Spectrum analyzer for RTL-SDR (GUI for rtl_power based on PyQtGraph)", description="Spectrum analyzer for RTL-SDR (GUI for rtl_power based on PyQtGraph)",
author="Michal Krenek (Mikos)", author="Michal Krenek (Mikos)",
@ -11,22 +12,38 @@ setup(name="QSpectrumAnalyzer",
url="https://github.com/xmikos/qspectrumanalyzer", url="https://github.com/xmikos/qspectrumanalyzer",
license="GNU GPLv3", license="GNU GPLv3",
packages=["qspectrumanalyzer"], packages=["qspectrumanalyzer"],
data_files=[("share/applications", ["qspectrumanalyzer.desktop"]), package_data={
("share/pixmaps", ["qspectrumanalyzer.png"])], "qspectrumanalyzer": [
scripts=["scripts/qspectrumanalyzer"], "*.ui",
requires=["PyQt4", "pyqtgraph"], "languages/*.qm",
"languages/*.ts"
]
},
data_files=[
("share/applications", ["qspectrumanalyzer.desktop"]),
("share/pixmaps", ["qspectrumanalyzer.png"])
],
entry_points={
"gui_scripts": [
"qspectrumanalyzer=qspectrumanalyzer.__main__:main"
],
},
install_requires=[
"pyqtgraph"
],
classifiers=[ classifiers=[
'Development Status :: 4 - Beta', "Development Status :: 4 - Beta",
'Environment :: MacOS X', "Environment :: MacOS X",
'Environment :: Win32 (MS Windows)', "Environment :: Win32 (MS Windows)",
'Environment :: X11 Applications :: Qt', "Environment :: X11 Applications :: Qt",
'Intended Audience :: End Users/Desktop', "Intended Audience :: End Users/Desktop",
'Intended Audience :: Science/Research', "Intended Audience :: Science/Research",
'Intended Audience :: Telecommunications Industry', "Intended Audience :: Telecommunications Industry",
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
'Natural Language :: English', "Natural Language :: English",
'Operating System :: OS Independent', "Operating System :: OS Independent",
'Programming Language :: Python :: 3', "Programming Language :: Python :: 3",
'Topic :: Communications :: Ham Radio', "Topic :: Communications :: Ham Radio",
'Topic :: Scientific/Engineering :: Visualization' "Topic :: Scientific/Engineering :: Visualization"
]) ]
)