Skip to content

Commit

Permalink
setup.py gets version without having to import ipyrad (doesn't need d…
Browse files Browse the repository at this point in the history
…ependencies)
  • Loading branch information
dereneaton committed Nov 4, 2015
1 parent 24ecdd6 commit 707a286
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python2.7

from setuptools import setup, find_packages
import ipyrad
import re

requirements = [
'numpy>=1.9',
Expand All @@ -15,7 +15,13 @@

setup(
name="ipyrad",
version=ipyrad.__version__,
version=re.search(
r"^__version__ = ['\"]([^'\"]*)['\"]",
open(
"ipyrad/__init__.py",
"r").read(),
re.M).group(1),

url="https://github.com/dereneaton/ipyrad",

author="Deren Eaton",
Expand Down

0 comments on commit 707a286

Please sign in to comment.