pylspci/setup.py

71 lines
2.3 KiB
Python
Raw Permalink Normal View History

2019-06-23 18:12:34 +00:00
#!/usr/bin/env python3
2019-07-06 13:40:59 +00:00
from typing import List
2019-06-23 18:12:34 +00:00
2020-11-29 18:17:36 +00:00
from setuptools import find_packages, setup
2019-06-23 18:12:34 +00:00
2019-07-06 13:40:59 +00:00
def read_requirements(filename: str) -> List[str]:
2019-06-23 18:12:34 +00:00
return [req.strip() for req in open(filename)]
2019-07-06 13:51:34 +00:00
requirements = read_requirements('requirements.txt')
2019-07-06 13:40:59 +00:00
dev_requirements = read_requirements('requirements-dev.txt')
2019-06-23 18:12:34 +00:00
setup(
name='pylspci',
version=open('VERSION').read().strip(),
author='Lucidiot',
packages=find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests"],
),
2019-08-04 01:01:55 +00:00
entry_points={
'console_scripts': ['pylspci=pylspci.__main__:main'],
},
2019-06-23 18:12:34 +00:00
package_data={
2022-02-08 21:43:02 +00:00
'': [
'VERSION',
'LICENSE',
'README.rst',
'requirements.txt',
'requirements-dev.txt',
],
2019-09-06 21:09:50 +00:00
'pylspci': ['py.typed'],
2019-06-23 18:12:34 +00:00
},
2023-05-09 10:48:18 +00:00
python_requires='>=3.6',
2019-07-06 13:51:34 +00:00
install_requires=requirements,
2019-06-23 18:12:34 +00:00
extras_require={
2019-07-06 13:40:59 +00:00
'dev': dev_requirements,
2019-06-23 18:12:34 +00:00
},
2019-07-06 13:40:59 +00:00
test_suite='pylspci.tests',
2019-06-23 18:12:34 +00:00
license='GNU General Public License 3',
description="Simple parser for lspci -mmnn.",
long_description=open('README.rst').read(),
long_description_content_type='text/x-rst',
keywords="lspci parser",
2022-08-04 22:46:30 +00:00
url="https://tildegit.org/lucidiot/pylspci",
2019-06-23 18:12:34 +00:00
classifiers=[
2019-07-10 18:54:15 +00:00
"Development Status :: 4 - Beta",
2019-06-23 18:12:34 +00:00
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
2021-09-21 18:06:55 +00:00
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
2022-08-04 22:46:30 +00:00
"Programming Language :: Python :: 3.10",
2023-05-09 10:48:18 +00:00
"Programming Language :: Python :: 3.11",
2019-06-23 18:12:34 +00:00
"Topic :: Software Development :: Libraries",
"Topic :: System :: Hardware",
"Topic :: Utilities",
2019-07-25 17:04:55 +00:00
"Typing :: Typed",
2019-06-23 18:12:34 +00:00
],
project_urls={
2022-08-04 22:46:30 +00:00
"Homepage": "https://tildegit.org/lucidiot/pylspci",
"Changelog": "https://tildegit.org/lucidiot/pylspci/releases",
"Documentation": "https://lucidiot.tildepages.org/pylspci/",
"Issue tracker": "https://tildegit.org/lucidiot/pylspci/issues",
2019-06-23 18:12:34 +00:00
}
)