Skip to content

Commit

Permalink
Added VERSION.txt and download_url.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbcunc committed Apr 3, 2015
1 parent ea84577 commit 313e405
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
2 changes: 2 additions & 0 deletions HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Version 1.4.3 2015-04-02
-------------------------------
- Refactor functions into module. (cbc)
- Refactor main namespace in tests. (cbc)
- Added VERSIONS.txt. (cbc)
- Added download_url to setup. (cbc)

Version 1.4.2 2015-04-01
-------------------------------
Expand Down
1 change: 1 addition & 0 deletions VERSION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.4.3
20 changes: 16 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,26 @@
from setuptools import setup
from setuptools import find_packages

__version__ = "1.4.3"

def version():
"""Get the version number."""

with open("VERSION.txt") as v:
_version = v.read()
return _version.strip()


__version__ = version()


def long_description():
"""Construct the long description text."""

with open("README.rst") as r:
ld1 = r.read()
long_description_1 = r.read()
with open("HISTORY.txt") as h:
ld2 = h.read()
return "\n".join([ld1, ld2, ])
long_description_2 = h.read()
return "\n".join([long_description_1, long_description_2, ])


setup(name="primer",
Expand All @@ -25,6 +36,7 @@ def long_description():
description="A primer for prime numbers",
long_description=long_description(),
url="https://github.com/cbcunc/primer",
download_url="https://github.com/cbcunc/primer/tarball/" + __version__,
keywords="Prime number primes primorial",
classifiers=["Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: "
Expand Down

0 comments on commit 313e405

Please sign in to comment.