def include_in(self, dist): # Called when master is enabled (default, or --with-master) dist.metadata.name = 'Bitten' dist.metadata.description = 'Continuous integration for Trac' dist.long_description = "A Trac plugin for collecting software " \ "metrics via continuous integration.""" # Use full manifest when master is included egg_info.manifest_maker.template = "MANIFEST.in" # Include tests in source distribution if 'sdist' in dist.commands: dist.packages = find_packages() else: dist.packages = find_packages(exclude=['*tests*']) dist.test_suite = 'bitten.tests.suite' dist.package_data = { 'bitten': ['htdocs/*.*', 'templates/*.html', 'templates/*.txt']} dist.entry_points['trac.plugins'] = [ 'bitten.admin = bitten.admin', 'bitten.main = bitten.main', 'bitten.master = bitten.master', 'bitten.web_ui = bitten.web_ui', 'bitten.testing = bitten.report.testing', 'bitten.coverage = bitten.report.coverage', 'bitten.lint = bitten.report.lint', 'bitten.notify = bitten.notify', 'bitten.xmlrpc = bitten.xmlrpc']
def include_in(self, dist): # Called when master is enabled (default, or --with-master) dist.metadata.name = 'iTest' dist.metadata.description = 'Continuous integration for Spreadtrum' dist.long_description = "A Trac plugin for collecting software " \ "metrics via continuous integration.""" # Use full manifest when master is included egg_info.manifest_maker.template = "MANIFEST.in" # Include tests in source distribution if 'sdist' in dist.commands: dist.packages = find_packages() else: dist.packages = find_packages(exclude=['*tests*']) dist.test_suite = 'iTest.tests.suite' dist.package_data = { 'iTest': ['htdocs/*.*', 'htdocs/charts_library/*.swf', 'templates/*.html', 'templates/*.txt']} dist.entry_points['trac.plugins'] = [ 'iTest.admin = iTest.admin', 'iTest.main = iTest.main', #'iTest.master = iTest.master', 'iTest.web_ui = iTest.web_ui' #'iTest.testing = iTest.report.testing', #'iTest.coverage = iTest.report.coverage', #'iTest.lint = iTest.report.lint', #'iTest.notify = iTest.notify' ]
def find_packages_v2(base_dir, namespace_packages=None): result = find_packages(base_dir) for np in (namespace_packages or []): result.append(np) result.extend(np + '.' + p for p in find_packages(os.path.join(base_dir, np.replace('.', os.path.sep)))) return result
def main(): assert (sys.version_info[0] >= 3 and sys.version_info[1] >= 4), \ "Python version >= 3.4 required, got %r" % (sys.version_info,) version = get_version_string() setuptools.setup( name='python-base', version=version, packages=setuptools.find_packages(SRC_PATH), namespace_packages=setuptools.find_packages(SRC_PATH), package_dir={ '': SRC_PATH, }, scripts=sorted(list_scripts()), package_data={ "base": ["VERSION"], }, test_suite=TEST_PATH, cmdclass={'test': TestWithDiscovery}, # metadata for upload to PyPI author="WibiData engineers", author_email="*****@*****.**", description='General purpose library for Python.', license='Apache License 2.0', keywords='python base flags tools workflow', url="http://wibidata.com", )
def find_packages(path): for f in os.listdir(path): if f[0] == '.': continue if os.path.isdir(os.path.join(path, f)) == True: next_path = os.path.join(path, f) if '__init__.py' in os.listdir(next_path): packages.append(next_path.replace(os.sep, '.')) find_packages(next_path)
def get_packages_list(): """Recursively find packages in lib. Return a list of packages (dot notation) suitable as packages parameter for distutils. """ if 'linux' in sys.platform: return find_packages('lib', exclude=["cherrypy.*"]) else: return find_packages('lib')
def setup_package(): # Figure out whether to add ``*_requires = ['numpy']``. setup_requires = [] try: import numpy except ImportError: setup_requires.append('numpy>=1.6, <2.0') # the long description is unavailable in a source distribution and not essential to build try: with open('doc/abstract.txt') as f: long_description = f.read() except: long_description = '' setup_args = dict( name=package_name, packages=find_packages(), version=__version__, author='Frederik Beaujean, Stephan Jahn', author_email='[email protected], [email protected]', url='https://github.com/fredRos/pypmc', description='A toolkit for adaptive importance sampling featuring implementations of variational Bayes, population Monte Carlo, and Markov chains.', long_description=long_description, license='GPLv2', setup_requires=setup_requires, install_requires=['numpy', 'scipy'], extras_require={'testing': ['nose'], 'plotting': ['matplotlib'], 'parallelization': ['mpi4py']}, classifiers=['Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)', 'Operating System :: Unix', 'Programming Language :: Cython', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Mathematics', ], platforms=['Unix'], ) if len(sys.argv) >= 2 and ( '--help' in sys.argv[1:] or sys.argv[1] in ('--help-commands', 'egg_info', '--version', 'clean')): # For these actions, NumPy is not required. pass else: setup_args['packages'] = find_packages() setup_args['ext_modules'] = get_extensions() setup(**setup_args)
def main(): import io with io.open(os.path.join(HERE, 'README.rst'), 'r') as readme: setup( name = __project__, version = __version__, description = __doc__, long_description = readme.read(), classifiers = __classifiers__, author = __author__, author_email = __author_email__, url = __url__, license = [ c.rsplit('::', 1)[1].strip() for c in __classifiers__ if c.startswith('License ::') ][0], keywords = __keywords__, packages = find_packages(), package_data = {}, include_package_data = True, platforms = __platforms__, install_requires = __requires__, extras_require = __extra_requires__, zip_safe = False, entry_points = __entry_points__, )
def main(): install_requires = [ ] packages = [full_package_name] + [(full_package_name + '.' + x) for x in find_packages(exclude=['tests'])] setup( name=full_package_name, version=version_str, description='a version of dict that keeps keys in '\ 'insertion resp. sorted order', install_requires=[ ], #install_requires=install_requires, long_description=open('README.rst').read(), url='https://bitbucket.org/ruamel/' + package_name, author='Anthon van der Neut', author_email='*****@*****.**', license="MIT license", package_dir={full_package_name: '.'}, namespace_packages=[name_space], packages=packages, ext_modules = [module1], cmdclass={'install_lib': MyInstallLib}, classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: MIT License', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python', ], )
def script_substitutions(self): qt4_ = qt4() pyqt4_ = pyqt4() pysci_ = pyqscintilla() sip_ = sip() # dlls are the union of qt dlls and plugins directories (which is actually the same!) # qscis apis are recursive from qt4 (need to list all files) qscis = list(recursive_glob_as_dict(pysci_.qsci_dir, Pattern.sciapi, strip_keys=True, prefix_key="qsci").items()) extra_pyqt4_mods = list(recursive_glob_as_dict(pj(pyqt4_.install_site_dir,"PyQt4"), Pattern.pyall, strip_keys=True, prefix_key="PyQt4").items()) print("laaaaaaaaaaaaaaaajfdshfsdosfdo", extra_pyqt4_mods) sip_mods = list(recursive_glob_as_dict(sip_.install_site_dir, Pattern.pyall, strip_keys=True, levels=1).items()) lib_dirs = {"PyQt4": qt4_.install_dll_dir} package_dir = {"PyQt4": pj(pyqt4_.install_site_dir, "PyQt4")} from openalea.vpltk.qt import QtCore from setuptools import find_packages return dict( VERSION = QtCore.QT_VERSION_STR, PACKAGES = find_packages(pyqt4_.install_site_dir, "PyQt4"), PACKAGE_DIRS = package_dir, PACKAGE_DATA = {'' : [Pattern.pyext]}, LIB_DIRS = lib_dirs, DATA_FILES = qscis+sip_mods+extra_pyqt4_mods, INSTALL_REQUIRES = [egg_mingw_rt.egg_name()] )
def setup_package(): setupinfo.set_version(version) setupinfo.write_version_py() setup( name=name, version=setupinfo.get_version(), description=description, long_description=long_description, url=url, author=author, author_email=author_email, keywords=keywords.strip(), license=license, packages=find_packages(), ext_modules=setupinfo.get_extensions(), install_requires=setupinfo.get_install_requirements(), tests_require=setupinfo.get_test_requirements(), test_suite="pyamf.tests.get_suite", zip_safe=False, extras_require=setupinfo.get_extras_require(), classifiers=( filter(None, classifiers.strip().split('\n')) + setupinfo.get_trove_classifiers() ), **setupinfo.extra_setup_args())
def configure_extensions(): if os.path.exists('MANIFEST'): os.remove('MANIFEST') # search for all cython files and build them as modules # in the corresponding subpackage packages = setuptools.find_packages('.') exts = [] for package in packages: working_path = os.path.join(*package.split('.')) pyx_paths = glob.glob(os.path.join(working_path, '*.pyx')) pyx_files = [path.split('/')[-1] for path in pyx_paths] for pyx_file in pyx_files: name = pyx_file[:-4] full_path = os.path.join(working_path, pyx_file) e = Extension(package + "." + name, [full_path], include_dirs=get_numpy_include_dirs()) exts.append(e) return exts
def main(): name = "tangods-pynutaq" version = "0.5.0" description = "Device server for the Nutaq platform." author = "Antonio Milan Otero" author_email = "*****@*****.**" license = "GPLv3" url = "http://www.maxlab.lu.se" package_dir = {'': 'src'} exclude=["interlocksdiags"] packages = find_packages('src', exclude=exclude) scripts = [ 'scripts/Nutaq', 'scripts/NutaqDiags' ] setup(name=name, version=version, description=description, author=author, author_email=author_email, license=license, url=url, package_dir=package_dir, packages=packages, scripts=scripts )
def setup_cclib(): doclines = __doc__.split("\n") setuptools.setup( name="cclib", version="1.5.3", url="http://cclib.github.io/", author="cclib development team", author_email="*****@*****.**", maintainer="cclib development team", maintainer_email="*****@*****.**", license="BSD 3-Clause License", description=doclines[0], long_description="\n".join(doclines[2:]), classifiers=classifiers.split("\n"), platforms=["Any."], packages=setuptools.find_packages(exclude=['*test*']), entry_points={ 'console_scripts': [ 'ccget=cclib.scripts.ccget:ccget', 'ccwrite=cclib.scripts.ccwrite:main', 'cda=cclib.scripts.cda:main' ] } )
def run_setup(build_ext): extra_modules = None if build_ext: extra_modules = list() hv_module = Extension("deap.tools._hypervolume.hv", sources=["deap/tools/_hypervolume/_hv.c", "deap/tools/_hypervolume/hv.cpp"]) extra_modules.append(hv_module) setup(name='deap', version=deap.__revision__, description='Distributed Evolutionary Algorithms in Python', long_description=read_md('README.md'), author='deap Development Team', author_email='*****@*****.**', url='https://www.github.com/deap', packages=find_packages(exclude=['examples']), # packages=['deap', 'deap.tools', 'deap.tools._hypervolume', 'deap.benchmarks', 'deap.tests'], platforms=['any'], keywords=['evolutionary algorithms','genetic algorithms','genetic programming','cma-es','ga','gp','es','pso'], license='LGPL', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Intended Audience :: Education', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Topic :: Scientific/Engineering', 'Topic :: Software Development', ], ext_modules = extra_modules, cmdclass = {"build_ext" : ve_build_ext}, use_2to3=True )
def main(with_binary): if with_binary: features = {'speedups': speedups} else: features = {} extra = {} # Python 3: run 2to3 if sys.version_info >= (3,): extra['use_2to3'] = True setup( name='http-parser', version=VERSION, description=DESCRIPTION, long_description=LONG_DESCRIPTION, author='Benoit Chesneau', author_email='*****@*****.**', license='MIT', url='http://github.com/benoitc/http-parser', classifiers=CLASSIFIERS, packages=find_packages(), platforms=['any'], # data_files=[('http_parser', # ['LICENSE', 'MANIFEST.in', 'NOTICE', 'README.rst', 'THANKS'] # )], features=features, **extra )
def main(): base_dir = dirname(__file__) install_requires = ['requests>=2.4.3', 'six>=1.4.0', 'requests-toolbelt>=0.4.0'] redis_requires = ['redis>=2.10.3'] jwt_requires = ['pyjwt>=1.3.0', 'cryptography>=0.9.2'] if version_info < (3, 4): install_requires.append('enum34>=1.0.4') elif version_info < (2, 7): install_requires.append('ordereddict>=1.1') setup( name='boxsdk', version='1.3.2', description='Official Box Python SDK', long_description=open(join(base_dir, 'README.rst')).read(), author='Box', author_email='*****@*****.**', url='http://opensource.box.com', packages=find_packages(exclude=['demo', 'docs', 'test']), install_requires=install_requires, extras_require={'jwt': jwt_requires, 'redis': redis_requires}, tests_require=['pytest', 'pytest-xdist', 'mock', 'sqlalchemy', 'bottle', 'jsonpatch'], cmdclass={'test': PyTest}, classifiers=CLASSIFIERS, keywords='box oauth2 sdk', license=open(join(base_dir, 'LICENSE')).read(), )
def main(): setup( name='hookbox', version=hookbox.__version__, author='Michael Carter', author_email='*****@*****.**', url='http://hookbox.org', license='MIT License', description='HookBox is a Comet server and message queue that tightly integrates with your existing web application via web hooks and a REST interface.', long_description='', packages= find_packages(), package_data = find_package_data(), zip_safe = False, install_requires = _install_requires, entry_points = ''' [console_scripts] hookbox = hookbox.start:main ''', classifiers = [ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules' ], )
def do_setup(): setup( name="django-pretty-times", version=VERSION, author="imtapps", author_email="*****@*****.**", description="pretty_times provides django template helpers for the py-pretty library.", long_description=open('README.txt', 'r').read(), url="http://github.com/imtapps/django-pretty-times", packages=find_packages(exclude=['example']), install_requires=REQUIREMENTS, tests_require=TEST_REQUIREMENTS, test_suite='runtests.runtests', zip_safe=False, classifiers = [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development", "Topic :: Software Development :: Libraries :: Application Frameworks", ], cmdclass={ 'install_dev': InstallDependencies, 'uninstall_dev': UninstallDependencies, } )
def install_package(): setup( name='seismograph', version=__version__, url='https://github.com/trifonovmixail/seismograph', packages=find_packages(exclude=('example*', 'tests*')), author='Mikhail Trifonov', author_email='*****@*****.**', license='GNU LGPL', description='Framework for test development', keywords='test unittest framework', long_description=open('README.rst').read(), include_package_data=True, zip_safe=False, platforms='any', install_requires=REQUIREMENTS, entry_points={ 'console_scripts': CONSOLE_SCRIPTS, }, test_suite='tests', classifiers=( 'Development Status :: 4 - Beta', 'Natural Language :: Russian', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: Implementation :: CPython', 'Topic :: Software Development :: Testing', ), )
def setup_package(): setup( name = 'kegbot-pycore', version = VERSION, description = SHORT_DESCRIPTION, long_description = LONG_DESCRIPTION, author = 'Bevbot LLC', author_email = '*****@*****.**', url = 'https://kegbot.org/docs/pycore', packages = find_packages(exclude=['testdata']), namespace_packages = ['kegbot'], scripts = [ 'bin/kegboard_daemon.py', 'bin/kegbot_core.py', 'bin/lcd_daemon.py', 'bin/rfid_daemon.py', 'bin/test_flow.py', ], install_requires = [ 'kegbot-pyutils == 0.1.7', 'kegbot-api >= 0.1.17', 'kegbot-kegboard == 1.1.2', 'redis >= 2.9.1, < 3.0', 'python-gflags == 2.0', ], include_package_data = True, )
def do_setup(): setup( name="django-attachments", version='0.1.1', author="Matthew J. Morrison", author_email="*****@*****.**", description="A django app to allow attachments to any model.", long_description=open('README.txt', 'r').read(), url="https://github.com/imtapps/django-attachments", packages=find_packages(exclude="example"), include_package_data=True, install_requires=REQUIREMENTS, tests_require=TEST_REQUIREMENTS, zip_safe=False, classifiers = [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development", "Topic :: Software Development :: Libraries :: Application Frameworks", ], cmdclass={ 'install_dev': InstallDependencies, 'uninstall_dev': UninstallDependencies, }, )
def main(): version = get_git_version() with open("pyipmi/version.py", "w") as f: f.write("# This file was autogenerated by setup.py\n") f.write("__version__ = '%s'\n" % (version,)) setup( name="pyipmi", version=version, description="Pure python IPMI library", author_email="*****@*****.**", packages=find_packages(exclude="test"), license="LGPLv2+", classifiers=[ "Development Status :: 4 - Beta", "Environment :: Console", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries :: Python Modules", ], entry_points={"console_scripts": ["ipmitool.py = pyipmi.ipmitool:main"]}, test_suite="tests", )
def main(): install_requires = [ ] # if sys.version_info < (3, 4): # install_requires.append("") packages = [full_package_name] + [(full_package_name + '.' + x) for x in find_packages(exclude=['tests'])] setup( name=full_package_name, version=version_str, description="""zip2tar, a zipfile to tar convertor without intermediate files""", install_requires=install_requires, long_description=open('README.rst').read(), url='https://bitbucket.org/ruamel/' + package_name, author='Anthon van der Neut', author_email='*****@*****.**', license="MIT license", package_dir={full_package_name: '.'}, namespace_packages=[name_space], packages=packages, entry_points=mk_entry_points(full_package_name), cmdclass={'install_lib': MyInstallLib}, classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3', ] )
def test_dir_with_dot_is_skipped(self): shutil.rmtree(os.path.join(self.dist_dir, 'pkg/subpkg/assets')) data_dir = self._mkdir('some.data', self.pkg_dir) self._touch('__init__.py', data_dir) self._touch('file.dat', data_dir) packages = find_packages(self.dist_dir) self.assertTrue('pkg.some.data' not in packages)
def main(): base_dir = dirname(__file__) setup( name='flaky', version='2.2.0', description='Plugin for nose or py.test that automatically reruns flaky tests.', long_description=open(join(base_dir, 'README.rst')).read(), author='Box', author_email='*****@*****.**', url='https://github.com/box/flaky', license=open(join(base_dir, 'LICENSE')).read(), packages=find_packages(exclude=['test']), test_suite='test', tests_require=['pytest', 'nose'], zip_safe=False, entry_points={ 'nose.plugins.0.10': [ 'flaky = flaky.flaky_nose_plugin:FlakyPlugin' ], 'pytest11': [ 'flaky = flaky.flaky_pytest_plugin' ] }, keywords='nose pytest plugin flaky tests rerun retry', classifiers=CLASSIFIERS, )
def setup_package(): import numpy.distutils.misc_util from gofft.distutils.misc_util import get_extensions NP_DEP = numpy.distutils.misc_util.get_numpy_include_dirs() # semantic versioning MAJOR = 1 MINOR = 0 MICRO = 0 VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO) # package to be installed EXCLUDED = [] PACKAGES = find_packages(exclude=EXCLUDED) REQUIREMENTS = [ 'numpy>=1.9.1', 'scipy>=0.15.0', ] EXTENSIONS = get_extensions('gofft') metadata = dict( name='gofft', version=VERSION, description='Benchmark for Goertzel algorithm and scipy.fftpack.fft', url='https://github.com/NaleRaphael/goertzel-fft', packages=PACKAGES, ext_modules=EXTENSIONS, include_dirs=NP_DEP, install_requires=REQUIREMENTS ) setup(**metadata)
def main(): base_dir = dirname(__file__) setup( base_dir=dirname(__file__), name='newrelic_marklogic_plugin', description='NewRelic plugin for monitoring MarkLogic.', long_description=open(join(base_dir, 'README.rst'), encoding='utf-8').read(), version='0.2.8', packages=find_packages(), url='https://github.com/marklogic-community/newrelic-plugin', license=open(join(base_dir, 'LICENSE'), encoding='utf-8').read(), author='James Fuller', author_email='*****@*****.**', classifiers=['Programming Language :: Python', 'Development Status :: 3 - Alpha', 'Natural Language :: English', 'Environment :: Console', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Topic :: Software Development :: Libraries :: Python Modules' ], scripts = [ 'scripts/newrelic_marklogic.py' ], platforms='any', install_requires=[ 'requests>=2.11.1' ], )
def autosetup(): from setuptools import setup, find_packages with open(relative_path('requirements.txt'), 'rU') as f: requirements_txt = f.read().split("\n") # check if installed with git data (not via PyPi) with_git = os.path.isdir(relative_path('.git')) return setup( name = "wikiquote-extractor", version = "1.0", include_package_data = True, zip_safe = False, packages = find_packages(), entry_points = { 'console_scripts': [ 'wikiquote-extractor = wikiquote_extractor.app:main', ] }, setup_requires = ["setuptools_git >= 0.4.2"] if with_git else [], install_requires = requirements_txt, )
def setup_package(): # Assemble additional setup commands cmdclass = {} cmdclass["test"] = PyTest install_reqs = get_install_requirements("requirements.txt") command_options = {"test": {"test_suite": ("setup.py", "tests"), "cov": ("setup.py", MAIN_PACKAGE)}} if JUNIT_XML: command_options["test"]["junitxml"] = "setup.py", "junit.xml" if COVERAGE_XML: command_options["test"]["cov_xml"] = "setup.py", True if COVERAGE_HTML: command_options["test"]["cov_html"] = "setup.py", True setup( name=NAME, version=VERSION, url=URL, description=DESCRIPTION, author=AUTHOR, author_email=EMAIL, license=LICENSE, keywords=KEYWORDS, long_description=read("README.rst"), classifiers=CLASSIFIERS, test_suite="tests", packages=setuptools.find_packages(exclude=["tests", "tests.*"]), install_requires=install_reqs, setup_requires=["flake8"], cmdclass=cmdclass, tests_require=["pytest-cov", "pytest"], command_options=command_options, entry_points={"console_scripts": CONSOLE_SCRIPTS}, )
keywords='geodesy, geophysics, reference frames, gnss', # Optional # When your source code is in a subdirectory under the project root, e.g. # `src/`, it is necessary to specify the `package_dir` argument. ##package_dir={'': 'geodezyx/'}, # Optional # You can just specify package directories manually here if your project is # simple. Or you can use find_packages(). # # Alternatively, if you just want to distribute a single Python file, use # the `py_modules` argument instead as follows, which will expect a file # called `my_module.py` to exist: # # py_modules=["my_module"], # packages=find_packages(where='.'), # Required # Specify which Python versions you support. In contrast to the # 'Programming Language' classifiers above, 'pip install' will check this # and refuse to install the project if the version does not match. See # https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires python_requires='>=3.6, <4', # This field lists other packages that your project depends on to run. # Any package you put here will be installed by pip when your project is # installed, so they must be valid existing projects. # # For an analysis of "install_requires" vs pip's requirements files see: # https://packaging.python.org/en/latest/requirements.html install_requires=['bs4', 'collection',
from setuptools import find_packages from setuptools import setup package_name = 'tracetools_read' setup( name=package_name, version='4.1.0', packages=find_packages(exclude=['test']), data_files=[ ('share/' + package_name, ['package.xml']), ('share/ament_index/resource_index/packages', ['resource/' + package_name]), ], install_requires=['setuptools'], maintainer=('Christophe Bedard, ' 'Ingo Luetkebohle'), maintainer_email=('[email protected], ' '*****@*****.**'), author='Christophe Bedard', author_email='*****@*****.**', url='https://gitlab.com/ros-tracing/ros2_tracing', keywords=[], description='Tools for reading traces.', license='Apache 2.0', tests_require=['pytest'], )
import setuptools import version with open("README.md", "r") as read_me: long_description = read_me.read() setuptools.setup( name="zorro_df", version=version.__version__, author="Ned Webster", author_email="*****@*****.**", description="Package to mask pd.DataFrame data", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/epw505/zorro_df", packages=setuptools.find_packages(), classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ], )
from setuptools import setup, find_packages setup( name="print_helpers", version='0.1', packages=find_packages(), )
extras = { } # Setup boilerplate below this line. package_root = os.path.abspath(os.path.dirname(__file__)) readme_filename = os.path.join(package_root, 'README.rst') with io.open(readme_filename, encoding='utf-8') as readme_file: readme = readme_file.read() # Only include packages under the 'google' namespace. Do not include tests, # benchmarks, etc. packages = [ package for package in setuptools.find_packages() if package.startswith('google')] # Determine which namespaces are needed. namespaces = ['google'] if 'google.cloud' in packages: namespaces.append('google.cloud') setuptools.setup( name=name, version=version, description=description, long_description=readme, author='Google LLC', author_email='*****@*****.**',
"""setup.py file.""" from setuptools import setup, find_packages with open("requirements.txt", "r") as fs: reqs = [r for r in fs.read().splitlines() if (len(r) > 0 and not r.startswith("#"))] with open("README.md", "r") as fs: long_description = fs.read() __author__ = "David Barroso <*****@*****.**>" setup( name="napalm", version="3.0.1", packages=find_packages(exclude=("test*",)), test_suite="test_base", author="David Barroso, Kirk Byers, Mircea Ulinic", author_email="[email protected], [email protected], [email protected]", description="Network Automation and Programmability Abstraction Layer with Multivendor support", long_description=long_description, long_description_content_type="text/markdown", classifiers=[ "Topic :: Utilities", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Operating System :: POSIX :: Linux", "Operating System :: MacOS",
# This field adds keywords for your project which will appear on the # project page. What does your project relate to? # # Note that this is a string of words separated by whitespace, not a list. keywords='mpi', # Optional # You can just specify package directories manually here if your project is # simple. Or you can use find_packages(). # # Alternatively, if you just want to distribute a single Python file, use # the `py_modules` argument instead as follows, which will expect a file # called `my_module.py` to exist: # # py_modules=["my_module"], # packages=find_packages(exclude=['contrib', 'docs', 'tests']), # Required # Specify which Python versions you support. In contrast to the # 'Programming Language' classifiers above, 'pip install' will check this # and refuse to install the project if the version does not match. If you # do not support Python 2, you can simplify this to '>=3.5' or similar, see # https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires python_requires='>=3.6, <4', # This field lists other packages that your project depends on to run. # Any package you put here will be installed by pip when your project is # installed, so they must be valid existing projects. # # For an analysis of "install_requires" vs pip's requirements files see: # https://packaging.python.org/en/latest/requirements.html install_requires=[
+ extras["jira"] ) cmdclass = { "verify_version": VerifyVersionCommand, } cmdclass.update(versioneer.get_cmdclass()) setup( name="prefect", version=versioneer.get_version(), cmdclass=cmdclass, install_requires=install_requires, extras_require=extras, scripts=[], packages=find_packages(where="src"), package_dir={"": "src"}, package_data={"prefect": ["py.typed"]}, include_package_data=True, entry_points={"console_scripts": ["prefect=prefect.cli:cli"]}, python_requires=">=3.6", description="The Prefect Core automation and scheduling engine.", long_description=open("README.md").read(), long_description_content_type="text/markdown", url="https://www.github.com/PrefectHQ/prefect", license="Apache License 2.0", author="Prefect Technologies, Inc.", author_email="*****@*****.**", classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers",
from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='ipxe_http', version='0.1.0', description='iPXE http server for chainloaded bootscripts', long_description=readme, author='Michael Moese', author_email='*****@*****.**', url='https://github.com/frankenmichl/ipxe_http', license=license, packages=find_packages(exclude=('tests', 'docs')) )
# This field adds keywords for your project which will appear on the # project page. What does your project relate to? # # Note that this is a string of words separated by whitespace, not a list. keywords='pytorch rubi vqa bias block murel tdiuc visual question answering visual relationship detection relation bootstrap deep learning neurips nips', # Optional # You can just specify package directories manually here if your project is # simple. Or you can use find_packages(). # # Alternatively, if you just want to distribute a single Python file, use # the `py_modules` argument instead as follows, which will expect a file # called `my_module.py` to exist: # # py_modules=["my_module"], # packages=find_packages(exclude=['data', 'logs', 'tests', 'bootstrap', 'block']), # Required # This field lists other packages that your project depends on to run. # Any package you put here will be installed by pip when your project is # installed, so they must be valid existing projects. # # For an analysis of "install_requires" vs pip's requirements files see: # https://packaging.python.org/en/latest/requirements.html install_requires=[ 'bootstrap.pytorch', 'skipthoughts', 'pretrainedmodels', 'opencv-python', 'block.bootstrap.pytorch', #'cfft' ],
"Intended Audience :: System Administrators", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Operating System :: OS Independent", "Programming Language :: JavaScript", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Office/Business :: News/Diary", "Topic :: Software Development :: Libraries :: Python Modules", ], keywords='plone cover javascript dexterity', author='Carlos de la Guardia', author_email='*****@*****.**', url='https://github.com/collective/collective.cover', license='GPLv2', packages=find_packages('src'), package_dir={'': 'src'}, namespace_packages=['collective'], include_package_data=True, zip_safe=False, install_requires=[ 'collective.js.galleria', 'collective.js.jqueryui', 'five.grok', 'Pillow', 'plone.app.blocks', 'plone.app.dexterity[grok,relations]', 'plone.app.jquery>=1.7.2', 'plone.app.jquerytools>=1.5.1', 'plone.app.lockingbehavior', 'plone.app.registry',
'License :: OSI Approved :: Zope Public License', "Natural Language :: English", "Natural Language :: French", "Natural Language :: German", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", ], keywords='group, properties, administration', author='Alice Murphy', author_email='*****@*****.**', maintainer='Michael JasonSmith', maintainer_email='*****@*****.**', url='https://github.com/groupserver/{0}/'.format(name), license='ZPL 2.1', packages=find_packages(exclude=['ez_setup']), namespace_packages=['.'.join(name.split('.')[:i]) for i in range(1, len(name.split('.')))], include_package_data=True, zip_safe=False, install_requires=[ 'setuptools', 'zope.browserpage', 'zope.cachedescriptors', 'zope.component', 'zope.formlib', 'zope.i18n[compile]', 'zope.i18nmessageid', 'zope.interface', 'zope.schema', 'zope.tal',
obs, rewards, dones, info = env.step(action) env.render() ``` Or just train a model with a one liner if [the environment is registered in Gym](https://github.com/openai/gym/wiki/Environments) and if [the policy is registered](https://stable-baselines.readthedocs.io/en/master/guide/custom_policy.html): ```python from stable_baselines import PPO2 model = PPO2('MlpPolicy', 'CartPole-v1').learn(10000) ``` """ setup(name='stable_baselines', packages=[package for package in find_packages() if package.startswith('stable_baselines')], package_data={ 'stable_baselines': ['py.typed'], }, install_requires=[ 'gym[atari,classic_control]>=0.10.9', 'scipy', 'joblib', 'cloudpickle>=0.5.5', 'opencv-python', 'numpy', 'pandas', 'matplotlib' ] + tf_dependency, extras_require={
with open("requirements.txt") as f: required = f.read().splitlines() with open("README.rst", encoding="utf-8") as f: long_description = f.read() setup( name="python-synology", version=VERSION, url=REPO_URL, download_url=REPO_URL + "/tarball/" + VERSION, description="Python API for communication with Synology DSM", long_description=long_description, author="FG van Zeelst (ProtoThis)", packages=find_packages(include=["synology_dsm*"]), install_requires=required, python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", license="MIT", classifiers=[ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8",
url="https://github.com/rapidsai/cudf", author="NVIDIA Corporation", license="Apache 2.0", classifiers=[ "Intended Audience :: Developers", "Topic :: Database", "Topic :: Scientific/Engineering", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", ], # Include the separately-compiled shared library setup_requires=["cython"], ext_modules=cythonize( extensions, nthreads=nthreads, compiler_directives=dict(profile=False, language_level=3, embedsignature=True), ), packages=find_packages(include=["cudf", "cudf.*"]), package_data=dict.fromkeys( find_packages(include=["cudf._lib*"]), ["*.pxd"], ), cmdclass=versioneer.get_cmdclass(), install_requires=install_requires, zip_safe=False, )
from setuptools import setup, find_packages setup(name='pyckstart', version='0.0.3', author='Zulko 2013, Jc Saad-Dupuy 2014', description='Module for easy python modules creation', long_description=open('README.rst').read(), license='LICENSE.txt', keywords="python module template engine setuptools", install_requires=["jinja2 >= 2.7.2", "sh >= 1.09"], package_dir={'': 'src'}, packages=find_packages('src', exclude='docs'), entry_points={'console_scripts': [ 'pyckstart = pyckstart:main', ]}, include_package_data=True, package_data={'': ['files/*.tpl', 'files/**/*.tpl']})
from setuptools import setup, find_packages setup( name='weio', version='1.0', description='Library to read and write files', url='http://github.com/elmanuelito/weio/', author='Emmanuel Branlard', author_email='*****@*****.**', license='MIT', packages=find_packages(include=['weio'],exclude=['./__init__.py']), zip_safe=False ) # packages=['weio'],
# -*- coding: utf-8 -*- from setuptools import setup, find_packages pkgs = [ 'scikit-image==0.18.1', 'torch==1.7.1', 'PyYAML==5.4.1', 'torchvision==0.8.2' ] setup(name='MR_CLASS', versiom='0.1.0', description='MR_contrast classifier', url='https://github.com/pgsalome/mrclass', python_requires='>=3.5', author='Patrick Salome', author_email='*****@*****.**', license='Apache 2.0', zip_safe=False, install_requires=pkgs, packages=find_packages(exclude=['docs', 'tests*']), classifiers=[ 'Intended Audience :: Science/Research', 'Programming Language :: Python', 'Topic :: Scientific/Engineering', 'Operating System :: Unix' ])
LONG_DESCRIPTION = f.read() setup(name='chanjo-report', # versions should comply with PEP440 version='1.0.1', description='Automatically render coverage reports from Chanjo ouput', long_description=LONG_DESCRIPTION, # what does your project relate to? keywords='chanjo-report development', author='Robin Andeer', author_email='*****@*****.**', license='MIT', # the project's main homepage url='https://github.com/robinandeer/chanjo-report', packages=find_packages(exclude=('tests*', 'docs', 'examples')), # if there are data files included in your packages include_package_data=True, package_data={ 'chanjo_report': [ 'server/blueprints/report/static/*.css', 'server/blueprints/report/static/vendor/*.css', 'server/blueprints/report/templates/report/*.html', 'server/blueprints/report/templates/report/layouts/*.html', 'server/translations/sv/LC_MESSAGES/*', ] }, zip_safe=False, install_requires=[ 'setuptools', 'chanjo>=2.1.0',
# create closure for deferred import def cythonize(*args, **kwargs): from Cython.Build import cythonize return cythonize(*args, **kwargs) def build_ext(*args, **kwargs): from Cython.Distutils import build_ext return build_ext(*args, **kwargs) from setuptools import find_packages from setuptools import setup, Extension from octobot_backtesting import PROJECT_NAME, VERSION PACKAGES = find_packages(exclude=["tests"]) packages_list = [ "octobot_backtesting.channels_manager", "octobot_backtesting.backtesting", "octobot_backtesting.importers.data_importer", "octobot_backtesting.importers.exchanges.exchange_importer", "octobot_backtesting.importers.social.social_importer", "octobot_backtesting.data.data_file_manager", "octobot_backtesting.data.database", "octobot_backtesting.util.backtesting_util", "octobot_backtesting.collectors.data_collector", "octobot_backtesting.collectors.exchanges.exchange_collector", "octobot_backtesting.collectors.exchanges.abstract_exchange_history_collector", "octobot_backtesting.collectors.exchanges.abstract_exchange_live_collector", "octobot_backtesting.collectors.social.social_collector",
from setuptools import setup, find_packages requirements = [ 'box2d-py~=2.3.5', 'gym>=0.17.1', 'numpy>=1.18', ] setup(name='gym_lunar_lander_custom', version='0.0.1', python_requires='>=3.5', description='LunarLander with Mixed Action Space', url='[email protected]:nimishsantosh107/LunarLander-Custom.git', author='Nimish Santosh', author_email='*****@*****.**', install_requires=requirements, license='unlicense', packages=find_packages( include=['gym_lunar_lander_custom', 'gym_lunar_lander_custom.*']), zip_safe=False)
import setuptools readme = open('README.md').read() requirements = open("requirements.txt").readlines() test_requirements = open("requirements-test.txt").readlines() setuptools.setup( name = 'insteon-mqtt', version = '0.6.9', description = "Insteon <-> MQTT bridge server", long_description = readme, author = "Ted Drain", author_email = '', url = 'https://github.com/TD22057/insteon-mqtt', packages = setuptools.find_packages(exclude=["tests*"]), scripts = ['scripts/insteon-mqtt'], include_package_data = True, install_requires = requirements, license = "GNU General Public License v3", classifiers = [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', 'Natural Language :: English', 'Programming Language :: Python :: 3', ], test_suite = 'tests', tests_require = test_requirements, # avoid eggs zip_safe = False,
'Topic :: Scientific/Engineering :: Information Analysis', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Development Status :: 4 - Beta', ], entry_points={ 'console_scripts': ['dicomweb_client = dicomweb_client.cli:_main'], }, include_package_data=True, packages=setuptools.find_packages('src'), package_dir={'': 'src'}, extras_require={ 'gcp': [ 'dataclasses>=0.8; python_version=="3.6"', 'google-auth>=1.6', 'google-oauth>=1.0', ], }, python_requires='>=3.6', install_requires=[ 'numpy>=1.19', 'requests>=2.18', 'retrying>=1.3.3', 'Pillow>=8.3', 'pydicom>=2.2', 'typing-extensions>=4.0; python_version < "3.8.0"' ])
'Topic :: Software Development :: Build Tools', # Pick your license as you wish (should match "license" above) 'License :: OSI Approved :: MIT License', # Specify the Python versions you support here. In particular, ensure # that you indicate whether you support Python 2, Python 3 or both. 'Programming Language :: Python :: 2.7', ], # What does your project relate to? keywords='Docker pexpect expect automation build', # You can just specify the packages manually here if your project is # simple. Or you can use find_packages(). packages=['.'] + find_packages(), # List run-time dependencies here. These will be installed by pip when # your project is installed. For an analysis of "install_requires" vs pip's # requirements files see: # https://packaging.python.org/en/latest/requirements.html install_requires=[ 'pexpect>=4.0', 'jinja2>=0.1', 'texttable>=0.1', 'six>=1.10', 'future>=0.15' ], # List additional groups of dependencies here (e.g. development # dependencies). You can install these using the following syntax, # for example: # $ pip install -e .[dev,test] extras_require={
from setuptools import setup, find_packages version = '0.1' setup( name='ckanext-pages', version=version, description='Basic CMS extension for ckan', long_description='', classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='David Raznick', author_email='*****@*****.**', url='', license='', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), namespace_packages=['ckanext'], include_package_data=True, package_data={ '': ['theme/*/*.html', 'theme/*/*/*.html', 'theme/*/*/*/*.html'], }, zip_safe=False, install_requires=[ # -*- Extra requirements: -*- ], entry_points=\ """ [ckan.plugins] pages=ckanext.pages.plugin:PagesPlugin textboxview=ckanext.pages.plugin:TextBoxView [babel.extractors]
# package name in pypi name='vue-i18n-generate', # extract version from module. version=__version__, description="This utility parse your source codebase and save terms to " "local files", long_description="Nuxt and vue project i18n don't have cli to grab from " "code all i18n messages like: $t('msg'), " "$t('msg.nested.like.object.json'), $tc(\"verbose\", " "{param1: 'value'}). This utility parse your source " "codebase and save all found terms for each locale to " "lang/${locale}.js.\nUpdating strategy: Your original " "terms will save over generated and manually added " "terms to files will be saved after each generating.", classifiers=['tool', 'vue', 'i18n'], keywords=['vue', 'vue-i18n', 'i18n', 'tool'], author='Yevhenii Dehtiar', author_email='*****@*****.**', url='https://github.com/yevheniidehtiar/vue-i18n-generate', license='', # include all packages in the egg, except the test package. packages=find_packages(exclude=['example', '*.tests.*']), # include non python files include_package_data=True, zip_safe=False, # specify dependencies install_requires=[ 'sortedcontainers', ] )
'Topic :: Software Development :: Build Tools', ], keywords='easy_install distutils setuptools egg virtualenv', author='The Ryppl Project', author_email='*****@*****.**', url='http://ryppl.org', license='MIT', install_requires=['pip>=0.8'], # dependency_links=[ # 'http://github.com/ryppl/pip/zipball/master#egg=pip', # 'http://bitbucket.org/tarek/distutils2/get/7eff59171017.gz#egg=distutils2' # ], #install_requires=['distutils2'], # It is somewhat evil to install distutils2 this way; we should be # declaring it as a dependency and allowing setuptools.setup() # to fetch it as necessary, but I'm not yet sure how to declare # such dependencies. In the meantime, this works. packages=find_packages('src') + find_packages(distutils2_pkg) , package_dir = dict( ryppl=os.path.join('src','ryppl'), distutils2=os.path.join(distutils2_pkg,'distutils2') ), entry_points=dict(console_scripts=['ryppl=ryppl:main']), )
setup( name="pdf2image", version="1.16.0", description= "A wrapper around the pdftoppm and pdftocairo command line tools to convert PDF to a PIL Image list.", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/Belval/pdf2image", author="Edouard Belval", author_email="*****@*****.**", # Choose your license license="MIT", # See https://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ # 3 - Alpha # 4 - Beta # 5 - Production/Stable "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", ], keywords="pdf image png jpeg jpg convert", packages=find_packages(exclude=["contrib", "docs", "tests"]), install_requires=["pillow"], )
# Pick your license as you wish (should match "license" above) 'License :: OSI Approved :: BSD License', # Specify the Python versions you support here. In particular, ensure # that you indicate whether you support Python 2, Python 3 or both. 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', 'Topic :: Scientific/Engineering :: Physics', ], # What does your project relate to? keywords='', # You can just specify the packages manually here if your project is # simple. Or you can use find_packages(). packages=find_packages(exclude=['examples', 'docs', 'tests']), # Alternatively, if you want to distribute just a my_module.py, uncomment # this: # py_modules=["my_module"], # List run-time dependencies here. These will be installed by pip when # your project is installed. For an analysis of "install_requires" vs pip's # requirements files see: # https://packaging.python.org/en/latest/requirements.html install_requires=requires, # List additional groups of dependencies here (e.g. development # dependencies). You can install these using the following syntax, # for example: # $ pip install -e .[dev,test]
name='ogn-client', version=PACKAGE_VERSION, description='A python module for the Open Glider Network', long_description=long_description, url='https://github.com/glidernet/python-ogn-client', author='Konstantin Gründger aka Meisterschueler, Fabian P. Schmidt aka kerel', author_email='*****@*****.**', license='AGPLv3', classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'Topic :: Scientific/Engineering :: GIS', 'License :: OSI Approved :: GNU Affero General Public License v3', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], keywords='gliding ogn', packages=['ogn.{}'.format(package) for package in find_packages(where='ogn')], install_requires=[], extras_require={ 'dev': [ 'nose==1.3.7', 'coveralls==1.1', 'flake8==3.3.0' ] }, zip_safe=False )