Exemple #1
0
from setuptools import setup
from rust_ext import build_rust_cmdclass, install_lib_including_rust

setup(name='hello-rust',
    version='1.0',
    cmdclass={
        'build_rust': build_rust_cmdclass('extensions/cargo.toml'),
        'install_lib': install_lib_including_rust
    },
    packages=['hello_rust'],
    zip_safe=False
)
Exemple #2
0
from setuptools import setup
from rust_ext import build_rust_cmdclass, install_lib_including_rust, \
    develop_including_rust

setup(
    name='hello-rust',
    version='1.0',
    cmdclass={
        # This enables 'setup.py build_rust', and makes it run
        # 'cargo extensions/cargo.toml' before building your package.
        'build_rust':
        build_rust_cmdclass('extensions/Cargo.toml',
                            ext_name="hello_rust.helloworld"),
        # This causes your rust binary to be automatically installed
        # with the package when install_lib runs (including when you
        # run 'setup.py install'.
        'install_lib':
        install_lib_including_rust,
        # This supports development mode for your rust extension by
        # causing the ext to be built in-place, according to its ext_name
        'develop':
        develop_including_rust
    },
    packages=['hello_rust'],
    # rust extensions are not zip safe, just like C-extensions.
    zip_safe=False)
        "Operating System :: Microsoft :: Windows",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: 3.4",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: Implementation :: CPython",
        "Programming Language :: Python :: Implementation :: PyPy",
        "Topic :: Security :: Cryptography",
    ],

    package_dir={"": "src"},
    packages=find_packages(where="src"),
    install_requires=requirements,
    tests_require=test_requirements,
    cmdclass={
        "build_rust": build_rust_cmdclass(
            os.path.join("src", "ring-ffi", "Cargo.toml")
        ),
        "install_lib": install_lib_including_rust,
    },
    ext_package="cryptography_ring",
    zip_safe=False,
    entry_points={
        "cryptography.backends": backends,
    }
)
Exemple #4
0
 author='ijl',
 author_email='*****@*****.**',
 license='Mozilla Public License, Version 2.0',
 description='Python HPACK library using nahpack',
 url='https://github.com/ijl/nahpackpy',
 download_url=(
     'https://github.com/ijl/nahpackpy/archive/%s.tar.gz' % VERSION
 ),
 keywords='hpack http2 header compression encoding rfc 7541',
 packages=['nahpackpy', ],
 package_data={
     'nahpackpy': ['nahpack.h', ],  # for wheel, which ignores MANIFEST
 },
 install_requires=INSTALL_REQUIRES,
 cmdclass={
     'build_rust': build_rust_cmdclass('nahpackpy/nahpack/Cargo.toml'),
     'install_lib': install_lib_including_rust,
 },
 distclass=Distribution,
 zip_safe=False,
 classifiers=[
     'Development Status :: 4 - Beta',
     'Intended Audience :: Developers',
     'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
     'Operating System :: OS Independent',
     'Programming Language :: Python :: 2',
     'Programming Language :: Python :: 2.7',
     'Programming Language :: Python :: 3',
     'Programming Language :: Python :: 3.3',
     'Programming Language :: Python :: 3.4',
     'Programming Language :: Python :: Implementation :: CPython',
Exemple #5
0
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup
from rust_ext import build_rust_cmdclass, install_lib_including_rust


setup(
    name='ryaml',
    version='0.1.0',
    cmdclass={
        # This enables 'setup.py build_rust', and makes it run
        # 'cargo extensions/cargo.toml' before building your package.
        'build_rust': build_rust_cmdclass('extensions/Cargo.toml'),
        # This causes your rust binary to be automatically installed
        # with the package when install_lib runs (including when you
        # run 'setup.py install'.
        'install_lib': install_lib_including_rust
    },
    # rust extensions are not zip safe, just like C-extensions.
    zip_safe=False,
    install_requires=[
        "rust-ext>=0.1"
    ],
    dependency_links=[
        "git+https://github.com/novocaine/rust-python-ext.git@81674f34ddb8f6fe23d610df93a4c4b57daa222b#egg=rust-ext-0.1"
    ]
)
Exemple #6
0
from setuptools import setup
from rust_ext import build_rust_cmdclass, install_lib_including_rust

setup(name='pymotifs',
    version='1.0',
    cmdclass={
        # This enables 'setup.py build_rust', and makes it run
        # 'cargo extensions/cargo.toml' before building your package.
        'build_rust': build_rust_cmdclass('extensions/Cargo.toml', extra_cargo_args=['--verbose']),
        # This causes your rust binary to be automatically installed
        # with the package when install_lib runs (including when you
        # run 'setup.py install'.
        'install_lib': install_lib_including_rust
    },
    packages=['pymotifs'],
    # rust extensions are not zip safe, just like C-extensions.
    zip_safe=False
)
from setuptools import setup
from rust_ext import build_rust_cmdclass, install_lib_including_rust

setup(name='libsarkara',
      version='0.1.2',
      description="sarkara simple python api.",
      url="https://github.com/quininer/python-sarkara-simple",
      author="quininer kel",
      author_email="*****@*****.**",
      license="MIT",
      cmdclass={
          'build_rust': build_rust_cmdclass('libsarkara/Cargo.toml'),
          'install_lib': install_lib_including_rust
      },
      zip_safe=False,
      packages=['libsarkara'],
      package_data={
          "libsarkara": [
              "libsarkara/Cargo.toml", "libsarkara/src/lib.rs",
              "libsarkara/src/macros.rs"
          ]
      })