def get_version_from_pyver(): try: import pyver except ImportError: if 'sdist' in sys.argv or 'bdist_wheel' in sys.argv: raise ImportError('You must install pyver to create a package') else: return 'noversion' version, version_info = pyver.get_version(pkg="datalake_api", public=True) return version
def get_version_from_pyver(): try: import pyver except ImportError: if 'sdist' in sys.argv or 'bdist_wheel' in sys.argv: raise ImportError('You must install pyver to create a package') else: return 'noversion' version, version_info = pyver.get_version(pkg="datalake_ingester", public=True) return version
except ImportError: import os, subprocess try: environment = os.environ.copy() cmd = "pip install pyver".split (" ") subprocess.check_call (cmd, env = environment) except subprocess.CalledProcessError: import sys print >> sys.stderr, "Problem installing 'pyver' dependency." print >> sys.stderr, "Please install pyver manually." sys.exit (1) import pyver # pylint: disable=W0611 from setuptools import setup, find_packages __version__, __version_info__ = pyver.get_version (pkg = "configtool") setup ( name = "configtool", version = __version__, description = "Configtool configuration management suite", long_description = "Confgtool configuration mangement suite", classifiers = [], keywords = "configuration management", author = "J C Lawrence", author_email = "*****@*****.**", url = "https://github.com/clearclaw/configtool", license = "Creative Commons Attribution-ShareAlike 3.0 Unported", packages = find_packages (exclude = ["tests",]), package_data = { },
except ImportError: import os, subprocess try: environment = os.environ.copy() cmd = "pip install pyver".split (" ") subprocess.check_call (cmd, env = environment) except subprocess.CalledProcessError: import sys print >> sys.stderr, "Problem installing 'pyver' dependency." print >> sys.stderr, "Please install pyver manually." sys.exit (1) import pyver # pylint: disable=W0611 from setuptools import setup, find_packages __version__, __version_info__ = pyver.get_version (pkg = "pikarun") setup (name = "pikarun", version = __version__, description = "Base classes for a RabbitMQ-based queue-runner and a (persistent) RabbitMQ-based publisher.", long_description = "Base classes for a RabbitMQ-based queue-runner and a (persistent) RabbitMQ-based publisher.", classifiers = [], keywords = "", author = "J C Lawrence", author_email = "*****@*****.**", url = "http://kanga.nu/~claw/", license = "GPL v3.0", packages = find_packages (exclude = ["tests",]), package_data = { }, zip_safe = True,
# Copyright 2015 Planet Labs, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations under # the License. import pyver __version__, __version_info__ = pyver.get_version(pkg='datalake_api')
#! /usr/bin/env python import pyver __version__, __version_info__ = pyver.get_version (pkg = __name__) from pikarun.mq_consumer import MQ_Consumer from pikarun.mq_publisher import MQ_Publisher
# Copyright 2015 Planet Labs, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations under # the License. import pyver from storage import DynamoDBStorage from reporter import SNSReporter from queue import SQSQueue from s3_notification import S3Notification from errors import * # noqa from ingester import Ingester import log # noqa __version__, __version_info__ = pyver.get_version(pkg='datalake_ingester') __all__ = [ 'DynamoDBStorage', 'SNSReporter', 'SQSQueue', 'S3Notification', 'Ingester' ]
from setuptools import setup, find_packages __version__ = "unknown" import pyver __version__, __version_info__ = pyver.get_version (pkg = "xxpaper") setup (name = "xxpaper", version = __version__, description = "Tools for generating images of 18xx papers.", long_description = "Tools for generating images of shares, privates, trains etc for 18xx and like games.", classifiers = [], keywords = "", author = "J C Lawrence", author_email = "*****@*****.**", url = "http://kanga.nu/~claw/", license = "Creative Commons Attribution-ShareAlike 3.0 Unported", packages = find_packages (exclude = ["tests",]), include_package_data = True, zip_safe = False, install_requires = [ "configobj", "psfile", "pyver", ], entry_points = { "console_scripts": [ "xxpaper = xxpaper.main:main", ], }, )