Skip to content

Commit 319559c

Browse files
committed
Add support for 3.9, drop support for 2.7,3.5
1 parent 3cc1069 commit 319559c

9 files changed

+109
-126
lines changed

.python-version

-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,4 @@
22
3.8.8
33
3.7.10
44
3.6.13
5-
3.5.10
6-
2.7.18
7-
pypy-5.7.1
85
pypy3.7-7.3.3

.travis.yml

+2-9
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,21 @@ language: python
22
dist: xenial
33

44
python:
5-
- "2.7"
6-
- "3.5"
75
- "3.6"
86
- "3.7"
97
- "3.8"
108
- "3.9"
11-
- "pypy"
129
- "pypy3"
1310

1411
install:
1512
- pip install pip -U
1613
- pip install -e .
1714
- pip install pycodestyle
18-
# Avoid cryptography compilation problems with pypy and 2.7
19-
- pip install coveralls 'cryptography<=3.0;python_version=="2.7"'
20-
- pip install https://github.com/un33k/pyflakes/tarball/master
15+
- pip install coveralls
2116

2217
before_script:
2318
- "bash format.sh"
24-
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pyflakes -x W slugify; fi
2519

2620
script: coverage run --source=slugify test.py
2721

28-
after_success:
29-
coveralls
22+
after_success: coveralls

CHANGELOG.md

+78-70
Original file line numberDiff line numberDiff line change
@@ -1,186 +1,194 @@
1+
## 5.0.0
2+
3+
- Add support for Py 3.9 - added tox (@jon-betts - Thx)
4+
- Drop support for python 2.7, 3.5 & friends
5+
16
## 4.0.1
2-
- Add support for Py 3.8
7+
8+
- Add support for Py 3.8
9+
- Last version with `official` python 2.7 and <= 3.5 support
310

411
## 4.0.0
5-
- Drop support from 2.6, & < 3.4.5
12+
13+
- Drop support from 2.6, & < 3.4.5
614

715
## 3.0.6
8-
- Fixed encoding in special.py
16+
17+
- Fixed encoding in special.py
918

1019
## 3.0.5
11-
- Add test for pre-translation (e.g German Umlaut)
12-
- Add special char supports (optional Use)
20+
21+
- Add test for pre-translation (e.g German Umlaut)
22+
- Add special char supports (optional Use)
1323

1424
## 3.0.4
15-
- Now supporting text-unidecode>=1.3
16-
- Now supporting Unidecode>=1.1.1
25+
26+
- Now supporting text-unidecode>=1.3
27+
- Now supporting Unidecode>=1.1.1
1728

1829
## 3.0.3
19-
- Remove unicode chars from file
30+
31+
- Remove unicode chars from file
2032

2133
## 3.0.2
22-
- Add official support of Py 3.7
34+
35+
- Add official support of Py 3.7
2336

2437
## 3.0.1
25-
- Add test.py to manifest
38+
39+
- Add test.py to manifest
2640

2741
## 3.0.0
28-
- Upgrade Unidecode
29-
- Promote text-unidecode as the primary decoding package
30-
- Add Unidecode as an optional extra. "pip install python-slugify[unidecode]"
42+
43+
- Upgrade Unidecode
44+
- Promote text-unidecode as the primary decoding package
45+
- Add Unidecode as an optional extra. "pip install python-slugify[unidecode]"
3146

3247
## 2.0.1
33-
- Add replacements option e.g. [['|', 'or'], ['%', 'percent'], ['-', '_']] (@andriyor)
48+
49+
- Add replacements option e.g. [['|', 'or'], ['%', 'percent'], ['-', '_']] (@andriyor)
3450

3551
## 2.0.0
36-
- Fix alternative dependency installation
52+
53+
- Fix alternative dependency installation
3754

3855
## 1.2.6
39-
- Add support for case sensitive slugs (@s-m-e)
56+
57+
- Add support for case sensitive slugs (@s-m-e)
4058

4159
## 1.2.5
42-
- Add support for using text-unidecode (@bolkedebruin)
43-
- Switch to pycodestyle instead of pep8
60+
61+
- Add support for using text-unidecode (@bolkedebruin)
62+
- Switch to pycodestyle instead of pep8
4463

4564
## 1.2.4
46-
- Remove build artifacts during packaging
47-
- Simplify the setup.py file (@reece)
65+
66+
- Remove build artifacts during packaging
67+
- Simplify the setup.py file (@reece)
4868

4969
## 1.2.3
50-
- Republish - possible corrupt 1.2.2 build
70+
71+
- Republish - possible corrupt 1.2.2 build
5172

