Zbigniew Jędrzejewski-Szmek
365d47a843
It was already used in other places, so this doesn't change much. Walrus was added in 3.8, so drop 3.7 from the compat list.
62 lines
1.6 KiB
Python
62 lines
1.6 KiB
Python
from setuptools import setup
|
|
|
|
def read_version(path):
|
|
with open(path, 'rt') as f:
|
|
for line in f:
|
|
if line.startswith('__version__'):
|
|
return line.split("'")[1]
|
|
raise IOError
|
|
|
|
version = read_version('rust2rpm/__init__.py')
|
|
|
|
ARGS = dict(
|
|
name="rust2rpm",
|
|
version=version,
|
|
description="Convert Rust crates to RPM",
|
|
license="MIT",
|
|
keywords="rust cargo rpm",
|
|
|
|
packages=[
|
|
"rust2rpm",
|
|
"rust2rpm.core",
|
|
],
|
|
package_data={
|
|
"rust2rpm": [
|
|
"spdx_to_fedora.csv",
|
|
"templates/*.spec",
|
|
"templates/*.spec.inc",
|
|
],
|
|
},
|
|
entry_points={
|
|
"console_scripts": [
|
|
"rust2rpm = rust2rpm.__main__:main",
|
|
"cargo-inspector = rust2rpm.core.inspector:main",
|
|
],
|
|
},
|
|
install_requires=[
|
|
# rust2rpm
|
|
"jinja2",
|
|
"requests",
|
|
"tqdm",
|
|
],
|
|
|
|
author="Igor Gnatenko",
|
|
author_email="ignatenkobrain@fedoraproject.org",
|
|
url="https://pagure.io/fedora-rust/rust2rpm",
|
|
classifiers=[
|
|
"Development Status :: 5 - Production/Stable",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Programming Language :: Python :: 3 :: Only",
|
|
"Programming Language :: Python :: 3.8",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Topic :: Software Development :: Build Tools",
|
|
"Topic :: System :: Software Distribution",
|
|
"Topic :: Utilities",
|
|
],
|
|
)
|
|
|
|
if __name__ == "__main__":
|
|
setup(**ARGS)
|