Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

argparse install requires option is not needed in Python >= 3.2 #65

Open
1letter opened this issue May 6, 2022 · 0 comments
Open

argparse install requires option is not needed in Python >= 3.2 #65

1letter opened this issue May 6, 2022 · 0 comments

Comments

@1letter
Copy link
Contributor

1letter commented May 6, 2022

i installed OCRmyPDF and node.ext.ldap in a project, the argparse egg from pypi breaks OCRmyPDF, i think the python builtin argparse module is enough.

@jensens i can't made an PR, because i have no permissions on this project

# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
import codecs
import os
import sys

def read_file(name):
    with codecs.open(
        os.path.join(os.path.dirname(__file__), name),
        encoding='utf-8'
    ) as f:
        return f.read()

def get_install_requires():

    packages = [
        'bda.cache',
        'node.ext.ugm>=1.0',
        'passlib',
        'python-ldap>=2.4.14',
        'setuptools',
        'argparse'
    ]

    if sys.version_info >= (3,2):
        packages.remove('argparse')
    
    return packages

install_requires = get_install_requires()

version = '1.1.dev0'
shortdesc = 'LDAP/AD convenience with Node-trees based on python-ldap'
longdesc = '\n\n'.join([read_file(name) for name in [
    'README.rst',
    'CHANGES.rst',
    'TODO.rst',
    'LICENSE.rst'
]])


setup(
    name='node.ext.ldap',
    version=version,
    description=shortdesc,
    long_description=longdesc,
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'License :: OSI Approved :: BSD License',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'Topic :: Software Development',
        'Topic :: System :: Systems Administration :: Authentication/Directory :: LDAP',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
        'Programming Language :: Python :: 3.10'
    ],
    keywords='ldap authentication node tree access users groups',
    author='Node Contributors',
    author_email='[email protected]',
    url='https://github.com/conestack/node.ext.ldap',
    license='Simplified BSD',
    packages=find_packages('src'),
    package_dir={'': 'src'},
    namespace_packages=['node', 'node.ext'],
    include_package_data=True,
    zip_safe=False,
    install_requires=install_requires,
    extras_require={
        'test': [
            'coverage',
            'plone.testing',
            'zope.configuration',
            'zope.testing',
            'zope.testrunner'
        ]
    },
    entry_points="""
    [console_scripts]
    testldap = node.ext.ldap.main:slapd
    """,
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant