setup.py 1.47 KB
Newer Older
Josh Roesslein's avatar
Josh Roesslein committed
1
2
#!/usr/bin/env python
#from distutils.core import setup
3
import re, uuid
Josh Roesslein's avatar
Josh Roesslein committed
4
from setuptools import setup, find_packages
Aaron Hill's avatar
Aaron Hill committed
5
6
from pip.req import parse_requirements

7
8
9
10
11
12
13
14
15
16
VERSIONFILE = "tweepy/__init__.py"
ver_file = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, ver_file, re.M)

if mo:
    version = mo.group(1)
else:
    raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))

17
install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())
Aaron Hill's avatar
Aaron Hill committed
18
reqs = [str(req.req) for req in install_reqs]
Josh Roesslein's avatar
Josh Roesslein committed
19
20

setup(name="tweepy",
21
      version=version,
Josh Roesslein's avatar
Josh Roesslein committed
22
23
24
25
      description="Twitter library for python",
      license="MIT",
      author="Joshua Roesslein",
      author_email="tweepy@googlegroups.com",
Peter Richardson's avatar
Peter Richardson committed
26
      url="http://github.com/tweepy/tweepy",
27
      packages=find_packages(exclude=['tests']),
Joshua Roesslein's avatar
Joshua Roesslein committed
28
      install_requires=reqs,
29
      keywords="twitter library",
Mark Smith's avatar
Mark Smith committed
30
31
32
33
34
35
36
37
38
39
40
41
42
      classifiers=[
          'Development Status :: 4 - Beta',
          'Topic :: Software Development :: Libraries',
          'License :: OSI Approved :: MIT License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
      ],
43
      zip_safe=True)