-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
151 lines (127 loc) · 5.52 KB
/
setup.py
File metadata and controls
151 lines (127 loc) · 5.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
#!/usr/bin/env python3
"""
setup.py
Pyics Package Configuration - Single-Pass Architecture
Generated: 2025-05-31T20:32:31.107552
Engineering Lead: Nnamdi Okpala / OBINexus Computing
Purpose: Python package configuration with first-pass module exposure
PROBLEM SOLVED: Establishes single-pass package structure with dependency safety
DEPENDENCIES: setuptools, find_packages for automatic package discovery
PACKAGE STRUCTURE: pyics/ as installable package with first-pass domains only
FIRST-PASS DOMAINS: primitives, protocols, structures
This setup.py exposes only first-pass modules following single-pass architecture
principles to prevent circular dependencies and ensure deterministic loading.
"""
from setuptools import setup, find_packages
from pathlib import Path
# Read README for long description
this_directory = Path(__file__).parent
long_description = ""
readme_path = this_directory / "README.md"
if readme_path.exists():
try:
with open(readme_path, encoding='utf-8') as f:
long_description = f.read()
except Exception:
long_description = "Pyics - Data-Oriented Calendar Automation System"
else:
long_description = "Pyics - Data-Oriented Calendar Automation System"
# Package metadata
setup(
name="pyics",
version="1.0.0",
description="Pyics - Data-Oriented Calendar Automation System",
long_description=long_description,
long_description_content_type="text/markdown",
author="Nnamdi Okpala / OBINexus Computing",
author_email="engineering@obinexus.com",
url="https://github.com/obinexuscomputing/pyics",
license="MIT",
# Package discovery configuration (single-pass compliance)
packages=find_packages(include=['pyics', 'pyics.*']),
package_dir={'': '.'},
# Include package data for first-pass domains
package_data={
'pyics.core': ['*.py'],
'pyics.cli': ['*.py'],
'pyics.config': ['*.json', '*.yaml', '*.toml'],
'pyics.core.primitives': ['*.py', '*.md'],
'pyics.core.protocols': ['*.py', '*.md'],
'pyics.core.structures': ['*.py', '*.md'],
},
include_package_data=True,
# Python version requirements
python_requires='>=3.8',
# Core dependencies (minimal for single-pass architecture)
install_requires=[
'click>=8.0.0',
'python-dateutil>=2.8.0',
'typing-extensions>=4.0.0',
],
# Optional dependencies grouped by functionality
extras_require={
'dev': [
'pytest>=6.0.0',
'pytest-cov>=2.10.0',
'black>=21.0.0',
'mypy>=0.910',
'flake8>=3.8.0',
],
'calendar': [
'icalendar>=4.0.0',
],
'enterprise': [
'cryptography>=3.4.0',
],
},
# Entry points for CLI commands (first-pass domains only)
entry_points={
'console_scripts': [
'pyics=pyics.cli.main:main',
'pyics-primitives=pyics.cli.main:primitives',
'pyics-protocols=pyics.cli.main:protocols',
'pyics-structures=pyics.cli.main:structures',
],
},
# Classification metadata
classifiers=['Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Office/Business :: Scheduling', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Operating System :: OS Independent', 'Typing :: Typed'],
# Keywords for package discovery
keywords=['calendar', 'automation', 'scheduling', 'icalendar', 'ics', 'data-oriented-programming', 'domain-driven-design'],
# Project URLs
project_urls={
'Documentation': 'https://pyics.readthedocs.io/',
'Source': 'https://github.com/obinexuscomputing/pyics',
'Tracker': 'https://github.com/obinexuscomputing/pyics/issues',
'Changelog': 'https://github.com/obinexuscomputing/pyics/blob/main/CHANGELOG.md',
},
# Additional metadata
zip_safe=False,
platforms=['any'],
# Ensure first-pass domains are discoverable
namespace_packages=[],
)
# First-pass domain validation
def validate_first_pass_domains():
"""Validate that only first-pass domains are exposed"""
import importlib.util
first_pass_domains = ['primitives', 'protocols', 'structures']
validation_passed = True
for domain in first_pass_domains:
try:
spec = importlib.util.find_spec(f"pyics.core.{domain}")
if spec is None:
print(f"Warning: First-pass domain '{domain}' not found")
validation_passed = False
except ImportError:
print(f"Warning: Cannot validate first-pass domain '{domain}'")
validation_passed = False
if validation_passed:
print(f"✅ First-pass domain validation passed: {', '.join(first_pass_domains)}")
else:
print("⚠️ First-pass domain validation warnings detected")
return validation_passed
if __name__ == "__main__":
print("🔍 Validating first-pass domains...")
validate_first_pass_domains()
print("📦 Setup.py configuration complete")
# [EOF] - End of single-pass architecture setup.py