add setup.py, version, and py.typed

This commit is contained in:
Jan Petykiewicz 2022-03-27 23:50:21 -07:00
parent 965749d6c4
commit bef5421703
4 changed files with 74 additions and 0 deletions

62
setup.py Normal file
View File

@ -0,0 +1,62 @@
#!/usr/bin/env python3
from setuptools import setup, find_packages
with open('README.md', 'rt') as f:
long_description = f.read()
with open('snarl/VERSION.py', 'rt') as f:
version = f.readlines()[2].strip()
setup(name='snarl',
version=version,
description='CAD layout electrical connectivity checker',
long_description=long_description,
long_description_content_type='text/markdown',
author='Jan Petykiewicz',
author_email='jan@mpxd.net',
url='https://mpxd.net/code/jan/snarl',
packages=find_packages(),
package_data={
'snarl': ['py.typed',
]
},
install_requires=[
'numpy',
'pyclipper',
],
extras_require={
'masque': ['masque'],
'oasis': ['fatamorgana>=0.7'],
'gdsii': ['klamath>=1.0'],
},
classifiers=[
'Programming Language :: Python :: 3',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: Manufacturing',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3',
'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)',
'Topic :: Scientific/Engineering :: Visualization',
],
keywords=[
'layout',
'design',
'CAD',
'EDA',
'electronics',
'IC',
'mask',
'pattern',
'drawing',
'lvs',
'connectivity',
'short',
'unintentional',
'label',
],
)

4
snarl/VERSION.py Normal file
View File

@ -0,0 +1,4 @@
""" VERSION defintion. THIS FILE IS MANUALLY PARSED BY setup.py and REQUIRES A SPECIFIC FORMAT """
__version__ = '''
0.1
'''.strip()

View File

@ -1,2 +1,10 @@
"""
TODO: ALL DOCSTRINGS
"""
from .main import check_connectivity
from . import interfaces
__author__ = 'Jan Petykiewicz'
from .VERSION import __version__

0
snarl/py.typed Normal file
View File