-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
91 lines (87 loc) · 2.97 KB
/
Copy pathsetup.py
File metadata and controls
91 lines (87 loc) · 2.97 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
#!/usr/bin/env python3
"""
Setup script for AFDD - Automated Fundamental Data Download
"""
from setuptools import setup, find_packages
from pathlib import Path
# Read README file
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text(encoding='utf-8')
# Read requirements
requirements = []
with open('requirements.txt', 'r', encoding='utf-8') as f:
for line in f:
line = line.strip()
if line and not line.startswith('#'):
# Remove version constraints for basic requirements
package = line.split('>=')[0].split('==')[0].split('<')[0]
if ';' in package: # Handle conditional requirements
requirements.append(line)
else:
requirements.append(package)
setup(
name="afdd",
version="1.0.0",
author="Christiano",
author_email="christiano.developer05@gmail.com",
description="Automated Fundamental Data Download from Tijori Finance (Conda-optimized)",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/username/afdd",
project_urls={
"Bug Reports": "https://github.com/username/afdd/issues",
"Source": "https://github.com/username/afdd",
"Documentation": "https://github.com/username/afdd/blob/main/README.md",
},
packages=find_packages(),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Financial and Insurance Industry",
"Intended Audience :: Developers",
"Topic :: Office/Business :: Financial :: Investment",
"Topic :: Software Development :: Libraries :: Python Modules",
"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",
"Environment :: Console",
],
python_requires=">=3.8",
install_requires=requirements,
extras_require={
"dev": [
"pytest>=7.0.0",
"black>=22.0.0",
"flake8>=5.0.0",
"pytest-cov>=4.0.0",
],
"webdriver": [
"webdriver-manager>=3.8.0", # For automatic ChromeDriver management
],
},
entry_points={
"console_scripts": [
"afdd=afdd.main:main",
],
},
include_package_data=True,
package_data={
"afdd": [
"config.yaml",
"examples/*.csv",
"examples/*.xlsx",
],
},
keywords=[
"finance", "trading", "fundamental-analysis", "tijori-finance",
"automation", "data-download", "stocks", "investment",
"financial-data", "bulk-download"
],
zip_safe=False,
platforms=["any"],
license="MIT",
)