Skip to content

Commit

Permalink
Single-sourcing packag version
Browse files Browse the repository at this point in the history
  • Loading branch information
iancze committed Dec 27, 2019
1 parent bfbd721 commit 2c74260
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
author = "Ian Czekala"

# The full version, including alpha/beta/rc tags
release = "0.0.1"
version = release
version = mpol.__version__
release = version


# -- General configuration ---------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions mpol/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.0.1"
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
with open("README.md", "r") as fh:
long_description = fh.read()

import mpol

version = mpol.__version__

setuptools.setup(
name="MPoL", # Replace with your own username
version="0.0.1",
name="MPoL",
version=version,
author="Ian Czekala",
author_email="iancze@gmail.com",
description="Maximum Entropy Imaging for Radio Astronomy",
description="Regularized Maximum Likelihood Imaging for Radio Astronomy",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/iancze/MPoL",
Expand Down

0 comments on commit 2c74260

Please sign in to comment.