1. Atsushi Odagiri
  2. python-bpmappers-dev

Commits

Shinya Okano  committed 4e7e1db

setup.py developコマンドで開発環境を用意できるように修正

  • Participants
  • Parent commits 8b2ae39
  • Branches default

Comments (0)

Files changed (2)

File setup.cfg

View file
 upload-dir = _build/sphinx/html
 
 [aliases]
+develop = develop easy_install bpmappers[test]
 upload_docs = build_sphinx upload_docs
 release = check -r -s upload_docs register sdist upload
 

File setup.py

View file
 import os
 from setuptools import setup, find_packages
 
+
 def read_file(filename):
-    filepath = os.path.join(os.path.dirname(os.path.dirname(__file__)), filename)
+    basepath = os.path.dirname(os.path.dirname(__file__))
+    filepath = os.path.join(basepath, filename)
     if os.path.exists(filepath):
         return open(filepath).read()
     else:
     author_email='shinya.okano@beproud.jp',
     url='http://tokibito.bitbucket.org/bpmappers/',
     classifiers=[
-      'Development Status :: 4 - Beta',
-      'Environment :: Plugins',
-      'Framework :: Django',
-      'Intended Audience :: Developers',
-      'License :: OSI Approved :: BSD License',
-      'Programming Language :: Python',
-      'Programming Language :: Python :: 2.5',
-      'Programming Language :: Python :: 2.6',
-      'Programming Language :: Python :: 2.7',
-      'Programming Language :: Python :: 3',
-      'Topic :: Software Development :: Libraries :: Python Modules',
+        'Development Status :: 4 - Beta',
+        'Environment :: Plugins',
+        'Framework :: Django',
+        'Intended Audience :: Developers',
+        'License :: OSI Approved :: BSD License',
+        'Programming Language :: Python',
+        'Programming Language :: Python :: 2.5',
+        'Programming Language :: Python :: 2.6',
+        'Programming Language :: Python :: 2.7',
+        'Programming Language :: Python :: 3',
+        'Topic :: Software Development :: Libraries :: Python Modules',
     ],
     packages=find_packages(),
     keywords=['model', 'mapper', 'django'],
     license='BSD License',
     test_suite='nose.collector',
     tests_require=['nose'],
+    extras_require={
+        'django': ['Django'],
+        'test': ['nose', 'coverage', 'Django', 'unittest2'],
+    },
 )