Skip to content

Commit

Permalink
Merge pull request #97 from jolespin/master
Browse files Browse the repository at this point in the history
Add __version__
  • Loading branch information
Phlya committed Jun 30, 2020
2 parents 201214d + b430474 commit 19e58b9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions adjustText/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from operator import itemgetter
from matplotlib.path import get_path_collection_extents
import matplotlib
from ._version import __version__

if sys.version_info >= (3, 0):
xrange = range
Expand Down
1 change: 1 addition & 0 deletions adjustText/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.7.4"
16 changes: 14 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
#!/usr/bin/env python

import os
from setuptools import setup

def get_version(path):
with open(path, "r") as f:
_, version = f.read().strip().split("=")
version = version.strip()
return version

setup(name='adjustText',
version='0.7.4',
version=get_version(os.path.join(
".", #os.path.dirname(os.path.realpath(__file__)),
"adjustText",
"_version.py",
)),
description='Iteratively adjust text position in matplotlib plots to minimize overlaps',
author='Ilya Flyamer',
author_email='flyamer@gmail.com',
url='https://github.com/Phlya/adjustText',
packages=['adjustText'],
install_requires=['numpy', 'matplotlib'],
include_package_data=True,

classifiers=[
'Framework :: Matplotlib',
'Topic :: Scientific/Engineering :: Visualization'],
Expand Down

0 comments on commit 19e58b9

Please sign in to comment.