diff options
| author | Jeffery To <jeffery.to@gmail.com> | 2018-01-16 03:33:46 +0800 |
|---|---|---|
| committer | Jeffery To <jeffery.to@gmail.com> | 2018-01-16 03:33:46 +0800 |
| commit | 39914d1f2caeba23681b85b189e66ebadd2fc1be (patch) | |
| tree | d879db3d6f71e04945c61118620a611acdfec418 /lang/python/python-automat/patches | |
| parent | 72a4ac1585da26134cfcd6656569acf77295b402 (diff) | |
python-automat: new package
This is a new requirement for the Twisted package.
From the readme:
Automat is a library for concise, idiomatic Python expression of
finite-state automata (particularly deterministic finite-state
transducers).
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python-automat/patches')
3 files changed, 67 insertions, 0 deletions
diff --git a/lang/python/python-automat/patches/001-do-not-use-setuptools-scm-m2r.patch b/lang/python/python-automat/patches/001-do-not-use-setuptools-scm-m2r.patch new file mode 100644 index 000000000..46fd24156 --- /dev/null +++ b/lang/python/python-automat/patches/001-do-not-use-setuptools-scm-m2r.patch @@ -0,0 +1,30 @@ +--- a/setup.py ++++ b/setup.py +@@ -2,6 +2,7 @@ + Setup file for automat + """ + ++import os + from setuptools import setup, find_packages + + try: +@@ -14,7 +15,7 @@ except(IOError, ImportError): + + setup( + name='Automat', +- use_scm_version=True, ++ version=os.getenv('PKG_VERSION'), + url='https://github.com/glyph/Automat', + description=""" + Self-service finite-state machines for the programmer on the go. +@@ -22,10 +23,6 @@ setup( + long_description=long_description, + packages=find_packages(exclude=[]), + package_dir={'automat': 'automat'}, +- setup_requires=[ +- 'setuptools-scm', +- 'm2r', +- ], + install_requires=[ + "attrs", + "six", diff --git a/lang/python/python-automat/patches/002-omit-visualize.patch b/lang/python/python-automat/patches/002-omit-visualize.patch new file mode 100644 index 000000000..bea12d37a --- /dev/null +++ b/lang/python/python-automat/patches/002-omit-visualize.patch @@ -0,0 +1,18 @@ +--- a/setup.py ++++ b/setup.py +@@ -27,15 +27,6 @@ setup( + "attrs", + "six", + ], +- extras_require={ +- "visualize": ["graphviz>0.5.1", +- "Twisted>=16.1.1"], +- }, +- entry_points={ +- "console_scripts": [ +- "automat-visualize = automat._visualize:tool" +- ], +- }, + author='Glyph', + author_email='glyph@twistedmatrix.com', + include_package_data=True, diff --git a/lang/python/python-automat/patches/003-omit-tests.patch b/lang/python/python-automat/patches/003-omit-tests.patch new file mode 100644 index 000000000..8742aa3ef --- /dev/null +++ b/lang/python/python-automat/patches/003-omit-tests.patch @@ -0,0 +1,19 @@ +--- a/setup.py ++++ b/setup.py +@@ -21,7 +21,7 @@ setup( + Self-service finite-state machines for the programmer on the go. + """.strip(), + long_description=long_description, +- packages=find_packages(exclude=[]), ++ packages=find_packages(exclude=["*._test", "*._test.*"]), + package_dir={'automat': 'automat'}, + install_requires=[ + "attrs", +@@ -30,6 +30,7 @@ setup( + author='Glyph', + author_email='glyph@twistedmatrix.com', + include_package_data=True, ++ exclude_package_data={'':['_test/*']}, + license="MIT", + keywords='fsm finite state machine automata', + ) |
