summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MANIFEST.in6
-rw-r--r--gemato/__init__.py3
-rw-r--r--pyproject.toml34
-rw-r--r--setup.cfg2
-rw-r--r--setup.py35
5 files changed, 37 insertions, 43 deletions
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 <mgorny@gentoo.org>
-# 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',
- ]
-)