-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
63 lines (58 loc) · 2.2 KB
/
setup.py
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Installation of the pyfunc2 package.
"""
import os
from setuptools import setup, find_packages
# Long description from README.md
try:
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), "README.md"), encoding="utf-8") as f:
LONG_DESCRIPTION = '\n' + f.read()
except FileNotFoundError:
LONG_DESCRIPTION = ''
# Read requirements from requirements.txt
try:
with open('requirements.txt') as f:
requirements = f.read().splitlines()
except FileNotFoundError:
# Default minimal requirements if file not found
requirements = []
# Configuration setup
setup(
name="pyfunc2",
version="0.1.55",
description="libs for cameramonit, ocr, fin-officer, cfo, and other projects",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
author="Tom Sapletta",
author_email="[email protected]",
maintainer="pyfunc developers",
maintainer_email="[email protected]",
python_requires=">=3.7",
url="https://www.pyfunc.com",
project_urls={
"Repository": "https://github.com/pyfunc/lib",
"Changelog": "https://github.com/pyfunc/lib/releases",
"Wiki": "https://github.com/pyfunc/lib/wiki",
"Issue Tracker": "https://github.com/pyfunc/lib/issues/new",
},
packages=find_packages(where="src"),
package_dir={"": "src"},
install_requires=requirements + ["pandas"], # Add requirements from requirements.txt
license="Apache-2.0", # Use simple string format
license_files=("LICENSE"), # Empty tuple to explicitly prevent license files
keywords=["python", "pyfunc", "pyfunc2", "pyfunc3", "pyfunc"],
classifiers=[
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
# Critical fix for the license-file issue:
# This prevents setuptools from automatically adding a license-file entry
)