You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.4 KiB
46 lines
1.4 KiB
#!/usr/bin/env python3 |
|
from setuptools import find_packages, setup |
|
|
|
def get_version(prefix): |
|
import os |
|
import re |
|
with open(os.path.join(prefix, '__init__.py')) as fd: |
|
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", fd.read())) |
|
return metadata['version'] |
|
|
|
setup( |
|
name='django-requestuser', |
|
version=get_version('requestuser'), |
|
description='Make current request.user available to templates', |
|
author='j', |
|
author_email='j@mailb.org', |
|
url='https://r-w-x.org/django-requestuser.git', |
|
license='BSD License', |
|
platforms=['OS Independent'], |
|
packages=find_packages( |
|
exclude=['tests', 'testapp'] |
|
), |
|
include_package_data=True, |
|
install_requires=[ |
|
# 'Django>=1.9', commented out to make `pip install -U` easier |
|
], |
|
dependency_links=[ |
|
], |
|
extras_require={ |
|
}, |
|
classifiers=[ |
|
'Development Status :: 4 - Beta', |
|
'Environment :: Web Environment', |
|
'Framework :: Django', |
|
'Intended Audience :: Developers', |
|
'License :: OSI Approved :: BSD License', |
|
'Operating System :: OS Independent', |
|
'Programming Language :: Python', |
|
'Programming Language :: Python :: 3', |
|
'Programming Language :: Python :: 3.4', |
|
'Programming Language :: Python :: 3.5', |
|
'Programming Language :: Python :: 3.6', |
|
'Topic :: Software Development', |
|
], |
|
zip_safe=False, |
|
)
|
|
|