Skip to content

Commit

Permalink
Reorganize packaging and use pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Jul 12, 2024
1 parent de80e0d commit 2ca3c77
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 64 deletions.
1 change: 0 additions & 1 deletion MANIFEST.in

This file was deleted.

File renamed without changes.
45 changes: 45 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[build-system]
requires = ['flit_core >=3.2,<4']
build-backend = 'flit_core.buildapi'

[project]
name = 'webencodings'
description = 'Character encoding aliases for legacy web content'
keywords = ['web', 'encoding']
authors = [{name = 'Simon Sapin', email = '[email protected]'}]
maintainers = [{name = 'Sam Sneddon', email = '[email protected]'}]
requires-python = '>=3.8'
readme = {file = 'README.rst', content-type = 'text/x-rst'}
license = {file = 'LICENSE'}
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Internet :: WWW/HTTP',
]
dynamic = ['version']

[project.urls]
Homepage = 'https://github.com/gsnedders/python-webencodings'
Documentation = 'http://packages.python.org/webencodings/'
Code = 'https://github.com/gsnedders/python-webencodings'
Issues = 'https://github.com/gsnedders/python-webencodings/issues'
Changelog = 'https://github.com/gsnedders/python-webencodings/releases'

[project.optional-dependencies]
doc = ['sphinx']
test = ['pytest']

[tool.flit.sdist]
exclude = ['.*']
13 changes: 0 additions & 13 deletions setup.cfg

This file was deleted.

47 changes: 0 additions & 47 deletions setup.py

This file was deleted.

5 changes: 3 additions & 2 deletions webencodings/tests.py → tests/test_webencodings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
"""

from . import (lookup, LABELS, decode, encode, iter_decode, iter_encode,
IncrementalDecoder, IncrementalEncoder, UTF8)
from webencodings import (
lookup, LABELS, decode, encode, iter_decode, iter_encode, IncrementalDecoder,
IncrementalEncoder, UTF8)


def assert_raises(exception, function, *args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion webencodings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from .labels import LABELS


VERSION = '0.6-dev'
VERSION = __version__ = '0.6-dev'


# Some names in Encoding are not valid Python aliases. Remap these.
Expand Down

0 comments on commit 2ca3c77

Please sign in to comment.