2017-02-12 10:28:51 +00:00
|
|
|
from setuptools import setup
|
|
|
|
|
2019-05-06 20:34:02 +00:00
|
|
|
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')
|
|
|
|
|
2017-02-12 10:28:51 +00:00
|
|
|
ARGS = dict(
|
|
|
|
name="rust2rpm",
|
2019-05-06 20:34:02 +00:00
|
|
|
version=version,
|
2017-02-12 10:28:51 +00:00
|
|
|
description="Convert Rust crates to RPM",
|
|
|
|
license="MIT",
|
|
|
|
keywords="rust cargo rpm",
|
|
|
|
|
2022-07-14 21:29:01 +00:00
|
|
|
packages=[
|
|
|
|
"rust2rpm",
|
|
|
|
"rust2rpm.core",
|
|
|
|
],
|
2017-12-29 15:21:01 +00:00
|
|
|
package_data={
|
|
|
|
"rust2rpm": [
|
2018-08-14 09:54:33 +00:00
|
|
|
"spdx_to_fedora.csv",
|
2017-12-29 15:21:01 +00:00
|
|
|
"templates/*.spec",
|
|
|
|
"templates/*.spec.inc",
|
|
|
|
],
|
|
|
|
},
|
2017-02-12 10:28:51 +00:00
|
|
|
entry_points={
|
|
|
|
"console_scripts": [
|
|
|
|
"rust2rpm = rust2rpm.__main__:main",
|
2022-07-14 21:29:01 +00:00
|
|
|
"cargo-inspector = rust2rpm.core.inspector:main",
|
2017-02-12 10:28:51 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
install_requires=[
|
2022-07-14 21:29:01 +00:00
|
|
|
# rust2rpm
|
2017-02-12 10:28:51 +00:00
|
|
|
"jinja2",
|
|
|
|
"requests",
|
|
|
|
"tqdm",
|
|
|
|
],
|
|
|
|
|
|
|
|
author="Igor Gnatenko",
|
|
|
|
author_email="ignatenkobrain@fedoraproject.org",
|
|
|
|
url="https://pagure.io/fedora-rust/rust2rpm",
|
|
|
|
classifiers=[
|
2021-11-28 11:23:53 +00:00
|
|
|
"Development Status :: 5 - Production/Stable",
|
2017-02-12 10:28:51 +00:00
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Operating System :: POSIX :: Linux",
|
|
|
|
"Programming Language :: Python :: 3 :: Only",
|
|
|
|
"Programming Language :: Python :: 3.6",
|
2018-08-14 07:07:52 +00:00
|
|
|
"Programming Language :: Python :: 3.7",
|
2019-05-06 20:47:06 +00:00
|
|
|
"Programming Language :: Python :: 3.8",
|
2021-11-22 11:46:30 +00:00
|
|
|
"Programming Language :: Python :: 3.9",
|
|
|
|
"Programming Language :: Python :: 3.10",
|
2017-02-12 10:28:51 +00:00
|
|
|
"Topic :: Software Development :: Build Tools",
|
|
|
|
"Topic :: System :: Software Distribution",
|
|
|
|
"Topic :: Utilities",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
setup(**ARGS)
|