Switch releases to pbr

This commit is contained in:
Johannes Hoppe 2017-11-25 16:35:37 +01:00
parent e09951ce62
commit 1b1f345b3d
6 changed files with 31 additions and 72 deletions

View file

@ -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

View file

@ -7,5 +7,3 @@ The application includes Select2 driven Django Widgets and Form Fields.
.. _Select2: http://ivaynberg.github.com/select2/
"""
__version__ = "5.11.1"

View file

@ -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.

1
requirements.txt Normal file
View file

@ -0,0 +1 @@
django-appconf>=0.6.0

View file

@ -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

View file

@ -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,
)