|
| 1 | +import os |
1 | 2 | from setuptools import setup
|
2 | 3 |
|
| 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 | + |
3 | 15 | setup(
|
4 | 16 | name='sqlalchemy_data_model_visualizer',
|
5 | 17 | version='0.1.0', # Update the version number as needed
|
6 | 18 | description='A tool to visualize SQLAlchemy data models with Graphviz.',
|
7 |
| - long_description=open('README.md').read(), |
| 19 | + long_description=long_description, |
8 | 20 | long_description_content_type='text/markdown',
|
9 | 21 | author='Jeffrey Emanuel',
|
10 | 22 |
|
11 | 23 | url='https://github.com/Dicklesworthstone/sqlalchemy_data_model_visualizer',
|
12 | 24 | py_modules=['sqlalchemy_data_model_visualizer'], # Single file module
|
13 |
| - install_requires=open('requirements.txt').read().splitlines(), |
| 25 | + install_requires=requirements, |
14 | 26 | classifiers=[
|
15 | 27 | 'Development Status :: 3 - Alpha',
|
16 | 28 | 'Intended Audience :: Developers',
|
|
0 commit comments