Переглянути джерело

added setup.py for packaging

Benjamin Gleitzman 12 роки тому
батько
коміт
8f55bd648f
3 змінених файлів з 53 додано та 1 видалено
  1. 4 0
      CHANGES.txt
  2. 1 1
      README.txt
  3. 48 0
      setup.py

+ 4 - 0
CHANGES.txt

@@ -0,0 +1,4 @@
+0.1dev
+------
+
+We're live!

+ 1 - 1
README.txt

@@ -1,5 +1,5 @@
 howdoi - a code search tool
-========================
+===========================
 
 Are you a hack programmer? Do you find yourself constantly Googling for how to do basic programing tasks?
 

+ 48 - 0
setup.py

@@ -0,0 +1,48 @@
+from setuptools import setup, find_packages
+import os
+
+def read(*names):
+    values = dict()
+    for name in names:
+        filename = name + '.txt'
+        if os.path.isfile(filename):
+            value = open(name + '.txt').read()
+        else:
+            value = ''
+        values[name] = value
+    return values
+
+VERSION = '0.1dev'
+
+long_description = """
+%(README)s
+
+News
+====
+
+%(CHANGES)s
+
+""" % read('README.txt', 'CHANGES.txt')
+
+setup(name='howdoi',
+      version=VERSION,
+      description='A code search tool',
+      long_description=long_description,
+      classifiers=[
+        "Intended Audience :: Developers",
+        "Programming Language :: Python :: 2",
+        "Programming Language :: Python :: 2.7",
+        ],
+      keywords='howdoi help',
+      author='Benjamin Gleitzman',
+      author_email='gleitz@mit.edu',
+      maintainer='Benjamin Gleitzman',
+      maintainer_email='gleitz@mit.edu',
+      url='https://github.com/gleitz/howdoi',
+      license='MIT',
+      packages=find_packages(),
+      include_package_data=True,
+      install_requires=[
+          'pyquery',
+      ],
+      )