enhance: Add comprehensive .gitignore for deb-mock project
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

- 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.
This commit is contained in:
robojerk 2025-08-18 23:37:49 -07:00
parent 1a559245ea
commit 4c0dcb2522
329 changed files with 27394 additions and 965 deletions

View file

@ -1,6 +1,7 @@
#!/usr/bin/env python3
"""
Setup script for mock package
Setup script for deb-mock
Debian's equivalent to Fedora's Mock build environment manager
"""
from setuptools import setup, find_packages
@ -11,43 +12,57 @@ 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="Mock Team",
author_email="team@mock.org",
description="A low-level utility to create clean, isolated build environments for Debian packages",
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/deb-mock/deb-mock",
packages=find_packages(),
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 :: MIT License",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Build Tools",
"Topic :: System :: Archiving :: Packaging",
],
python_requires=">=3.8",
install_requires=[
"click>=8.0.0",
"pyyaml>=6.0",
"jinja2>=3.0.0",
"requests>=2.25.0",
"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": [
"mock=deb_mock.cli:main",
"deb-mock=deb_mock.cli:main",
],
},
include_package_data=True,
package_data={
"deb_mock": ["templates/*", "config/*"],
},
zip_safe=False,
keywords="debian, mock, chroot, build, environment, packaging",
platforms=["Linux"],
)