xitiomet is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

xitiomet / python-twitter (fork of saiyr / python-twitter)

Mostly the same, but i added support for Mentions http://apiwiki.twitter.com/Twitter-REST-API-Met...

Clone this repository (size: 393.3 KB): HTTPS / SSH
hg clone https://bitbucket.org/xitiomet/python-twitter
hg clone ssh://hg@bitbucket.org/xitiomet/python-twitter

python-twitter / setup.py

commit
82aae45f64f2
parent
a58f4a7ad991
branch
default

Added GetMentions to twitter.py

1
fc159c49c080
#!/usr/bin/python2.4
2
fed8d767c4c0
#
3
fed8d767c4c0
# Copyright 2007 Google Inc. All Rights Reserved.
4
fceb5d2374d2
#
5
fceb5d2374d2
# Licensed under the Apache License, Version 2.0 (the "License");
6
fceb5d2374d2
# you may not use this file except in compliance with the License.
7
fceb5d2374d2
# You may obtain a copy of the License at
8
fceb5d2374d2
#
9
fceb5d2374d2
#     http://www.apache.org/licenses/LICENSE-2.0
10
fceb5d2374d2
#
11
fceb5d2374d2
# Unless required by applicable law or agreed to in writing, software
12
fceb5d2374d2
# distributed under the License is distributed on an "AS IS" BASIS,
13
fceb5d2374d2
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
fceb5d2374d2
# See the License for the specific language governing permissions and
15
fceb5d2374d2
# limitations under the License.
16
4805aee792f0
17
fed8d767c4c0
'''The setup and build script for the python-twitter library.'''
18
fed8d767c4c0
19
fed8d767c4c0
__author__ = 'dewitt@google.com'
20
8aaa14d8c799
__version__ = '0.6-devel'
21
fed8d767c4c0
22
fed8d767c4c0
23
fed8d767c4c0
# The base package metadata to be used by both distutils and setuptools
24
b15f5a766baf
METADATA = dict(
25
4805aee792f0
  name = "python-twitter",
26
fed8d767c4c0
  version = __version__,
27
f6aa7a683e81
  py_modules = ['twitter'],
28
4805aee792f0
  author='DeWitt Clinton',
29
4805aee792f0
  author_email='dewitt@google.com',
30
06bafa057e2f
  description='A python wrapper around the Twitter API',
31
4805aee792f0
  license='Apache License 2.0',
32
dbe3b23bfd08
  url='http://code.google.com/p/python-twitter/',
33
fed8d767c4c0
  keywords='twitter api',
34
fed8d767c4c0
)
35
fed8d767c4c0
36
fed8d767c4c0
# Extra package metadata to be used only if setuptools is installed
37
b15f5a766baf
SETUPTOOLS_METADATA = dict(
38
7511f4b9d860
  install_requires = ['setuptools', 'simplejson'],
39
fed8d767c4c0
  include_package_data = True,
40
fed8d767c4c0
  classifiers = [
41
fed8d767c4c0
    'Development Status :: 4 - Beta',
42
fed8d767c4c0
    'Intended Audience :: Developers',
43
fed8d767c4c0
    'License :: OSI Approved :: Apache Software License',
44
fed8d767c4c0
    'Topic :: Software Development :: Libraries :: Python Modules',
45
fed8d767c4c0
    'Topic :: Communications :: Chat',
46
fed8d767c4c0
    'Topic :: Internet',
47
fed8d767c4c0
  ],
48
fed8d767c4c0
  test_suite = 'twitter_test.suite',
49
fed8d767c4c0
)
50
fed8d767c4c0
51
b15f5a766baf
52
b15f5a766baf
def Read(file):
53
b15f5a766baf
  return open(file).read()
54
b15f5a766baf
55
b15f5a766baf
def BuildLongDescription():
56
b15f5a766baf
  return '\n'.join([Read('README'), Read('CHANGES')])
57
b15f5a766baf
58
b15f5a766baf
def Main():
59
b15f5a766baf
  # Build the long_description from the README and CHANGES
60
b15f5a766baf
  METADATA['long_description'] = BuildLongDescription()
61
b15f5a766baf
62
b15f5a766baf
  # Use setuptools if available, otherwise fallback and use distutils
63
b15f5a766baf
  try:
64
b15f5a766baf
    import setuptools
65
b15f5a766baf
    METADATA.update(SETUPTOOLS_METADATA)
66
b15f5a766baf
    setuptools.setup(**METADATA)
67
b15f5a766baf
  except ImportError:
68
b15f5a766baf
    import distutils.core
69
b15f5a766baf
    distutils.core.setup(**METADATA)
70
b15f5a766baf
71
b15f5a766baf
72
b15f5a766baf
if __name__ == '__main__':
73
b15f5a766baf
  Main()