forked from mdminhazulhaque/python-bpdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
40 lines (36 loc) · 1.25 KB
/
setup.py
File metadata and controls
40 lines (36 loc) · 1.25 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
import os
from setuptools import setup, find_packages
# Get the current directory
current_directory = os.path.abspath(os.path.dirname(__file__))
# Read the README file
with open(os.path.join(current_directory, "README.md"), "r", encoding="utf-8") as fh:
long_description = fh.read()
# Read the requirements file
requirements_path = os.path.join(current_directory, 'requirements.txt')
if os.path.isfile(requirements_path):
with open(requirements_path, 'r') as f:
install_requires = [line.strip() for line in f if line.strip() and not line.startswith('#')]
else:
install_requires = []
setup(
name='bpdb',
version='0.0.3',
author='Md Minhazul Haque',
author_email='mdminhazulhaque@gmail.com',
description='A Python module for Bangladesh Power Development Board (BPDB) Smart Meters',
long_description=long_description,
long_description_content_type="text/markdown",
packages=["bpdb"],
install_requires=install_requires,
entry_points={
'console_scripts': [
'bpdb-cli=bpdb.main:app',
],
},
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
python_requires='>=3.6',
)