import subprocess errno = subprocess.call( [sys.executable, '-m', 'pip', 'install', 'setuptools-rust']) if errno: print("Please install setuptools-rust package") raise SystemExit(errno) else: from setuptools_rust import RustExtension setup_requires = ['setuptools-rust>=0.8.0'] install_requires = [] tests_require = install_requires + ['pytest', 'pytest-benchmark'] setup(name='rust-models', version='0.1.0', classifiers=[ 'License :: OSI Approved :: MIT License', 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Programming Language :: Python', 'Programming Language :: Rust', 'Operating System :: POSIX', 'Operating System :: MacOS :: MacOS X', ], packages=['rust_models'], rust_extensions=[RustExtension('rust_models.rust.models', 'Cargo.toml')], install_requires=install_requires, tests_require=tests_require, setup_requires=setup_requires, include_package_data=True, zip_safe=False)
# Copyright 2019 vtext developers # # Licensed under the Apache License, Version 2.0, # <http://apache.org/licenses/LICENSE-2.0>. This file may not be copied, # modified, or distributed except according to those terms. from setuptools import find_packages, setup from setuptools_rust import RustExtension with open("./requirements.txt", "rt") as fh: install_requires = fh.read().splitlines() setup( version="0.1.0a3", rust_extensions=[ RustExtension( "vtext._lib", "./Cargo.toml", rustc_flags=["--cfg=Py_3"], features=["numpy/python3"], args=["--no-default-features"], ) ], long_description_content_type="text/markdown", url="https://github.com/rth/vtext", python_requires=">=3.6", install_requires=install_requires, packages=find_packages(), )
"Topic :: Scientific/Engineering", ], keywords="qiskit sdk quantum", packages=find_packages(exclude=["test*"]), install_requires=REQUIREMENTS, include_package_data=True, python_requires=">=3.7", extras_require={ "visualization": visualization_extras, "bip-mapper": bip_requirements, "crosstalk-pass": z3_requirements, # Note: 'all' does not include 'bip-mapper' because cplex is too fiddly and too little # supported on various Python versions and OSes compared to Terra. You have to ask for it # explicitly. "all": visualization_extras + z3_requirements, }, project_urls={ "Bug Tracker": "https://github.com/Qiskit/qiskit-terra/issues", "Documentation": "https://qiskit.org/documentation/", "Source Code": "https://github.com/Qiskit/qiskit-terra", }, rust_extensions=[RustExtension("qiskit._accelerate", "Cargo.toml", binding=Binding.PyO3)], zip_safe=False, entry_points={ "qiskit.unitary_synthesis": [ "default = qiskit.transpiler.passes.synthesis.unitary_synthesis:DefaultUnitarySynthesis", "aqc = qiskit.transpiler.synthesis.aqc.aqc_plugin:AQCSynthesisPlugin", ] }, )
import subprocess import sys errno = subprocess.call([sys.executable, '-m', 'pytest', 'tests']) raise SystemExit(errno) setup_requires = ['setuptools-rust>=0.6.0'] install_requires = [] tests_require = install_requires + ['pytest', 'pytest-benchmark'] setup(name='word-count', version='0.1.0', classifiers=[ 'License :: OSI Approved :: MIT License', 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Programming Language :: Python', 'Programming Language :: Rust', 'Operating System :: POSIX', 'Operating System :: MacOS :: MacOS X', ], packages=['word_count'], rust_extensions=[RustExtension('word_count._word_count', 'Cargo.toml')], install_requires=install_requires, tests_require=tests_require, setup_requires=setup_requires, include_package_data=True, zip_safe=False, cmdclass=dict(test=PyTest))
def make_rust_extension(module_name): return RustExtension(module_name, "Cargo.toml", rustc_flags=get_py_version_cfgs(), debug=True)
setup_options = dict( name='lollygag', author='Daniel Kiss', version=VERSION, author_email='*****@*****.**', url='https://github.com/snorrwe/lollygag', description="A scalable web crawling base", long_description=get_readme(), license="MIT", package_dir={'': 'src'}, packages=find_packages('src'), install_requires=DEPENDENCIES, rust_extensions=[ RustExtension('lollygag_ext', 'lollygag_ext/py_interface/Cargo.toml', binding=Binding.RustCPython) ], tests_require=TEST_DEPENDENCIES, extras_require={'ci': TEST_DEPENDENCIES}, python_requires='>=3', cmdclass={ 'verify': VerifyVersionCommand, }, zip_safe=False, include_package_data=True, classifiers=( "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Internet :: WWW/HTTP :: Indexing/Search",
extras = {} extras["testing"] = ["pytest"] setup( name="tokenizers", version="0.9.0.dev1", description="Fast and Customizable Tokenizers", long_description=open("README.md", "r", encoding="utf-8").read(), long_description_content_type="text/markdown", keywords="NLP tokenizer BPE transformer deep learning", author="Anthony MOI", author_email="*****@*****.**", url="https://github.com/huggingface/tokenizers", license="Apache License 2.0", rust_extensions=[RustExtension("tokenizers.tokenizers", binding=Binding.PyO3, debug=False)], extras_require=extras, classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Science/Research", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Topic :: Scientific/Engineering :: Artificial Intelligence", ],
setuptools.setup( name="pip-crev", version="0.1.0", classifiers=[ "License :: OSI Approved :: MIT License", "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Rust", "Operating System :: POSIX", "Operating System :: MacOS :: MacOS X", ], packages=["pip_crev", "crev"], rust_extensions=[ RustExtension("crev.py_crev_lib", "py-crev-lib/Cargo.toml", debug=True) ], install_requires=install_requires, tests_require=tests_require, setup_requires=setup_requires, include_package_data=True, zip_safe=False, cmdclass={ "test": PyTest, "sdist": CargoModifiedSdist }, entry_points={ "console_scripts": ["pip-crev=pip_crev.pip_crev:parse_command_line_arguments"] }, )
from setuptools import setup from setuptools_rust import Binding, RustExtension # Workaround from https://github.com/PyO3/setuptools-rust/issues/2 try: from setuptools_rust import Binding, RustExtension except ImportError: import os, subprocess, sys try: subprocess.check_call( [sys.executable, '-m', 'pip', 'install', 'setuptools-rust']) os.execvp(sys.executable, [sys.executable] + sys.argv) except subprocess.CalledProcessError as err: print("Please install setuptools-rust package") raise SystemExit(err.errno) setup( name='ruido', version='0.1', rust_extensions=[ RustExtension('ruido._ruido', 'Cargo.toml', binding=Binding.RustCPython) ], packages=['ruido'], # rust extensions are not zip safe, just like C-extensions. zip_safe=False)
"Natural Language :: English", "Operating System :: POSIX :: Linux", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Programming Language :: Python", "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", "Programming Language :: Rust", # 'Programming Language :: Python :: Implementation :: PyPy', ], rust_extensions=[ RustExtension( # Python package name before the dot, name of C extension to # stick inside of it after the dot. "jsonlogic_plus.jsonlogic", "Cargo.toml", features=["python"], binding=Binding.RustCPython, ) ], packages=["jsonlogic_plus"], package_dir={"": "py"}, include_package_data=True, setup_requires=SETUP_REQUIRES, # rust extensions are not zip safe, just like C-extensions. zip_safe=False, )
CARGO_ROOT_PATH = os.path.join(ROOT_PATH, 'snips-nlu-ontology-rs') CARGO_FILE_PATH = os.path.join(CARGO_ROOT_PATH, 'Cargo.toml') CARGO_TARGET_DIR = os.path.join(CARGO_ROOT_PATH, 'target') os.environ['CARGO_TARGET_DIR'] = CARGO_TARGET_DIR with io.open(os.path.join(PACKAGE_PATH, VERSION)) as f: version = f.readline() with io.open(README, "rt", encoding="utf8") as f: readme = f.read() required = ["future==0.16.0", "wheel==0.30.0"] rust_extension = RustExtension( RUST_EXTENSION_NAME, CARGO_FILE_PATH, debug="develop" in sys.argv, args=["--verbose"] if "--verbose" in sys.argv else None, binding=Binding.NoBinding) setup(name=PACKAGE_NAME, description="Python wrapper of the Snips NLU ontology", long_description=readme, version=version, license="Apache 2.0", author="Kevin Lefevre, Adrien Ball", author_email="[email protected], [email protected]", classifiers=[ "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4",
""" """ import sys from setuptools import find_packages, setup from setuptools_rust import RustExtension PYTHON_MAJOR_VERSION = sys.version_info[0] setup_requires = ['setuptools-rust>=0.6.0'] install_requires = ['numpy'] test_requires = install_requires + ['pytest'] setup( name='pyext', version='0.1.0.0', rust_extensions=[ RustExtension( 'pyext.rust_binding', 'pyext-example/Cargo.toml', rustc_flags=['--cfg=Py_{}'.format(PYTHON_MAJOR_VERSION)], features=['numpy/python{}'.format(PYTHON_MAJOR_VERSION)], ) ], install_requires=install_requires, setup_requires=setup_requires, test_requires=test_requires, packages=find_packages(), zip_safe=False, )
author="Matthew Treinish", author_email="*****@*****.**", classifiers=[ "License :: OSI Approved :: Apache Software License", "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Rust", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", ], url="https://github.com/mtreinish/retworkx", project_urls={ "Bug Tracker": "https://github.com/mtreinish/retworkx/issues", "Source Code": "https://github.com/mtreinish/retworkx", "Documentation": "https://retworkx.readthedocs.io", }, rust_extensions=[ RustExtension("retworkx.retworkx", "Cargo.toml", binding=Binding.PyO3) ], include_package_data=True, packages=["retworkx"], zip_safe=False, python_requires=">=3.5", )
# variables, we'll default to 0.0.0.1 as a development version. version = os.environ.get('PYTHON_VERSION', '0.0.0.1') is_conda = bool(os.environ.get('CONDA_BUILD', False)) with open('./qdk_sim_experimental/version.py', 'w') as f: f.write(f'''# Auto-generated file, do not edit. ## # version.py: Specifies the version of the qsharp package. ## # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. ## __version__ = "{version}" _is_conda = {is_conda} ''') setuptools.setup( name="qdk_sim_experimental", version=version, rust_extensions=[ RustExtension("qdk_sim_experimental._qdk_sim_rs", binding=Binding.PyO3, features=["python"]) ], packages=["qdk_sim_experimental"], # rust extensions are not zip safe, just like C-extensions. zip_safe=False, include_package_data=True, )
"Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: OS Independent", "Operating System :: POSIX", "Programming Language :: Python", "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 :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: Rust", "Topic :: Software Development :: Disassemblers", "Topic :: Software Development :: Libraries", ], package_dir={"": "src"}, packages=["iced_x86"], rust_extensions=[ RustExtension("iced_x86._iced_x86_py", path="Cargo.toml", strip=Strip.All, py_limited_api=py_limited_api) ], include_package_data=True, zip_safe=False, )
MOC is an IVOA standard \ enabling description of arbitrary sky regions.\n \ Based on the HEALPix sky tessellation, it maps regions on the sky \ into hierarchically grouped predefined cells.\n \ An experimental support for TMOC (temporal MOC) has been added since version 0.4.0.\ It allows creation, parsing and comparison of TMOCs. \n\n \ Space & Time coverages (STMOC) are an extension of MOC to add time information. It is possible to get a TMOC by querying \ a STMOC with a MOC and/or get a MOC by querying a STMOC with a TMOC. \n\n \ Please check the mocpy's documentation by following this link: https://cds-astro.github.io/mocpy/", rust_extensions=[RustExtension( # Package name "mocpy.core", # The path to the cargo.toml file defining the rust-side wrapper. # This file usually contains the name of the project, its version, the author # and the dependencies of the crate (in our case the rust wrapper depends on the cdshealpix # crate). 'Cargo.toml', # Specify python version to setuptools_rust rustc_flags=['--cfg=Py_{}'.format(PYTHON_MAJOR_VERSION)], features=['numpy/python{}'.format(PYTHON_MAJOR_VERSION)], # Add the --release option when building the rust code debug=False)], classifiers=[ 'Development Status :: 4 - Beta', 'Programming Language :: Python', 'License :: OSI Approved :: BSD License', 'Topic :: Scientific/Engineering :: Astronomy', ], # rust extensions are not zip safe, just like C-extensions. zip_safe=False, )
'configobj', 'fastbencode', 'patiencediff', # Technically, Breezy works without these two dependencies too. But there's # no way to enable them by default and let users opt out. 'dulwich>=0.20.23', ], 'extras_require': { 'cext': ['cython>=0.29'], 'fastimport': ['fastimport'], 'git': ['dulwich>=0.20.23'], 'launchpad': ['launchpadlib>=1.6.3'], 'workspace': ['pyinotify'], 'doc': ['setuptools', 'sphinx', 'sphinx_epytext'], }, 'rust_extensions': [RustExtension("brz", binding=Binding.Exec, strip=Strip.All)], 'tests_require': [ 'testtools', 'python-subunit', 'dulwich>=0.20.29', ], 'python_requires': '>=3.6', } # The list of packages is automatically generated later. Add other things # that are part of BREEZY here. BREEZY = {} PKG_DATA = { # install files from selftest suite 'package_data': {'breezy': ['doc/api/*.txt',
import sys subprocess.check_call([sys.executable, "-m", "pytest", "tests"]) setup_requires = ["setuptools-rust>=0.10.1", "wheel"] install_requires = [] tests_require = install_requires + ["pytest", "pytest-benchmark"] setup( name="pypairing", version="0.1.0", classifiers=[ "License :: OSI Approved :: MIT License", "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Rust", "Operating System :: POSIX", "Operating System :: MacOS :: MacOS X", ], packages=["pypairing"], rust_extensions=[RustExtension("pypairing.pypairing", "Cargo.toml")], install_requires=install_requires, tests_require=tests_require, setup_requires=setup_requires, include_package_data=True, zip_safe=False, cmdclass=dict(test=PyTest), )
from setuptools import setup from setuptools_rust import Binding, RustExtension setup( name="RustBCA", rust_extensions=[ RustExtension("libRustBCA.pybca", binding=Binding.PyO3, features=["python"]) ], # rust extensions are not zip safe, just like C-extensions. zip_safe=False, )
from setuptools import setup from setuptools_rust import RustExtension setup( name="rusttext", version="0.0.1", packages=["rusttext"], rust_extensions=[RustExtension("rusttext", "Cargo.toml", debug=False)], include_package_data=True, zip_safe=False, )
from setuptools_rust import Binding, RustExtension except ImportError: import subprocess import sys errno = subprocess.call( [sys.executable, '-m', 'pip', 'install', 'setuptools-rust']) if errno: print("Please install setuptools-rust package") raise SystemExit(errno) else: from setuptools_rust import Binding, RustExtension # import setuptools here, # so it can grab the subcommand from setuptools_rust after installation from setuptools import setup setup(name='su-uuid', version='0.1.0', classifiers=[ 'License :: OSI Approved :: Apache Software License', 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Programming Language :: Python', 'Programming Language :: Rust', 'Operating System :: POSIX', ], rust_extensions=[ RustExtension('su_uuid', 'Cargo.toml', binding=Binding.PyO3) ], zip_safe=False)
fout.close() if not dest: shutil.move(name, source) setup_requires = ['setuptools-rust', 'wheel'] install_requires = [] setup( name='darknetpy', version='4.0', long_description=readme(), author='Daniel Gatis Carrazzoni', author_email='*****@*****.**', url='https://github.com/danielgatis/darknetpy', license='BSD License', platforms=['Linux'], classifiers=[ 'Intended Audience :: Developers', 'Programming Language :: Python', 'Programming Language :: Python :: 3' ], packages=['darknetpy'], rust_extensions=[RustExtension('darknetpy.darknetpy')], install_requires=install_requires, setup_requires=setup_requires, include_package_data=True, zip_safe=False, cmdclass=dict(build_ext=BuildExtCommand), )
import toml from setuptools import setup from setuptools_rust import Binding, RustExtension CARGO_MANIFEST_PATH = "../tkapp/Cargo.toml" setup( name="mystcl", version="1.0.7", rust_extensions=[ RustExtension("mystcl.mystcl", path=CARGO_MANIFEST_PATH, binding=Binding.PyO3) ], packages=["mystcl"], zip_safe=False, )
#!/usr/bin/env python from setuptools import setup from setuptools_rust import RustExtension setup( name="uwufierpy", version="1.0.0", packages=["uwufier"], rust_extensions=[RustExtension("uwufier.uwupy")], extras_require={"dev": ["pytest", "flake8", "black"]}, include_package_data=True, zip_safe=False, )
from setuptools import setup from setuptools_rust import Binding, RustExtension setup( name="tokenizers", version="0.2.0", description="Fast and Customizable Tokenizers", long_description=open("README.md", "r", encoding="utf-8").read(), long_description_content_type="text/markdown", keywords="NLP tokenizer BPE transformer deep learning", author="Anthony MOI", author_email="*****@*****.**", url="https://github.com/huggingface/tokenizers", license="Apache License 2.0", rust_extensions=[ RustExtension("tokenizers.tokenizers", binding=Binding.PyO3) ], packages=[ "tokenizers", "tokenizers.models", "tokenizers.decoders", "tokenizers.normalizers", "tokenizers.pre_tokenizers", "tokenizers.processors", "tokenizers.trainers", "tokenizers.implementations", ], package_data={ 'tokenizers': ['py.typed', '__init__.pyi'], 'tokenizers.models': ['py.typed', '__init__.pyi'], 'tokenizers.decoders': ['py.typed', '__init__.pyi'],
from setuptools import setup from setuptools_rust import Binding, RustExtension setup( name="libsm3py", version="0.0.1", classifiers=[ "License :: OSI Approved :: MIT License", "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Rust", "Operating System :: POSIX", "Operating System :: MacOS :: MacOS X", ], rust_extensions=[RustExtension("libsm3py")], include_package_data=True, zip_safe=False, )
setup( name='superMASS', description='Python bindings for the MASS algorithm implemented in rust.', license='MIT', version='0.1.0', author='Carlos Gutiérrez et al.', author_email='*****@*****.**', url='https://github.com/superMASS/superMASS', # download_url='https://github.com/user/reponame/archive/v_01.tar.gz', keywords=[ 'MASS', 'time series', 'pattern matching', 'similarity search', 'python', 'rust' ], classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Topic :: Software Development :: Build Tools', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3.6', ], rust_extensions=[RustExtension( 'superMASS.mass_rs', './Cargo.toml', )], install_requires=install_requires, setup_requires=setup_requires, test_requires=test_requires, packages=find_packages(), zip_safe=False, )
try: from setuptools_rust import RustExtension except ImportError: import subprocess import sys errno = subprocess.call( [sys.executable, "-m", "pip", "install", "setuptools-rust", "--user"]) if errno: print("Please install setuptools-rust package") raise SystemExit(errno) else: from setuptools_rust import RustExtension setup_requires = ['setuptools-rust>=0.10.2'] #install_requires = ['numpy'] setup( name='rpi3d', version='0.1.0', description='Python wrapper on rust_pi3d using pyo3', rust_extensions=[RustExtension( 'rpi3d.rpi3d', './Cargo.toml', )], #install_requires=install_requires, setup_requires=setup_requires, packages=find_packages(), zip_safe=False, )
setup_requires = ["setuptools-rust>=0.10.1", "wheel"] install_requires = ["numpy>=1.14.5", "pandas>=1.0.1"] extras_requires = { "docs": ["Sphinx==3.3.0", "sphinx-rtd-theme==0.5.0"], "tests": [ "pytest-benchmark==3.2.3", "pytest==6.0.1", "scipy>=1.4.0", ], } setup( name="relm", version="0.1.0", classifiers=[ "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Rust", "Operating System :: POSIX", "Operating System :: MacOS :: MacOS X", ], packages=find_packages(), rust_extensions=[RustExtension("relm.backend")], install_requires=install_requires, extras_require=extras_requires, setup_requires=setup_requires, include_package_data=True, zip_safe=False, )
from setuptools import setup, find_namespace_packages from setuptools_rust import Binding, RustExtension setup( name="osm_filter", version="0.1.0", packages=find_namespace_packages(include=["osm_filter.*"]), zip_safe=False, rust_extensions=[ RustExtension("osm_filter._pyo3_api", path="Cargo.toml", binding=Binding.PyO3, debug=False) ], )