Skip to content

Commit a2f1537

Browse files
Update setup.py
1 parent c62c2aa commit a2f1537

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

setup.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
1-
import os
21
from setuptools import setup
2+
from pathlib import Path
33

44
# Define the directory where this setup.py file is located
5-
here = os.path.abspath(os.path.dirname(__file__))
5+
here = Path(__file__).parent
66

77
# 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()
8+
long_description = (here / 'README.md').read_text(encoding='utf-8')
109

1110
# 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()
11+
requirements = (here / 'requirements.txt').read_text(encoding='utf-8').splitlines()
1412

1513
setup(
1614
name='sqlalchemy_data_model_visualizer',
17-
version='0.1.0', # Update the version number as needed
15+
version='0.1.0', # Update the version number for new releases
1816
description='A tool to visualize SQLAlchemy data models with Graphviz.',
1917
long_description=long_description,
2018
long_description_content_type='text/markdown',
2119
author='Jeffrey Emanuel',
2220
author_email='[email protected]',
23-
url='https://github.com/Dicklesworthstone/sqlalchemy_data_model_visualizer',
24-
py_modules=['sqlalchemy_data_model_visualizer'], # Single file module
21+
url='https://github.com/Dicklesworthstone/sqlalchemy_data_model_visualizer',
22+
py_modules=['sqlalchemy_data_model_visualizer'],
2523
install_requires=requirements,
2624
classifiers=[
2725
'Development Status :: 3 - Alpha',
@@ -35,5 +33,5 @@
3533
],
3634
license='MIT',
3735
keywords='sqlalchemy visualization graphviz data-model',
38-
include_package_data=True,
36+
include_package_data=True, # This tells setuptools to check MANIFEST.in for additional files
3937
)

0 commit comments

Comments
 (0)