From 735fb85228aad0fa5326f4235e349e360631823c Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 11 Feb 2022 17:31:29 +0100 Subject: Switch to flit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- MANIFEST.in | 6 ------ gemato/__init__.py | 3 +++ pyproject.toml | 34 ++++++++++++++++++++++++++++++++++ setup.cfg | 2 -- setup.py | 35 ----------------------------------- 5 files changed, 37 insertions(+), 43 deletions(-) delete mode 100644 MANIFEST.in create mode 100644 pyproject.toml delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 5d0acfa..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,6 +0,0 @@ -include COPYING -include tox.ini -include bin/gemato -include tests/*.py -include utils/*.bash -include utils/*.py diff --git a/gemato/__init__.py b/gemato/__init__.py index e69de29..edad647 100644 --- a/gemato/__init__.py +++ b/gemato/__init__.py @@ -0,0 +1,3 @@ +"""Gentoo Manifest Tool -- a utility to verify and update Manifest files""" + +__version__ = "16.2" diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..2511cec --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,34 @@ +[build-system] +requires = ["flit_core >=3.2,<4"] +build-backend = "flit_core.buildapi" + +[project] +name = "gemato" +authors = [{name = "Michał Górny", email = "mgorny@gentoo.org"}] +license = {file = "COPYING"} +readme = "README.rst" +dynamic = ["version", "description"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Intended Audience :: System Administrators", + "License :: OSI Approved :: BSD License", + "Operating System :: POSIX", + "Programming Language :: Python :: 3 :: Only", + "Topic :: Security :: Cryptography", +] +requires-python = ">=3.6" + +[project.urls] +Homepage = "https://github.com/mgorny/gemato/" + +[project.scripts] +gemato = "gemato.cli:setuptools_main" + +[tool.flit.sdist] +include = [ + "bin/gemato", + "tox.ini", + "tests/*.py", + "utils", +] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 0b2360c..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal = true diff --git a/setup.py b/setup.py deleted file mode 100644 index 697adcd..0000000 --- a/setup.py +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env python -# vim:fileencoding=utf-8 -# (C) 2017-2020 Michał Górny -# Licensed under the terms of 2-clause BSD license - -from setuptools import setup - - -setup( - name='gemato', - version='16.2', - description='Gentoo Manifest Tool -- a stand-alone utility to verify and update Gentoo Manifest files', - - author='Michał Górny', - author_email='mgorny@gentoo.org', - license='BSD', - url='http://github.com/mgorny/gemato', - - packages=['gemato'], - entry_points={ - 'console_scripts': [ - 'gemato=gemato.cli:setuptools_main', - ], - }, - - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: BSD License', - 'Operating System :: POSIX', - 'Programming Language :: Python :: 3 :: Only', - 'Topic :: Security :: Cryptography', - ] -) -- cgit v1.2.3