-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
38 lines (33 loc) · 1.13 KB
/
setup.py
File metadata and controls
38 lines (33 loc) · 1.13 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
from setuptools import setup, find_packages
import logging
REPO_URL = 'https://github.com/BenHababo/python_packages'
def parse_requirements(filename):
try:
with open(filename, 'r') as file:
return [line.strip() for line in file if line.strip() and not line.startswith('#')]
except FileNotFoundError:
logging.warning(f'requirements file {filename} not found')
return []
pakace_name = 'test_package'
setup(
name=pakace_name,
version='0.1.1',
packages=find_packages(where=pakace_name),
install_requires=[
# List your package dependencies here
],
entry_points={
'console_scripts': [
# If you have command-line scripts, list them here
# 'script_name = module_name:function_name'
],
},
author='Ben Hababo',
author_email='benha@monday.com',
description='A brief description of your package',
long_description=open(f'{pakace_name}/README.md').read(),
long_description_content_type='text/markdown',
url=REPO_URL,
python_requires='>=3.6',
requires=parse_requirements(f'{pakace_name}/requirements.txt'),
)