Skip to content

Commit

Permalink
Revert "Move from setup.py to pyproject.toml"
Browse files Browse the repository at this point in the history
This reverts commit 306932c.
  • Loading branch information
dan-smalley committed May 28, 2024
1 parent 306932c commit a54ed5f
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 60 deletions.
52 changes: 0 additions & 52 deletions pyproject.toml

This file was deleted.

64 changes: 56 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,58 @@
#!/usr/bin/env python
import os
from setuptools import find_packages, setup
import sys

import setuptools
import versioneer
sys.path.insert(0, os.path.join(os.path.abspath(os.path.curdir), 'src'))
from zenossapi import __version__, __release__

if __name__ == "__main__":
setuptools.setup(
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
)
name = 'ZenossAPIClient'

setup(name=name,
version=__release__,
description='Zenoss API client module',
long_description="""
Python module for interacting with the Zenoss API an an object-oriented way.
The philosophy here is to use objects to work with everything in the Zenoss
API, and to try to normalize the various calls to the different routers.
Thus `get` methods will always return an object, `list` methods will return
data. All methods to add or create start with `add`, all remove or delete
start with `delete`. As much as possible the methods try to hide the
idiosyncrasies of the JSON API, and to do the work for you, for example
by letting you use a device name instead of having to provide the full
device UID for every call.
""",
url='https://github.com/Zuora-TechOps/ZenossAPIClient',
author='Mark Troyer',
author_email='[email protected]',
license='Apache',
classifiers=[
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Topic :: System :: Monitoring',
],
keywords='Zenoss monitoring api',
packages=find_packages(where='src'),
package_dir={'': 'src'},
zip_safe=False,
tests_require=[
'pytest>=3.2.3',
'pytest-responses>=0.3.0',
],
install_requires=[
'python-dateutil>=2.6.1',
'requests>=2.18.1',
],
command_options={
'build_sphinx': {
'project': ('setup.py', name),
'version': ('setup.py', __version__),
'release': ('setup.py', __release__),
'source_dir': ('setup.py', 'docs'),
'build_dir': ('setup.py', 'docs/_build'),
'config_dir': ('setup.py', 'docs'),
}
}
)

0 comments on commit a54ed5f

Please sign in to comment.