Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (47 sloc) 1.63 KB
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
PACKAGES = ['projectmill']
def get_init_val(val, packages=PACKAGES):
pkg_init = "%s/__init__.py" % PACKAGES[0]
value = '__%s__' % val
fn = open(pkg_init)
for line in fn.readlines():
if line.startswith(value):
return line.split('=')[1].strip().strip("'")
setup(
name='py-%s' % get_init_val('title'),
version=get_init_val('version'),
description=get_init_val('description'),
long_description=open('README.rst').read(),
author=get_init_val('author'),
author_email='jim@jimr.org',
url=get_init_val('url'),
license=get_init_val('license'),
entry_points={
'console_scripts': [
'projectmill = projectmill:main',
]
},
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Scientific/Engineering :: GIS',
],
packages=PACKAGES,
test_suite='tests',
tests_require=['testy'],
)