-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·49 lines (37 loc) · 1.44 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#! /usr/bin/env python
"""Setup script for the primer package."""
from setuptools import setup
from setuptools import find_packages
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:
long_description_1 = r.read()
with open("HISTORY.txt") as h:
long_description_2 = h.read()
return "\n".join([long_description_1, long_description_2, ])
setup(name="primer",
version=__version__,
license="GPL2",
packages=find_packages(),
author="Chris Calloway",
author_email="[email protected]",
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 :: "
"GNU General Public License v2 (GPLv2)",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Topic :: Scientific/Engineering :: Mathematics",
],
zip_safe=False,
test_suite="primer.tests")