How to use the versioneer.get_version function in versioneer

To help you get started, we’ve selected a few versioneer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github drdoctr / doctr / setup.py View on Github external
#!/usr/bin/env python

import sys
if sys.version_info < (3,5):
    sys.exit("doctr requires Python 3.5 or newer")

from setuptools import setup
import versioneer

setup(
    name='doctr',
    version=versioneer.get_version(),
    cmdclass=versioneer.get_cmdclass(),
    author='Aaron Meurer and Gil Forsyth',
    author_email='asmeurer@gmail.com',
    url='https://github.com/drdoctr/doctr',
    packages=['doctr', 'doctr.tests'],
    description='Deploy docs from Travis to GitHub pages.',
    long_description=open("README.rst").read(),
    entry_points={'console_scripts': [ 'doctr = doctr.__main__:main']},
    python_requires= '>=3.5',
    install_requires=[
        'pyyaml',
        'requests',
        'cryptography',
    ],
    license="MIT",
    classifiers=[
github bluesky / databroker / setup.py View on Github external
# Parse requirements.txt, ignoring any commented-out lines.
    requirements = [line for line in requirements_file.read().splitlines()
                    if not line.startswith('#')]

extras_require = {
    'mongo': ['pymongo>=3.0'],
    'hdf5': ['h5py'],
    'client': ['requests'],
    'service': ['tornado<6', 'ujson'],
}

extras_require['all'] = sorted(set(sum(extras_require.values(), [])))

setup(
    name='databroker',
    version=versioneer.get_version(),
    cmdclass=versioneer.get_cmdclass(),
    # Author details
    author='Brookhaven National Laboratory',

    packages=find_packages(),
    description='Unification of NSLS-II data sources',
    long_description=long_description,
    long_description_content_type='text/markdown',
    package_data={'databroker.assets': ['schemas/*.json']},
    # The project's main homepage.
    url='https://github.com/NSLS-II/databroker',
    scripts=['scripts/fs_rename', 'scripts/start_md_server'],
    license='BSD (3-clause)',

    install_requires=requirements,
    extras_require=extras_require,
github leapcode / bitmask-dev / setup.py View on Github external
trove_classifiers = [
    "Development Status :: 4 - Beta",
    "Intended Audience :: End Users/Desktop",
    ("License :: OSI Approved :: GNU General "
     "Public License v3 or later (GPLv3+)"),
    "Operating System :: OS Independent",
    "Programming Language :: Python",
    "Programming Language :: Python :: 2.7",
    "Topic :: Communications",
    'Topic :: Communications :: Email',
    "Topic :: Security",
    'Topic :: Security :: Cryptography',
    "Topic :: Utilities"
]

VERSION = versioneer.get_version()
DOWNLOAD_BASE = ('https://github.com/leapcode/bitmask-dev/'
                 'archive/%s.tar.gz')
DOWNLOAD_URL = DOWNLOAD_BASE % VERSION


# Entry points
gui_launcher = 'bitmask=leap.bitmask.gui.app:start_app'
anonvpn = 'bitmask_anonvpn=leap.bitmask.gui.anonvpn:start_app'
chrome_launcher = 'bitmask_chromium=leap.bitmask.chrome.chromeapp:start_app'
bitmask_cli = 'bitmaskctl=leap.bitmask.cli.bitmask_cli:main'
bitmask_helpers = 'bitmask_helpers=leap.bitmask.vpn.helpers:main'
bitmaskd = 'bitmaskd=leap.bitmask.core.launcher:run_bitmaskd'


setup(
    name='leap.bitmask',
github kwmsmith / scipy-2017-cython-tutorial / rng / setup.py View on Github external
else:
    files = glob.glob('./rng/*.in')
    for templated_file in files:
        output_file_name = os.path.splitext(templated_file)[0]
        if (DEVELOP and os.path.exists(output_file_name) and
                (os.path.getmtime(templated_file) < os.path.getmtime(output_file_name))):
            continue
        with open(templated_file, 'r') as source_file:
            template = tempita.Template(source_file.read())
        with open(output_file_name, 'w') as output_file:
            output_file.write(template.substitute())

ext_modules = cythonize(extensions, force=not DEVELOP)

setup(name='rng',
      version=versioneer.get_version(),
      cmdclass=versioneer.get_cmdclass(),
      packages=find_packages(),
      package_dir={'rng': './rng'},
      package_data={'': ['*.c', '*.h', '*.pxi', '*.pyx', '*.pxd'],
                    'rng.tests.data': ['*.csv']},
      include_package_data=True,
      license='NSCA',
      ext_modules=ext_modules)
github ska-sa / montblanc / setup.py View on Github external
# expand this dummy extension to its full portential

    ext_modules = [create_tensorflow_extension(nvcc_settings, device_info)]

    # Pass NVCC and CUDA settings through to the build extension
    ext_options = {
        'build_ext': {
            'nvcc_settings': nvcc_settings,
            'cuda_devices': device_info,
        },
    }

log.info('install_requires={}'.format(install_requires))

setup(name='montblanc',
    version=versioneer.get_version(),
    description='GPU-accelerated RIME implementations.',
    long_description=readme(),
    url='http://github.com/ska-sa/montblanc',
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "License :: Other/Proprietary License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Scientific/Engineering :: Astronomy",
    ],
    author='Simon Perkins',
    author_email='simon.perkins@gmail.com',
    cmdclass=versioneer.get_cmdclass(cmdclass),
    ext_modules=ext_modules,
github jaantollander / crowddynamics / setup.py View on Github external
from setuptools import setup, find_packages

import versioneer


def readfile(filepath):
    with open(filepath) as f:
        return f.read()


setup(
    name='crowddynamics',
    version=versioneer.get_version(),
    cmdclass=versioneer.get_cmdclass(),
    description='Python package for simulating, visualizing and analysing '
                'movement of human crowds.',
    long_description=readfile('README.md'),
    author='Jaan Tollander de Balsch',
    author_email='de.tollander@aalto.fi',
    url='https://github.com/jaantollander/crowddynamics',
    license=readfile('LICENSE'),
    packages=find_packages(),
    entry_points={
        'console_scripts': [
            'crowddynamics=crowddynamics.cli:main'
        ]
    },
    include_package_data=True,
    install_requires=[],
github twisted / nevow / setup.py View on Github external
from setuptools import setup, find_packages

import os
data_files=[]
for (dirpath, dirnames, filenames) in os.walk("doc"):
    if ".svn" in dirnames:
        del dirnames[dirnames.index(".svn")]
    thesedocs = []
    for fname in filenames:
        thesedocs.append(os.path.join(dirpath, fname))
    data_files.append((dirpath, thesedocs))

if __name__ == '__main__':
    setup(
        name='Nevow',
        version=versioneer.get_version(),
        cmdclass=versioneer.get_cmdclass(),
        packages=find_packages(),
        py_modules=["twisted.plugins.nevow_widget"],
        include_package_data=True,
        author='Divmod, Inc.',
        author_email='support@divmod.org',
        maintainer='Twisted Matrix Labs',
        maintainer_email='twisted-web@twistedmatrix.com',
        description='Web Application Construction Kit',
        url='https://github.com/twisted/nevow',
        license='MIT',
        platforms=["any"],
        classifiers=[
            "Development Status :: 5 - Production/Stable",
            "Framework :: Twisted",
            "Intended Audience :: Developers",
github onlyhavecans / dnsimple-python / setup.py View on Github external
#!/usr/bin/env python

import os
from setuptools import setup, find_packages
import versioneer

with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md'), 'r') as readme_file:
    readme = readme_file.read()

setup(
    name='dnsimple',
    version=versioneer.get_version(),
    cmdclass=versioneer.get_cmdclass(),
    description='Python API client for Domain Management Automation with DNSimple https://developer.dnsimple.com',
    long_description=readme,
    long_description_content_type="text/markdown",
    maintainer='David Aronsohn',
    maintainer_email='WagThatTail@Me.com',
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    url='https://github.com/onlyhavecans/dnsimple-python/',
    classifiers=[
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
github gpuopenanalytics / pynvml / setup.py View on Github external
import versioneer

here = path.abspath(path.dirname(__file__))

# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
    long_description = f.read()

# earlier versions don't support all classifiers
#if version < '2.2.3':
#    from distutils.dist import DistributionMetadata
#    DistributionMetadata.classifiers = None
#    DistributionMetadata.download_url = None

setup(name='pynvml',
      version=versioneer.get_version(),
      cmdclass=versioneer.get_cmdclass(),
      python_requires='>=3.6',
      description='Python Bindings for the NVIDIA Management Library',
      long_description=long_description,
      long_description_content_type='text/markdown',
      packages=find_packages(exclude=['notebooks', 'docs', 'tests']),
      package_data={'pynvml': ['README.md','help_query_gpu.txt']},
      license="BSD",
      url="http://www.nvidia.com/",
      author="NVIDIA Corporation",
      author_email="rzamora@nvidia.com",
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'Intended Audience :: Developers',
          'Intended Audience :: System Administrators',
          'License :: OSI Approved :: BSD License',
github jcrist / hdfscm / setup.py View on Github external
import versioneer
from setuptools import setup

with open('README.rst') as f:
    long_description = f.read()

setup(name='jupyter-hdfscm',
      version=versioneer.get_version(),
      cmdclass=versioneer.get_cmdclass(),
      license='BSD',
      maintainer='Jim Crist',
      maintainer_email='jiminy.crist@gmail.com',
      description='A Jupyter ContentsManager for HDFS',
      long_description=long_description,
      url='http://github.com/jcrist/hdfscm',
      project_urls={
          'Source': 'https://github.com/jcrist/hdfscm',
          'Issue Tracker': 'https://github.com/jcrist/hdfscm/issues'
      },
      keywords='jupyter contentsmanager HDFS Hadoop',
      classifiers=['Topic :: System :: Systems Administration',
                   'Topic :: System :: Distributed Computing',
                   'License :: OSI Approved :: BSD License',
                   'Programming Language :: Python',