Skip to content

Commit a57cb59

Browse files
author
Nirupam Biswas
committed
Fixing setup.py and releasing 4.3.0.
1 parent 6092d96 commit a57cb59

12 files changed

+65
-43
lines changed

Internal_Notes.md

+22-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,25 @@ Uploading bundle to PyPi
77
========================
88

99
$ python setup.py sdist upload
10-
10+
11+
OR
12+
13+
14+
$ python setup.py sdist upload -r pypi
15+
16+
This needs we have a ~/.pypi file. Its content should be like:-
17+
18+
[distutils] # this tells distutils what package indexes you can push to
19+
index-servers =
20+
pypi
21+
pypitest #Optional
22+
23+
[pypi]
24+
repository: https://pypi.python.org/pypi
25+
username: <username>
26+
password: <password>
27+
28+
[pypitest] #Optional
29+
repository: https://testpypi.python.org/pypi
30+
username: <username>
31+
password: <password>

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ recursive-include django_select2/templatetags *.*
55
recursive-exclude django_select2/templatetags .DS_Store *.pyc
66
exclude UK_Advanced_Cryptics_Dictionary_Licensing_Information.txt
77
exclude Internal_Notes.md
8+
prune tests

README

+11
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,20 @@ Special Thanks
5151

5252
* Samuel Goldszmidt (@ouhouhsami) for reporting many fundamental issues with the code, because of which versions 2.0 and 2.0.1 were released.
5353

54+
Official Contributors
55+
=====================
56+
57+
* Johannes Hoppe (@codingjoe)
58+
5459
Changelog Summary
5560
=================
5661

62+
### v4.3.0
63+
64+
* Now the package supports both Python2 and Python3.
65+
* Django 1.8 support added.
66+
* Many bug fixes.
67+
5768
### v4.2.2
5869

5970
* Misc fixes and enhancements - [61](https://github.com/applegrew/django-select2/pull/61), [64](https://github.com/applegrew/django-select2/issues/64).

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,20 @@ Special Thanks
5151

5252
* Samuel Goldszmidt (@ouhouhsami) for reporting many fundamental issues with the code, because of which versions 2.0 and 2.0.1 were released.
5353

54+
Official Contributors
55+
=====================
56+
57+
* Johannes Hoppe (@codingjoe)
58+
5459
Changelog Summary
5560
=================
5661

62+
### v4.3.0
63+
64+
* Now the package supports both Python2 and Python3.
65+
* Django 1.8 support added.
66+
* Many bug fixes.
67+
5768
### v4.2.2
5869

5970
* Misc fixes and enhancements - [61](https://github.com/applegrew/django-select2/pull/61), [64](https://github.com/applegrew/django-select2/issues/64).

django_select2/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
import logging
8282
logger = logging.getLogger(__name__)
8383

84-
__version__ = "4.2.2"
84+
__version__ = "4.3.0"
8585

8686
__RENDER_SELECT2_STATICS = False
8787
__ENABLE_MULTI_PROCESS_SUPPORT = False

django_select2/static/django_select2/css/all-bootstrapped.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

django_select2/static/django_select2/css/all.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

django_select2/static/django_select2/css/select2-bootstrapped.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

django_select2/static/django_select2/css/select2.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

django_select2/static/django_select2/js/heavy_data.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

django_select2/static/django_select2/js/select2.min.js

+1-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

setup.py

+13-13
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def minify(files, outfile, ftype):
3434
content = ''
3535

3636
for filename in files:
37-
with io.open(getPkgPath() + filename, 'rb', encoding='utf8') as f:
37+
with io.open(getPkgPath() + filename, 'r', encoding='utf8') as f:
3838
content = f.read()
3939

4040
data = {
@@ -52,19 +52,19 @@ def minify(files, outfile, ftype):
5252

5353

5454
if len(sys.argv) > 1 and 'sdist' == sys.argv[1]:
55-
minify(['static/js/select2.js'], 'static/js/select2.min.js', 'js')
56-
minify(['static/js/heavy_data.js'], 'static/js/heavy_data.min.js', 'js')
57-
minify(['static/css/select2.css'], 'static/css/select2.min.css', 'css')
58-
minify(['static/css/select2.css', 'static/css/extra.css'],
59-
'static/css/all.min.css', 'css')
60-
minify(['static/css/select2.css', 'static/css/select2-bootstrap.css'],
61-
'static/css/select2-bootstrapped.min.css', 'css')
55+
minify(['static/django_select2/js/select2.js'], 'static/django_select2/js/select2.min.js', 'js')
56+
minify(['static/django_select2/js/heavy_data.js'], 'static/django_select2/js/heavy_data.min.js', 'js')
57+
minify(['static/django_select2/css/select2.css'], 'static/django_select2/css/select2.min.css', 'css')
58+
minify(['static/django_select2/css/select2.css', 'static/django_select2/css/extra.css'],
59+
'static/django_select2/css/all.min.css', 'css')
60+
minify(['static/django_select2/css/select2.css', 'static/django_select2/css/select2-bootstrap.css'],
61+
'static/django_select2/css/select2-bootstrapped.min.css', 'css')
6262
minify(
6363
[
64-
'static/css/select2.css',
65-
'static/css/extra.css',
66-
'static/css/select2-bootstrap.css'
67-
], 'static/css/all-bootstrapped.min.css', 'css')
64+
'static/django_select2/css/select2.css',
65+
'static/django_select2/css/extra.css',
66+
'static/django_select2/css/select2-bootstrap.css'
67+
], 'static/django_select2/css/all-bootstrapped.min.css', 'css')
6868

6969

7070
class PyTest(Command):
@@ -93,7 +93,7 @@ def run(self):
9393
author_email=AUTHOR_EMAIL,
9494
license="LICENSE.txt",
9595
url=URL,
96-
packages=find_packages(exclude=['tests']),
96+
packages=find_packages(),
9797
include_package_data=True,
9898
classifiers=[
9999
"Development Status :: 5 - Production/Stable",

0 commit comments

Comments
 (0)