diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..66ddafd --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,5 @@ +[build-system] +requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"] +build-backend = "setuptools.build_meta" + +[tool.setuptools_scm] diff --git a/setup.cfg b/setup.cfg index 1ea3e3b..b952a6a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,24 @@ +[metadata] +name = dahuffman +author = Stefaan Lippens +author_email = soxofaan@gmail.com +license = MIT +description = Pure Python Huffman encoder and decoder module +keywords = huffman, compression, encoding, decoding +url = https://github.com/soxofaan/dahuffman +long_description = file: README.rst +long_description_content_type = text/x-rst +classifiers = + Intended Audience :: Developers + Topic :: System :: Archiving :: Compression + License :: OSI Approved :: MIT License + Programming Language :: Python :: 3 + +[options] +packages = dahuffman, dahuffman.codecs +include_package_data = True + + [bdist_wheel] universal=1 diff --git a/setup.py b/setup.py index a81ebdb..5f0d3ae 100644 --- a/setup.py +++ b/setup.py @@ -1,32 +1,6 @@ -from codecs import open -from os import path - from setuptools import setup -here = path.abspath(path.dirname(__file__)) - -with open(path.join(here, 'README.rst'), encoding='utf-8') as f: - long_description = f.read() - -setup( - name='dahuffman', - version='0.4.2-alpha', - description='Pure Python Huffman encoder and decoder module', - long_description=long_description, - url='https://github.com/soxofaan/dahuffman', - author='Stefaan Lippens', - author_email='soxofaan@gmail.com', - license='MIT', - packages=['dahuffman', 'dahuffman.codecs'], - include_package_data=True, - # See https://pypi.python.org/pypi?%3Aaction=list_classifiers - classifiers=[ - 'Intended Audience :: Developers', - 'Topic :: System :: Archiving :: Compression', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3', - ], - keywords='huffman compression encoding decoding', +if __name__ == "__main__": + setup() -)