diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..324ff46 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,8 @@ +# setuptools-scm will automatically include all git-tracked files in a sdist archive +# exclude ones to match previous behavior +exclude MANIFEST.in +exclude tox.ini +exclude pytest.ini +exclude .gitignore +exclude requirements-test.txt +exclude uv.lock diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..e87ab92 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,32 @@ +[project] +name = "datauri" +version = "1.1.0" +description = "Implementation of the data uri scheme defined in rfc2397" +readme = "README.rst" +requires-python = ">=3.10" +dependencies = [] +authors = [ + { name = "EclecticIQ", email = "info@eclecticiq.com" }, + { name = "wouter bolsterlee", email = "wouter@bolsterl.ee" }, +] +license = "BSD-3-Clause" + +classifiers = [ + 'Development Status :: 5 - Production/Stable', + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + 'Topic :: Software Development :: Libraries', + 'Topic :: Software Development :: Libraries :: Python Modules', +] + +urls.homepage = "https://github.com/eclecticiq/python-data-uri" +urls.source = "https://github.com/eclecticiq/python-data-uri" +urls.issues = "https://github.com/eclecticiq/python-data-uri/issues" + +[build-system] +requires = ["setuptools>=67"] +build-backend = "setuptools.build_meta" + +[tool.setuptools] +packages = ["datauri"] diff --git a/setup.py b/setup.py deleted file mode 100644 index 46b35bc..0000000 --- a/setup.py +++ /dev/null @@ -1,26 +0,0 @@ -import os -from setuptools import setup - -with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as fp: - long_description = fp.read() - -setup( - name='datauri', - description="implementation of the data uri scheme defined in rfc2397", - long_description=long_description, - version='1.1.0', - author="EclecticIQ", - author_email="info@eclecticiq.com", - packages=['datauri'], - url='https://github.com/eclecticiq/python-data-uri', - license="BSD", - classifiers=[ - 'Development Status :: 5 - Production/Stable', - "License :: OSI Approved :: BSD License", - "Operating System :: OS Independent", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - 'Topic :: Software Development :: Libraries', - 'Topic :: Software Development :: Libraries :: Python Modules', - ], -) diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000..2a9aeb2 --- /dev/null +++ b/uv.lock @@ -0,0 +1,7 @@ +version = 1 +revision = 3 +requires-python = ">=3.10" + +[[package]] +name = "datauri" +source = { editable = "." }