How to use the versioneer.tag_prefix 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 alisaifee / holmium.core / setup.py View on Github external
from setuptools import setup, find_packages
import os
import sys
if __name__ == "__main__":
    this_dir = os.path.abspath(os.path.dirname(__file__))
    REQUIREMENTS = open(
        os.path.join(this_dir, 'requirements/main.txt'), 'rt'
    ).read()

    if sys.version_info[:2] < (2, 7):
        REQUIREMENTS += 'unittest2\n'

    import versioneer
    versioneer.versionfile_source = "holmium/core/_version.py"
    versioneer.versionfile_build = "holmium/core/version.py"
    versioneer.tag_prefix = ""
    versioneer.parentdir_prefix = "holmium.core-"
    long_description = open('README.rst').read() + open('HISTORY.rst').read()
    setup(
        name='holmium.core',
        author=__author__,
        author_email=__email__,
        license="MIT",
        url="https://holmiumcore.readthedocs.org/en/latest/",
        zip_safe=False,
        version=versioneer.get_version(),
        cmdclass=versioneer.get_cmdclass(),
        install_requires=REQUIREMENTS,
        classifiers=[k for k in open('CLASSIFIERS').read().split('\n') if k],
        description='selenium page objects and other utilities for test creation',  # noqa: E501
        long_description=long_description,
        packages=find_packages(exclude=["tests*"]),
github ClusterHQ / flocker / flocker_cli / setup.py View on Github external
# Copyright Hybrid Logic Ltd.  See LICENSE file for details.
"""
Generate a Flocker package that can be deployed onto cluster nodes.
"""

import os, sys
from setuptools import setup, find_packages

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

import versioneer
versioneer.vcs = "git"
versioneer.versionfile_source = "flocker_cli/cli/_version.py"
versioneer.versionfile_build = "flocker_cli/cli/_version.py"
versioneer.tag_prefix = ""
versioneer.parentdir_prefix = "flocker-"

cmdclass = {}

# Let versioneer hook into the various distutils commands so it can rewrite
# certain data at appropriate times.
cmdclass.update(versioneer.get_cmdclass())

# Hard linking doesn't work inside VirtualBox shared folders. This means that
# you can't use tox in a directory that is being shared with Vagrant,
# since tox relies on `python setup.py sdist` which uses hard links. As a
# workaround, disable hard-linking if setup.py is a descendant of /vagrant.
# See
# https://stackoverflow.com/questions/7719380/python-setup-py-sdist-error-operation-not-permitted
# for more details.
if os.path.abspath(__file__).split(os.path.sep)[1] == 'vagrant':
github fhcrc / taxtastic / setup.py View on Github external
#     from pysqlite2 import dbapi2 as sqlite3
#     print 'using pysqlite2, sqlite3 version {}'.format(sqlite3.sqlite_version)
# except ImportError:
#     import sqlite3
#     print 'using sqlite3, sqlite3 version {}'.format(sqlite3.sqlite_version)

# min_sqlite3_version = '3.8.3'
# if LooseVersion(sqlite3.sqlite_version) < LooseVersion(min_sqlite3_version):
#     raise ImportError(('the sqlite3 library version for this python interpreter is '
#                        '{}, but a version >= {} is required; '
#                        'see https://github.com/fhcrc/taxtastic#installing').format(
#                            sqlite3.sqlite_version, min_sqlite3_version))

versioneer.versionfile_source = 'taxtastic/_version.py'
versioneer.versionfile_build = 'taxtastic/_version.py'
versioneer.tag_prefix = 'v'  # tags are like v1.2.0
versioneer.parentdir_prefix = 'taxtastic-'

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

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


class run_audit(Command):
    """Audits source code using PyFlakes for following issues:
        - Names which are used but not defined or used before they are defined.
        - Names which are redefined without having been used.
    """
    description = "Audit source code with PyFlakes"
    user_options = []
github tvd-dataset / tvd / setup.py View on Github external
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# AUTHORS
# Hervé BREDIN -- http://herve.niderb.fr/

import versioneer
versioneer.versionfile_source = 'tvd/_version.py'
versioneer.versionfile_build = 'tvd/_version.py'
versioneer.tag_prefix = ''
versioneer.parentdir_prefix = 'tvd-'

try:
    from ez_setup import use_setuptools
    use_setuptools()
except:
    pass

from setuptools import setup, find_packages

setup(
    name='tvd',
    version=versioneer.get_version(),
    cmdclass=versioneer.get_cmdclass(),
    description='TVD: A Reproducible and Multiply Aligned TV Series Dataset',
    author='Hervé Bredin',
github pyannote / pyannote-metrics / setup.py View on Github external
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

# AUTHORS
# Herve BREDIN - http://herve.niderb.fr

import versioneer
versioneer.versionfile_source = 'pyannote/metrics/_version.py'
versioneer.versionfile_build = versioneer.versionfile_source
versioneer.tag_prefix = ''
versioneer.parentdir_prefix = 'pyannote-metrics-'

from setuptools import setup, find_packages

setup(

    # package
    namespace_packages=['pyannote'],
    packages=find_packages(),
    scripts=[
        'scripts/pyannote-metrics.py',
    ],
    install_requires=[
        'pyannote.core >= 3.2',
        'pyannote.database >= 2.0',
        'pandas >= 0.19',
github kdavies4 / natu / setup.py View on Github external
"""

# pylint: disable=C0103

import re
import versioneer

from os import path
from setuptools import setup

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

versioneer.VCS = 'git'
versioneer.versionfile_source = 'natu/_version.py'
versioneer.versionfile_build = 'natu/_version.py'
versioneer.tag_prefix = 'v' # Tags are like 1.2.0
versioneer.parentdir_prefix = 'natu-'
version = versioneer.get_version()

with open(path.join(here, 'doc/long-description.txt')) as f:
    long_description = f.read()

setup(name='natu',
      version=version,
      cmdclass=versioneer.get_cmdclass(),
      description="Natural units in Python",
      long_description=long_description,
      author='Kevin Davies',
      author_email='kdavies4@gmail.com',
      license='BSD-compatible (see LICENSE.txt)',
      keywords=('quantity calculus quantities unit conversion natural SI CGS '
                'Planck Hartree'),
github numba / numba / setup.py View on Github external
from distutils.core import setup, Extension
import os
import numpy
import numpy.distutils.misc_util as np_misc
import versioneer

versioneer.versionfile_source = 'numba/_version.py'
versioneer.versionfile_build = 'numba/_version.py'
versioneer.tag_prefix = ''
versioneer.parentdir_prefix = 'numba-'

cmdclass = versioneer.get_cmdclass()

setup_args = {
    'long_description': open('README.md').read(),
}

GCCFLAGS = ["-std=c89", "-Wdeclaration-after-statement", "-Werror"]

if os.environ.get("NUMBA_GCC_FLAGS"):
    CFLAGS = GCCFLAGS
else:
    CFLAGS = []

npymath_info = np_misc.get_info('npymath')
github ContinuumIO / PostgresAdapter / setup.py View on Github external
lib_dirs = []
    if sys.platform == 'win32':
        lib_dirs.append(os.path.join(sys.prefix, 'Library', 'lib'))
    else:
        lib_dirs.append(os.path.join(sys.prefix, 'lib'))

    ext_modules = []
    packages = ['postgresadapter', 'postgresadapter.lib', 'postgresadapter.tests']

    ext_modules.append(setup_postgres(include_dirs, lib_dirs))
    packages.append('postgresadapter.core')

    versioneer.versionfile_source = 'postgresadapter/_version.py'
    versioneer.versionfile_build = 'postgresadapter/_version.py'
    versioneer.tag_prefix = ''
    versioneer.parentdir_prefix = 'postgresadapter-'

    cmdclass = versioneer.get_cmdclass()
    cmdclass['build_ext'] = build_ext
    cmdclass['cleanall'] = CleanInplace

    setup(name='postgresadapter',
          version = versioneer.get_version(),
          description='optimized IO for NumPy/Blaze',
          author='Continuum Analytics',
          author_email='support@continuum.io',
          ext_modules=ext_modules,
          packages=packages,
          cmdclass=cmdclass)
github ESSolutions / ESSArch_EPP / setup.py View on Github external
GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program. If not, see .

    Contact information:
    Web - http://www.essolutions.se
    Email - essarch@essolutions.se
"""

from setuptools import find_packages, setup
import versioneer
versioneer.VCS = 'git'
versioneer.versionfile_source = 'ESSArch_PP/_version.py'
versioneer.versionfile_build = None
versioneer.tag_prefix = ''  # tags are like 1.2.0
versioneer.parentdir_prefix = 'ESSArch_PP-'

if __name__ == '__main__':
    setup(
        name='ESSArch_PP',
        version=versioneer.get_version(),
        description='ESSArch Preservation Platform',
        long_description=open("README.md").read(),
        long_description_content_type='text/markdown',
        author='Henrik Ek',
        author_email='henrik@essolutions.se',
        url='http://www.essolutions.se',
        project_urls={
            'Documentation': 'http://docs.essarch.org/',
            'Source Code': 'https://github.com/ESSolutions/ESSArch_EPP/tree/%s' % versioneer.get_versions()['full'],
            'Travis CI': 'https://travis-ci.org/ESSolutions/ESSArch_EPP',
github scrapinghub / frontera / setup.py View on Github external
from setuptools import setup, find_packages

import versioneer
versioneer.VCS = 'git'
versioneer.versionfile_source = 'frontera/_version.py'
versioneer.versionfile_build = 'frontera/_version.py'
versioneer.tag_prefix = 'v'  # tags are like v1.2.0
versioneer.parentdir_prefix = 'frontera-'


setup(
    name='frontera',
    version=versioneer.get_version(),
    cmdclass=versioneer.get_cmdclass(),
    packages=find_packages(exclude=('tests', 'tests.*', 'examples', 'examples.*')),
    url='https://github.com/scrapinghub/frontera',
    description='A scalable frontier for web crawlers',
    author='Frontera developers',
    maintainer='Alexander Sibiryakov',
    maintainer_email='sibiryakov@scrapinghub.com',
    license='BSD',
    include_package_data=True,
    zip_safe=False,