def run(self): versions = versioneer.get_versions(verbose=True) self._versioneer_generated_versions = versions # unless we update this, the command will keep using the old version self.distribution.metadata.version = pep440_version( versions["version"]) return _sdist.run(self)
def bumpversion(c, part): if part not in ("major", "minor", "patch"): raise ValueError('part must be one of "major", "minor", or "patch"!') git_status_result = c.run("git status --porcelain") if len(git_status_result.stdout): raise RuntimeError( f"Git working directory is not clean:\n{git_status_result.stdout}" ) c.run("gitchangelog") git_status_result = c.run("git status --porcelain") if len(git_status_result.stdout) == 0: raise RuntimeError( "Empty Change! you must have at least one commit type of fix, feat or breaking change" ) full_version = versioneer.get_versions()["version"] major, minor, patch = [int(i) for i in full_version.split("+")[0].split(".")] if part == "patch": patch += 1 elif part == "minor": minor += 1 patch = 0 else: major += 1 minor = 0 patch = 0 new_version = f"{major}.{minor}.{patch}" c.run(f"git tag {new_version}") c.run("gitchangelog") c.run("git add CHANGELOG.rst") c.run(f"git commit -m 'chore: bump version -> {new_version}'") c.run(f"git tag -f {new_version}")
def run(self): # versioneer: versions = versioneer.get_versions(verbose=True) self._versioneer_generated_versions = versions # unless we update this, the command will keep using the old version self.distribution.metadata.version = versions["version"] _cmd_develop.run(self)
def make_release_tree(self, base_dir, files): root = versioneer.get_root() cfg = versioneer.get_config_from_root(root) command.make_release_tree(self, base_dir, files) target_versionfile = os.path.join(base_dir, cfg.versionfile_source) print("Updating %s" % target_versionfile) versioneer.write_to_version_file(target_versionfile, versioneer.get_versions())
def get_normalized_version(): pieces = versioneer.get_versions()["version"].split("-") if len(pieces) == 1: normalized_version = pieces[0] else: normalized_version = "%s.post%s" % (pieces[0], pieces[1]) if pieces[-1] == "dirty": normalized_version += ".dev0" return normalized_version
def run(self): versions = versioneer.get_versions() fn = os.path.join(EMBEDDED_CRYPTOPP_DIR, 'extraversion.h') f = open(fn, "wb") BODY = CPP_GIT_VERSION_BODY f.write(BODY % { "pkgname": self.distribution.get_name(), "version": versions["version"], "normalized": get_normalized_version(), "full": versions["full"] }) f.close() print "git-version: wrote '%s' into '%s'" % (versions["version"], fn)
def run(self): versions = versioneer.get_versions() tempdir = tempfile.mkdtemp() generated = os.path.join(tempdir, "rundemo") with open(generated, "wb") as f: for line in open("src/rundemo-template", "rb"): if line.strip().decode("ascii") == "#versions": f.write(('versions = %r\n' % (versions,)).encode("ascii")) else: f.write(line) self.scripts = [generated] rc = build_scripts.run(self) os.unlink(generated) os.rmdir(tempdir) return rc
def run(self): versions = versioneer.get_versions() tempdir = tempfile.mkdtemp() generated = os.path.join(tempdir, "git-annex-remote-googledrive") with open(generated, "wb") as f: for line in open("git-annex-remote-googledrive", "rb"): if line.strip().decode("ascii") == "versions = None": f.write('versions = {}\n'.format(versions).encode("ascii")) else: f.write(line) self.scripts = [generated] rc = build_scripts.run(self) os.unlink(generated) os.rmdir(tempdir) return rc
def run(self): #versioneer.cmd_build(self) _build.run(self) # versioneer versions = versioneer.get_versions(verbose=True) # now locate _version.py in the new build/ directory and replace it # with an updated value target_versionfile = os.path.join( self.build_lib, versioneer.versionfile_build) print("UPDATING %s" % target_versionfile) os.unlink(target_versionfile) f = open(target_versionfile, "w") f.write(versioneer.SHORT_VERSION_PY % versions) f.close() # branding target_brandingfile = os.path.join( self.build_lib, branding.brandingfile_build) do_branding(targetfile=target_brandingfile)
def version(ctx, kind): """Bump the project version.""" version_info = versioneer.get_versions() if version_info["dirty"]: print("Git working directory not clean.\n") ctx.run("git status -s") print( "\nPlease commit changes or stash them before creating a release.") sys.exit(1) ver = version_info["version"].lstrip("v").split("+")[0] ver = semver.parse_version_info(ver) try: new_v = getattr(ver, f"bump_{kind}")() except AttributeError: print(f"{kind} is not a valid semver versioning level.") sys.exit(1) ctx.run( f'git commit --no-verify --allow-empty -m"chore: bump version {ver} → {new_v}"' ) ctx.run(f'git tag -as -m"Release {new_v}" v{new_v}')
with open(join(CWD, "README.md"), encoding="utf-8") as f: long_description = f.read() CLASSIFIERS = """ Development Status :: 4 - Beta Intended Audience :: Developers Topic :: Software Development :: Testing License :: OSI Approved :: MIT License Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 """.strip().splitlines() setup( name="robotframework-seleniumproxy", version=versioneer.get_versions(), cmdclass=versioneer.get_cmdclass(), description="Capture requests/responses generated with Seleniums Webdriver", long_description=long_description, long_description_content_type="text/markdown", author="Dillan Teagle", author_email="*****@*****.**", url="https://github.com/teaglebuilt/robotframework-seleniumproxy", classifiers=CLASSIFIERS, install_requires=REQUIREMENTS, keywords= "selenium webdriver proxy robotframework seleniumlibrary network activity request response", license="MIT", packages=find_packages("src"), package_dir={'': 'src'})
class TestsException(Exception): pass raise TestsException("please pass all tests before releasing") # check that linting passes make_process = subprocess.run(["make", "lint"], stderr=subprocess.STDOUT) if make_process.returncode != 0: class LintException(Exception): pass raise LintException("please complete code linting before releasing") # check to prevent dirty uploads to PyPI if versioneer.get_versions()["dirty"]: class MustCommitError(Exception): pass raise MustCommitError("please commit everything before releasing") with open("README.md", "r") as fh: long_description = fh.read() requirements = ['click'] test_requirements = [ 'pytest', 'pytest-cov', 'pytest-watch', 'pytest-reportlog' ]
extra_compile_args=ea, define_macros=[('GPUARRAY_SHARED', None)] ), Extension('pygpu.collectives', sources=['pygpu/collectives.pyx'], include_dirs=include_dirs, libraries=['gpuarray'], library_dirs=library_dirs, extra_compile_args=ea, define_macros=[('GPUARRAY_SHARED', None)] )] cmds = versioneer.get_cmdclass() cmds["clean"] = cmd_clean version_data = versioneer.get_versions() if version_data['error'] is not None: raise ValueError("Can't determine version for build: %s\n Please make sure that your git checkout includes tags." % (version_data['error'],)) setup(name='pygpu', version=version_data['version'], cmdclass=cmds, description='numpy-like wrapper on libgpuarray for GPU computations', packages=['pygpu', 'pygpu/tests'], include_package_data=True, package_data={'pygpu': ['gpuarray.h', 'gpuarray_api.h', 'blas_api.h', 'numpy_compat.h', 'collectives.h', 'collectives_api.h']}, ext_modules=cythonize(exts), install_requires=['mako>=0.7', 'six'],
import versioneer import re from os.path import abspath, dirname, join from setuptools import setup, find_packages CURDIR = dirname(abspath(__file__)) with open("README.md", "r", encoding='utf-8') as fh: LONG_DESCRIPTION = fh.read() # Get the version from the _version.py versioneer file. For a git checkout, # this is computed based on the number of commits since the last tag. VERSION = str(versioneer.get_versions()['version']).split('+')[0] del versioneer.get_versions setup( name="robotframework-PuppeteerLibrary", version=VERSION, author="QA Hive Co.,Ltd", author_email="*****@*****.**", description="PuppeteerLibrary is a Web Testing library for Robot Framework.", long_description=LONG_DESCRIPTION, long_description_content_type='text/markdown', license="Apache License 2.0", url='https://qahive.github.io/robotframework-puppeteer.github.io/', packages=find_packages(), classifiers=[ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9",
def pad_version(v, segment_count=3): split = v.split('.') if len(split) > segment_count: raise InvalidVersionError('{} has more than three segments'.format(v)) return '.'.join(split + ['0'] * (segment_count - len(split))) # TODO: really doesn't seem quite proper here and probably should come # in some other way? pyqt_version = pad_version(os.environ.setdefault('PYQT_VERSION', '6.1.0')) qt_version = pad_version(os.environ.setdefault('QT_VERSION', '6.1.0')) qt_major_version = qt_version.partition('.')[0] pyqt_plugins_wrapper_version = versioneer.get_versions()['version'] pyqt_plugins_version = '{}.{}'.format( pyqt_version, pyqt_plugins_wrapper_version, ) # Inclusive of the lower bound and exclusive of the upper qt_tools_wrapper_range = ['1.2', '2'] # Must be False for release. PyPI won't let you upload with a URL dependency. use_qt_tools_url = False if use_qt_tools_url: qt_tools_url = ' @ git+https://github.com/altendky/qt-tools@main' qt_tools_version_specifier = '' else:
import versioneer, os, re versionFile = open(os.path.join("scadFiles", "progSCADversion.scad"), 'w+') rawVersion=versioneer.get_version() if re.match('^\d+(\.\d+)*$',rawVersion.split('+')[0]): sanitizedVersion=rawVersion.split('+')[0] else: sanitizedVersion=0 listVersion=sanitizedVersion.split('.') listVersion = [int(number) for number in listVersion] gitVersion=versioneer.get_versions()['full-revisionid'] versionText = """\ progScadRawVersion="{rawVersion}" progScadVersion="{version}" progScadListVerion={listVersion} prigScadGitVersion="{gitVersion}" """.format( rawVersion=rawVersion, version=sanitizedVersion, listVersion=listVersion, gitVersion=gitVersion ) versionFile.write(versionText)
from SeleniumLibrary import SeleniumLibrary from SeleniumProxy.keywords import BrowserKeywords, HTTPKeywords from robot.utils import is_truthy from .logger import get_logger from versioneer import get_versions # type: ignore __version__ = get_versions()['version'] del get_versions class SeleniumProxy(SeleniumLibrary): def __init__(self, timeout=5.0, implicit_wait=0.0, run_on_failure='Capture Page Screenshot', screenshot_root_directory=None, plugins=None, event_firing_webdriver=None): SeleniumLibrary.__init__(self, timeout=5.0, implicit_wait=0.0, run_on_failure='Capture Page Screenshot', screenshot_root_directory=None, plugins=None, event_firing_webdriver=None) self.logger = get_logger("SeleniumProxy") self.logger.debug("__init__()") if is_truthy(event_firing_webdriver): self.event_firing_webdriver = self._parse_listener( event_firing_webdriver) self.add_library_components(
import sys import versioneer sys.stdout.write(versioneer.get_versions()["version"])
# -- Path setup -------------------------------------------------------------- # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # import os import sys sys.path.insert(0, os.path.abspath('../..')) os.chdir('../..') import versioneer version = versioneer.get_versions()['version'] os.chdir('docs') # -- Project information ----------------------------------------------------- project = 'conda build' copyright = '2018, Anaconda, Inc.' author = 'Anaconda, Inc.' # The full version, including alpha/beta/rc tags release = version # -- General configuration --------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here.
import versioneer ######################################################################################################################## # The plugin's identifier, has to be unique plugin_identifier = "octolapse" # The plugin's python package, should be "octoprint_<plugin identifier>", has to be unique plugin_package = "octoprint_octolapse" # The plugin's human readable name. Can be overwritten within OctoPrint's internal data via __plugin_name__ in the # plugin module plugin_name = "Octolapse" # The plugin's fallback version, in case versioneer can't extract the version from _version.py. # This can happen if the user installs from one of the .zip links in github, not generated with git archive fallback_version = NumberedVersion.clean_version( NumberedVersion.CurrentVersion) # Get the cleaned version number from versioneer plugin_version = NumberedVersion.clean_version( versioneer.get_versions(verbose=True)["version"]) # Depending on the installation method, versioneer might not know the current version # if plugin_version == "0+unknown" or NumberedVersion(plugin_version) < NumberedVersion(fallback_version): if plugin_version == "0+unknown": plugin_version = fallback_version try: # This generates version in the following form: # 0.4.0rc1+?.GUID_GOES_HERE plugin_version += "+u." + versioneer.get_versions( )['full-revisionid'][0:7] except: pass plugin_cmdclass = versioneer.get_cmdclass() # The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# The plugin's python package, should be "octoprint_<plugin identifier>", has to be unique plugin_package = "octoprint_arc_welder" # The plugin's human readable name. Can be overwritten within OctoPrint's internal data via __plugin_name__ in the # plugin module plugin_name = "Arc Welder" # The plugin's fallback version, in case versioneer can't extract the version from _version.py. # This can happen if the user installs from one of the .zip links in github, not generated with git archive fallback_version = "0.1.0rc1.dev1" plugin_version = versioneer.get_version() if plugin_version == "0+unknown" or NumberedVersion( plugin_version) < NumberedVersion(fallback_version): plugin_version = fallback_version try: # This generates version in the following form: # 0.1.0rc1+?.GUID_GOES_HERE plugin_version += "+u." + versioneer.get_versions( )["full-revisionid"][0:7] except: pass print("Unknown Version, falling back to " + plugin_version + ".") plugin_cmdclass = versioneer.get_cmdclass() # The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin # module plugin_description = """Converts line segments to curves, which reduces the number of gcodes per second, hopefully eliminating stuttering.""" # The plugin's author. Can be overwritten within OctoPrint's internal data via __plugin_author__ in the plugin module plugin_author = "Brad Hochgesang" # The plugin's author's mail address. plugin_author_email = "*****@*****.**" # The plugin's homepage URL. Can be overwritten within OctoPrint's internal data via __plugin_url__ in the plugin module plugin_url = "https://github.com/FormerLurker/ArcWelderPlugin"
#!/usr/bin/env python import setuptools from distutils.core import setup import os import versioneer import archiver __version__ = versioneer.get_versions(archiver.cfg, archiver.__file__)['version'] # Utility function to read the README file. # Used for the long_description. It's nice, because now 1) we have a top level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='archiver', version=__version__, author='Brookhaven National Lab', url='http://github.com/ericdill/archiver', py_modules=['archiver'], license='BSD', )
class VersioneerConfig: pass cfg = VersioneerConfig() cfg.VCS = "git" cfg.style = "pep440" cfg.tag_prefix = "v" cfg.parentdir_prefix = None cfg.versionfile_source = "archiver/" cfg.verbose = True cfg.root = os.path.join(*__file__.split(os.sep)[:-1]) import versioneer print('file = %s' % __file__) __version__ = versioneer.get_versions(cfg, __file__)['version'] def load_configuration(name, prefix, fields): """ Load configuration data form a cascading series of locations. The precedence order is (highest priority last): 1. CONDA_ENV/etc/{name}.yml (if CONDA_ETC_ env is defined) 2. /etc/{name}.yml 3. ~/.config/{name}/connection.yml 4. reading {PREFIX}_{FIELD} environmental variables Parameters ---------- name : str
# -*- coding: utf-8 -*- # SPDX-License-Identifier: CECILL-2.1 """setup.py: setuptools control.""" from setuptools import setup import versioneer revision = versioneer.get_versions()['full-revisionid'] cdn_baseurl = 'https://cdn.jsdelivr.net/gh/SeismicSource/sourcespec@{}'\ .format(revision) with open('README.md', 'rb') as f: long_descr = f.read().decode('utf-8').replace( 'logo/SourceSpec_logo.svg', '{}/logo/SourceSpec_logo.svg'.format(cdn_baseurl)).replace( '(CHANGELOG.md)', '({}/CHANGELOG.md)'.format(cdn_baseurl)) project_urls = { 'Homepage': 'https://sourcespec.seismicsource.org', 'Source': 'https://github.com/SeismicSource/sourcespec', 'Documentation': 'https://sourcespec.readthedocs.io' } setup(name='sourcespec', packages=['sourcespec', 'sourcespec.configobj', 'sourcespec.adjustText'], include_package_data=True, entry_points={ 'console_scripts': [ 'source_spec = sourcespec.source_spec:main', 'source_model = sourcespec.source_model:main', 'source_residuals = ' 'sourcespec.source_residuals:main' ]
versioneer.tag_prefix = '' # tags are like 1.2.0 versioneer.parentdir_prefix = 'ESSArch_PP-' if __name__ == '__main__': setup( name='ESSArch_PP', version=versioneer.get_version(), description='ESSArch Preservation Platform', long_description=open("README.md").read(), long_description_content_type='text/markdown', author='Henrik Ek', author_email='*****@*****.**', url='http://www.essolutions.se', project_urls={ 'Documentation': 'http://docs.essarch.org/', 'Source Code': 'https://github.com/ESSolutions/ESSArch_EPP/tree/%s' % versioneer.get_versions()['full'], 'Travis CI': 'https://travis-ci.org/ESSolutions/ESSArch_EPP', }, classifiers=[ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Natural Language :: Swedish", "Operating System :: POSIX :: Linux", "Operating System :: Microsoft :: Windows", "Programming Language :: Python", "Framework :: Django", "Topic :: System :: Archiving", ], install_requires=[ "ESSArch-Core>=1.1.0.*,<=1.1.1.*", ],
# http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # import os import sys sys.path.insert(0, os.path.abspath('../..')) os.chdir('../..') import versioneer # noqa: E402 version = versioneer.get_versions()['version'] os.chdir('docs') # -- Project information ----------------------------------------------------- project = 'conda-build' copyright = '2018, Anaconda, Inc.' author = 'Anaconda, Inc.' # The full version, including alpha/beta/rc tags release = version # -- General configuration --------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. #
def pad_version(v, segment_count=3): split = v.split('.') if len(split) > segment_count: raise InvalidVersionError('{} has more than three segments'.format(v)) return '.'.join(split + ['0'] * (segment_count - len(split))) # TODO: really doesn't seem quite proper here and probably should come # in some other way? qt_version = pad_version(os.environ.setdefault('QT_VERSION', '6.1.0')) qt_major_version = qt_version.partition('.')[0] qt_applications_wrapper_version = versioneer.get_versions()['version'] qt_applications_version = '{}.{}'.format(qt_version, qt_applications_wrapper_version) with open('README.rst') as f: readme = f.read() class Dist(setuptools.Distribution): def has_ext_modules(self): # Event if we don't have extension modules (e.g. on PyPy) we want to # claim that we do so that wheels get properly tagged as Python # specific. (thanks dstufft!) return True
"Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: " "GNU General Public License v3 or later (GPLv3+)", "Environment :: Console", "Operating System :: OS Independent", "Operating System :: POSIX", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Database :: Front-Ends", "Topic :: Software Development :: Libraries :: Python Modules" ) DOWNLOAD_BASE = ('https://github.com/leapcode/bitmask_client/' 'archive/%s.tar.gz') _versions = versioneer.get_versions() VERSION = _versions['version'] VERSION_REVISION = _versions['full-revisionid'] DOWNLOAD_URL = "" # get the short version for the download url _version_short = re.findall('\d+\.\d+\.\d+', VERSION) if len(_version_short) > 0: VERSION_SHORT = _version_short[0] DOWNLOAD_URL = DOWNLOAD_BASE % VERSION_SHORT class freeze_debianver(Command): """ Freezes the version in a debian branch.
"Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Security", 'Topic :: Security :: Cryptography', "Topic :: Communications", 'Topic :: Communications :: Email', 'Topic :: Communications :: Email :: Post-Office :: IMAP', 'Topic :: Internet', "Topic :: Utilities", ] DOWNLOAD_BASE = ('https://github.com/leapcode/bitmask_client/' 'archive/%s.tar.gz') _versions = versioneer.get_versions() VERSION = _versions['version'] VERSION_FULL = _versions['full'] DOWNLOAD_URL = "" # get the short version for the download url _version_short = re.findall('\d+\.\d+\.\d+', VERSION) if len(_version_short) > 0: VERSION_SHORT = _version_short[0] DOWNLOAD_URL = DOWNLOAD_BASE % VERSION_SHORT cmdclass = versioneer.get_cmdclass() from setuptools import Command
#!/usr/bin/env python import sys import versioneer from setuptools import setup if sys.version_info[:2] < (2, 7): sys.exit("conda-build is only meant for Python >=2.7" "Current Python version: %d.%d" % sys.version_info[:2]) # Don't proceed with 'unknown' in version version_dict = versioneer.get_versions() if version_dict['error']: raise RuntimeError(version_dict["error"]) deps = ['conda', 'requests', 'filelock', 'pyyaml', 'jinja2', 'pkginfo', 'beautifulsoup4', 'chardet', 'pytz', 'tqdm', 'psutil', 'six', 'libarchive-c'] # We cannot build lief for Python 2.7 on Windows (unless we use mingw-w64 for it, which # would be a non-trivial amount of work). # .. lief is missing the egg-info directory so we cannot do this .. besides it is not on # pypi. # if sys.platform != 'win-32' or sys.version_info >= (3, 0): # deps.extend(['lief']) if sys.version_info < (3, 4): deps.extend(['contextlib2', 'enum34', 'futures', 'scandir', 'glob2']) setup( name="conda-build",
#!/usr/bin/env python3 # -*- coding:utf-8 -*- from setuptools import setup, find_packages import versioneer version = versioneer.get_versions()["version"] cmdclass = versioneer.get_cmdclass() with open("README.md", "r") as fh: long_description = fh.read() setup( name='graphwatch', cmdclass=cmdclass, version=version, author="Samuel Loury", author_email="*****@*****.**", description="A web app showing a dot graph evolutions.", long_description=long_description, long_description_content_type="text/markdown", packages=find_packages(), zip_safe=True, include_package_data=True, package_data={'': [ '*.js', '*.css', ]}, install_requires=[ "flexx",
long_description=open("README.md").read(), long_description_content_type='text/markdown', author='Henrik Ek', author_email='*****@*****.**', url='http://www.essolutions.se', entry_points={ 'console_scripts': [ 'essarch = ESSArch_Core.cli.main:cli', ], 'celery.result_backends': [ 'processtask = ESSArch_Core.celery.backends.database:DatabaseBackend', ], }, project_urls={ 'Documentation': 'http://docs.essarch.org/', 'Source Code': 'https://github.com/ESSolutions/ESSArch/tree/%s' % versioneer.get_versions()['full'], 'Travis CI': 'https://travis-ci.org/ESSolutions/ESSArch', }, classifiers=[ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Natural Language :: Swedish", "Operating System :: POSIX :: Linux", "Operating System :: Microsoft :: Windows", "Programming Language :: Python", "Framework :: Django", "Topic :: System :: Archiving", ], install_requires=get_requirements('base'), extras_require={ "docs": get_requirements('docs'),
#!/usr/bin/env python import sys import versioneer from setuptools import setup if sys.version_info[:2] < (2, 7): sys.exit("conda-build is only meant for Python >=2.7" "Current Python version: %d.%d" % sys.version_info[:2]) # Don't proceed with 'unknown' in version version_dict = versioneer.get_versions() if version_dict['error']: raise RuntimeError(version_dict["error"]) deps = ['conda', 'requests', 'filelock', 'pyyaml', 'jinja2', 'pkginfo', 'beautifulsoup4', 'chardet', 'pytz', 'tqdm', 'psutil', 'six', 'libarchive-c', 'setuptools'] # We cannot build lief for Python 2.7 on Windows (unless we use mingw-w64 for it, which # would be a non-trivial amount of work). # .. lief is missing the egg-info directory so we cannot do this .. besides it is not on # pypi. # if sys.platform != 'win-32' or sys.version_info >= (3, 0): # deps.extend(['lief']) if sys.version_info < (3, 4): deps.extend(['contextlib2', 'enum34', 'futures', 'scandir', 'glob2']) setup(
cmdclass.update({'install': my_install}) setup( name='ESSArch_Core', version=versioneer.get_version(), description='ESSArch Core', long_description=open("README.md").read(), long_description_content_type='text/markdown', author='Henrik Ek', author_email='*****@*****.**', url='http://www.essolutions.se', project_urls={ 'Documentation': 'http://docs.essarch.org/', 'Source Code': 'https://github.com/ESSolutions/ESSArch_Core/tree/%s' % versioneer.get_versions()['full'], 'Travis CI': 'https://travis-ci.org/ESSolutions/ESSArch_Core', }, classifiers=[ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Natural Language :: Swedish", "Operating System :: POSIX :: Linux", "Operating System :: Microsoft :: Windows", "Programming Language :: Python", "Framework :: Django", "Topic :: System :: Archiving", ], install_requires=[ "celery==4.2.1",
out = [] stack = [(convert_path(where), '')] while stack: where, prefix = stack.pop(0) for name in os.listdir(where): fn = os.path.join(where, name) if ('.' not in name and os.path.isdir(fn) and os.path.isfile(os.path.join(fn, '__init__.py'))): out.append(prefix + name) stack.append((fn, prefix + name + '.')) for pat in list(exclude) + ['ez_setup', 'distribute_setup']: out = [item for item in out if not fnmatchcase(item, pat)] return out version_data = versioneer.get_versions() if version_data['error'] is not None: # Get the fallback version # We can't import theano.version as it isn't yet installed, so parse it. fname = os.path.join(os.path.split(__file__)[0], "theano", "version.py") with open(fname, "r") as f: lines = f.readlines() lines = [l for l in lines if l.startswith("FALLBACK_VERSION")] assert len(lines) == 1 FALLBACK_VERSION = lines[0].split("=")[1].strip().strip('""') version_data['version'] = FALLBACK_VERSION
import os import setuptools import versioneer import build import local_backend qt_tools_wrapper_version = versioneer.get_versions()['version'] qt_tools_version = '{}.{}'.format( local_backend.qt_version, qt_tools_wrapper_version, ) with open('README.rst') as f: readme = f.read() # TODO: CAMPid 98743987416764218762139847764318798 qt_major_version = os.environ['QT_VERSION'].partition('.')[0] distribution_name = "qt{}-tools".format(qt_major_version) import_name = distribution_name.replace('-', '_') setuptools.setup( name=distribution_name, description="Wrappers for the raw Qt programs from qt{}-applications". format(qt_major_version), long_description=readme, long_description_content_type='text/x-rst', url='https://github.com/altendky/qt-tools', author="Kyle Altendorf", author_email='*****@*****.**',