def do_setup_package_providers(provider_module: str, deps: List[str], extras: Dict[str, List[str]]): setup.write_version() provider_package_name = get_provider_package_name(provider_module) package_name = f'{provider_package_name}' if provider_module != "providers" \ else f'apache-airflow-providers' package_prefix = f'airflow.providers.{provider_module}' if provider_module != 'providers' \ else 'airflow.providers' found_packages = find_packages() found_packages = [package for package in found_packages if package.startswith(package_prefix)] setuptools_setup( name=package_name, description=f'Back-porting ${package_name} package for Airflow 1.10.*', long_description=f""" Back-ported {package_name} to 1.10.* series of Airflow. """, long_description_content_type='text/markdown', license='Apache License 2.0', version='0.0.1', packages=found_packages, include_package_data=True, zip_safe=False, install_requires=['apache-airflow~=1.10'] + deps, extras_require=extras, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Topic :: System :: Monitoring', ], python_requires='>=3.6', )
def setup(**kwargs): """ A wrapper around setuptools' setup() function that automatically sets up custom commands, generates a version file, and customizes the setup process via the ``setup_package.py`` files. """ # DEPRECATED: store the package name in a built-in variable so it's easy # to get from other parts of the setup infrastructure. We should phase this # out in packages that use it - the cookiecutter template should now be # able to put the right package name where needed. conf = read_configuration('setup.cfg') builtins._ASTROPY_PACKAGE_NAME_ = conf['metadata']['name'] # Create a dictionary with setup command overrides. Note that this gets # information about the package (name and version) from the setup.cfg file. cmdclass = register_commands() # Freeze build information in version.py. Note that this gets information # about the package (name and version) from the setup.cfg file. version = generate_version_py() # Get configuration information from all of the various subpackages. # See the docstring for setup_helpers.update_package_files for more # details. package_info = get_package_info() package_info['cmdclass'] = cmdclass package_info['version'] = version # Override using any specified keyword arguments package_info.update(kwargs) setuptools_setup(**package_info)
def do_setup_package_providers(provider_package_id: str, version_suffix: str, package_dependencies: Iterable[str], extras: Dict[str, List[str]]) -> None: """ The main setup method for package. :param provider_package_id: id of the provider package :param version_suffix: version suffix to be added to the release version (for example rc1) :param package_dependencies: dependencies of the package :param extras: extras of the package """ setup.write_version() provider_package_name = get_pip_package_name(provider_package_id) package_name = f'{provider_package_name}' package_prefix = f'airflow.providers.{provider_package_id}' found_packages = find_packages() found_packages = [package for package in found_packages if package.startswith(package_prefix)] airflow_dependency = 'apache-airflow~=1.10' if provider_package_id != 'cncf.kubernetes' \ else 'apache-airflow>=1.10.12, <2.0.0' install_requires = [ airflow_dependency ] install_requires.extend(package_dependencies) setuptools_setup( name=package_name, description=f'Back-ported {package_prefix}.* package for Airflow 1.10.*', long_description=get_long_description(provider_package_id), long_description_content_type='text/markdown', license='Apache License 2.0', version=get_package_release_version( provider_package_id=provider_package_id, version_suffix=version_suffix), packages=found_packages, zip_safe=False, install_requires=install_requires, extras_require=extras, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Topic :: System :: Monitoring', ], setup_requires=[ 'bowler', 'docutils', 'gitpython', 'setuptools', 'wheel', ], python_requires='>=3.6', )
def setup(**setup_kwargs): setup_kwargs.update({ 'zip_safe': False, 'include_package_data': True, 'cmdclass': dict(build_extension_cmdclass(BuildStaticFiles), **setup_kwargs.get('cmdclass', {})), }) setuptools_setup(**setup_kwargs)
def setup(**setup_kwargs): os.environ['FORCE_BUILD_MEDIA'] = '1' setup_kwargs.update({ 'zip_safe': False, 'include_package_data': True, 'cmdclass': dict(build_extension_cmdclass(BuildStaticFiles), **setup_kwargs.get('cmdclass', {})), }) setuptools_setup(**setup_kwargs)
def setup(**kwargs: Any) -> None: """Wrap setuptool's setup, to package a Ciukune plugin.""" with open('README.md', encoding='utf-8') as readme: long_description = readme.read() setuptools_setup( cmdclass={'build_py': _BuildPy}, distclass=_CiukuneDistribution, include_package_data=True, long_description=long_description, long_description_content_type="text/markdown", packages=_get_ciukune_packages(), version=_get_git_version(), **kwargs )
def setup(**setup_kwargs): # Add the included conf directory so that there's a settings_local.py # file that can be used to package the static media. extensions_dir = os.path.abspath(os.path.dirname(__file__)) sys.path.insert(0, os.path.join(extensions_dir, 'conf')) os.environ[b'FORCE_BUILD_MEDIA'] = b'1' setup_kwargs.update({ 'zip_safe': False, 'include_package_data': True, 'cmdclass': dict(build_extension_cmdclass(BuildStaticFiles), **setup_kwargs.get('cmdclass', {})), }) setuptools_setup(**setup_kwargs)
def do_setup_package_providers(provider_package: str, deps: List[str], extras: Dict[str, List[str]]): setup.write_version() provider_package_name = get_provider_package_name(provider_package) package_name = f'{provider_package_name}' if provider_package != "providers" \ else f'apache-airflow-providers' package_prefix = f'airflow.providers.{provider_package}' if provider_package != 'providers' \ else 'airflow.providers' found_packages = find_packages() found_packages = [ package for package in found_packages if package.startswith(package_prefix) ] setuptools_setup( name=package_name, description=f'Back-ported ${package_name} package for Airflow 1.10.*', long_description=get_long_description(provider_package), long_description_content_type='text/markdown', license='Apache License 2.0', version='2020.04.27.rc1', packages=found_packages, package_data={ '': ["airflow/providers/cncf/kubernetes/example_dags/*.yaml"], }, include_package_data=True, zip_safe=False, install_requires=['apache-airflow~=1.10'] + deps, extras_require=extras, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Topic :: System :: Monitoring', ], setup_requires=[ 'bowler', 'docutils', 'gitpython', 'setuptools', 'wheel', ], python_requires='>=3.6', )
def __init__(self, scripts=None, entry_points=None, **kwargs): self.scripts = scripts self.entry_points = entry_points if "pyinstaller" in sys.argv: if "--" in sys.argv and sys.argv.index("--") < len(sys.argv) - 1: self.flags = " ".join(sys.argv[sys.argv.index("--") + 1 :]) else: self.flags = "" if not os.path.exists("./dist"): os.mkdir("dist") if self.scripts: self.install_scripts() if self.entry_points: self.install_entry_points() else: setuptools_setup(scripts=scripts, entry_points=entry_points, **kwargs)
def setup_packages(): setuptools_setup( name=get_metadata("name"), version=get_metadata("version"), description=get_metadata("description"), url=get_metadata("url"), author=get_metadata("author"), author_email=get_metadata("author_email"), license=get_metadata("license"), platforms=[get_metadata("platforms")], keywords=[get_metadata("keywords")], entry_points="", long_description=read("README.rst"), include_package_data=True, # See MANIFEST.in for explicit rules packages=find_packages(), use_2to3=True, # Reqd for Windows + Py3 - ref Github issue #32 zip_safe=False, install_requires=REQUIRES, extras_require=EXTRAS, # Conditional dependencies Github isssue #127 # setup_requires=["setuptools_hg"], # setuptools_hg must be installed as a python module classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Plugins", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "Intended Audience :: Information Technology", "Intended Audience :: Telecommunications Industry", "License :: OSI Approved :: GNU General Public License (GPL)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Communications", "Topic :: Internet", "Topic :: System :: Networking", "Topic :: System :: Networking :: Monitoring", "Topic :: Software Development :: Libraries :: Python Modules", ], )
# setuptools_setup # =========================================================================================================================== setuptools_setup( name='PySpeedIT', version=_version, author='peter1000', author_email='https://github.com/peter1000', url='https://github.com/peter1000/PySpeedIT', license='BSD-3-Clause', packages=setuptools_find_packages(), include_package_data=True, install_requires=read_requires('requirements.txt'), use_2to3=False, zip_safe=False, platforms=['Linux'], cmdclass=cmdclass, ext_modules=ext_modules, description="A Collection of: Benchmark-IT, Profile-IT, Line-Memory-Profile-IT, Disassemble-IT.", long_description=open('README.rst', 'r').read(), classifiers=[ 'Development Status :: 5 - Production/Stable', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 3', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Software Development :: Testing', 'Topic :: System :: Benchmark', ], keywords='python benchmark profile timeit speed memory disassemble', scripts=[], )
setuptools_setup( name=packageName, version=get_version(), author="Tristan Gingold", author_email="*****@*****.**", license="GPL-2.0-or-later", description="Python binding for GHDL and high-level APIs (incl. LSP).", long_description=long_description, long_description_content_type="text/markdown", url=sourceCodeURL, project_urls={ 'Documentation': documentationURL, 'Source Code': sourceCodeURL, 'Issue Tracker': sourceCodeURL + "/issues" }, python_requires='>=3.6', install_requires=requirements, packages=setuptools_find_packages(exclude=("tests",)), entry_points={ 'console_scripts': [ "ghdl-ls = pyGHDL.cli.lsp:main" ] }, keywords="Python3 VHDL Parser Compiler Simulator GHDL", classifiers=[ "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows :: Windows 10", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Development Status :: 4 - Beta", # "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)", "Topic :: Software Development :: Code Generators", "Topic :: Software Development :: Compilers", "Topic :: Software Development :: Testing", "Topic :: Utilities", ] )
# ===================================================================================================================== setuptools_setup( name='PyLCONF', version=VERSION, author='peter1000', author_email='https://github.com/peter1000', url='http://lconf-data-serialization-format.github.io/PyLCONF/', license='MIT (Expat)', packages=setuptools_find_packages(), include_package_data=True, install_requires=read_requires('requirements.txt'), use_2to3=False, zip_safe=False, platforms=['Linux'], cmdclass=cmdclass, ext_modules=ext_modules, description="A LCONF parser and emitter for Python.", long_description=open('README.md', 'r').read(), classifiers=[ 'Development Status :: 4 - Beta', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 3', 'Topic :: Text Processing :: Markup', 'Topic :: Software Development :: Libraries :: Python Modules' ], keywords='python markup configuration json yaml LCONF LCONF-Data-Serialization-Format serialization', scripts=[ 'bin/pylconf-validate', 'bin/pylconfsd-validate', ], )
], test_suite="tests", install_requires=REQUIREMENTS, tests_require=TEST_REQUIREMENTS, ) # Below is a hack to make "python setup.py develop" or "pip install -e ." to work. # Without this, the xtgeo.egg-link file will be wrong, e.g.: # /home/jan/work/git/xtg/xtgeo # . # # instead of the correct: # /home/jan/work/git/xtg/xtgeo/src # ../ # # The wrong egg-link comes when find_packages(where="src") finds a list of packages in # scikit-build version of setup(). No clue why... if CMD == "develop": print("Run in DEVELOP mode") setuptools_setup( # use setuptools version of setup name="xtgeo", use_scm_version={"root": src(""), "write_to": src("src/xtgeo/_theversion.py")}, packages=find_packages(where="src"), package_dir={"": "src"}, zip_safe=False, test_suite="tests", install_requires=REQUIREMENTS, tests_require=TEST_REQUIREMENTS, )
f"{sf}_place = {shwrappers}:place", f"{sf}_route = {shwrappers}:route", f"{sf}_synth = {shwrappers}:synth", f"{sf}_write_bitstream = {shwrappers}:write_bitstream", f"{sf}_write_fasm = {shwrappers}:write_fasm", ] if F4PGA_FAM == 'xc7' else [ f"{sf}_pack = {shwrappers}:pack", f"{sf}_place = {shwrappers}:place", f"{sf}_route = {shwrappers}:route", f"{sf}_write_fasm = {shwrappers}:write_fasm", ] setuptools_setup( name=packagePath.name, version="0.0.0", license="Apache-2.0", author="F4PGA Authors", description="F4PGA.", url="https://github.com/chipsalliance/f4pga", packages=[ "f4pga.wrappers.sh", ], package_dir={"f4pga": "."}, package_data={ 'f4pga.wrappers.sh': ['xc7/*.f4pga.sh', 'quicklogic/*.f4pga.sh'] }, classifiers=[], python_requires='>=3.6', entry_points={"console_scripts": wrapper_entrypoints}, )
# setuptools_setup # =========================================================================================================================== setuptools_setup( name='TEMPLATE_PyPROJECT', version=_version, author='peter1000', author_email='https://github.com/peter1000', url='https://github.com/peter1000/TEMPLATE_PyPROJECT', license='BSD-3-Clause', packages=setuptools_find_packages(), include_package_data=True, install_requires=read_requires('requirements.txt'), use_2to3=False, zip_safe=False, platforms=['Linux'], cmdclass=cmdclass, ext_modules=ext_modules, description="TEMPLATE__OneLine_PyPROJECT_Description", long_description=open('README.rst', 'r').read(), classifiers=[ 'Development Status :: 3 - Alpha', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 3', 'Topic :: Documentation', 'Topic :: Software Development :: ???', # TODO ], keywords='python :: ???', # TODO scripts=[ # TODO ], )
Create Console Games (Windows ONLY!)<br /> ![Lol](https://github.com/Pixelsuft/Loxa-bot/raw/main/bot_small.png?raw=true) # ChangeLog v0.0.3:<br /> Fixed Old Bugs # Links [GitHub](https://github.com/Pixelsuft/console_engine/) ''' setuptools_setup(name="console_engine", version="0.0.7", author="Pixelsuft", description="Create Console Games (Windows ONLY!)", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/Pixelsuft/console_engine/", packages=setuptools_find_packages(), classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: Microsoft :: Windows :: Windows 10", ], python_requires='>=3.5', license='MIT', keywords='console_engine', install_requires=[ 'console_engine', 'wav_win_sound', 'parse_args', 'pywin32', 'colorama', 'pyautogui', 'urllib3' ], py_modules=['console_engine'])
def setup(**kwargs): """ Call the regular `setuptools.setup` function with data read from our setup.cfg file. Parameters ---------- kwargs : arguments dictionary Override any of the default `setuptools.setup` keyword arguments. """ org.setup_global_org_config() check_multiple_call() original_cwd = os.getcwd() set_working_dir() test.gather_trailing_args() # Base set of defaults call_args = dict(distclass=Distribution, name='', version='', description='', long_description='', keywords='', author='', author_email='', url='', setup_requires=[], install_requires=[], tests_require=[], license='Proprietary', classifiers=[], entry_points={}, scripts=[], ext_modules=[], packages=find_packages(exclude=['test*']), include_package_data=True, zip_safe=True, namespace_packages=[], original_cwd=original_cwd, cmdclass=dict(DEFAULT_CMD_CLASS), options=dict(aliases=dict(ALIASES), )) # Get the package metadata from the setup.cfg file call_args.update(parse.parse_pkg_metadata(parse.get_pkg_cfg_parser())) # Overrides/updates attributes from call arguments. # Override for scalar, update for dictionaries. for k, v in kwargs.items(): if type(v) is dict and k in call_args: call_args[k].update(v) else: call_args[k] = v check_distclass(call_args["distclass"]) # Call base setup method, retrieve distribution dist = setuptools_setup(**call_args) # Check if we've set a failed flag this may be due to a failed upload. if hasattr(dist, '_failed') and dist._failed: raise SystemExit(1)
# =========================================================================================================================== # setuptools_setup # =========================================================================================================================== setuptools_setup( name='JqPyCharts', version=_version, author='peter1000', author_email='https://github.com/peter1000', url='https://github.com/peter1000/JqPyCharts', license='BSD-3-Clause', packages=setuptools_find_packages(), include_package_data=True, install_requires=read_requires('requirements.txt'), use_2to3=False, zip_safe=False, platforms=['Linux'], cmdclass=cmdclass, description= "Selection of: Javascripts / Css for simple charts in python projects.", long_description=open('README.rst', 'r').read(), classifiers=[ 'Development Status :: 4 - Beta', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 3', 'Topic :: Documentation', 'Topic :: Internet :: WWW/HTTP', ], keywords='python web charts javascript css', scripts=[], )
mixer.load("track1.wav") mixer.sync_play() mixer.load(["track1.wav", "track2.wav"]) mixer.async_play() mixer.stop() ``` # Bugs You must has internet before start first playing after installation<br /> (I can't pack wav player to a package, before first playing it will be downloaded!) ''' setuptools_setup(name="wav_win_sound", version="1.0.7", author="Pixelsuft", description="Play WAV Sounds (Windows ONLY!)", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/Pixelsuft/wav_win_sound/", packages=setuptools_find_packages(), classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: Microsoft :: Windows :: Windows 10", ], python_requires='>=3.5', license='MIT', keywords='wav_win_sound', install_requires=['parse_args', 'urllib3'], py_modules=['wav_win_sound'])
# =========================================================================================================================== # setuptools_setup # =========================================================================================================================== setuptools_setup( name='JqPyCharts', version=_version, author='peter1000', author_email='https://github.com/peter1000', url='https://github.com/peter1000/JqPyCharts', license='BSD-3-Clause', packages=setuptools_find_packages(), include_package_data=True, install_requires=read_requires('requirements.txt'), use_2to3=False, zip_safe=False, platforms=['Linux'], cmdclass=cmdclass, description="Selection of: Javascripts / Css for simple charts in python projects.", long_description=open('README.rst', 'r').read(), classifiers=[ 'Development Status :: 4 - Beta', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 3', 'Topic :: Documentation', 'Topic :: Internet :: WWW/HTTP', ], keywords='python web charts javascript css', scripts=[], )
elif line.startswith("-r"): # Remove the first word/argument (-r) filename = " ".join(line.split(" ")[1:]) requirements += get_requirements(file.parent / filename) elif line.startswith("https"): # Convert 'URL#NAME' to 'NAME @ URL' splitItems = line.split("#") requirements.append("{} @ {}".format(splitItems[1], splitItems[0])) else: requirements.append(line) return requirements setuptools_setup( name=packagePath.name, version="0.0.0", license="Apache-2.0", author="Unai Martinez-Corral and contributors", author_email="*****@*****.**", description="Helper tool for HDL Containers.", url="https://github.com/hdl/containers", packages=setuptools_find_namespace_packages(exclude=[]), classifiers=[], python_requires='>=3.6', install_requires=list(set(get_requirements(requirementsFile))), entry_points={"console_scripts": [ "pyHDLC = pyHDLC.cli:main", ]}, )
setuptools_setup( name=projectName, version="0.11.1", author="Patrick Lehmann", author_email="*****@*****.**", # maintainer="Patrick Lehmann", # maintainer_email="*****@*****.**", license='Apache 2.0', description="An abstract VHDL language model.", long_description=long_description, long_description_content_type="text/markdown", url=sourceCodeURL, project_urls={ 'Documentation': documentationURL, 'Source Code': sourceCodeURL, 'Issue Tracker': sourceCodeURL + "/issues" }, # download_url="https://github.com/vhdl/pyVHDLModel/tarball/0.1.0", packages=setuptools_find_packages(exclude=["tests", "tests.*",]), classifiers=[ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Development Status :: 4 - Beta", # "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)", "Topic :: Software Development :: Code Generators", "Topic :: Software Development :: Compilers", "Topic :: Utilities" ], keywords="Python3 VHDL Language Model Abstract", python_requires='>=3.6', install_requires=requirements, )
def setup(**kwargs): """ Call the regular `setuptools.setup` function with data read from our setup.cfg file. Parameters ---------- kwargs : arguments dictionary Override any of the default `setuptools.setup` keyword arguments. """ org.setup_global_org_config() check_multiple_call() original_cwd = os.getcwd() set_working_dir() test.gather_trailing_args() # Base set of defaults call_args = dict( distclass=Distribution, name='', version='', description='', long_description='', keywords='', author='', author_email='', url='', setup_requires=[], install_requires=[], tests_require=[], license='Proprietary', classifiers=[], entry_points={}, scripts=[], ext_modules=[], packages=find_packages(exclude=['test*']), include_package_data=True, zip_safe=True, namespace_packages=[], original_cwd=original_cwd, cmdclass=dict(DEFAULT_CMD_CLASS), options=dict( aliases=dict(ALIASES), )) # Get the package metadata from the setup.cfg file call_args.update(parse.parse_pkg_metadata(parse.get_pkg_cfg_parser())) # Overrides/updates attributes from call arguments. # Override for scalar, update for dictionaries. for k, v in kwargs.items(): if type(v) is dict and k in call_args: call_args[k].update(v) else: call_args[k] = v check_distclass(call_args["distclass"]) # Call base setup method, retrieve distribution dist = setuptools_setup(**call_args) # Check if we've set a failed flag this may be due to a failed upload. if hasattr(dist, '_failed') and dist._failed: raise SystemExit(1)
# =========================================================================================================================== setuptools_setup( name='LCONF', version=_version, author='peter1000', author_email='https://github.com/peter1000', url='https://github.com/peter1000/LCONF', license='BSD-3-Clause', packages=setuptools_find_packages(), include_package_data=True, install_requires=read_requires('requirements.txt'), use_2to3=False, zip_safe=False, platforms=['Linux'], cmdclass=cmdclass, ext_modules=ext_modules, description= "L(ight) CONF(iguration): A simple human-readable data serialization format for dynamic configuration.", long_description=open('README.rst', 'r').read(), classifiers=[ 'Development Status :: 4 - Beta', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python :: 3', 'Topic :: Text Processing :: Markup', 'Topic :: Software Development :: Libraries :: Python Modules' ], keywords='python markup configuration json yaml', scripts=[ 'bin/lconf-validate', ], )
def setup(*args, **kwargs): if 'cmdclass' not in kwargs: kwargs['cmdclass'] = {} kwargs['cmdclass'].setdefault('develop', develop) setuptools_setup(*args, **kwargs)