aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Skultety <eskultet@redhat.com>2023-03-14 11:33:15 +0100
committerErik Skultety <eskultet@redhat.com>2023-03-14 15:50:40 +0100
commitb1562114b86d13cad9468248dbb27a3138a88871 (patch)
tree728d1ee16d20ac4ca6c4083130ec7d6c05431fc7
parentab81087fbbbb070a67c8b95bdb74c40df14879c6 (diff)
downloadlibvirt-ci-b1562114b86d13cad9468248dbb27a3138a88871.zip
libvirt-ci-b1562114b86d13cad9468248dbb27a3138a88871.tar.gz
libvirt-ci-b1562114b86d13cad9468248dbb27a3138a88871.tar.bz2
Drop setup.py
Since we moved to pyproject.toml in terms of providing packaging information about the project, we can drop setup.py completely now. Given the combination of Python 3.8+ and setuptools >62.3 means we don't need any legacy way of building with setup.py. Signed-off-by: Erik Skultety <eskultet@redhat.com>
-rw-r--r--setup.py62
1 files changed, 0 insertions, 62 deletions
diff --git a/setup.py b/setup.py
deleted file mode 100644
index d2b806c..0000000
--- a/setup.py
+++ /dev/null
@@ -1,62 +0,0 @@
-import os
-
-from setuptools import setup, Command
-
-
-def get_recursive_datafiles(directories):
- """Getting data files recursively."""
-
- paths = []
- for directory in directories:
- for (path, _, filenames) in os.walk(directory):
- for filename in filenames:
- paths.append(os.path.join('..', path, filename))
- return paths
-
-
-class CleanCommand(Command):
- """Custom clean command to tidy up the project root."""
- user_options = []
-
- def initialize_options(self):
- pass
-
- def finalize_options(self):
- pass
-
- def run(self):
- os.system("rm -vrf ./build ./dist ./*.pyc ./*.egg-info")
-
-
-setup(
- name="lcitool",
- version="0.1",
- packages=["lcitool"],
- scripts=["bin/lcitool"],
- package_data={
- "lcitool": get_recursive_datafiles(["lcitool/ansible",
- "lcitool/configs",
- "lcitool/containers",
- "lcitool/cross",
- "lcitool/etc",
- "lcitool/facts",
- "lcitool/install", ]),
- },
- author="libvirt team",
- author_email="libvir-list@redhat.com",
- description="libvirt CI guest management tool",
- keywords="libvirt ci",
- url="https://libvirt.org",
- python_requires=">=3.8",
- classifiers=[
- "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
- "Programming Language :: Python :: 3.8",
- "Programming Language :: Python :: 3.9",
- "Programming Language :: Python :: 3.10",
- "Programming Language :: Python :: 3.11",
- "Programming Language :: Python :: 3 :: Only",
- ],
- cmdclass={
- "clean": CleanCommand,
- }
-)