python: drop unnecessary parts of setup.py

pull/919/head
matejcik 4 years ago
parent 6ccf22225c
commit fabd504b77

@ -1,9 +1,8 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import os.path import os.path
import re import re
from distutils.errors import DistutilsError
from setuptools import Command, find_packages, setup from setuptools import find_packages, setup
install_requires = [ install_requires = [
"setuptools>=19.0", "setuptools>=19.0",
@ -35,20 +34,6 @@ def find_version():
raise RuntimeError("Version string not found") raise RuntimeError("Version string not found")
class PrebuildCommand(Command):
description = "Deprecated. Run 'make gen' instead."
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
raise DistutilsError(self.description)
setup( setup(
name="trezor", name="trezor",
version=find_version(), version=find_version(),
@ -58,7 +43,7 @@ setup(
description="Python library for communicating with Trezor Hardware Wallet", description="Python library for communicating with Trezor Hardware Wallet",
long_description="{}\n\n{}".format(read("README.md"), read("CHANGELOG.md")), long_description="{}\n\n{}".format(read("README.md"), read("CHANGELOG.md")),
long_description_content_type="text/markdown", long_description_content_type="text/markdown",
url="https://github.com/trezor/python-trezor", url="https://github.com/trezor/trezor-firmware/tree/master/python",
packages=find_packages("src"), packages=find_packages("src"),
package_dir={"": "src"}, package_dir={"": "src"},
entry_points={"console_scripts": ["trezorctl=trezorlib.cli.trezorctl:cli"]}, entry_points={"console_scripts": ["trezorctl=trezorlib.cli.trezorctl:cli"]},
@ -77,5 +62,4 @@ setup(
"Operating System :: MacOS :: MacOS X", "Operating System :: MacOS :: MacOS X",
"Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3 :: Only",
], ],
cmdclass={"prebuild": PrebuildCommand},
) )

Loading…
Cancel
Save