Skip to content
This repository
Newer
Older
100644 75 lines (66 sloc) 1.92 kb
3bdaab6c »
2012-11-24 more fooling with packages
1 #!/usr/bin/env python
2
8f55bd64 »
2012-11-24 added setup.py for packaging
3 from setuptools import setup, find_packages
3bdaab6c »
2012-11-24 more fooling with packages
4 import howdoi
8f55bd64 »
2012-11-24 added setup.py for packaging
5 import os
6
574b65b2 » jianli
2013-01-09 Add requests to setup.py and requirements.txt.
7
3aef892e » yegle
2013-01-11 Mod: no depend on argparse for python<2.7
8 def extra_dependencies():
9 import sys
10 ret = []
11 if sys.version_info < (2,7):
12 ret.append('argparse')
13 return ret
14
8f55bd64 »
2012-11-24 added setup.py for packaging
15 def read(*names):
16 values = dict()
aeb7e0c7 »
2012-11-24 published to pypi
17 extensions = ['.txt', '.rst']
8f55bd64 »
2012-11-24 added setup.py for packaging
18 for name in names:
aeb7e0c7 »
2012-11-24 published to pypi
19 value = ''
20 for extension in extensions:
21 filename = name + extension
22 if os.path.isfile(filename):
23 value = open(name + extension).read()
24 break
8f55bd64 »
2012-11-24 added setup.py for packaging
25 values[name] = value
26 return values
27
28 long_description = """
29 %(README)s
30
31 News
32 ====
33
34 %(CHANGES)s
35
a431555c »
2012-11-24 added manifest file for building
36 """ % read('README', 'CHANGES')
8f55bd64 »
2012-11-24 added setup.py for packaging
37
574b65b2 » jianli
2013-01-09 Add requests to setup.py and requirements.txt.
38 setup(
39 name='howdoi',
40 version=howdoi.__version__,
9c58c91a »
2013-02-17 README update for version 1.1
41 description='Instant coding answers via the command line',
574b65b2 » jianli
2013-01-09 Add requests to setup.py and requirements.txt.
42 long_description=long_description,
43 classifiers=[
37b4b9bc »
2013-01-14 Changed documentation to show application now works with Python3.
44 "Development Status :: 5 - Production/Stable",
5d661a23 »
2012-11-24 bump to version 0.1
45 "Environment :: Console",
8f55bd64 »
2012-11-24 added setup.py for packaging
46 "Intended Audience :: Developers",
47 "Programming Language :: Python :: 2",
37b4b9bc »
2013-01-14 Changed documentation to show application now works with Python3.
48 "Programming Language :: Python :: 2.6",
8f55bd64 »
2012-11-24 added setup.py for packaging
49 "Programming Language :: Python :: 2.7",
37b4b9bc »
2013-01-14 Changed documentation to show application now works with Python3.
50 "Programming Language :: Python :: 3",
51 "Programming Language :: Python :: 3.2",
52 "Programming Language :: Python :: 3.3",
2f80c4c5 » frewsxcv
2014-05-12 Enable Python 3.4 classifier
53 "Programming Language :: Python :: 3.4",
5d661a23 »
2012-11-24 bump to version 0.1
54 "Topic :: Documentation",
574b65b2 » jianli
2013-01-09 Add requests to setup.py and requirements.txt.
55 ],
ac93ee8b »
2013-02-17 Update CHANGES for 1.1 release. Bump version.
56 keywords='howdoi help console command line answer',
574b65b2 » jianli
2013-01-09 Add requests to setup.py and requirements.txt.
57 author='Benjamin Gleitzman',
58 author_email='gleitz@mit.edu',
59 maintainer='Benjamin Gleitzman',
60 maintainer_email='gleitz@mit.edu',
61 url='https://github.com/gleitz/howdoi',
62 license='MIT',
63 packages=find_packages(),
64 entry_points={
3bdaab6c »
2012-11-24 more fooling with packages
65 'console_scripts': [
66 'howdoi = howdoi.howdoi:command_line_runner',
574b65b2 » jianli
2013-01-09 Add requests to setup.py and requirements.txt.
67 ]
68 },
69 install_requires=[
3bdaab6c »
2012-11-24 more fooling with packages
70 'pyquery',
99fba89d » pierroweb
2013-01-09 Add pygments dependency.
71 'pygments',
63129eba » Sina Samavati
2013-02-26 Add 'requests-cache' to install_requires
72 'requests',
73 'requests-cache'
3aef892e » yegle
2013-01-11 Mod: no depend on argparse for python<2.7
74 ] + extra_dependencies(),
574b65b2 » jianli
2013-01-09 Add requests to setup.py and requirements.txt.
75 )
Something went wrong with that request. Please try again.