@@ -126,7 +126,7 @@ def __init__(self, parent=None):
126126 # and know how many occurrences of the current identifier there should
127127 # be.
128128 self._previousIdentifier = ''
129- # Set a place holder for a callable that will get set from the step.
129+ # Set a placeholder for a callable that will get set from the step.
130130 # We will use this method to decide whether the identifier is unique.
131131 self.identifierOccursCount = None
132132
@@ -305,66 +305,6 @@ def validate(self):
305305"""
306306
307307
308- SETUP_PY_TEMPLATE = """\
309- import codecs
310- import io
311- import os
312- import re
313-
314- from setuptools import setup, find_packages
315-
316- SETUP_DIR = os.path.dirname(os.path.abspath(__file__))
317-
318-
319- def read(*parts):
320- with codecs.open(os.path.join(SETUP_DIR, *parts), 'r') as fp:
321- return fp.read()
322-
323-
324- def find_version(*file_paths):
325- version_file = read(*file_paths)
326- version_match = re.search(r"^__version__ = ['\\ "]([^'\\ "]*)['\\ "]",
327- version_file, re.M)
328- if version_match:
329- return version_match.group(1)
330- raise RuntimeError("Unable to find version string.")
331-
332-
333- def readfile(filename, split=False):
334- with io.open(filename, encoding="utf-8") as stream:
335- if split:
336- return stream.read().split("\\ n")
337- return stream.read()
338-
339-
340- readme = readfile("README.rst", split=True)[3:] # Skip title
341- source_license = readfile("LICENSE")
342- requires = ['PySide6'] # Minimal requirements listing. Insert additional dependencies here.
343-
344-
345- setup(
346- name=%(name)r,
347- version=find_version(%(plugin_namespace)r, %(package_name)r, '__init__.py'),
348- description=%(description)r,
349- long_description='\\ n'.join(readme) + source_license,
350- long_description_content_type='text/x-rst',
351- classifiers=[
352- "Development Status :: 3 - Alpha",
353- "License :: OSI Approved :: Apache Software License",
354- "Programming Language :: Python",
355- ],
356- author=%(author)r,
357- author_email=%(author_email)r,
358- url=%(url)r,
359- packages=find_packages(exclude=['ez_setup', ]),
360- namespace_packages=%(namespace_packages)r,
361- include_package_data=True,
362- zip_safe=False,
363- install_requires=requires,
364- )
365- """
366-
367-
368308NAMESPACE_INIT = """\
369309 __import__('pkg_resources').declare_namespace(__name__)
370310"""
0 commit comments