|
10 | 10 | #3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse |
11 | 11 | # or promote products derived from this software without specific prior written permission. |
12 | 12 |
|
13 | | -#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, |
| 13 | +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, |
14 | 14 | # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
15 | 15 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
16 | 16 | # INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
|
19 | 19 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
20 | 20 | # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
21 | 21 |
|
22 | | -try: |
23 | | - from setuptools import setup |
24 | | -except ImportError: |
25 | | - from distutils.core import setup |
26 | 22 |
|
27 | | -with open('README.md') as f: |
28 | | - readme = f.read() |
| 23 | +from setuptools import setup, find_packages |
| 24 | + |
| 25 | + |
| 26 | +def read(path): |
| 27 | + with open(path, 'r') as f: |
| 28 | + return f.read() |
| 29 | + |
29 | 30 |
|
30 | 31 | requires = [ |
31 | 32 | "pysnmp >= 4.2.5", |
|
39 | 40 |
|
40 | 41 | setup( |
41 | 42 | name='Python Mini Probe', |
42 | | - version='0.1', |
| 43 | + version=read('VERSION.txt'), |
43 | 44 | author='Paessler AG', |
44 | 45 | |
45 | 46 | license='BSD 3.0', |
46 | 47 | description='Python MiniProbe for PRTG', |
47 | | - long_description=readme, |
48 | | - #packages=find_packages(), |
49 | | - install_requires=requires |
| 48 | + long_description=read('README.md'), |
| 49 | + install_requires=requires, |
| 50 | + packages=find_packages(), |
| 51 | + url='https://github.com/PaesslerAG/PythonMiniProbe', |
| 52 | + classifiers=[ |
| 53 | + "Development Status :: 4 - Beta", |
| 54 | + "Environment :: Console", |
| 55 | + "License :: OSI Approved :: BSD License", |
| 56 | + "Programming Language :: Python", |
| 57 | + ], |
| 58 | + #entry_points={ |
| 59 | + # 'console_scripts': [ |
| 60 | + # 'probe = miniprobe.probe.main' |
| 61 | + # ] |
| 62 | + #} |
| 63 | + data_files=[ |
| 64 | + |
| 65 | + ] |
50 | 66 | ) |
51 | 67 |
|
0 commit comments