|
1 | | -import os |
2 | 1 | from setuptools import setup |
| 2 | +from pathlib import Path |
3 | 3 |
|
4 | 4 | # Define the directory where this setup.py file is located |
5 | | -here = os.path.abspath(os.path.dirname(__file__)) |
| 5 | +here = Path(__file__).parent |
6 | 6 |
|
7 | 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() |
| 8 | +long_description = (here / 'README.md').read_text(encoding='utf-8') |
10 | 9 |
|
11 | 10 | # 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() |
14 | 12 |
|
15 | 13 | setup( |
16 | 14 | 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 |
18 | 16 | description='A tool to visualize SQLAlchemy data models with Graphviz.', |
19 | 17 | long_description=long_description, |
20 | 18 | long_description_content_type='text/markdown', |
21 | 19 | author='Jeffrey Emanuel', |
22 | 20 | author_email='jeff@pastel.network', |
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'], |
25 | 23 | install_requires=requirements, |
26 | 24 | classifiers=[ |
27 | 25 | 'Development Status :: 3 - Alpha', |
|
35 | 33 | ], |
36 | 34 | license='MIT', |
37 | 35 | 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 |
39 | 37 | ) |
0 commit comments