deb-mock/setup.py
robojerk 4c0dcb2522
Some checks failed
Build Deb-Mock Package / build (push) Successful in 54s
Lint Code / Lint All Code (push) Failing after 1s
Test Deb-Mock Build / test (push) Failing after 36s
enhance: Add comprehensive .gitignore for deb-mock project
- Add mock-specific build artifacts (chroot/, mock-*, mockroot/)
- Include package build files (*.deb, *.changes, *.buildinfo)
- Add development tools (.coverage, .pytest_cache, .tox)
- Include system files (.DS_Store, Thumbs.db, ._*)
- Add temporary and backup files (*.tmp, *.bak, *.backup)
- Include local configuration overrides (config.local.yaml, .env.local)
- Add test artifacts and documentation builds
- Comprehensive coverage for Python build system project

This ensures build artifacts, chroot environments, and development
tools are properly ignored in version control.
2025-08-18 23:37:49 -07:00

68 lines
No EOL
2.2 KiB
Python

#!/usr/bin/env python3
"""
Setup script for deb-mock
Debian's equivalent to Fedora's Mock build environment manager
"""
from setuptools import setup, find_packages
import os
# Read the README file for long description
def read_readme():
with open("README.md", "r", encoding="utf-8") as fh:
return fh.read()
# Read requirements from requirements.txt
def read_requirements():
with open("requirements.txt", "r", encoding="utf-8") as fh:
return [line.strip() for line in fh if line.strip() and not line.startswith("#")]
setup(
name="deb-mock",
version="0.1.0",
author="Debian Bootc Ecosystem Team",
author_email="debian-bootc@lists.debian.org",
description="Debian's equivalent to Fedora's Mock build environment manager",
long_description=read_readme(),
long_description_content_type="text/markdown",
url="https://github.com/debian/deb-bootc-compose",
project_urls={
"Bug Tracker": "https://github.com/debian/deb-bootc-compose/issues",
"Documentation": "https://github.com/debian/deb-bootc-compose/wiki",
"Source Code": "https://github.com/debian/deb-bootc-compose",
},
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Build Tools",
"Topic :: System :: Systems Administration",
],
packages=find_packages(),
python_requires=">=3.9",
install_requires=read_requirements(),
extras_require={
"dev": [
"black>=23.0.0",
"flake8>=6.0.0",
"mypy>=1.0.0",
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-mock>=3.10.0",
],
},
entry_points={
"console_scripts": [
"deb-mock=deb_mock.cli:main",
],
},
include_package_data=True,
zip_safe=False,
keywords="debian, mock, chroot, build, environment, packaging",
platforms=["Linux"],
)