forked from dghubble/django-unslashed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
63 lines (49 loc) · 2.04 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import os
import codecs
from setuptools import setup
from unslashed import __version__
here = os.path.abspath(os.path.dirname(__file__))
# Get the long description from the relevant file
with codecs.open(os.path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='django-unslashed',
# Versions should comply with PEP440. For single-sourced versioning, see
# https://packaging.python.org/en/latest/development.html#single-sourcing-the-version
version=__version__,
description='Django Middleware that can automatically remove trailing URL slashes and 301 redirect to the non-slash-terminated URL.',
long_description=long_description,
# The project URL
url = 'https://github.com/dghubble/django-unslashed',
# Author details
author='Dalton Hubble',
author_email='[email protected]',
# Choose your license
license='MIT License',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
# Extras
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Framework :: Django',
'Environment :: Web Environment',
'Topic :: Internet :: WWW/HTTP'],
# What does your project relate to?
keywords='django slash remove trailing unslash remove_slash path',
# You can just specify the packages manually here if your project is
# simple. Or you can use find_packages().
packages=['unslashed'],
# Run-time package dependencies. These will be installed by pip when your
# project is installed.
install_requires=['Django>=1.5'],
# MANIFEST.in included entries should be included as package data and
# installed into site-packages
include_package_data=True,
# Default to False unless you specifically intend the package to be
# installed as an .egg
zip_safe=False,
)