Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Add versioneer for tag based versioning
Browse files Browse the repository at this point in the history
Versioneer (https://github.com/warner/python-versioneer) uses the
tag from the VCS to set the version of the python package.
  • Loading branch information
inodb committed Jun 15, 2015
1 parent 767947c commit ce6b032
Show file tree
Hide file tree
Showing 8 changed files with 2,200 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sufam/_version.py export-subst
21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2015 Ino de Bruijn

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

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.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include versioneer.py
include sufam/_version.py
9 changes: 9 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[versioneer]
VCS = git
style = pep440
versionfile_source = sufam/_version.py
versionfile_build = sufam/_version.py
tag_prefix = ""
parentdir_prefix = sufam-
[metadata]
description-file = README.md
11 changes: 4 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
#!/usr/bin/env python
from setuptools import setup
import sys, os

version = '0.0.1'
import versioneer

setup(name='sufam',
version=version,
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="So U Found A Mutation?",
long_description="""Validate mutations from supplied vcf in supplied bam""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='Python validation mutation mpileup samtools pileup vcf bam',
author='Ino de Bruijn',
author_email='[email protected]',
maintainer='Ino de Bruijn',
maintainer_email='[email protected]',
url='https://github.com/inodb/sufam',
license='FreeBSD',
download_url = 'https://github.com/inodb/sufam/tarball/'+versioneer.get_version(),
packages=['sufam'],
include_package_data=True,
zip_safe=False,
install_requires=['numpy>=1.9.2',
'pandas>=0.16.1',
],
Expand Down
4 changes: 4 additions & 0 deletions sufam/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
Loading

0 comments on commit ce6b032

Please sign in to comment.