5273
## 1.2.2
53-
- Add `regex_pattern` option. (@vrbaskiz)
54-
- Add Python 3.6 support
74+
75+
- Add `regex_pattern` option. (@vrbaskiz)
76+
- Add Python 3.6 support
5577

5678
## 1.2.1
57-
- Including certain files (e.g. license.md) in sdists via MANIFEST.in (@proinsias)
58-
- Relax licensing by moving from BSD to MIT
59-
- Add Python 3.5 support
60-
- Add more tests
79+
80+
- Including certain files (e.g. license.md) in sdists via MANIFEST.in (@proinsias)
81+
- Relax licensing by moving from BSD to MIT
82+
- Add Python 3.5 support
83+
- Add more tests
6184

6285
## 1.2.0
6386

6487
Backward incompatible change: (@fabiocaccamo)
6588

66-
- In version < 1.2.0 all single quotes ( ' ) were removed, and
67-
moving forward, >= 1.2.0, they will be replaced with ( - ).
68-
Example:
69-
< 1.2.0 -- ('C\'est déjà l\'été.' -> "cest-deja-lete")
70-
>= 1.2.0 -- ('C\'est déjà l\'été.' -> "c-est-deja-l-ete")
89+
- In version < 1.2.0 all single quotes ( ' ) were removed, and
90+
moving forward, >= 1.2.0, they will be replaced with ( - ).
91+
Example:
92+
< 1.2.0 -- ('C\'est déjà l\'été.' -> "cest-deja-lete")
93+
> = 1.2.0 -- ('C\'est déjà l\'été.' -> "c-est-deja-l-ete")
7194
7295
## 1.1.4
7396

7497
Bugfix:
7598

76-
- Add more test cases, dropped `official` support for python 3.2
77-
99+
- Add more test cases, dropped `official` support for python 3.2
78100

79101
## 1.1.3
80102

81103
Bugfix:
82104

83-
- Handle unichar in python 3.x
84-
105+
- Handle unichar in python 3.x
85106

86107
## 1.1.2
87108

88109
Enhancement:
89110

90-
- Ability to remove `stopwords` from string
91-
111+
- Ability to remove `stopwords` from string
92112

93113
## 1.0.2
94114

95115
Enhancement:
96116

97-
- A new PyPI release
98-
117+
- A new PyPI release
99118

100119
## 1.0.1
101120

102121
Enhancement:
103122

104-
- Promoting to production grade
105-
123+
- Promoting to production grade
106124

107125
## 0.1.1
108126

109127
Enhancement:
110128

111-
- Added option to save word order
112-
- Removed 2to3 dependency
113-
- Added more tests
114-
129+
- Added option to save word order
130+
- Removed 2to3 dependency
131+
- Added more tests
115132

116133
## 0.1.0
117134

118135
Enhancement:
119136

120-
- Added more test
121-
- Added test for python 3.4
122-
137+
- Added more test
138+
- Added test for python 3.4
123139

124140
## 0.0.9
125141

126142
Enhancement:
127143

128-
- Enable console_scripts
129-
144+
- Enable console_scripts
130145

131146
## 0.0.8
132147

133148
Enhancement:
134149

135-
- Move logic out of __init__.py
136-
- Added console_scripts (@ekamil)
137-
- Updated pep8.sh
138-
- Added pypy support
139-
150+
- Move logic out of **init**.py
151+
- Added console_scripts (@ekamil)
152+
- Updated pep8.sh
153+
- Added pypy support
140154

141155
## 0.0.7
142156

143157
Enhancement:
144158

145-
- Handle encoding in setup file
146-
- Update ReadME, ChangeLog, License files
147-
159+
- Handle encoding in setup file
160+
- Update ReadME, ChangeLog, License files
148161

149162
## 0.0.6
150163

151164
Enhancement:
152165

153-
- Update for smart_truncate
154-
166+
- Update for smart_truncate
155167

156168
## 0.0.5
157169

158170
Features:
159171

160-
- Added Python 3.2 and 3.3 support (work by: arthurdarcet@github)
161-
172+
- Added Python 3.2 and 3.3 support (work by: arthurdarcet@github)
162173

163174
## 0.0.4
164175

165176
Features:
166177

167-
- Added option to choose non-dash separators (request by: danilodimoia@github)
168-
178+
- Added option to choose non-dash separators (request by: danilodimoia@github)
169179

170180
## 0.0.3
171181

172182
Features:
173183

174-
- Added the ability to truncate slugs (request by: juanriaza@github)
175-
184+
- Added the ability to truncate slugs (request by: juanriaza@github)
176185

177186
## 0.0.2
178187

179188
Enhancement:
180189

181-
- Incremental update
182-
190+
- Incremental update
183191

184192
## 0.0.1
185193

186-
- Initial version
194+
- Initial version

0 commit comments

Comments
 (0)