1
1
import os
2
- from setuptools import setup
3
- from setuptools .command .test import test
4
- import snimpy
2
+ from setuptools import setup , find_packages
5
3
6
4
rtd = os .environ .get ("READTHEDOCS" , None ) == "True"
7
5
8
6
9
- class SnimpyTestCommand (test ):
10
- def run_tests (self , * args , ** kwds ):
11
- # Ensure we keep a reference to multiprocessing and pysnmp to
12
- # avoid errors at the end of the test
13
- import multiprocessing
14
- import pysnmp
15
-
16
- SnimpyTestCommand .multiprocessing = multiprocessing
17
- SnimpyTestCommand .pysnmp = pysnmp
18
- return test .run_tests (self , * args , ** kwds )
19
-
20
-
21
7
if __name__ == "__main__" :
22
8
readme = open ("README.rst" ).read ()
23
9
history = open ("HISTORY.rst" ).read ().replace (".. :changelog:" , "" )
@@ -36,11 +22,11 @@ def run_tests(self, *args, **kwds):
36
22
"Topic :: System :: Monitoring" ,
37
23
],
38
24
url = "https://github.com/vincentbernat/snimpy" ,
39
- description = snimpy . __doc__ ,
25
+ description = "interactive SNMP tool" ,
40
26
long_description = readme + "\n \n " + history ,
41
27
long_description_content_type = "text/x-rst" ,
42
- author = snimpy . __author__ ,
43
- author_email = snimpy . __email__ ,
28
+ author = "Vincent Bernat" ,
29
+ author_email = "bernat@luffy.cx" ,
44
30
packages = ["snimpy" ],
45
31
entry_points = {
46
32
"console_scripts" : [
@@ -57,10 +43,6 @@ def run_tests(self, *args, **kwds):
57
43
'pyasyncore; python_version >= "3.12"' ,
58
44
"setuptools" ,
59
45
],
60
- setup_requires = ["cffi >= 1.0.0" , "vcversioner" ],
61
- cmdclass = {"test" : SnimpyTestCommand },
62
- pbr = False ,
63
- vcversioner = {
64
- "version_module_paths" : ["snimpy/_version.py" ],
65
- },
46
+ setup_requires = ["cffi >= 1.0.0" , "setuptools_scm" ],
47
+ use_scm_version = True ,
66
48
)
0 commit comments