Skip to content

Commit 1b1f345

Browse files
committed
Switch releases to pbr
1 parent e09951c commit 1b1f345

File tree

6 files changed

+31
-72
lines changed

6 files changed

+31
-72
lines changed

MANIFEST.in

Lines changed: 0 additions & 8 deletions
This file was deleted.

django_select2/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@
77
.. _Select2: http://ivaynberg.github.com/select2/
88
99
"""
10-
11-
__version__ = "5.11.1"

docs/conf.py

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,8 @@
7373
master_doc = 'index'
7474

7575
# General information about the project.
76-
project = u'Django-Select2'
77-
copyright = u'%s, Nirupam Biswas' % year
78-
79-
80-
def get_version():
81-
import django_select2
82-
83-
return django_select2.__version__
84-
85-
# The version info for the project you're documenting, acts as replacement for
86-
# |version| and |release|, also used in various other places throughout the
87-
# built documents.
88-
#
89-
# The short X.Y version.
90-
version = get_version()
91-
# The full version, including alpha/beta/rc tags.
92-
release = version
76+
project = u'django-select2'
77+
copyright = u'%s, Johannes Hoppe' % year
9378

9479
# The language for content autogenerated by Sphinx. Refer to documentation
9580
# for a list of supported languages.

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
django-appconf>=0.6.0

setup.cfg

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
[metadata]
2+
name = django-select2
3+
author = Johannes Hoppe
4+
author-email = info@johanneshoppe.com
5+
summary = Select2 option fields for Django.
6+
description-file = README.md
7+
home-page = https://github.com/applegrew/django-select2
8+
license = Apache-2
9+
classifier =
10+
Development Status :: 5 - Production/Stable
11+
Environment :: Web Environment
12+
Intended Audience :: Developers
13+
License :: OSI Approved :: Apache Software License
14+
Operating System :: OS Independent
15+
Programming Language :: Python
16+
Programming Language :: Python :: 3
17+
Framework :: Django
18+
Framework :: Django :: 1.8
19+
Framework :: Django :: 1.10
20+
Framework :: Django :: 1.11
21+
22+
[files]
23+
packages =
24+
django_select2
25+
126
[tool:pytest]
227
norecursedirs = env docs
328
addopts = --tb=short -rxs

setup.py

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,8 @@
11
#!/usr/bin/env python
2-
import codecs
3-
import os
4-
5-
from setuptools import find_packages, setup
6-
7-
8-
def read(file_name):
9-
file_path = os.path.join(os.path.dirname(__file__), file_name)
10-
return codecs.open(file_path, encoding='utf-8').read()
11-
12-
13-
PACKAGE = "django_select2"
14-
NAME = "Django-Select2"
15-
DESCRIPTION = "Select2 option fields for Django"
16-
AUTHOR = "Nirupam Biswas, Johannes Hoppe"
17-
AUTHOR_EMAIL = "admin@applegrew.com"
18-
URL = "https://github.com/applegrew/django-select2"
19-
VERSION = __import__(PACKAGE).__version__
202

3+
from setuptools import setup
214

225
setup(
23-
name=NAME,
24-
version=VERSION,
25-
description=DESCRIPTION,
26-
long_description=read("README.md"),
27-
author=AUTHOR,
28-
author_email=AUTHOR_EMAIL,
29-
license="LICENSE.txt",
30-
url=URL,
31-
packages=find_packages(),
32-
include_package_data=True,
33-
classifiers=[
34-
"Development Status :: 5 - Production/Stable",
35-
"Environment :: Web Environment",
36-
"Intended Audience :: Developers",
37-
"License :: OSI Approved :: Apache Software License",
38-
"Operating System :: OS Independent",
39-
"Programming Language :: Python",
40-
"Programming Language :: Python :: 3",
41-
"Framework :: Django",
42-
"Framework :: Django :: 1.8",
43-
"Framework :: Django :: 1.10",
44-
"Framework :: Django :: 1.11",
45-
],
46-
install_requires=[
47-
'django-appconf>=0.6.0',
48-
],
49-
zip_safe=False,
6+
setup_requires=['pbr'],
7+
pbr=True,
508
)

0 commit comments

Comments
 (0)