Import py-automat-0.5.0, ~~twisted~~ //twisted// **twisted**.

Automat is a library for concise, idiomatic Python expression of finite-state
automata (particularly deterministic finite-state transducers).

From Pavel Korovin, ok sthen@
This commit is contained in:
landry 2017-05-06 09:54:29 +00:00
parent a31012722a
commit 8a63a2b411
5 changed files with 101 additions and 0 deletions

45
devel/py-automat/Makefile Normal file
View File

@ -0,0 +1,45 @@
# $OpenBSD: Makefile,v 1.1.1.1 2017/05/06 09:54:29 landry Exp $
COMMENT = finite-state machines in Python
MODPY_EGG_VERSION = 0.5.0
DISTNAME = Automat-${MODPY_EGG_VERSION}
PKGNAME = py-automat-${MODPY_EGG_VERSION}
CATEGORIES = devel
HOMEPAGE = https://github.com/glyph/Automat
# MIT
PERMIT_PACKAGE_CDROM = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
BUILD_DEPENDS = devel/py-setuptools_scm${MODPY_FLAVOR} \
textproc/py-m2r${MODPY_FLAVOR}
RUN_DEPENDS = devel/py-attrs${MODPY_FLAVOR} \
devel/py-six${MODPY_FLAVOR} \
#TEST_DEPENDS = devel/py-test${MODPY_FLAVOR} \
# devel/py-twisted${MODPY_FLAVOR}
FLAVORS = python3
FLAVOR ?=
#.if ${FLAVOR:Mpython3}
#TEST_DEPENDS += devel/py-six${MODPY_FLAVOR}
#.endif
## N.B. enable test after devel/py-twisted upgrade
NO_TEST = Yes
post-install:
mv ${PREFIX}/bin/automat-visualize{,${MODPY_BIN_SUFFIX}}
do-test:
cd ${WRKSRC} && ${MODPY_BIN} -m pytest lib/automat/_test/
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (Automat-0.5.0.tar.gz) = SInsZ2M3dDLsTbJlrVUrvpVnaOo//zkBSFUwi6ed18I=
SIZE (Automat-0.5.0.tar.gz) = 32599

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-setup_py,v 1.1.1.1 2017/05/06 09:54:29 landry Exp $
Backport https://github.com/glyph/automat/commit/eef0cf792334cb39fc5bf8966913c62e9789c590
--- setup.py.orig Tue Apr 18 23:43:25 2017
+++ setup.py Tue Apr 18 23:43:56 2017
@@ -39,8 +39,8 @@ setup(
"automat-visualize = automat._visualize:tool"
],
},
- author_name='Glyph',
- author_mail='glyph@twistedmatrix.com',
+ author='Glyph',
+ author_email='glyph@twistedmatrix.com',
include_package_data=True,
license="MIT",
keywords='fsm finite state machine automata',

View File

@ -0,0 +1,2 @@
Automat is a library for concise, idiomatic Python expression of finite-state
automata (particularly deterministic finite-state transducers).

View File

@ -0,0 +1,35 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2017/05/06 09:54:29 landry Exp $
bin/automat-visualize${MODPY_BIN_SUFFIX}
lib/python${MODPY_VERSION}/site-packages/Automat-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/Automat-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/Automat-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/Automat-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/Automat-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt
lib/python${MODPY_VERSION}/site-packages/Automat-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
lib/python${MODPY_VERSION}/site-packages/Automat-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/automat/
lib/python${MODPY_VERSION}/site-packages/automat/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/automat/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/automat/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/automat/${MODPY_PYCACHE}_core.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/automat/${MODPY_PYCACHE}_discover.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/automat/${MODPY_PYCACHE}_introspection.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/automat/${MODPY_PYCACHE}_methodical.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/automat/${MODPY_PYCACHE}_visualize.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/automat/_core.py
lib/python${MODPY_VERSION}/site-packages/automat/_discover.py
lib/python${MODPY_VERSION}/site-packages/automat/_introspection.py
lib/python${MODPY_VERSION}/site-packages/automat/_methodical.py
lib/python${MODPY_VERSION}/site-packages/automat/_test/
lib/python${MODPY_VERSION}/site-packages/automat/_test/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/automat/_test/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/automat/_test/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/automat/_test/${MODPY_PYCACHE}test_core.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/automat/_test/${MODPY_PYCACHE}test_discover.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/automat/_test/${MODPY_PYCACHE}test_methodical.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/automat/_test/${MODPY_PYCACHE}test_visualize.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/automat/_test/test_core.py
lib/python${MODPY_VERSION}/site-packages/automat/_test/test_discover.py
lib/python${MODPY_VERSION}/site-packages/automat/_test/test_methodical.py
lib/python${MODPY_VERSION}/site-packages/automat/_test/test_visualize.py
lib/python${MODPY_VERSION}/site-packages/automat/_visualize.py