Skip to content

Commit 3fcdbef

Browse files
Update setup.py
1 parent 46d1764 commit 3fcdbef

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Diff for: setup.py

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
1+
import os
12
from setuptools import setup
23

4+
# Define the directory where this setup.py file is located
5+
here = os.path.abspath(os.path.dirname(__file__))
6+
7+
# Read the contents of README file
8+
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
9+
long_description = f.read()
10+
11+
# Read the contents of requirements file
12+
with open(os.path.join(here, 'requirements.txt'), encoding='utf-8') as f:
13+
requirements = f.read().splitlines()
14+
315
setup(
416
name='sqlalchemy_data_model_visualizer',
517
version='0.1.0', # Update the version number as needed
618
description='A tool to visualize SQLAlchemy data models with Graphviz.',
7-
long_description=open('README.md').read(),
19+
long_description=long_description,
820
long_description_content_type='text/markdown',
921
author='Jeffrey Emanuel',
1022
author_email='[email protected]',
1123
url='https://github.com/Dicklesworthstone/sqlalchemy_data_model_visualizer',
1224
py_modules=['sqlalchemy_data_model_visualizer'], # Single file module
13-
install_requires=open('requirements.txt').read().splitlines(),
25+
install_requires=requirements,
1426
classifiers=[
1527
'Development Status :: 3 - Alpha',
1628
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)