-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
52 lines (45 loc) · 1.37 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import os
import setuptools
def find_packages(srcdir):
package_list = []
badnames = ["__pycache__", "venv", ]
for root, dirs, files in os.walk(srcdir):
if not any(bad in root for bad in badnames):
if "__init__.py" in files:
package_list.append(root.replace("/", ".").replace("\\", ".").strip('.'))
return package_list
pymdg_packages = find_packages('./mdg')
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='pymdg',
version='1.2.5',
author='Semprini',
author_email='[email protected]',
description='Model driven genration - from UML to Code & Docs',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/semprini/pyMDG',
packages=["mdg", ] + pymdg_packages,
include_package_data=True,
package_data={
'': ['*.txt', '*.xml', '*.special', '*.jinja', '*.j2'],
},
entry_points={
'console_scripts': [
'mdg-tool=mdg.tools.mdg_tool:main',
]
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
],
install_requires=[
"lxml",
"jinja2",
"pyyaml",
"sqlalchemy",
],
python_requires='>=3.11',
)