-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
31 lines (26 loc) · 1019 Bytes
/
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
import os
import re
from setuptools import setup
def read(file_name):
with open(os.path.join(os.path.dirname(__file__), file_name), 'r') as f:
filestring = f.read()
return filestring
def get_version():
raw_init_file = read("arfcnreference/__init__.py")
rx_compiled = re.compile(r"\s*__version__\s*=\s*\"(\S+)\"")
ver = rx_compiled.search(raw_init_file).group(1)
return ver
def build_long_desc():
return "\n".join([read(f) for f in ["README.rst", "CHANGELOG.rst"]])
setup(name = "arfcnreference",
version = get_version(),
author = "Ash Wilson",
author_email = "ash.d.wilson@gmail.com",
description = "A python module for referencing ARFCNs in GSM",
license = "Apache",
keywords = "arfcn gsm reference",
url = "https://github.com/ashmastaflash/opencellid-wrapper",
packages = ["arfcnreference"],
install_requires = [],
long_description = build_long_desc(),
classifiers = ['Programming Language :: Python :: 2.7'])