Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
steps:
- uses: actions/checkout@v4
with:
Expand Down
43 changes: 43 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,48 @@
requires = ["setuptools >= 42.0.0", "setuptools_scm", "cffi >= 1.0.0"]
build-backend = "setuptools.build_meta"

[project]
name = "snimpy"
description = "interactive SNMP tool"
requires-python = ">= 3.9"
dynamic = ["version"]
readme = "README.rst"
license = "ISC"
authors = [
{ name = "Vincent Bernat", email = "bernat@luffy.cx" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: System Administrators",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: System :: Networking",
"Topic :: Utilities",
"Topic :: System :: Monitoring",
]
dependencies = [
"cffi >= 1.0.0",
"pysnmp >= 7",
"pysnmpcrypto",
"setuptools",
]

[project.scripts]
snimpy = "snimpy.main:interact"

[project.urls]
Homepage = "https://github.com/vincentbernat/snimpy"

[tool.setuptools]
packages = ["snimpy"]
zip-safe = false

[tool.setuptools_scm]
write_to = "snimpy/_version.py"
48 changes: 4 additions & 44 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,48 +1,8 @@
import os
from setuptools import setup, find_packages
from setuptools import setup

rtd = os.environ.get("READTHEDOCS", None) == "True"


if __name__ == "__main__":
readme = open("README.rst").read()
history = open("HISTORY.rst").read().replace(".. :changelog:", "")

setup(
name="snimpy",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: ISC License (ISCL)",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Topic :: System :: Networking",
"Topic :: Utilities",
"Topic :: System :: Monitoring",
],
url="https://github.com/vincentbernat/snimpy",
description="interactive SNMP tool",
long_description=readme + "\n\n" + history,
long_description_content_type="text/x-rst",
author="Vincent Bernat",
author_email="bernat@luffy.cx",
packages=["snimpy"],
entry_points={
"console_scripts": [
"snimpy = snimpy.main:interact",
],
},
data_files=[("share/man/man1", ["man/snimpy.1"])],
zip_safe=False,
cffi_modules=(not rtd and ["snimpy/smi_build.py:ffi"] or []),
install_requires=[
"cffi >= 1.0.0",
"pysnmp >= 4, < 6",
"pyasn1 <= 0.6.0",
'pyasyncore; python_version >= "3.12"',
"setuptools",
],
setup_requires=["cffi >= 1.0.0", "setuptools_scm"],
use_scm_version=True,
)
setup(
cffi_modules=(not rtd and ["snimpy/smi_build.py:ffi"] or []),
)
Loading