1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-17 21:22:10 +00:00

python: drop unnecessary parts of setup.py

This commit is contained in:
matejcik 2020-03-04 13:40:10 +01:00
parent 6ccf22225c
commit fabd504b77

View File

@ -1,9 +1,8 @@
#!/usr/bin/env python3
import os.path
import re
from distutils.errors import DistutilsError
from setuptools import Command, find_packages, setup
from setuptools import find_packages, setup
install_requires = [
"setuptools>=19.0",
@ -35,20 +34,6 @@ def find_version():
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(
name="trezor",
version=find_version(),
@ -58,7 +43,7 @@ setup(
description="Python library for communicating with Trezor Hardware Wallet",
long_description="{}\n\n{}".format(read("README.md"), read("CHANGELOG.md")),
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"),
package_dir={"": "src"},
entry_points={"console_scripts": ["trezorctl=trezorlib.cli.trezorctl:cli"]},
@ -77,5 +62,4 @@ setup(
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python :: 3 :: Only",
],
cmdclass={"prebuild": PrebuildCommand},
)