Skip to content

Commit 8b0ac21

Browse files
authored
Merge pull request #159 from kurtmckee/fix-build-process
Fix build process
2 parents c54cc57 + 733c5bb commit 8b0ac21

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Test the project against both `unidecode` and `text_unidecode`.
77
- Fix type annotation issues identified by mypy.
88
- Run CI against pull requests.
9+
- Fix package build warnings.
910

1011
## 8.0.4
1112

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
[build-system]
2+
requires = ["setuptools>=61.2"]
3+
build-backend = "setuptools.build_meta"
4+
5+
16
# coverage
27
# --------
38

setup.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import os
44
import sys
55

6-
from codecs import open
76
from shutil import rmtree
87
from setuptools import setup
98

@@ -14,13 +13,12 @@
1413

1514
install_requires = ['text-unidecode>=1.3']
1615
extras_requires = {'unidecode': ['Unidecode>=1.1.1']}
17-
test_requires = []
1816

1917
about = {}
20-
with open(os.path.join(here, package, '__version__.py'), 'r', 'utf-8') as f:
18+
with open(os.path.join(here, package, '__version__.py'), 'r', encoding='utf-8') as f:
2119
exec(f.read(), about)
2220

23-
with open('README.md', 'r', 'utf-8') as f:
21+
with open('README.md', 'r', encoding='utf-8') as f:
2422
readme = f.read()
2523

2624

@@ -66,7 +64,6 @@ def status(s):
6664
include_package_data=True,
6765
python_requires=python_requires,
6866
install_requires=install_requires,
69-
tests_require=test_requires,
7067
extras_require=extras_requires,
7168
zip_safe=False,
7269
cmdclass={},
@@ -75,7 +72,6 @@ def status(s):
7572
'Development Status :: 5 - Production/Stable',
7673
'Intended Audience :: Developers',
7774
'Natural Language :: English',
78-
'License :: OSI Approved :: MIT License',
7975
'Programming Language :: Python',
8076
'Programming Language :: Python :: 3',
8177
'Programming Language :: Python :: 3.10',

slugify/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
__author_email__ = '[email protected]'
44
__description__ = 'A Python slugify application that also handles Unicode'
55
__url__ = 'https://github.com/un33k/python-slugify'
6-
__license__ = 'MIT'
6+
__license__ = 'SPDX-License-Identifier: MIT'
77
__copyright__ = 'Copyright 2022 Val Neekman @ Neekware Inc.'
88
__version__ = '8.0.4'

0 commit comments

Comments
 (0)