summaryrefslogtreecommitdiff
path: root/lang/python/python-automat/patches
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2023-05-17 19:03:52 +0800
committerRosen Penev <rosenp@gmail.com>2023-05-18 10:30:52 +0300
commitd2ad1f47d3591e79ccac485235dd47ce406f42d5 (patch)
tree9cb320c8bc7c111865dbb2bd94d6616f12ddad58 /lang/python/python-automat/patches
parent1dcaf5210e110567ba17fa2085d022663898b839 (diff)
python-automat: Update to 22.10.0, refresh patches
This also removes the patch to avoid setuptools-scm and adds a build dependency on python-setuptools-scm/host. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python-automat/patches')
-rw-r--r--lang/python/python-automat/patches/001-do-not-use-setuptools-scm-m2r.patch30
-rw-r--r--lang/python/python-automat/patches/002-omit-visualize.patch2
-rw-r--r--lang/python/python-automat/patches/003-omit-tests.patch10
3 files changed, 6 insertions, 36 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
deleted file mode 100644
index e749af361..000000000
--- a/lang/python/python-automat/patches/001-do-not-use-setuptools-scm-m2r.patch
+++ /dev/null
@@ -1,30 +0,0 @@
---- 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>=19.2.0",
- "six",
diff --git a/lang/python/python-automat/patches/002-omit-visualize.patch b/lang/python/python-automat/patches/002-omit-visualize.patch
index ede279696..977f96130 100644
--- a/lang/python/python-automat/patches/002-omit-visualize.patch
+++ b/lang/python/python-automat/patches/002-omit-visualize.patch
@@ -1,6 +1,6 @@
--- a/setup.py
+++ b/setup.py
-@@ -27,15 +27,6 @@ setup(
+@@ -22,15 +22,6 @@ setup(
"attrs>=19.2.0",
"six",
],
diff --git a/lang/python/python-automat/patches/003-omit-tests.patch b/lang/python/python-automat/patches/003-omit-tests.patch
index 81f9e8b36..58eccf007 100644
--- a/lang/python/python-automat/patches/003-omit-tests.patch
+++ b/lang/python/python-automat/patches/003-omit-tests.patch
@@ -1,15 +1,15 @@
--- a/setup.py
+++ b/setup.py
-@@ -21,7 +21,7 @@ setup(
+@@ -12,7 +12,7 @@ setup(
Self-service finite-state machines for the programmer on the go.
""".strip(),
- long_description=long_description,
+ readme='README.md',
- packages=find_packages(exclude=[]),
+ packages=find_packages(exclude=["*._test", "*._test.*"]),
package_dir={'automat': 'automat'},
- install_requires=[
- "attrs>=19.2.0",
-@@ -30,6 +30,7 @@ setup(
+ setup_requires=[
+ 'wheel',
+@@ -25,6 +25,7 @@ setup(
author='Glyph',
author_email='glyph@twistedmatrix.com',
include_package_data=True,