diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index aa33b29..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,8 +0,0 @@ -include *.txt *.md -recursive-include django_select2/static *.* -recursive-exclude django_select2/static .DS_Store -exclude requirements_dev.txt -prune tests - -[bdist_wheel] -universal=1 diff --git a/django_select2/__init__.py b/django_select2/__init__.py index 148b548..62f1c49 100644 --- a/django_select2/__init__.py +++ b/django_select2/__init__.py @@ -7,5 +7,3 @@ The application includes Select2 driven Django Widgets and Form Fields. .. _Select2: http://ivaynberg.github.com/select2/ """ - -__version__ = "5.11.1" diff --git a/docs/conf.py b/docs/conf.py index bd10a26..5d34be6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -73,23 +73,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'Django-Select2' -copyright = u'%s, Nirupam Biswas' % year - - -def get_version(): - import django_select2 - - return django_select2.__version__ - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The short X.Y version. -version = get_version() -# The full version, including alpha/beta/rc tags. -release = version +project = u'django-select2' +copyright = u'%s, Johannes Hoppe' % year # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..3d404ac --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +django-appconf>=0.6.0 diff --git a/setup.cfg b/setup.cfg index 742ede8..c1e612b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,28 @@ +[metadata] +name = django-select2 +author = Johannes Hoppe +author-email = info@johanneshoppe.com +summary = Select2 option fields for Django. +description-file = README.md +home-page = https://github.com/applegrew/django-select2 +license = Apache-2 +classifier = + Development Status :: 5 - Production/Stable + Environment :: Web Environment + Intended Audience :: Developers + License :: OSI Approved :: Apache Software License + Operating System :: OS Independent + Programming Language :: Python + Programming Language :: Python :: 3 + Framework :: Django + Framework :: Django :: 1.8 + Framework :: Django :: 1.10 + Framework :: Django :: 1.11 + +[files] +packages = + django_select2 + [tool:pytest] norecursedirs = env docs addopts = --tb=short -rxs diff --git a/setup.py b/setup.py index c5f49cf..aa2d8a0 100755 --- a/setup.py +++ b/setup.py @@ -1,50 +1,8 @@ #!/usr/bin/env python -import codecs -import os - -from setuptools import find_packages, setup - - -def read(file_name): - file_path = os.path.join(os.path.dirname(__file__), file_name) - return codecs.open(file_path, encoding='utf-8').read() - - -PACKAGE = "django_select2" -NAME = "Django-Select2" -DESCRIPTION = "Select2 option fields for Django" -AUTHOR = "Nirupam Biswas, Johannes Hoppe" -AUTHOR_EMAIL = "admin@applegrew.com" -URL = "https://github.com/applegrew/django-select2" -VERSION = __import__(PACKAGE).__version__ +from setuptools import setup setup( - name=NAME, - version=VERSION, - description=DESCRIPTION, - long_description=read("README.md"), - author=AUTHOR, - author_email=AUTHOR_EMAIL, - license="LICENSE.txt", - url=URL, - packages=find_packages(), - include_package_data=True, - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Environment :: Web Environment", - "Intended Audience :: Developers", - "License :: OSI Approved :: Apache Software License", - "Operating System :: OS Independent", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Framework :: Django", - "Framework :: Django :: 1.8", - "Framework :: Django :: 1.10", - "Framework :: Django :: 1.11", - ], - install_requires=[ - 'django-appconf>=0.6.0', - ], - zip_safe=False, + setup_requires=['pbr'], + pbr=True, )