Skip to content

Commit

Permalink
Fixed version info in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fbcotter committed Nov 30, 2017
1 parent 9a897c9 commit 12c3941
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion plotters.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import matplotlib.pyplot as plt

__author__ = "Fergal Cotter"
__version__ = "0.0.5"
__version__ = "0.0.6"
__version_info__ = tuple([int(d) for d in __version__.split(".")]) # noqa


Expand Down
21 changes: 9 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
import os
from setuptools import setup
# Imports the __version__ variable
# exec(open(os.path.join(os.path.dirname(__file__), 'version.py')).read())


# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def readlines(fname):
def read(fname):
enc = 'utf-8'
return open(os.path.join(os.path.dirname(__file__), fname), 'r',
encoding=enc).readlines()
encoding=enc).read()


def read(fname):
def readlines(fname):
enc = 'utf-8'
return open(os.path.join(os.path.dirname(__file__), fname), 'r',
encoding=enc).read()
encoding=enc).readlines()


# Read metadata from version file
Expand All @@ -40,8 +38,7 @@ def get_version():

setup(
name='plotters',
# version=get_version(),
version="0.0.5",
version=get_version(),
author="Fergal Cotter",
author_email="fbc23@cam.ac.uk",
description=("Convenience Functions for Plotting in Matplotlib"),
Expand All @@ -53,8 +50,8 @@ def get_version():
classifiers=classifiers,
py_modules=["plotters"],
install_requires=["numpy", "matplotlib"],
# tests_require=["pytest"],
# extras_require={
# 'docs': ['sphinx', 'docutils']
# }
tests_require=["pytest"],
extras_require={
'docs': ['sphinx', 'docutils']
}
)

0 comments on commit 12c3941

Please sign in to comment.