def run(): version_file = os.path.join('.', 'build', 'lib', src_dir, 'version') data = { 'short': versioninfo.version(), 'long': versioninfo.full_version(), } with open(version_file, 'w') as f: json.dump(data, f)
# make sure Cython finds include files in the project directory and not outside sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src')) import setupinfo import versioninfo # override these and pass --static for a static build. See # doc/build.txt for more information. If you do not pass --static # changing this will have no effect. STATIC_INCLUDE_DIRS = [] STATIC_LIBRARY_DIRS = [] STATIC_CFLAGS = [] STATIC_BINARIES = [] pyxpdf_version = versioninfo.version() print("Building pyxpdf version %s." % pyxpdf_version) OPTION_RUN_TESTS = setupinfo.has_option('run-tests') extra_options = {} if 'setuptools' in sys.modules: extra_options['zip_safe'] = False extra_options['python_requires'] = ( # NOTE: keep in sync with Trove classifier list below. '!=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*') try: import pkg_resources except ImportError: pass
header_packages = build_packages(extract_files(include_dirs)) for package_path, (root_path, filenames) in header_packages.items(): if package_path: package = 'lxml.includes.' + package_path packages.append(package) else: package = 'lxml.includes' package_data[package] = filenames package_dir[package] = root_path return extra_opts setup( name = "lxml", version = versioninfo.version(), author="lxml dev team", author_email="*****@*****.**", maintainer="lxml dev team", maintainer_email="*****@*****.**", url="http://lxml.de/", download_url="http://pypi.python.org/packages/source/l/lxml/lxml-%s.tar.gz" % versioninfo.version(), bugtrack_url="https://bugs.launchpad.net/lxml", description="Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.", long_description=((("""\ lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It provides safe and convenient access to these libraries using the ElementTree API.
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src')) import versioninfo import setupinfo # override these and pass --static for a static build. See # doc/build.txt for more information. If you do not pass --static # changing this will have no effect. STATIC_INCLUDE_DIRS = [] STATIC_LIBRARY_DIRS = [] STATIC_CFLAGS = [] STATIC_BINARIES = [] # create lxml-version.h file versioninfo.create_version_h() lxml_version = versioninfo.version() print("Building lxml version %s." % lxml_version) OPTION_RUN_TESTS = setupinfo.has_option('run-tests') branch_link = """ After an official release of a new stable series, bug fixes may become available at https://github.com/lxml/lxml/tree/lxml-%(branch_version)s . Running ``easy_install lxml==%(branch_version)sbugfix`` will install the unreleased branch state from https://github.com/lxml/lxml/tarball/lxml-%(branch_version)s#egg=lxml-%(branch_version)sbugfix as soon as a maintenance branch has been established. Note that this requires Cython to be installed at an appropriate version for the build. """
for package_path, (root_path, filenames) in header_packages.items(): if package_path: package = 'lxml.includes.' + package_path packages.append(package) else: package = 'lxml.includes' package_data[package] = filenames package_dir[package] = root_path return extra_opts setup( name="lxml", version=versioninfo.version(), author="lxml dev team", author_email="*****@*****.**", maintainer="lxml dev team", maintainer_email="*****@*****.**", url="http://lxml.de/", download_url="http://pypi.python.org/packages/source/l/lxml/lxml-%s.tar.gz" % versioninfo.version(), bugtrack_url="https://bugs.launchpad.net/lxml", description= "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.", long_description=((("""\ lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It provides safe and convenient access to these libraries using the ElementTree API.
extra_opts['packages'] = find_packages( where='src', exclude=['_cffi_src', '_cffi_src.*']) + [ 'lxml-cffi', 'lxml-cffi.includes'] extra_opts['extras_require'][":platform_python_implementation != 'PyPy'"] = ["cffi>=1.4.1"] if platform.python_implementation() == 'PyPy': if sys.pypy_version_info < (2, 6): raise RuntimeError("Please upgrade to at least PyPy 2.6") else: extra_opts['setup_requires'] = ['cffi>=1.4.1'] extra_opts['cffi_modules'] = ['src/_cffi_src/build_libxml.py:ffi'] return extra_opts setup( name = "lxml-cffi", version = versioninfo.version(), author="lxml-cffi maintainers", maintainer="lxml-cffi maintainers", url="https://github.com/lxml-cffi/lxml-cffi", description="Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.", long_description="""\ lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It provides safe and convenient access to these libraries using the ElementTree API. It extends the ElementTree API significantly to offer support for XPath, RelaxNG, XML Schema, XSLT, C14N and much more. lxml-cffi is a fork of lxml that uses CFFI instead of Cython on PyPy, which
import glob from setuptools import setup, find_packages, Command import setuptools.command.build_py if sys.version_info[0] < 3: print("This module version requires Python 3.") sys.exit(1) sys.path.insert(0, os.path.join(os.path.dirname(__file__))) import versioninfo project_root_dir = os.path.dirname(os.path.realpath(__file__)) src_dir = 'unmanic' module_name = versioninfo.name() module_version = versioninfo.version() module_description = versioninfo.description() module_author = versioninfo.author() module_email = versioninfo.email() module_url = versioninfo.url() module_classifiers = [ versioninfo.dev_status(), 'Intended Audience :: End Users/Desktop', 'Intended Audience :: Developers', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Operating System :: POSIX :: Linux', 'Operating System :: Unix', 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', 'Topic :: Multimedia :: Video :: Conversion',
from distutils.core import setup import versioninfo import setupinfo # override these and pass --static for a static build. See # doc/build.txt for more information. If you do not pass --static # changing this will have no effect. STATIC_INCLUDE_DIRS = [] STATIC_LIBRARY_DIRS = [] STATIC_CFLAGS = [] STATIC_BINARIES = [] # create lxml-version.h file versioninfo.create_version_h() lxml_version = versioninfo.version() print("Building lxml version %s." % lxml_version) OPTION_RUN_TESTS = setupinfo.has_option('run-tests') branch_link = """ After an official release of a new stable series, bug fixes may become available at https://github.com/lxml/lxml/tree/lxml-%(branch_version)s . Running ``easy_install lxml==%(branch_version)sbugfix`` will install the unreleased branch state from https://github.com/lxml/lxml/tarball/lxml-%(branch_version)s#egg=lxml-%(branch_version)sbugfix as soon as a maintenance branch has been established. Note that this requires Cython to be installed at an appropriate version for the build. """