|
1 | 1 | import os |
2 | 2 | import re |
3 | | -import logging |
4 | 3 |
|
5 | 4 | from setuptools import setup |
6 | 5 |
|
7 | 6 | with open("README.md", encoding="utf-8") as f: |
8 | 7 | LONG_DESCRIPTION = f.read() |
9 | 8 |
|
10 | 9 |
|
11 | | -with open(os.path.join('src', '__init__.py'), 'r') as f: |
| 10 | +with open(os.path.join('src', 'sqlalchemyseed', '__init__.py'), 'r') as f: |
12 | 11 | pattern = r"^__version__ = ['\"]([^'\"]*)['\"]" |
13 | 12 | VERSION = re.search(pattern, f.read(), re.MULTILINE).group(1) |
14 | 13 |
|
15 | 14 |
|
16 | | -# packages = ['src'] |
17 | | - |
18 | | -# install_requires = [ |
19 | | -# 'SQLAlchemy>=1.4', |
20 | | -# ] |
21 | | - |
22 | | -# extras_require = { |
23 | | -# 'yaml': ['PyYAML>=5.4'] |
24 | | -# } |
25 | | - |
26 | | - |
27 | | -setup( |
28 | | - # name='sqlalchemyseed', |
29 | | - version=VERSION, |
30 | | - # description='SQLAlchemy seeder.', |
31 | | - # long_description=LONG_DESCRIPTION, |
32 | | - # long_description_content_type='text/markdown', |
33 | | - # url='https://github.com/jedymatt/sqlalchemyseed', |
34 | | - # author='jedymatt', |
35 | | - # author_email='jedymatt@gmail.com', |
36 | | - # license='MIT', |
37 | | - # packages=packages, |
38 | | - # package_data={'sqlalchemyseed': ['res/*']}, |
39 | | - # install_requires=install_requires, |
40 | | - # extras_require=extras_require, |
41 | | - # python_requires='>=3.6', |
42 | | - # project_urls={ |
43 | | - # 'Source': 'https://github.com/jedymatt/sqlalchemyseed', |
44 | | - # 'Tracker': 'https://github.com/jedymatt/sqlalchemyseed/issues', |
45 | | - # }, |
46 | | - # classifiers=[ |
47 | | - # 'License :: OSI Approved :: MIT License', |
48 | | - |
49 | | - # 'Programming Language :: Python :: 3.6', |
50 | | - # 'Programming Language :: Python :: 3.7', |
51 | | - # 'Programming Language :: Python :: 3.8', |
52 | | - # 'Programming Language :: Python :: 3.9', |
53 | | - # ], |
54 | | - # keywords='sqlalchemy, seed, seeder, json, yaml', |
55 | | -) |
| 15 | +setup(version=VERSION,) |
0 commit comments