Skip to content

Commit

Permalink
build setup.cfg to upload to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
ebertti committed Sep 26, 2014
1 parent cb983ae commit 4a25b2a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions setup.cfg
@@ -0,0 +1,2 @@
[metadata]
description-file = README.rst
14 changes: 13 additions & 1 deletion setup.py
Expand Up @@ -2,18 +2,30 @@
from setuptools import setup
import setuplib

from pip.req import parse_requirements

# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs = parse_requirements('requirements.txt')

# reqs is a list of requirement
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
reqs = [str(ir.req) for ir in install_reqs]

packages, package_data = setuplib.find_packages('requery')

setup(
name='requery',
version='0.3',
url='http://github.com/ebertti/requery/',
author='ebertti',
download_url='http://github.com/ebertti/requery/tarball/0.3',
author='Ezequiel Bertti',
author_email='ebertti@gmail.com',
install_requires=reqs,
packages=packages,
package_data=package_data,
license='MIT License',
platforms=['OS Independent'],
description="Simple way to store and use querys in database for use of DBA's",
long_description=(open('README.rst').read()),
keywords = ['query', 'dba', 'repository', 'report']
)

0 comments on commit 4a25b2a

Please sign in to comment.