From 269beedf3c7dd6eee67c48828a5175b9a700a141 Mon Sep 17 00:00:00 2001 From: Bret Curtis Date: Thu, 8 Oct 2015 22:18:11 +0200 Subject: [PATCH] simplify setup.py --- docs/source/NEWS.rst | 10 ++++++++++ setup.py | 31 ++----------------------------- 2 files changed, 12 insertions(+), 29 deletions(-) diff --git a/docs/source/NEWS.rst b/docs/source/NEWS.rst index ac253a7..b1cc8cf 100644 --- a/docs/source/NEWS.rst +++ b/docs/source/NEWS.rst @@ -1,6 +1,16 @@ Changelog ========= +Release 15.3.1 (UNRELEASED) +--------------------------- + +Features +^^^^^^^^ + +- Updated and simplified setup.py, enforce minimal versions of PyMongo and Twisted necessary to +install TxMongo. + + Release 15.3.0 (2015-09-29) --------------------------- diff --git a/setup.py b/setup.py index 793c8ae..efb28f5 100755 --- a/setup.py +++ b/setup.py @@ -1,43 +1,16 @@ #!/usr/bin/env python -import sys -import os -import shutil - from setuptools import setup -from setuptools import Feature -from distutils.cmd import Command -from distutils.command.build_ext import build_ext -from distutils.errors import CCompilerError -from distutils.errors import DistutilsPlatformError, DistutilsExecError -from distutils.core import Extension - - -requirements = ["twisted", "pymongo"] -try: - import xml.etree.ElementTree -except ImportError: - requirements.append("elementtree") - - -if sys.platform == 'win32' and sys.version_info > (2, 6): - # 2.6's distutils.msvc9compiler can raise an IOError when failing to - # find the compiler - build_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError, - IOError) -else: - build_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError) - setup( name="txmongo", - version="15.3.0", + version="15.3.1", description="Asynchronous Python driver for MongoDB ", author="Alexandre Fiori, Bret Curtis", author_email="fiorix@gmail.com, psi29a@gmail.com", url="https://github.com/twisted/txmongo", keywords=["mongo", "mongodb", "pymongo", "gridfs", "txmongo"], packages=["txmongo", "txmongo._gridfs"], - install_requires=requirements, + install_requires=["twisted>=14.0", "pymongo>=3.0"], license="Apache License, Version 2.0", include_package_data=True, test_suite="nose.collector",