Added setup.py and MANIFEST.in, added to PyPI
This commit is contained in:
		
							
								
								
									
										2
									
								
								MANIFEST.in
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								MANIFEST.in
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
				
			|||||||
 | 
					include README.rst
 | 
				
			||||||
 | 
					include LICENSE
 | 
				
			||||||
@@ -1,14 +1,14 @@
 | 
				
			|||||||
.. MongoEngine documentation master file, created by
 | 
					 | 
				
			||||||
   sphinx-quickstart on Sun Nov 22 18:14:13 2009.
 | 
					 | 
				
			||||||
   You can adapt this file completely to your liking, but it should at least
 | 
					 | 
				
			||||||
   contain the root `toctree` directive.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
MongoEngine User Documentation
 | 
					MongoEngine User Documentation
 | 
				
			||||||
=======================================
 | 
					=======================================
 | 
				
			||||||
 | 
					
 | 
				
			||||||
MongoEngine is an Object-Document Mapper, written in Python for working with 
 | 
					MongoEngine is an Object-Document Mapper, written in Python for working with 
 | 
				
			||||||
MongoDB. The source is available on 
 | 
					MongoDB. To install it, simply run
 | 
				
			||||||
`GitHub <http://github.com/hmarr/mongoengine>`_.
 | 
					
 | 
				
			||||||
 | 
					.. code-block:: console
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # easy_install mongoengine
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					The source is available on `GitHub <http://github.com/hmarr/mongoengine>`_.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.. toctree::
 | 
					.. toctree::
 | 
				
			||||||
   :maxdepth: 2
 | 
					   :maxdepth: 2
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,6 +4,22 @@ User Guide
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
.. _guide-connecting:
 | 
					.. _guide-connecting:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Installing
 | 
				
			||||||
 | 
					==========
 | 
				
			||||||
 | 
					MongoEngine is available on PyPI, so to use it you can use 
 | 
				
			||||||
 | 
					:program:`easy_install`
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					.. code-block:: console
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # easy_install mongoengine
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Alternatively, if you don't have setuptools installed, `download it from PyPi 
 | 
				
			||||||
 | 
					<http://pypi.python.org/pypi/mongoengine/>`_ and run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.. code-block:: console
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # python setup.py install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Connecting to MongoDB
 | 
					Connecting to MongoDB
 | 
				
			||||||
=====================
 | 
					=====================
 | 
				
			||||||
To connect to a running instance of :program:`mongod`, use the
 | 
					To connect to a running instance of :program:`mongod`, use the
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										35
									
								
								setup.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								setup.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
				
			|||||||
 | 
					from setuptools import setup
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					VERSION = '0.1'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					DESCRIPTION = "A Python Document-Object Mapper for working with MongoDB"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					LONG_DESCRIPTION = None
 | 
				
			||||||
 | 
					try:
 | 
				
			||||||
 | 
					    LONG_DESCRIPTION = open('README.rst').read()
 | 
				
			||||||
 | 
					except:
 | 
				
			||||||
 | 
					    pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CLASSIFIERS = [
 | 
				
			||||||
 | 
					    'Development Status :: 4 - Beta',
 | 
				
			||||||
 | 
					    'Intended Audience :: Developers',
 | 
				
			||||||
 | 
					    'License :: OSI Approved :: MIT License',
 | 
				
			||||||
 | 
					    'Operating System :: OS Independent',
 | 
				
			||||||
 | 
					    'Programming Language :: Python',
 | 
				
			||||||
 | 
					    'Topic :: Database',
 | 
				
			||||||
 | 
					    'Topic :: Software Development :: Libraries :: Python Modules',
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					setup(name='mongoengine',
 | 
				
			||||||
 | 
					      version=VERSION,
 | 
				
			||||||
 | 
					      packages=['mongoengine'],
 | 
				
			||||||
 | 
					      author='Harry Marr',
 | 
				
			||||||
 | 
					      author_email='harry.marr@{nospam}gmail.com',
 | 
				
			||||||
 | 
					      url='http://hmarr.com/mongoengine/',
 | 
				
			||||||
 | 
					      license='MIT',
 | 
				
			||||||
 | 
					      description=DESCRIPTION,
 | 
				
			||||||
 | 
					      long_description=LONG_DESCRIPTION,
 | 
				
			||||||
 | 
					      platforms=['any'],
 | 
				
			||||||
 | 
					      classifiers=CLASSIFIERS,
 | 
				
			||||||
 | 
					      install_requires=['pymongo'],
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
		Reference in New Issue
	
	Block a user