From 356b8343556bdbe9086dd27396c1595fb7b8851f Mon Sep 17 00:00:00 2001 From: KOLANICH Date: Thu, 9 Jun 2022 16:14:07 +0300 Subject: [PATCH 1/2] Moved the metadata from `setup.py` into `setup.cfg`. --- pyproject.toml | 5 +++++ setup.cfg | 24 ++++++++++++++++++++++++ setup.py | 30 ------------------------------ 3 files changed, 29 insertions(+), 30 deletions(-) create mode 100644 pyproject.toml create mode 100644 setup.cfg delete mode 100755 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..285405f --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,5 @@ +[build-system] +requires = ["setuptools>=42.2", "wheel", "setuptools_scm[toml]>=3.4.3"] +build-backend = "setuptools.build_meta" + +[tool.setuptools_scm] diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..afb780b --- /dev/null +++ b/setup.cfg @@ -0,0 +1,24 @@ +[metadata] +name = arpy +author = Stanisław Pitucha +author_email = viraptor@gmail.com +license = Simplified BSD +description = Library for accessing "ar" files +url = https://github.com/viraptor/arpy +long_description = 'arpy' is a library for accessing the archive files and reading the contents. It supports extended long filenames in both GNU and BSD format. Right now it does not support the symbol tables, but can ignore them gracefully. + + Usage instructions are included in the module docstring. Works with python >=3.5, as well as pypy3. (for python 2.x see versions 1.*) +classifiers = + Development Status :: 5 - Production/Stable + License :: OSI Approved :: BSD License + Programming Language :: Python :: 3.5 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: Implementation :: PyPy + Programming Language :: Python :: Implementation :: CPython + Topic :: System :: Archiving + +[options] +py_modules = arpy +test_suite = test diff --git a/setup.py b/setup.py deleted file mode 100755 index 43c9381..0000000 --- a/setup.py +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -from setuptools import setup - -setup(name='arpy', - version='2.2.0', - description='Library for accessing "ar" files', - author='Stanisław Pitucha', - author_email='viraptor@gmail.com', - url='https://github.com/viraptor/arpy', - py_modules=['arpy'], - license="Simplified BSD", - test_suite='test', - long_description="""'arpy' is a library for accessing the archive files and reading the contents. It supports extended long filenames in both GNU and BSD format. Right now it does not support the symbol tables, but can ignore them gracefully. - -Usage instructions are included in the module docstring. Works with python >=3.5, as well as pypy3. (for python 2.x see versions 1.*)""", - classifiers=[ - "Development Status :: 5 - Production/Stable", - "License :: OSI Approved :: BSD License", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: Implementation :: PyPy", - "Programming Language :: Python :: Implementation :: CPython", - "Topic :: System :: Archiving", - ] - ) - From 8274ce99d6b9a3dde1b32212dd523a972c2006bf Mon Sep 17 00:00:00 2001 From: KOLANICH Date: Thu, 9 Jun 2022 16:40:53 +0300 Subject: [PATCH 2/2] Moved the metadata from `setup.cfg` into `PEP 621`-compliant `pyproject.toml`. --- pyproject.toml | 30 +++++++++++++++++++++++++++++- setup.cfg | 24 ------------------------ 2 files changed, 29 insertions(+), 25 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index 285405f..61e53b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,33 @@ [build-system] -requires = ["setuptools>=42.2", "wheel", "setuptools_scm[toml]>=3.4.3"] +requires = ["setuptools>=61.2.0", "wheel", "setuptools_scm[toml]>=3.4.3"] build-backend = "setuptools.build_meta" +[project] +name = "arpy" +authors = [{name = "Stanisław Pitucha", email = "viraptor@gmail.com"}] +license = {text = "BSD-2-Clause"} +description = 'Library for accessing "ar" files' +classifiers = [ + "Development Status :: 5 - Production/Stable", + "License :: OSI Approved :: BSD License", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: Implementation :: PyPy", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: System :: Archiving", +] +urls = {Homepage = "https://github.com/viraptor/arpy"} +dynamic = ["version"] + +[project.readme] +text = """'arpy' is a library for accessing the archive files and reading the contents. It supports extended long filenames in both GNU and BSD format. Right now it does not support the symbol tables, but can ignore them gracefully. +Usage instructions are included in the module docstring. Works with python >=3.5, as well as pypy3. (for python `2.x` see versions `1.*`)""" +content-type = "text/markdown" + +[tool.setuptools] +py-modules = ["arpy"] +include-package-data = false + [tool.setuptools_scm] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index afb780b..0000000 --- a/setup.cfg +++ /dev/null @@ -1,24 +0,0 @@ -[metadata] -name = arpy -author = Stanisław Pitucha -author_email = viraptor@gmail.com -license = Simplified BSD -description = Library for accessing "ar" files -url = https://github.com/viraptor/arpy -long_description = 'arpy' is a library for accessing the archive files and reading the contents. It supports extended long filenames in both GNU and BSD format. Right now it does not support the symbol tables, but can ignore them gracefully. - - Usage instructions are included in the module docstring. Works with python >=3.5, as well as pypy3. (for python 2.x see versions 1.*) -classifiers = - Development Status :: 5 - Production/Stable - License :: OSI Approved :: BSD License - Programming Language :: Python :: 3.5 - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: Implementation :: PyPy - Programming Language :: Python :: Implementation :: CPython - Topic :: System :: Archiving - -[options] -py_modules = arpy -test_suite = test