-
Notifications
You must be signed in to change notification settings - Fork 519
/
setup.py
45 lines (39 loc) · 1.07 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
# -*- coding: utf-8 -*-
import codecs
import os
import re
import setuptools
def local_file(file):
return codecs.open(
os.path.join(os.path.dirname(__file__), file), 'r', 'utf-8'
)
install_reqs = [
line.strip()
for line in local_file('requirements.txt').readlines()
if line.strip() != ''
]
version = re.search(
"^__version__ = \((\d+), (\d+), (\d+)\)$",
local_file('wikipedia/__init__.py').read(),
re.MULTILINE
).groups()
setuptools.setup(
name = "wikipedia",
version = '.'.join(version),
author = "Jonathan Goldsmith",
author_email = "[email protected]",
description = "Wikipedia API for Python",
license = "MIT",
keywords = "python wikipedia API",
url = "https://github.com/goldsmith/Wikipedia",
install_requires = install_reqs,
packages = ['wikipedia'],
long_description = local_file('README.rst').read(),
classifiers = [
'Development Status :: 4 - Beta',
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3'
]
)