From bef54217035cd19aab268f45b13cc10088ff1c22 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sun, 27 Mar 2022 23:50:21 -0700 Subject: [PATCH] add setup.py, version, and py.typed --- setup.py | 62 +++++++++++++++++++++++++++++++++++++++++++++++ snarl/VERSION.py | 4 +++ snarl/__init__.py | 8 ++++++ snarl/py.typed | 0 4 files changed, 74 insertions(+) create mode 100644 setup.py create mode 100644 snarl/VERSION.py create mode 100644 snarl/py.typed diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..56d62c2 --- /dev/null +++ b/setup.py @@ -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', + ], + ) + diff --git a/snarl/VERSION.py b/snarl/VERSION.py new file mode 100644 index 0000000..2c3fbc3 --- /dev/null +++ b/snarl/VERSION.py @@ -0,0 +1,4 @@ +""" VERSION defintion. THIS FILE IS MANUALLY PARSED BY setup.py and REQUIRES A SPECIFIC FORMAT """ +__version__ = ''' +0.1 +'''.strip() diff --git a/snarl/__init__.py b/snarl/__init__.py index 9c4f490..b0b8239 100644 --- a/snarl/__init__.py +++ b/snarl/__init__.py @@ -1,2 +1,10 @@ +""" +TODO: ALL DOCSTRINGS +""" from .main import check_connectivity from . import interfaces + + +__author__ = 'Jan Petykiewicz' + +from .VERSION import __version__ diff --git a/snarl/py.typed b/snarl/py.typed new file mode 100644 index 0000000..e69de29