Spaces:
Sleeping
Sleeping
File size: 1,343 Bytes
d7d22f5 |
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 |
from setuptools import setup, find_packages
import codecs
import os.path
packages = find_packages(
where='.',
include=[
'mypkg*'
]
)
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()
def get_version(rel_path):
# https://packaging.python.org/en/latest/guides/single-sourcing-package-version/
for line in read(rel_path).splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
setup(
name='mypkg',
version=get_version("mypkg/__init__.py"),
description='My (Example) Package',
author='Clayton Mork',
author_email='mork.clayton3@gmail.com',
license='MIT License',
packages=packages,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=[
'pylint>=2.15.5',
'numpy>=1.23.4',
'opencv-python>=4.6.0.66',
'Pillow>=9.2.0',
'PyYAML>=6.0'
],
python_requires='>=3.10',
entry_points={
"console_scripts": []
}
) |