commit
stringlengths
40
40
subject
stringlengths
1
3.25k
old_file
stringlengths
4
311
new_file
stringlengths
4
311
old_contents
stringlengths
0
26.3k
lang
stringclasses
3 values
proba
float64
0
1
diff
stringlengths
0
7.82k
98efb2ea38539644a1ee1f40d98190a9fb0a5b64
Bump version to 0.2
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() setup( name='hashmerge', version='0.1', url='https://github.com/lebauce/hashmerge', author='Sylvain Baubeau', author_email='bob@glumol.com', description="Merges two arbitrarily deep hashes into a single hash.", license='MIT', include_package_data=False, zip_safe=False, py_modules=['hashmerge'], long_description=long_description, long_description_content_type='text/markdown', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: Unix', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries'], )
Python
0.000001
@@ -163,9 +163,9 @@ ='0. -1 +2 ',%0A
d67899d0cd62732f27e0e87400192c7b95af5055
Bump version
setup.py
setup.py
# coding:utf-8 from setuptools import setup, find_packages setup(name='flanker', version='0.6.11', description='Mailgun Parsing Tools', long_description=open('README.rst').read(), classifiers=[], keywords='', author='Mailgun Inc.', author_email='admin@mailgunhq.com', url='http://mailgun.net', license='Apache 2', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=True, tests_require=[ 'nose', 'mock' ], install_requires=[ 'chardet>=1.0.1', 'cchardet>=0.3.5', 'cryptography>=0.5', 'cython>=0.21.1', 'dnsq>=1.1.6', 'expiringdict>=1.1.2', 'idna>=2.5', 'ply>=3.10', 'redis>=2.7.1', 'regex>=0.1.20110315', 'WebOb>=0.9.8'], )
Python
0
@@ -97,17 +97,17 @@ n='0.6.1 -1 +2 ',%0A
9e9764c3f11e9653b479593d6e00c9f7965e7cef
35 to 36
setup.py
setup.py
# -*- coding: utf-8 -*- import sys import os from distutils.core import setup from setuptools import find_packages ######### # settings ######### project_var_name = "pyrsslocal" sversion = "0.8" versionPython = "%s.%s" % (sys.version_info.major, sys.version_info.minor) path = "Lib/site-packages/" + project_var_name readme = 'README.rst' requirements = None KEYWORDS = project_var_name + ', RSS, viewer, blog, post' DESCRIPTION = """Local RSS reader/viewer""" CLASSIFIERS = [ 'Programming Language :: Python :: 3', 'Intended Audience :: Developers', 'Topic :: Scientific/Engineering', 'Topic :: Education', 'License :: OSI Approved :: MIT License', 'Development Status :: 5 - Production/Stable' ] ####### # data ####### packages = find_packages('src', exclude='src') package_dir = {k: "src/" + k.replace(".", "/") for k in packages} package_data = {project_var_name + ".rss": ["*.html", "*.css", "*.js", "*.png"], project_var_name + ".javascript": ["*.html", "*.css", "*.js"], } ############ # functions ############ def is_local(): file = os.path.abspath(__file__).replace("\\", "/").lower() if "/temp/" in file and "pip-" in file: return False if \ "bdist_msi" in sys.argv or \ "build27" in sys.argv or \ "build_script" in sys.argv or \ "build_sphinx" in sys.argv or \ "bdist_wheel" in sys.argv or \ "bdist_wininst" in sys.argv or \ "clean_pyd" in sys.argv or \ "clean_space" in sys.argv or \ "copy27" in sys.argv or \ "copy_dist" in sys.argv or \ "local_pypi" in sys.argv or \ "notebook" in sys.argv or \ "publish" in sys.argv or \ "publish_doc" in sys.argv or \ "register" in sys.argv or \ "unittests" in sys.argv or \ "unittests_LONG" in sys.argv or \ "unittests_SKIP" in sys.argv or \ "unittests_GUI" in sys.argv or \ "run27" in sys.argv or \ "sdist" in sys.argv or \ "setupdep" in sys.argv or \ "test_local_pypi" in sys.argv or \ "upload_docs" in sys.argv or \ "setup_hook" in sys.argv or \ "copy_sphinx" in sys.argv or \ "write_version" in sys.argv: try: import_pyquickhelper() except ImportError: return False return True else: return False def import_pyquickhelper(): try: import pyquickhelper except ImportError: sys.path.append( os.path.normpath( os.path.abspath( os.path.join( os.path.dirname(__file__), "..", "pyquickhelper" if sys.version_info[ 0] >= 3 else "py27_pyquickhelper_27", "src")))) try: import pyquickhelper except ImportError as e: message = "module pyquickhelper is needed to build the documentation ({0}), not found in path {1}".format( sys.executable, sys.path[ -1]) raise ImportError(message) from e return pyquickhelper def verbose(): print("---------------------------------") print("package_dir =", package_dir) print("packages =", packages) print("package_data=", package_data) print("current =", os.path.abspath(os.getcwd())) print("---------------------------------") ########## # version ########## if is_local() and "--help" not in sys.argv and "--help-commands" not in sys.argv: def write_version(): pyquickhelper = import_pyquickhelper() from pyquickhelper.pycode import write_version_for_setup return write_version_for_setup(__file__) if sys.version_info[0] != 2: write_version() versiontxt = os.path.join(os.path.dirname(__file__), "version.txt") if os.path.exists(versiontxt): with open(versiontxt, "r") as f: lines = f.readlines() subversion = "." + lines[0].strip("\r\n ") if subversion == ".0": raise Exception("Subversion is wrong: '{0}'.".format(subversion)) else: raise FileNotFoundError(versiontxt) else: # when the module is installed, no commit number is displayed subversion = "" if "upload" in sys.argv and not subversion: # avoid uploading with a wrong subversion number try: import pyquickhelper pyq = True except ImportError: pyq = False raise Exception( "subversion is empty, cannot upload, is_local()={0}, pyquickhelper={1}".format(is_local(), pyq)) ############## # common part ############## if os.path.exists(readme): if sys.version_info[0] == 2: from codecs import open with open(readme, "r", encoding='utf-8-sig') as f: long_description = f.read() else: long_description = "" if "--verbose" in sys.argv: verbose() if is_local(): pyquickhelper = import_pyquickhelper() logging_function = pyquickhelper.get_fLOG() from pyquickhelper.pycode import process_standard_options_for_setup logging_function(OutputPrint=True) r = process_standard_options_for_setup( sys.argv, __file__, project_var_name, unittest_modules=["pyquickhelper", "pyensae", "pymyinstall"], additional_notebook_path=["pyquickhelper", "pyensae", "pymyinstall"], requirements=["pyquickhelper", "pyensae", "pymyinstall"], additional_local_path=["pyquickhelper", "pyensae", "pymyinstall"], fLOG=logging_function, covtoken=("6f97e59c-33f4-4705-a8a6-f529e9604882", "'_UT_35_std' in outfile")) if not r and not ({"bdist_msi", "sdist", "bdist_wheel", "publish", "publish_doc", "register", "upload_docs", "bdist_wininst"} & set(sys.argv)): raise Exception("unable to interpret command line: " + str(sys.argv)) else: r = False if not r: if len(sys.argv) in (1, 2) and sys.argv[-1] in ("--help-commands",): pyquickhelper = import_pyquickhelper() from pyquickhelper.pycode import process_standard_options_for_setup_help process_standard_options_for_setup_help(sys.argv) setup( name=project_var_name, version='%s%s' % (sversion, subversion), author='Xavier Dupré', author_email='xavier.dupre@gmail.com', url="http://www.xavierdupre.fr/app/pyrsslocal/helpsphinx/index.html", download_url="https://github.com/sdpython/pyrsslocal/", description=DESCRIPTION, long_description=long_description, keywords=KEYWORDS, classifiers=CLASSIFIERS, packages=packages, package_dir=package_dir, package_data=package_data, install_requires=["pyquickhelper", "pyensae", "feedparser"], )
Python
0.999788
@@ -5620,17 +5620,17 @@ %22'_UT_3 -5 +6 _std' in
ccd3660f01ec595ee63ecd6ad1332af078277abd
add sphinx-intl
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import re from os import path from codecs import open from setuptools import setup here = path.abspath(path.dirname(__file__)) # get the long description from the README file with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() # get version number from __init__.py # https://github.com/kennethreitz/requests/blob/master/setup.py#L52 with open('HinetPy/__init__.py', 'r') as fd: version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) setup( name='HinetPy', version=version, description='A NIED Hi-net web service client ' 'and win32 tools for seismologists.', long_description=long_description, url='https://github.com/seisman/HinetPy', author='Dongdong Tian', author_email='seisman.info@gmail.com', keywords='NIED Hi-net related tasks', license='MIT', packages=['HinetPy'], install_requires=['requests'], extras_require={ 'dev': [ "guzzle_sphinx_theme", "codecov", "coverage", "pytest-cov", "twine", ] }, classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3 :: Only', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Scientific/Engineering :: Physics', 'Topic :: Utilities', ], )
Python
0.999992
@@ -1187,24 +1187,51 @@ %22twine%22,%0A + %22sphinx-intl%22,%0A %5D%0A
a1dd21feb6245aa3870cb4c2b05f703f2dfd8814
version bump
setup.py
setup.py
# Copyright 2015 Netflix. All rights reserved. # # The contents of this file are 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. from setuptools import setup, find_packages from pip.req import parse_requirements import uuid # parse_requirements() returns generator of pip.req.InstallRequirement objects install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) # reqs is a list of requirement # e.g. ['django==1.5.1', 'mezzanine==1.4.6'] reqs = [str(ir.req) for ir in install_reqs] version = '0.9' setup( name='pyIOSXR', version=version, py_modules=['pyIOSXR'], packages=find_packages(), install_requires=reqs, include_package_data=True, description = 'Python API to interact with network devices running IOS-XR', author = 'Elisa Jasinska', author_email = 'elisa@bigwaveit.org', url = 'https://github.com/fooelisa/pyiosxr/', # use the URL to the github repo download_url = 'https://github.com/fooelisa/pyiosxr/tarball/%s' % version, keywords = ['IOS-XR', 'IOSXR', 'Cisco', 'networking'], classifiers = [], )
Python
0.000001
@@ -1004,9 +1004,10 @@ '0. -9 +10 '%0A%0As
31cd04c8805459fb44047c8e61536ddfc123d566
update version.
setup.py
setup.py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ''' For pypi ''' from setuptools import setup, find_packages desc = ('Flexible, extensible Web CMS framework built on Tornado,' 'compatible with Python 3.4 and above.') setup( name='torcms', version='0.6.23', keywords=('torcms', 'tornado', 'cms',), description=desc, long_description=''.join(open('README.rst').readlines()), license='MIT License', url='https://github.com/bukun/TorCMS', author='bukun', author_email='bukun@osgeo.cn', packages=find_packages( # include=('torcms',), exclude=("tester", "torcms_tester", 'flasky',)), include_package_data=True, platforms='any', zip_safe=True, install_requires=['beautifulsoup4', 'jieba', 'markdown', 'peewee', 'Pillow', 'tornado', 'Whoosh', 'WTForms', 'wtforms-tornado', 'psycopg2-binary', 'html2text', 'redis', 'pyyaml'], classifiers=[ # How mature is this project? Common values are # 3 - Alpha # 4 - Beta # 5 - Production/Stable 'Development Status :: 3 - Alpha', # Indicate who your project is intended for 'Intended Audience :: Developers', 'Topic :: Software Development :: Libraries :: Python Modules', # Pick your license as you wish (should match "license" above) 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6' ], )
Python
0
@@ -263,17 +263,17 @@ n='0.6.2 -3 +4 ',%0A k
aca62ab63ea2b57c139781552261d54ab5f29eb8
return to dev version
setup.py
setup.py
#!/usr/bin/env python import os import re import sys import warnings from setuptools import setup, find_packages MAJOR = 0 MINOR = 6 MICRO = 1 ISRELEASED = True VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO) QUALIFIER = '' DISTNAME = 'xray' LICENSE = 'Apache' AUTHOR = 'xray Developers' AUTHOR_EMAIL = 'xray-dev@googlegroups.com' URL = 'https://github.com/xray/xray' CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Intended Audience :: Science/Research', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Scientific/Engineering', ] INSTALL_REQUIRES = ['numpy >= 1.7', 'pandas >= 0.15.0'] TESTS_REQUIRE = ['nose >= 1.0'] if sys.version_info[:2] < (2, 7): TESTS_REQUIRE += ["unittest2 == 0.5.1"] DESCRIPTION = "N-D labeled arrays and datasets in Python" LONG_DESCRIPTION = """ **xray** is an open source project and Python package that aims to bring the labeled data power of pandas_ to the physical sciences, by providing N-dimensional variants of the core pandas data structures. Our goal is to provide a pandas-like and pandas-compatible toolkit for analytics on multi-dimensional arrays, rather than the tabular data for which pandas excels. Our approach adopts the `Common Data Model`_ for self- describing scientific data in widespread use in the Earth sciences: ``xray.Dataset`` is an in-memory representation of a netCDF file. .. _pandas: http://pandas.pydata.org .. _Common Data Model: http://www.unidata.ucar.edu/software/thredds/current/netcdf-java/CDM .. _netCDF: http://www.unidata.ucar.edu/software/netcdf .. _OPeNDAP: http://www.opendap.org/ Important links --------------- - HTML documentation: http://xray.readthedocs.org - Issue tracker: http://github.com/xray/xray/issues - Source code: http://github.com/xray/xray - SciPy2015 talk: https://www.youtube.com/watch?v=X0pAhJgySxk """ # code to extract and write the version copied from pandas FULLVERSION = VERSION write_version = True if not ISRELEASED: import subprocess FULLVERSION += '.dev' pipe = None for cmd in ['git', 'git.cmd']: try: pipe = subprocess.Popen( [cmd, "describe", "--always", "--match", "v[0-9]*"], stdout=subprocess.PIPE) (so, serr) = pipe.communicate() if pipe.returncode == 0: break except: pass if pipe is None or pipe.returncode != 0: # no git, or not in git dir if os.path.exists('xray/version.py'): warnings.warn("WARNING: Couldn't get git revision, using existing xray/version.py") write_version = False else: warnings.warn("WARNING: Couldn't get git revision, using generic version string") else: # have git, in git dir, but may have used a shallow clone (travis does this) rev = so.strip() # makes distutils blow up on Python 2.7 if sys.version_info[0] >= 3: rev = rev.decode('ascii') if not rev.startswith('v') and re.match("[a-zA-Z0-9]{7,9}", rev): # partial clone, manually construct version string # this is the format before we started using git-describe # to get an ordering on dev version strings. rev = "v%s.dev-%s" % (VERSION, rev) # Strip leading v from tags format "vx.y.z" to get th version string FULLVERSION = rev.lstrip('v') else: FULLVERSION += QUALIFIER def write_version_py(filename=None): cnt = """\ version = '%s' short_version = '%s' """ if not filename: filename = os.path.join( os.path.dirname(__file__), 'xray', 'version.py') a = open(filename, 'w') try: a.write(cnt % (FULLVERSION, VERSION)) finally: a.close() if write_version: write_version_py() setup(name=DISTNAME, version=FULLVERSION, license=LICENSE, author=AUTHOR, author_email=AUTHOR_EMAIL, classifiers=CLASSIFIERS, description=DESCRIPTION, long_description=LONG_DESCRIPTION, install_requires=INSTALL_REQUIRES, tests_require=TESTS_REQUIRE, url=URL, test_suite='nose.collector', packages=find_packages(), package_data={'xray': ['test/data/*', 'plot/default_colormap.csv']})
Python
0
@@ -152,19 +152,20 @@ EASED = -Tru +Fals e%0AVERSIO
60236b17c98cd783ac2ab4fd214a6425410195f1
add long_description
setup.py
setup.py
#!/usr/bin/env python3 from setuptools import setup version = '1.2.0' setup(name='makerestapiclient', version=version, description="Simple python utility to build a python client class for interfacing with a REST API", classifiers=[ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules", ], entry_points={ 'console_scripts': [ 'makerestapiclient = makerestapiclient.__main__:main', ] }, keywords='python http rest management', author='Taylor C. Richberger <tcr@absolute-performance.com>', author_email='tcr@absolute-performance.com', url='https://github.com/Taywee/makerestapiclient', download_url='https://github.com/Taywee/makerestapiclient', license='MIT', packages=['makerestapiclient'], include_package_data=False, zip_safe=False, )
Python
0.003355
@@ -66,9 +66,9 @@ 1.2. -0 +1 '%0A%0As @@ -223,16 +223,125 @@ T API%22,%0A + long_description=%22Simple python utility to build a python client class for interfacing with a REST API%22,%0A clas
9266e87c0930e589145ab25609cd8e129a3f487e
bump version
setup.py
setup.py
import os try: from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand class PyTest(TestCommand): user_options = [('pytest-args=', 'a', "Arguments to pass to pytest")] def initialize_options(self): TestCommand.initialize_options(self) self.pytest_args = '' def run_tests(self): #import here, cause outside the eggs aren't loaded import sys import pytest errno = pytest.main(self.pytest_args.split(' ')) sys.exit(errno) install_requires = [ 'rsa', 'pyyaml', 'grequests' ] tests_require = [ 'mock', 'pytest-cov', 'coverage', 'pytest' ] setup( name='pastry', version='0.1.24', description='A simple api wrapper for chef', long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(), author='Stephen Breyer-Menke', author_email='steve.bm@gmail.com', license='MIT', url='https://github.com/stephenbm/pastry', packages=find_packages(), test_suite='tests', tests_require=tests_require, cmdclass={'test': PyTest}, install_requires=install_requires, include_package_data=True, zip_safe=False )
Python
0
@@ -919,9 +919,9 @@ .1.2 -4 +5 ',%0A
098594700b0b8d782b599cb0d74eb0f7de770c7b
Bump version.
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name = 'simhash', version = '1.8.0', keywords = ('simhash'), description = 'A Python implementation of Simhash Algorithm', license = 'MIT License', url = 'http://leons.im/posts/a-python-implementation-of-simhash-algorithm/', author = '1e0n', author_email = 'i@leons.im', packages = find_packages(), include_package_data = True, platforms = 'any', install_requires = [], tests_require = [ 'nose', 'numpy', 'scipy', 'scikit-learn', ], test_suite = "nose.collector", )
Python
0
@@ -111,9 +111,9 @@ '1. -8 +9 .0',
0cfbf102ebdf39c2680a5cd20586ed189fd73fa3
Fix author email address
setup.py
setup.py
#!/usr/bin/env python import codecs import os.path import re import sys import setuptools here = os.path.abspath(os.path.dirname(__file__)) def read(*parts): # intentionally *not* adding an encoding option to open, See: # https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690 with codecs.open(os.path.join(here, *parts), 'r') as fp: return fp.read() def find_version(*file_paths): version_file = read(*file_paths) version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M) if version_match: return version_match.group(1) raise RuntimeError("Unable to find version string.") # Remember keep synchronized with the list of dependencies in tox.ini tests_require = [ "pytest", "requests-mock", ] needs_pytest = {"pytest", "test", "ptr"}.intersection(sys.argv) pytest_runner = ["pytest-runner"] if needs_pytest else [] setuptools.setup( name="neuroglancer-scripts", version=find_version("src", "neuroglancer_scripts", "__init__.py"), description="Conversion of images to the Neuroglancer pre-computed format", long_description=read("README.rst"), url="https://github.com/HumanBrainProject/neuroglancer-scripts", author="Yann Leprince", author_email="y.leprince@fz-juelich.de", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering :: Visualization", ], keywords="neuroimaging", package_dir={"": "src"}, packages=setuptools.find_packages("src"), install_requires=[ "nibabel >= 2", "numpy >= 1.11.0", "pillow >= 1.1.6", "requests >= 2", "scikit-image", # TODO use pillow instead "tqdm >= 4", ], python_requires="~= 3.5", extras_require={ "dev": tests_require + [ "check-manifest", "flake8", "pep8-naming", "pytest-cov", "readme_renderer", "sphinx", "tox", ], }, setup_requires=pytest_runner, tests_require=tests_require, entry_points={ "console_scripts": [ "compute-scales=neuroglancer_scripts.scripts.compute_scales:main", "convert-chunks=neuroglancer_scripts.scripts.convert_chunks:main", "generate-scales-info=neuroglancer_scripts.scripts.generate_scales_info:main", "link-mesh-fragments=neuroglancer_scripts.scripts.link_mesh_fragments:main", "mesh-to-precomputed=neuroglancer_scripts.scripts.mesh_to_precomputed:main", "scale-stats=neuroglancer_scripts.scripts.scale_stats:main", "slices-to-precomputed=neuroglancer_scripts.scripts.slices_to_precomputed:main", "volume-to-precomputed=neuroglancer_scripts.scripts.volume_to_precomputed:main", "volume-to-precomputed-pyramid=neuroglancer_scripts.scripts.volume_to_precomputed_pyramid:main", ], }, )
Python
0.00006
@@ -1302,16 +1302,19 @@ email=%22y +ann .leprinc @@ -1319,21 +1319,14 @@ nce@ -fz-juelich.de +cea.fr %22,%0A
f75ed6add2058f6988b2baaf73d34c382d17adf7
add examples and test sub-packages and bump version number for new pypi release
setup.py
setup.py
from distutils.core import setup setup( name='NMRPyStar', version='0.0.11', packages=['nmrpystar', 'nmrpystar.parse'], license='MIT', author='Matt Fenwick', author_email='mfenwick100@gmail.com', url='https://github.com/mattfenwick/NMRPyStar', description='a parser for the NMR-Star data format' )
Python
0
@@ -74,17 +74,17 @@ n='0.0.1 -1 +2 ',%0A p @@ -105,16 +105,31 @@ ystar', +%0A 'nmrpyst @@ -137,16 +137,85 @@ r.parse' +, %0A 'nmrpystar.examples',%0A 'nmrpystar.test' %5D,%0A l
5d2bf4cb211a9e63a7a9db74be321f36337f7220
Version bump 0.0.3
setup.py
setup.py
# dockerpty. # # Copyright 2014 Chris Corbyn <chris@w3style.co.uk> # # 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. from setuptools import setup import os def fopen(filename): return open(os.path.join(os.path.dirname(__file__), filename)) def read(filename): return fopen(filename).read() setup( name='dockerpty', version='0.0.2', description='Python library to use the pseudo-tty of a docker container', long_description=read('README.md'), url='https://github.com/d11wtq/dockerpty', author='Chris Corbyn', author_email='chris@w3style.co.uk', license='Apache 2.0', keywords='docker, tty, pty, terminal', packages=['dockerpty'], classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', 'Environment :: Console', 'Intended Audience :: Developers', 'Topic :: Terminals', 'Topic :: Terminals :: Terminal Emulators/X Terminals', 'Topic :: Software Development :: Libraries', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
Python
0.000001
@@ -837,17 +837,17 @@ on='0.0. -2 +3 ',%0A d
54eb19f83f7fa9fb367c5160843bd92f32ef912f
Bump flake8 from 3.7.4 to 3.7.5
setup.py
setup.py
# -*- coding: utf-8 -*- import re from setuptools import setup, find_packages INSTALL_REQUIRES = ("marshmallow>=2.0.0", "SQLAlchemy>=0.9.7") EXTRAS_REQUIRE = { "tests": ["pytest", "mock"], "lint": [ "flake8==3.7.4", 'flake8-bugbear==18.8.0; python_version >= "3.5"', "pre-commit==1.14.3", ], } EXTRAS_REQUIRE["dev"] = EXTRAS_REQUIRE["tests"] + EXTRAS_REQUIRE["lint"] + ["tox"] def find_version(fname): """Attempts to find the version number in the file names fname. Raises RuntimeError if not found. """ version = "" with open(fname, "r") as fp: reg = re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]') for line in fp: m = reg.match(line) if m: version = m.group(1) break if not version: raise RuntimeError("Cannot find version information") return version def read(fname): with open(fname) as fp: content = fp.read() return content setup( name="marshmallow-sqlalchemy", version=find_version("marshmallow_sqlalchemy/__init__.py"), description="SQLAlchemy integration with the marshmallow (de)serialization library", long_description=read("README.rst"), author="Steven Loria", author_email="sloria1@gmail.com", url="https://github.com/marshmallow-code/marshmallow-sqlalchemy", packages=find_packages(exclude=("test*",)), package_dir={"marshmallow-sqlalchemy": "marshmallow-sqlalchemy"}, include_package_data=True, install_requires=INSTALL_REQUIRES, extras_require=EXTRAS_REQUIRE, license="MIT", zip_safe=False, keywords="sqlalchemy marshmallow", classifiers=[ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", ], test_suite="tests", project_urls={ "Changelog": "https://marshmallow-sqlalchemy.readthedocs.io/en/latest/changelog.html", "Issues": "https://github.com/marshmallow-code/marshmallow-sqlalchemy/issues", "Funding": "https://opencollective.com/marshmallow", }, )
Python
0.000001
@@ -223,17 +223,17 @@ e8==3.7. -4 +5 %22,%0A
d6a020d29d911e2f353b534040d8a3ee3f16956c
update setup.py
setup.py
setup.py
from distutils.core import setup from distutils.dist import DistributionMetadata # Patch distutils if it can't cope with the "classifiers" keyword (prior to Python 2.3.0). if not hasattr(DistributionMetadata, 'classifiers'): DistributionMetadata.classifiers = None setup( name = "Pattern", version = "2.4", description = "Web mining module for Python.", license = "BSD", author = "Tom De Smedt", author_email = "tom@organisms.be", url = "http://www.clips.ua.ac.be/pages/pattern", packages = [ "pattern", "pattern.web", "pattern.web.cache", "pattern.web.feed", "pattern.web.imap", "pattern.web.json", "pattern.web.oauth", "pattern.web.pdf", "pattern.web.soup", "pattern.db", "pattern.text", "pattern.text.de", "pattern.text.de.parser", "pattern.text.de.inflect", "pattern.text.en", "pattern.text.en.inflect", "pattern.text.en.parser", "pattern.text.en.wordlist", "pattern.text.en.wordnet", "pattern.text.en.wordnet.pywordnet", "pattern.text.es.inflect", "pattern.text.es.parser", "pattern.text.nl", "pattern.text.nl.parser", "pattern.text.nl.inflect", "pattern.vector", "pattern.vector.svm", "pattern.graph" ], package_data = { "pattern" : ["*.js"], "pattern.web.cache" : ["tmp/*"], "pattern.web.feed" : ["*"], "pattern.web.json" : ["*"], "pattern.web.pdf" : ["*.txt", "cmap/*"], "pattern.web.soup" : ["*"], "pattern.text.de.parser" : ["*.txt", "*.xml"], "pattern.text.de.inflect" : ["*.txt"], "pattern.text.en.inflect" : ["*.txt"], "pattern.text.en.parser" : ["*.txt", "*.xml"], "pattern.text.en.wordlist" : ["*.txt"], "pattern.text.en.wordnet" : ["*.txt", "dict/*"], "pattern.text.en.wordnet.pywordnet" : ["*"], "pattern.text.es.parser" : ["*.txt", "*.xml"], "pattern.text.es.inflect" : ["*.txt"], "pattern.text.nl.parser" : ["*.txt", "*.xml"], "pattern.text.nl.inflect" : ["*.txt"], "pattern.vector" : ["*.txt"], "pattern.vector.svm" : ["*"], "pattern.graph" : ["*.js", "*.csv"], }, py_modules = [ "pattern.metrics", "pattern.text.search" ], classifiers = [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", "Natural Language :: Dutch", "Natural Language :: English", "Natural Language :: German", "Natural Language :: Spanish", "Operating System :: OS Independent", "Programming Language :: JavaScript", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Internet :: WWW/HTTP :: Indexing/Search", "Topic :: Multimedia :: Graphics", "Topic :: Scientific/Engineering :: Artificial Intelligence", "Topic :: Scientific/Engineering :: Visualization", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Linguistic", "Topic :: Text Processing :: Markup :: HTML" ] )
Python
0.000001
@@ -1229,32 +1229,128 @@ xt.es.parser%22, %0A + %22pattern.text.fr%22,%0A %22pattern.text.fr.parser%22,%0A %22pattern.text.fr.inflect%22,%0A %22pattern @@ -1360,16 +1360,16 @@ xt.nl%22,%0A - @@ -1939,57 +1939,8 @@ %22%5D,%0A - %22pattern.text.en.inflect%22 : %5B%22*.txt%22%5D,%0A @@ -1985,32 +1985,81 @@ txt%22, %22*.xml%22%5D,%0A + %22pattern.text.en.inflect%22 : %5B%22*.txt%22%5D,%0A %22pattern @@ -2302,32 +2302,139 @@ : %5B%22*.txt%22%5D,%0A + %22pattern.text.fr.parser%22 : %5B%22*.txt%22, %22*.xml%22%5D,%0A %22pattern.text.fr.inflect%22 : %5B%22*.txt%22%5D,%0A %22pattern @@ -3057,24 +3057,24 @@ :: Dutch%22,%0A - %22Nat @@ -3096,24 +3096,62 @@ : English%22,%0A + %22Natural Language :: French%22,%0A %22Nat
4bb8acd103131868dfc8bf68cc583c01b4e8481c
Bump version to 0.1.1
setup.py
setup.py
from setuptools import find_packages, setup version = '0.1.0' setup( name='django-user-deletion', packages=find_packages(), include_package_data=True, version=version, license='BSD', description='Management commands to notify and delete inactive django users', classifiers=[ 'Development Status :: 1 - Planning', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Natural Language :: English', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], author='Incuna Ltd', author_email='admin@incuna.com', url='https://github.com/incuna/django-user-deletion', )
Python
0.000002
@@ -54,17 +54,17 @@ = '0.1. -0 +1 '%0A%0A%0Asetu
bc95f1488b5e573277a1306bf0ecca6d2207f88b
Use PEP440-compliant version in setup.py (#277)
setup.py
setup.py
#!/usr/bin/env python """ Bugsnag ======= The official Python notifier for `Bugsnag <https://bugsnag.com/>`_. Provides support for automatically capturing and sending exceptions in your Django and other Python apps to Bugsnag, to help you find and solve your bugs as fast as possible. """ from setuptools import setup, find_packages setup( name='bugsnag', version='4.0.3', description='Automatic error monitoring for django, flask, etc.', long_description=__doc__, author='Simon Maynard', author_email='simon@bugsnag.com', url='https://bugsnag.com/', license='MIT', python_requires='>=3.5.*, <4', packages=find_packages(include=['bugsnag', 'bugsnag.*']), classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Topic :: Software Development' ], package_data = { 'bugsnag': ['py.typed'], }, test_suite='tests', install_requires=['webob'], extras_require={ 'flask': ['flask', 'blinker'] }, )
Python
0
@@ -621,18 +621,16 @@ s='%3E=3.5 -.* , %3C4',%0A
d5109b582cdf1f0f356122e71847debd37201636
Update version.
setup.py
setup.py
from setuptools import setup, find_packages __version__ = '4.0.2' with open('requirements.txt') as f: requires = f.read().splitlines() url = 'https://github.com/pmaigutyak/mp-shop' setup( name='django-mp-shop', version=__version__, description='Django shop apps', long_description=open('README.md').read(), author='Paul Maigutyak', author_email='pmaigutyak@gmail.com', url=url, download_url='%s/archive/%s.tar.gz' % (url, __version__), packages=find_packages(), include_package_data=True, license='MIT', install_requires=requires )
Python
0
@@ -62,9 +62,9 @@ 4.0. -2 +3 '%0A%0A%0A
83d10dc3f453d50e859c0d2674e13cfa3ea74bbb
Fix setup.py.
setup.py
setup.py
# -*- coding: utf-8 -*- """A/B Testing for Django django-lean allows you to perform split-test experiments on your users. In brief, this involves exposing 50% of your users to one implementation and 50% to another, then comparing the performance of these two groups with regards to certain metrics. """ from distutils.core import setup description, long_description = __doc__.split('\n\n', 1) setup( name='django-lean', version='0.10', author='Akoha, Inc.', author_email='django-lean@akoha.com', description=('A framework for performing and analyzing split-test ' + 'experiments in Django applications.'), long_description=('django-lean aims to be a collection of tools for ' + 'Lean Startups using the Django platform. Currently ' + 'it provides a framework for implementing split-test ' + 'experiments in JavaScript, Python, or Django template ' + 'code along with administrative views for analyzing ' + 'the results of those experiments.'), license='BSD', platforms=['any'], url='http://bitbucket.org/akoha/django-lean/wiki/Home', classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules' ], packages=[ 'django_lean', 'django_lean.experiments', 'django_lean.experiments.management', 'django_lean.experiments.management.commands', 'django_lean.experiments.migrations', 'django_lean.experiments.templatetags', 'django_lean.experiments.tests', 'django_lean.lean_analytics', 'django_lean.lean_retention', 'django_lean.lean_retention.migrations', 'django_lean.lean_retention.tests', 'django_lean.lean_segments', 'django_lean.lean_segments.management', ], package_data={ 'django_lean.experiments': ['templates/experiments/*.html', 'templates/experiments/include/*.html', 'templates/experiments/include/*.js'], 'django_lean.experiments.tests': ['data/*.json'], }, install_requires=['django >= 1.0', 'BeautifulSoup', 'mox'], )
Python
0
@@ -2147,24 +2147,81 @@ anagement',%0A + 'django_lean.lean_segments.management.commands',%0A %5D,%0A p
48420606edc3d2486e0e943d8480fe7f57aa6e0e
fix for unneccesary require to argparse
setup.py
setup.py
from setuptools import setup, find_packages import sys import os import re extra = {} if sys.version_info >= (3, 0): extra.update( use_2to3=True, ) v = open(os.path.join(os.path.dirname(__file__), 'alembic', '__init__.py')) VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1) v.close() readme = os.path.join(os.path.dirname(__file__), 'README.rst') setup(name='alembic', version=VERSION, description="A database migration tool for SQLAlchemy.", long_description=open(readme).read(), classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Console', 'Intended Audience :: Developers', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Database :: Front-Ends', ], keywords='SQLAlchemy migrations', author='Mike Bayer', author_email='mike@zzzcomputing.com', url='http://bitbucket.org/zzzeek/alembic', license='MIT', packages=find_packages('.', exclude=['examples*', 'test*']), include_package_data=True, tests_require = ['nose >= 0.11'], test_suite = "nose.collector", zip_safe=False, install_requires=[ 'SQLAlchemy>=0.6.0', 'Mako', # TODO: should this not be here if the env. is # Python 2.7/3.2 ? not sure how this is supposed # to be handled 'argparse' ], entry_points = { 'console_scripts': [ 'alembic = alembic.config:main' ], }, **extra )
Python
0.000001
@@ -390,16 +390,146 @@ .rst')%0A%0A +requires = %5B%0A 'SQLAlchemy%3E=0.6.0',%0A 'Mako',%0A%5D%0A%0Atry:%0A import argparse%0Aexcept ImportError:%0A requires.append('argparse')%0A %0Asetup(n @@ -1484,231 +1484,16 @@ res= -%5B%0A 'SQLAlchemy%3E=0.6.0',%0A 'Mako',%0A # TODO: should this not be here if the env. is %0A # Python 2.7/3.2 ? not sure how this is supposed %0A # to be handled%0A 'argparse'%0A %5D +requires ,%0A
433be135e7c074c4481a6eb1f110cafa7402b760
version 0.6.0 for pypi
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='django-clever-selects', version='0.5.0', description='Chained select box widget for Django framework using AJAX requests.', long_description=open('README.rst').read(), author='Pragmatic Mates', author_email='info@pragmaticmates.com', maintainer='Pragmatic Mates', maintainer_email='info@pragmaticmates.com', url='https://github.com/PragmaticMates/django-clever-selects', packages=[ 'clever_selects', 'clever_selects.templatetags' ], include_package_data=True, install_requires=('django',), classifiers=[ 'Programming Language :: Python', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Operating System :: OS Independent', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'Framework :: Django', 'License :: OSI Approved :: BSD License', 'Development Status :: 3 - Alpha' ], license='BSD License', keywords = "django clever chained selects", )
Python
0
@@ -102,17 +102,17 @@ sion='0. -5 +6 .0',%0A
a6d5e8e1550f523eb87d0cd4a097136a350dcd28
Bump versioBump version
setup.py
setup.py
from setuptools import setup, find_packages import os CLASSIFIERS = [] setup( author="Christopher Glass", author_email="tribaal@gmail.com", name='django-shop', version='0.0.1', description='An Advanced Django Shop', long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(), url='http://www.django-shop.org/', license='BSD License', platforms=['OS Independent'], classifiers=CLASSIFIERS, install_requires=[ 'Django>=1.2', 'django-classy-tags>=0.3.3', 'django-polymorphic>=0.2', 'south>=0.7.2' ], packages=find_packages(exclude=["example", "example.*"]), zip_safe = False )
Python
0.000001
@@ -184,17 +184,17 @@ on='0.0. -1 +2 ',%0A d
7fd587275fcc470df5a1161743ef9c7607287439
Connect input with filters behaviour
src/input.py
src/input.py
#!/usr/bin/env python # -*- coding: utf-8 -*- #import modułów konektora msg_stream_connector from ComssServiceDevelopment.connectors.tcp.msg_stream_connector import OutputMessageConnector #import modułu klasy testowego kontrolera usługi from ComssServiceDevelopment.development import DevServiceController import cv2 #import modułu biblioteki OpenCV import Tkinter as tk #import modułu biblioteki Tkinter -- okienka #utworzenie obiektu kontroletra testowego, #jako parametr podany jest plik konfiguracji usługi, #do której "zaślepka" jest dołączana service_controller = DevServiceController("src/input_descriptor.json") #deklaracja interfejsu wyjściowego konektora msg_stream_connector, #należy zwrócić uwagę, iż identyfikator musi być zgodny z WEJŚCIEM usługi, #do której "zaślepka" jest podłączana service_controller.declare_connection("videoInput", OutputMessageConnector(service_controller)) print 'starting input script' def update_all(root, cam, filters): read_successful, frame = cam.read() #odczyt obrazu z kamery new_filters = set() if check1.get()==1: #sprawdzenie czy checkbox był zaznaczony new_filters.add(1) if filters ^ new_filters: filters.clear() filters.update(new_filters) #zmiana wartości parametru "filtersOn" w zależności od checkbox'a service_controller.update_params({"filtersOn": list(filters)}) if read_successful: frame_dump = frame.dumps() #zrzut ramki wideo do postaci ciągu bajtów service_controller.get_connection("videoInput").send(frame_dump) #wysłanie danych root.update() root.after(20, func=lambda: update_all(root, cam, filters)) print 'creating window' root = tk.Tk() root.title("Filters") #utworzenie okienka #17:48 19:59 #cam = cv2.VideoCapture(0) #"podłączenie" do strumienia wideo z kamerki cam = cv2.VideoCapture("data/Big.hero.6.mp4") #cam = cv2.VideoCapture("Big.hero.6.mp4") #obsługa checkbox'a check1=tk.IntVar() checkbox1 = tk.Checkbutton(root, text="Mark frame", variable=check1) checkbox1.pack() check2=tk.IntVar() checkbox2 = tk.Checkbutton(root, text="LUV conversion", variable=check2) checkbox2.pack() check3=tk.IntVar() checkbox3 = tk.Checkbutton(root, text="Resize", variable=check3) checkbox3.pack() #dołączenie metody update_all do głównej pętli programu, wynika ze specyfiki TKinter root.after(0, func=lambda: update_all(root, cam, set())) print 'starting the main loop' root.mainloop()
Python
0
@@ -925,16 +925,345 @@ cript'%0A%0A +def __update_params_for_host(host_str, new_params):%0A import socket%0A import json%0A print %22send to: %25s msg: changed !%22 %25 host_str%0A %0A host, port = host_str.split(':')%0A s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)%0A s.connect((host, int(port)))%0A s.sendall(json.dumps(new_params) + '%5Cn')%0A s.close()%0A%0A def upda @@ -1386,329 +1386,549 @@ -if +%0A for i in range(3):%0A checked_now = check -1 +s%5Bi%5D .get() + == -1: #sprawdzenie czy checkbox by%C5%82 zaznaczony%0A new_filters.add(1)%0A%0A if filters %5E new_filters:%0A filters.clear()%0A filters.update(new_filters)%0A #zmiana warto%C5%9Bci parametru %22filtersOn%22 w zale%C5%BCno%C5%9Bci od checkbox'a%0A service_controller.update_params(%7B%22filtersOn%22: list( + 1%0A checked_previously = i in filters%0A # print %22prev: %25s, now: %25s%22 %25 (checked_previously, checked_now)%0A host = hosts%5Bi%5D%0A if( checked_previously != checked_now):%0A # checked change%0A print %22changed: %25d%22 %25 i%0A to_send = checked_now and %5B1%5D or %5B%5D%0A __update_params_for_host( host, %7B%22filtersOn%22: to_send %7D)%0A if checked_now:%0A new_filters.add(i)%0A filters.clear()%0A filters.update(new_ filters) %7D)%0A%0A @@ -1923,18 +1923,16 @@ filters) -%7D) %0A%0A if @@ -2795,16 +2795,113 @@ pack()%0A%0A +checks = %5Bcheck1,check2,check3%5D%0Ahosts = %5B%22localhost:11111%22,%22localhost:11112%22,%22localhost:11113%22%5D%0A%0A #do%C5%82%C4%85cze
7dcbfe2db81cef4de082b2ee2f83b1bce823876d
increase version number
setup.py
setup.py
from setuptools import setup import io with io.open('README.rst', encoding="utf-8") as readme_file: long_description = readme_file.read() setup( name="NooLite_F", packages=["NooLite_F"], version="0.0.3", license="MIT License", description="Module to work with NooLite_F (MTRF-64-USB)", long_description=long_description, author="Sergey Prytkov", author_email="sergej.prytkov@gmail.com", url="https://github.com/SergejPr/NooLite-F", keywords="noolite noolite-f noolitef", install_requires=["pyserial"], platforms="any", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Home Automation", "Topic :: System :: Hardware", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6", ] )
Python
0.000114
@@ -211,17 +211,17 @@ on=%220.0. -3 +4 %22,%0A l
eb41438aabd60690216f572b1492bb30e8370144
Add delete functionality with logging
splits/s3.py
splits/s3.py
import StringIO import gzip import boto.s3 import urlparse def is_s3_uri(uri): uri = str(uri) return uri.startswith('s3://') or uri.startswith('s3n://') class S3Uri(object): def __init__(self, uri): uri = str(uri) assert is_s3_uri(uri), "Invalid S3 uri - '{0}'".format(uri) self._parseresult = urlparse.urlparse(uri) @property def bucket(self): return self._parseresult.netloc @property def path(self): p = self._parseresult.path if p.startswith('/'): p = p[1:] return p @property def name(self): return self._parseresult.geturl() @property def type(self): return self.is_file() and "file" or "dir" def is_file(self): return len(self.path) and not self.path.endswith('/') def __str__(self): return self.name class S3(object): def __init__(self, region='us-east-1'): self._conn = boto.s3.connect_to_region(region) @property def access_key(self): return self._conn.access_key @property def secret_key(self): return self._conn.secret_key @property def security_token(self): return self._conn.provider.security_token def _list_prefix(self, s3uri): results = self._conn.get_bucket(s3uri.bucket).list(s3uri.path, delimiter='/') return (S3Uri('s3://{0}/{1}'.format(s3uri.bucket, i.name)) for i in results) def _list_buckets(self): return (S3Uri('s3://{0}'.format(i.name)) for i in self._conn.get_all_buckets()) def ls(self, uri=None): if uri: s3uri = S3Uri(uri) return self._list_prefix(s3uri) return self._list_buckets() def get_key(self, uri): uri = S3Uri(uri) assert uri.is_file() return self._conn.get_bucket(uri.bucket)\ .get_key(uri.path) def putfile(self, file, uri): uri = S3Uri(uri) assert uri.is_file() self._conn.get_bucket(uri.bucket)\ .new_key(uri.path)\ .set_contents_from_file(file, rewind=True) def getfile(self, uri, file): uri = S3Uri(uri) assert uri.is_file() self._conn.get_bucket(uri.bucket)\ .new_key(uri.path)\ .get_contents_to_file(file) def getstring(self, uri): uri = S3Uri(uri) assert uri.is_file() return self._conn.get_bucket(uri.bucket).new_key(uri.path).get_contents_as_string() def putstring(self, string, uri): uri = S3Uri(uri) assert uri.is_file() self._conn.get_bucket(uri.bucket).new_key(uri.path).set_contents_from_string(string) class S3File(StringIO.StringIO): s3 = None def __init__(self, uri, mode='r'): self.mode = mode self.s3uri = S3Uri(uri) assert self.s3uri.is_file(), "Uri (got {0}) must be a file (not directory or bucket) on S3.".format(uri) self.__init_s3() StringIO.StringIO.__init__(self) if self.mode == 'r': self.s3.getfile(self.s3uri, self) self.seek(0) def __init_s3(cls): if not cls.s3: cls.s3 = S3() def __enter__(self): return self def __exit__(self, type, value, traceback): self.close() def close(self): if self.mode == 'w': self.flush() self.s3.putfile(self, self.s3uri) class GzipS3File(gzip.GzipFile): def __init__(self, uri, *args, **kwargs): mode = kwargs['mode'] if 'mode' in kwargs else 'r' self.s3File = S3File(uri, mode=mode) super(GzipS3File, self).__init__(fileobj=self.s3File, mode=mode) def close(self): super(GzipS3File, self).close() self.s3File.close()
Python
0.000001
@@ -43,24 +43,130 @@ %0Aimport -urlparse +boto.s3.connection%0Aimport urlparse%0Aimport logging%0A%0Alogger = logging.getLogger('splits.s3')%0Alogger.setLevel('INFO') %0A%0Adef is @@ -1088,16 +1088,160 @@ (region) +%0A self._conn = boto.s3.connect_to_region(%0A region,%0A calling_format=boto.s3.connection.OrdinaryCallingFormat()%0A ) %0A%0A @p @@ -2953,16 +2953,472 @@ tring)%0A%0A + def delete_child_files(self, uri):%0A uri = S3Uri(uri)%0A returned_keys = self._conn.get_bucket(uri.bucket).delete_keys(list(self.get_key(str(i)) for i in self.ls(uri)))%0A%0A for deleted_key in returned_keys.deleted:%0A logger.info('DELETED: %25s' %25 deleted_key.key) %0A%0A if(len(returned_keys.errors) != 0):%0A for errored_key in returned_keys.errors:%0A logger.info('ERRORED: %25s' %25 errored_key.key)%0A%0A %0A%0Aclass
f853407809e00b889c5887adb16ffb2d85fab34f
Bump version to v0.4.25
setup.py
setup.py
import os import re import subprocess import sys import unittest if sys.platform in ('win32', 'cygwin', 'cli'): raise RuntimeError('uvloop does not support Windows at the moment') if sys.version_info < (3, 5): raise RuntimeError('uvloop requires Python 3.5 or greater') from setuptools import setup, Extension from setuptools.command.build_ext import build_ext LIBUV_DIR = os.path.join(os.path.dirname(__file__), 'vendor', 'libuv') def discover_tests(): test_loader = unittest.TestLoader() test_suite = test_loader.discover('tests', pattern='test_*.py') return test_suite class libuv_build_ext(build_ext): build_ext.user_options.extend([ ("use-system-libuv", None, "Use the system provided libuv, instead of the bundled one") ]) build_ext.boolean_options.extend(["use-system-libuv"]) def initialize_options(self): build_ext.initialize_options(self) if getattr(self, 'use_system_libuv', None) is None: self.use_system_libuv = 0 def build_libuv(self): env = os.environ.copy() cur_cflags = env.get('CFLAGS', '') if not re.search('-O\d', cur_cflags): cur_cflags += ' -O2' env['CFLAGS'] = (cur_cflags + ' -fPIC' + env.get('ARCHFLAGS', '')) j_flag = '-j{}'.format(os.cpu_count() or 1) if not os.path.exists(os.path.join(LIBUV_DIR, 'configure')): subprocess.run(['/bin/sh', 'autogen.sh'], cwd=LIBUV_DIR, env=env, check=True) # Sometimes pip fails to preserve the timestamps correctly, # in which case, make will try to run autotools again. subprocess.run(['touch', 'configure.ac', 'aclocal.m4', 'configure', 'Makefile.am', 'Makefile.in'], cwd=LIBUV_DIR, env=env, check=True) subprocess.run(['./configure'], cwd=LIBUV_DIR, env=env, check=True) c_flag = "CFLAGS={}".format(env['CFLAGS']) subprocess.run(['make', j_flag, c_flag], cwd=LIBUV_DIR, env=env, check=True) def build_extensions(self): if self.use_system_libuv: self.compiler.add_library('uv') if sys.platform == 'darwin' and \ os.path.exists('/opt/local/include'): # Support macports on Mac OS X. self.compiler.add_include_dir('/opt/local/include') else: libuv_lib = os.path.join(LIBUV_DIR, '.libs', 'libuv.a') if not os.path.exists(libuv_lib): self.build_libuv() if not os.path.exists(libuv_lib): raise RuntimeError('failed to build libuv') self.extensions[-1].extra_objects.extend([libuv_lib]) self.compiler.add_include_dir(os.path.join(LIBUV_DIR, 'include')) if sys.platform.startswith('linux'): self.compiler.add_library('rt') elif sys.platform.startswith('freebsd'): self.compiler.add_library('kvm') super().build_extensions() setup( name='uvloop', description='Fast implementation of asyncio event loop on top of libuv', url='http://github.com/MagicStack/uvloop', license='MIT', author='Yury Selivanov', author_email='yury@magic.io', platforms=['*nix'], version='0.4.24', packages=['uvloop'], cmdclass={'build_ext': libuv_build_ext}, ext_modules=[ Extension( "uvloop.loop", sources=[ "uvloop/loop.c", ], extra_compile_args=['-O2'] ), ], classifiers=[ 'Development Status :: 4 - Beta', 'Programming Language :: Python :: 3.5', 'License :: OSI Approved :: MIT License', 'Intended Audience :: Developers', ], provides=['uvloop'], include_package_data=True, test_suite='setup.discover_tests' )
Python
0
@@ -3313,17 +3313,17 @@ n='0.4.2 -4 +5 ',%0A p
13d249fcdc0cd7f0a32c4c1b90daf791f26e75e3
Update E-Mail information
setup.py
setup.py
#!/usr/bin/env python3 from setuptools import setup, find_packages, findall #from distutils.core import setup import os import re import importlib # read the version from VERSION.txt with open('VERSION.txt') as version_file: __version__ = version_file.read().strip() # write VERSION.txt files in both packages for pkg in ['pyoti', 'pyotc']: ptf = os.path.join(*['.', pkg, 'VERSION.txt']) with open(ptf, 'w') as vf: vf.write('{}\n'.format(__version__)) print('created version file: {}'.format(ptf)) # get the required packages from requirements.txt and check if they are already # installed. Probably obsolete for newer setuptools versions when using required # packages arguments of setup() function. with open('requirements.txt', 'r') as rfile: requs = [re.split('([\s=<>]+)', l.replace('\n', '').strip(' ')) for l in rfile.readlines() if not(l.startswith('#')) and l != '\n'] abort = False for requ in requs: try: importlib.import_module(requ[0]) except: abort = True print("Module {} not available.".format(requ[0])) if len(requ) > 1: print("\tPyOTIC requires version {}".format(''.join(requ[1:]).strip())) if abort: print("Try to install the missing package(s) first, e.g. type:\n" "$ pip(3) install {}".format(' '.join(l[0] for l in requs))) if not abort: long_desc = """ Time-dependent signal analysis and calibration of optical tweezers by power spectral denstity analysis. """ license = 'Apache-2.0' setup(name='pyotic', version=__version__, author='Tobias Jachowski and Steve Simmert', author_email='tobias.jachowski@uni-tuebingen.de; ' 'steve.simmert@uni-tuebingen.de', url='https://github.com/cellular-nanoscience/pyotic', license=license, description="Time-dependent signal analysis and calibration of optical tweezers.", long_description = long_desc, platforms = ['Windows', 'Linux', 'Mac OS X'], classifiers=['Intended Audience :: Science/Research', 'Intended Audience :: Education', 'Framework :: Jupyter', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Scientific/Engineering :: Physics', 'Topic :: Scientific/Engineering :: Visualization', ], python_requires='>=3, <4', packages=find_packages(), package_dir = {'pyotc': 'pyotc', 'pyoti': 'pyoti'}, package_data={'pyotc': ['VERSION.txt'], 'pyoti': ['VERSION.txt', './configs/calibration.cfg', './configs/groups.cfg', './configs/traces.cfg', './configs/record/GenericData.cfg', './configs/record/GenericDataFile.cfg', './configs/record.cfg', './plugins/modifications/generic.py', './plugins/modifications/rotation.py', './plugins/modifications/offset.py', './plugins/modifications/beadscan.py', './plugins/modifications/attachment.py', './plugins/modifications/touchdown.py', './plugins/modifications/baseline.py', './plugins/calibsources/cellnano.py', './plugins/calibsources/pyotic.py', './plugins/datasources/cellnano.py', './plugins/datasources/generic.py', './evaluate/fast.pyx', ]}, )
Python
0
@@ -1733,15 +1733,15 @@ il=' -tobias. +pyotic@ jach @@ -1749,53 +1749,13 @@ wski -@uni-tuebingen.de; '%0A ' +.de, stev
af46d973b40eb6380b97f7d5adafec49b58bc891
Make CFR correctness graph print current output
test/cfr_correctness_test.py
test/cfr_correctness_test.py
import os import unittest from unittest import TestSuite import math import numpy as np import matplotlib.pyplot as plt import matplotlib.ticker as plticker import acpc_python_client as acpc from cfr.main import Cfr from evaluation.exploitability import Exploitability FIGURES_FOLDER = 'test/cfr-correctness-plots' KUHN_TEST_SPEC = { 'title': 'Kuhn Poker CFR trained strategy exploitability', 'game_file_path': 'games/kuhn.limit.2p.game', 'test_counts': 3, 'training_iterations': 800000, 'checkpoint_iterations': 5000 } KUHN_BIGDECK_TEST_SPEC = { 'title': 'Kuhn Bigdeck Poker CFR trained strategy exploitability', 'game_file_path': 'games/kuhn.bigdeck.limit.2p.game', 'test_counts': 1, 'training_iterations': 450000, 'checkpoint_iterations': 10000 } KUHN_BIGDECK_2ROUND_TEST_SPEC = { 'title': 'Kuhn Bigdeck 2round Poker CFR trained strategy exploitability', 'game_file_path': 'games/kuhn.bigdeck.2round.limit.2p.game', 'test_counts': 1, 'training_iterations': 1000, 'checkpoint_iterations': 1000 } LEDUC_TEST_SPEC = { 'title': 'Leduc Hold\'em Poker CFR trained strategy exploitability', 'game_file_path': 'games/leduc.limit.2p.game', 'test_counts': 1, 'training_iterations': 1000, 'checkpoint_iterations': 1000 } class CfrCorrectnessTests(unittest.TestCase): def test_kuhn_cfr_correctness(self): self.train_and_show_results(KUHN_TEST_SPEC) def test_kuhn_bigdeck_cfr_correctness(self): self.train_and_show_results(KUHN_BIGDECK_TEST_SPEC) def test_kuhn_bigdeck_2round_cfr_correctness(self): self.train_and_show_results(KUHN_BIGDECK_2ROUND_TEST_SPEC) def test_leduc_cfr_correctness(self): self.train_and_show_results(LEDUC_TEST_SPEC) def train_and_show_results(self, test_spec): game = acpc.read_game_file(test_spec['game_file_path']) exploitability = Exploitability(game) checkpoints_count = math.ceil( test_spec['training_iterations'] / test_spec['checkpoint_iterations']) iteration_counts = np.zeros(checkpoints_count) exploitability_values = np.zeros([test_spec['test_counts'], checkpoints_count]) for i in range(test_spec['test_counts']): print('%s/%s' % (i + 1, test_spec['test_counts'])) def checkpoint_callback(game_tree, checkpoint_index, iterations): if i == 0: iteration_counts[checkpoint_index] = iterations exploitability_values[i][checkpoint_index] = exploitability.evaluate(game_tree) Cfr(game).train( test_spec['training_iterations'], test_spec['checkpoint_iterations'], checkpoint_callback) plt.figure() for i in range(test_spec['test_counts']): plt.plot(iteration_counts, exploitability_values[i]) plt.title(test_spec['title']) plt.xlabel('Training iterations') plt.ylabel('Strategy exploitability [mbb/g]') plt.grid() game_name = test_spec['game_file_path'].split('/')[1][:-5] figure_output_path = '%s/%s.png' % (FIGURES_FOLDER, game_name) figures_directory = os.path.dirname(figure_output_path) if not os.path.exists(figures_directory): os.makedirs(figures_directory) plt.savefig(figure_output_path) print('\033[91mThis test needs your assistance! ' + 'Check the generated graph %s!\033[0m' % figure_output_path) test_classes = [ CfrCorrectnessTests ] def load_tests(loader, tests, pattern): suite = TestSuite() for test_class in test_classes: tests = loader.loadTestsFromTestCase(test_class) suite.addTests(tests) return suite if __name__ == "__main__": unittest.main()
Python
0.999259
@@ -2750,24 +2750,28 @@ k)%0A%0A + plt.figure() @@ -2771,32 +2771,36 @@ igure()%0A + + for i in range(t @@ -2802,35 +2802,20 @@ nge( -test_spec%5B'test_counts'%5D):%0A +i + 1):%0A @@ -2880,24 +2880,28 @@ %5D)%0A%0A + plt.title(te @@ -2914,24 +2914,28 @@ c%5B'title'%5D)%0A + plt. @@ -2968,24 +2968,28 @@ s')%0A + + plt.ylabel(' @@ -3026,24 +3026,28 @@ %5D')%0A + plt.grid()%0A%0A @@ -3046,16 +3046,20 @@ grid()%0A%0A + @@ -3121,24 +3121,28 @@ -5%5D%0A + figure_outpu @@ -3197,24 +3197,28 @@ e)%0A%0A + figures_dire @@ -3269,16 +3269,20 @@ + + if not o @@ -3327,16 +3327,20 @@ + os.maked @@ -3363,16 +3363,20 @@ ctory)%0A%0A +
901a1e52db9bc960c307e1e6f3fd08f79a7a97bb
Upgrade discord.py and remove unused aiodns
setup.py
setup.py
import sys from pathlib import Path from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand class Tox(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): # import here, cause outside the eggs aren't loaded import tox errcode = tox.cmdline(self.test_args) sys.exit(errcode) # Check if Git is present before enabling setuptools_scm version_kwargs = {} git_root = Path(__file__).resolve().parent / '.git' if git_root.exists(): version_kwargs.update({ 'use_scm_version': True, 'setup_requires': ['setuptools_scm'] }) setup( name='cardinal.py', **version_kwargs, description='A growing bot for managing a Discord server', author='Simon Engmann', author_email='simon.engmann@tu-dortmund.de', url='https://github.com/FallenWarrior2k/cardinal.py', platforms='any', packages=find_packages(where='src'), package_dir={'': 'src'}, package_data={ 'cardinal': ['db/migrations/*', 'db/migrations/**/*'] }, install_requires=[ 'discord.py@git+https://github.com/Rapptz/discord.py@rewrite', 'aiodns', 'SQLAlchemy>=1.3', 'alembic' ], tests_require=['tox'], extras_require={ 'tests': ['tox'] }, cmdclass={'test': Tox} )
Python
0
@@ -1210,75 +1210,13 @@ d.py -@git+https://github.com/Rapptz/discord.py@rewrite',%0A 'aiodns +%3E=1.0 ',%0A
75d914416a3fa0a22710042b3dbbcb8564ec782b
version bump
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages VERSION = '2.0.0' LONG_DESC = """\ This is a simple, easily extendible soap library that provides several useful tools for creating and publishing soap web services in python. This package features on-demand wsdl generation for the published services, a wsgi-compliant web application, support for complex class structures, binary attachments, and a simple framework for creating additional serialization mechanisms. This project uses lxml as it's XML API, providing full namespace support. """ SHORT_DESC="A transport and architecture agnostic soap (de)serialization " \ "library that focuses on making small, rpc-like messaging work." setup( name='soaplib', packages=find_packages('src'), package_dir={'':'src'}, version=VERSION, description=SHORT_DESC, long_description=LONG_DESC, classifiers=[ 'Programming Language :: Python', 'Operating System :: OS Independent', 'Natural Language :: English', 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ], keywords=('soap', 'wsdl', 'wsgi'), author='Soaplib Contributors', author_email='soap@python.org', maintainer = 'Burak Arslan', maintainer_email = 'burak-soaplib@arskom.com.tr', url='http://github.com/arskom/soaplib', license='LGPL', zip_safe=False, install_requires=[ 'pytz', 'lxml>=2.2.1', ], test_suite='tests.test_suite', )
Python
0.000001
@@ -74,17 +74,17 @@ ON = '2. -0 +1 .0'%0ALONG
d9cb30a93b815e553d54f1462323f632f222e44c
Update script listing system (use a dict).
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2010 Jérémie DECOCK (http://www.jdhp.org) from distutils.core import setup import subprocess import os import shutil CLASSIFIERS = ['Development Status :: 4 - Beta', 'Environment :: Console', 'Environment :: X11 Applications', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python', 'Topic :: Scientific/Engineering :: Physics', 'Topic :: Scientific/Engineering :: Artificial Intelligence'] PACKAGES = ['pyarm', 'pyarm.agent', 'pyarm.gui', 'pyarm.model', 'pyarm.model.arm', 'pyarm.model.kinematics', 'pyarm.model.muscle'] README_FILE = open('README', 'r') def get_version(): """ Get the version from git or from the VERSION file If we're in a git repository, uses the output of ``git describe`` as the version, and update the ``VERSION`` file. Otherwise, read the version from the ``VERSION`` file Much inspire from this post: http://dcreager.net/2010/02/10/setuptools-git-version-numbers/ """ # TODO : READ THE VALUE RETURNED BY GIT DESCRIBE : IF NOT EQUALS 0, #  PRINT AN ERROR MESSAGE AND SUGGEST TO LOOK IF ANY TAGS EXISTS. # Afficher un message pour expliciter les erreurs : # - cas où la commande git n'existe pas # - cas où le répertoire courrant n'est pas un référentiel git # - cas où il n'y a pas de tags dans le référentiel git def get_version_from_git(): """Returns the version as defined by ``git describe``, or None.""" try: p = subprocess.Popen(['git', 'describe'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) p.stderr.close() line = p.stdout.readlines()[0].strip() assert line.startswith('v') return line[1:] #remove the leading 'v' except OSError: return None except IndexError: return None def get_version_from_file(): """Returns the version as defined in the ``VERSION`` file.""" f = open('VERSION', 'r') try: version = f.readlines()[0].strip() except OSError: return None finally: f.close() return version def update_version_file(version): """Update, if necessary, the ``VERSION`` file.""" if version != get_version_from_file(): f = open('VERSION', 'w') f.write(version + '\n') f.close() version = get_version_from_git() if version: update_version_file(version) else: version = get_version_from_file() return version # Prepare scripts SCRIPT_DIR = 'scripts' # The place where we want to put distributed scripts. SCRIPTS = ['pyarm'] # The list of scripts we want to export in the distrib. try: os.mkdir(SCRIPT_DIR) except OSError: pass for script in SCRIPTS: try: shutil.copyfile(script + '.py', os.path.join(SCRIPT_DIR, script)) except IOError: pass # Don't use unicode strings in setup arguments or bdist_rpm will fail. setup(author='Jeremie DECOCK', author_email='gremy@tuxfamily.org', # See : http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=CLASSIFIERS, description='A robotic arm model and simulator.', license='MIT license', long_description=README_FILE.read(), maintainer='Jeremie DECOCK', maintainer_email='gremy@tuxfamily.org', name='pyarm', packages=PACKAGES, platforms=['Linux'], requires=['numpy', 'matplotlib'], scripts=[os.path.join(SCRIPT_DIR, script) for script in SCRIPTS], url='http://code.google.com/p/pyarm/', version=get_version()) README_FILE.close()
Python
0
@@ -2975,84 +2975,99 @@ ipts -%0ASCRIPT_DIR = 'scripts' # The place where we want to put distributed scripts + ###########%0A%0A# The list of scripts we want to export in the distrib (%7B'src': 'dest', ...%7D) .%0ASC @@ -3078,78 +3078,102 @@ S = -%5B +%7B 'pyarm -'%5D # The list of scripts we want to export in the distrib.%0A%0A +.py' : os.path.join('scripts', 'pyarm')%7D%0A%0Afor source, dest in SCRIPTS.iteritems():%0A try: @@ -3177,16 +3177,20 @@ ry:%0A + + os.mkdir @@ -3194,20 +3194,35 @@ dir( -SCRIPT_DIR)%0A +os.path.dirname(dest))%0A exce @@ -3241,36 +3241,24 @@ + + pass -%0A%0Afor script in SCRIPTS: + # TODO%0A %0A @@ -3292,55 +3292,19 @@ le(s -cript + '.py', os.path.join(SCRIPT_DIR, script) +ource, dest )%0A @@ -3333,16 +3333,23 @@ pass + # TODO %0A%0A%0A# Don @@ -3927,64 +3927,24 @@ pts= -%5Bos.path.join(SCRIPT_DIR, script) for script in SCRIPTS%5D +SCRIPTS.values() ,%0A
83f79ed05f2e53b6156c118ce8d9248c97b80aee
fix grammer error.
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'futures==3.0.5', 'requests==2.10.0', 'tornado==4.3', ] test_requirements = [ # TODO: put package test requirements here ] setup( name='blackgate', version='0.1.0', license='MIT', description="A set of utility to build API gateway.", long_description=readme + '\n\n' + history, zip_safe=False, include_package_data=True, install_requires=requirements, platforms='any', author="Ju Lin", author_email='soasme@gmail.com', url='https://github.com/soasme/blackgate', packages=find_packages(), package_dir={'blackgate': 'blackgate'}, keywords='microservices, api, gateway, server, production,', classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', "Programming Language :: Python :: 2", 'Programming Language :: Python :: 2.7', ], test_suite='tests', tests_require=test_requirements )
Python
0
@@ -495,17 +495,19 @@ f utilit -y +ies to buil
fb3983017da558018fd0de7ef10a4c0e98bbb0ec
Send the gecos input from USER through the sanitization as well
txircd/modules/cmd_user.py
txircd/modules/cmd_user.py
from twisted.words.protocols import irc from txircd.modbase import Command import string class UserCommand(Command): def onUse(self, user, data): if not user.username: user.registered -= 1 user.setUsername(data["ident"]) user.realname = data["gecos"] if user.registered == 0: user.register() def processParams(self, user, params): if user.registered == 0: user.sendMessage(irc.ERR_ALREADYREGISTRED, ":You may not reregister") return {} if params and len(params) < 4: user.sendMessage(irc.ERR_NEEDMOREPARAMS, "USER", ":Not enough parameters") return {} ident = filter(lambda x: x in string.ascii_letters + string.digits + "-_", params[0][:12]) if not ident: user.sendMessage(irc.ERR_NEEDMOREPARAMS, "USER", ":Your username is not valid") return {} return { "user": user, "ident": ident, "gecos": params[3] } class Spawner(object): def __init__(self, ircd): self.ircd = ircd def spawn(self): return { "commands": { "USER": UserCommand() } }
Python
0
@@ -264,19 +264,20 @@ ser. -r +setR ealname - = +( data @@ -285,16 +285,17 @@ %22gecos%22%5D +) %0A
a21962463e1c346197cde780f3a5ceaa686c7a9b
Bump version
setup.py
setup.py
import sys import platform import os from setuptools import setup from setuptools.command.test import test as TestCommand class PyTest(TestCommand): user_options = [('pytest-args=', 'a', 'Arguments to pass to py.test')] def initialize_options(self): TestCommand.initialize_options(self) self.pytest_args = list() def finalize_options(self): TestCommand.finalize_options(self) self.test_args = list() self.test_suite = True def run_tests(self): # import here, cause outside the eggs aren't loaded import pytest err_no = pytest.main(self.pytest_args) sys.exit(err_no) def main(): # Check python version if sys.version_info < (3, 0, 0): sys.stderr.write( 'You need python 3.0 or later to run this script!' + os.linesep ) exit(1) # Generate requires if platform.system() == 'Windows': requirements_file = 'windows.txt' else: requirements_file = 'base.txt' requirements_file = os.path.join('requirements', requirements_file) with open(requirements_file) as fd: requires = fd.read().splitlines() # Get package description with open('README.rst') as fd: long_description = fd.read() # Describe installer settings = { 'name': 'pyspectator', 'version': '1.1.1', 'author': 'Maxim Grischuk', 'author_email': 'uzumaxy@gmail.com', 'maintainer': 'Maxim Grischuk', 'maintainer_email': 'uzumaxy@gmail.com', 'packages': ['pyspectator'], 'url': 'https://github.com/it-geeks-club/pyspectator', 'download_url': 'https://github.com/it-geeks-club/pyspectator/releases', 'license': 'BSD', 'description': 'pyspectator is a Python cross-platform tool for ' 'monitoring OS resources.', 'long_description': long_description, 'install_requires': requires, 'keywords': [ 'pyspectator', 'spectator', 'monitoring', 'tool', 'statistic', 'stats', 'computer', 'pc', 'server', 'mem', 'memory', 'network', 'net', 'io', 'processor', 'cpu', 'hdd', 'hard', 'disk', 'drive' ], 'platforms': 'Platform Independent', 'package_data': { 'pyspectator': ['LICENSE', 'README.rst'] }, 'scripts': ['console.py'], 'tests_require': ['pytest'], 'cmdclass': {'test': PyTest}, 'classifiers': [ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Environment :: MacOS X', 'Environment :: Win32 (MS Windows)', 'Intended Audience :: Developers', 'Intended Audience :: Information Technology', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: BSD License', 'Natural Language :: English', 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows :: Windows 7', 'Operating System :: Microsoft :: Windows :: Windows NT/2000', 'Operating System :: Microsoft :: Windows :: Windows Server 2003', 'Operating System :: Microsoft :: Windows :: Windows Server 2008', 'Operating System :: Microsoft :: Windows :: Windows Vista', 'Operating System :: Microsoft :: Windows :: Windows XP', 'Operating System :: Microsoft', 'Operating System :: OS Independent', 'Operating System :: POSIX :: BSD :: FreeBSD', 'Operating System :: POSIX :: Linux', 'Operating System :: POSIX :: SunOS/Solaris', 'Operating System :: POSIX', 'Programming Language :: C', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.0', 'Programming Language :: Python :: 3.1', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Software Development :: Libraries', 'Topic :: System :: Benchmark', 'Topic :: System :: Hardware', 'Topic :: System :: Monitoring', 'Topic :: System :: Networking :: Monitoring', 'Topic :: System :: Networking', 'Topic :: System :: Systems Administration', 'Topic :: Utilities', ], } setup(**settings) if __name__ == '__main__': main()
Python
0
@@ -1365,17 +1365,17 @@ ': '1.1. -1 +2 ',%0A
a013af88adad469782d2f05a0b882c2f5500b6b8
Include README as long package description. Specified license.
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='gallerize', version='0.3.1', description='Create a static HTML/CSS image gallery from a bunch of images.', author='Jochen Kupperschmidt', author_email='homework@nwsnet.de', url='http://homework.nwsnet.de/releases/cc0e/#gallerize', )
Python
0
@@ -1,25 +1,27 @@ # -!/usr/bin/env python + -*- coding: utf-8 -*- %0A%0Afr @@ -49,16 +49,95 @@ setup%0A%0A%0A +def read_readme():%0A with open('README.rst') as f:%0A return f.read()%0A%0A%0A setup(%0A @@ -260,16 +260,71 @@ ages.',%0A + long_description=read_readme(),%0A license='MIT',%0A auth
5a5f805e76098ca64187b475c5b4c47e4be5b6be
Remove double classifier in setup.py and add Python 2 and Python 3
setup.py
setup.py
#!/usr/bin/env python import os import codecs from setuptools import setup def read(*parts): filename = os.path.join(os.path.dirname(__file__), *parts) with codecs.open(filename, encoding='utf-8') as fp: return fp.read() from dynamic_forms import get_version setup( name='django-dynamic-forms', version=get_version(), description='django-dynamic-forms is a reusable Django application to create and configure forms through the admin.', long_description=read('README.rst'), author='Markus Holtermann', author_email='info@markusholtermann.eu', url='http://github.com/Markush2010/django-dynamic-forms', license='BSD', packages=[ 'dynamic_forms', 'dynamic_forms.migrations', ], package_data = { 'dynamic_forms': [ 'locale/*/LC_MESSAGES/*', 'templates/dynamic_forms/*', ] }, install_requires=[ 'Django>=1.4', 'django-appconf>=0.6', 'six', ], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Framework :: Django', ], zip_safe=False )
Python
0.000001
@@ -1303,32 +1303,37 @@ nguage :: Python + :: 2 ',%0A 'Prog @@ -1417,16 +1417,63 @@ : 2.7',%0A + 'Programming Language :: Python :: 3',%0A
71acce577d1fc7d3366e1cc763433f18bbdfdc00
Upgrade status to Production/Stable and add specific python version to classifiers
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="valideer", version="0.4.1", description="Lightweight data validation and adaptation library for Python", long_description=open("README.rst").read(), url="https://github.com/podio/valideer", author="George Sakkis", author_email="george.sakkis@gmail.com", packages=find_packages(), install_requires=["decorator"], test_suite="valideer.tests", platforms=["any"], keywords="validation adaptation typechecking jsonschema", classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", "License :: OSI Approved :: MIT License", ], )
Python
0
@@ -593,16 +593,29 @@ :: -4 - Beta +5 - Production/Stable %22,%0A @@ -796,9 +796,156 @@ :: -3 +2.7%22,%0A %22Programming Language :: Python :: 3%22,%0A %22Programming Language :: Python :: 3.3%22,%0A %22Programming Language :: Python :: 3.4 %22,%0A
7768ace5c6dbe939086bd3beb5051a4d4417e3a4
Fix typo
setup.py
setup.py
from distutils.core import setup setup( name='jinja2-pluralize-filter', version='0.0.1', author='Yuri Shikanov', author_email='dizballanze@gmail.com', packages=['pluralize'], # scripts=[], url='https://github.com/dizballanze/jinja2-pluralize-filter', license='LICENSE', description='Simple jinja2 filter to choose correct plural form for Russian language.', long_description=open('README.rest').read(), install_requires=[ "pytils == 0.2.3", ], )
Python
0.999999
@@ -423,17 +423,16 @@ README.r -e st').rea
ea9ceb5ff0117c0b39dcd93146cdb0e7782bbecc
Version 0.3
setup.py
setup.py
from setuptools import setup try: import pypandoc long_description = pypandoc.convert('README.md', 'rst').decode('utf-8') except ImportError: long_description = open('README.md', 'rb').read().decode('utf-8') setup( name='PyCodebase', version='0.2', description='A client for the Codebase API.', long_description=long_description, author='David Buxton', author_email='david@gasmark6.com', url='https://github.com/davidwtbuxton/pycodebase', license='MIT', package_dir={'': 'src'}, packages=['codebase'], install_requires=['notrequests'], )
Python
0.000001
@@ -266,9 +266,9 @@ ='0. -2 +3 ',%0A
13aa2ad682565dc1959d1010fee477b5a1870715
Bump version to 0.3.0-pre2
setup.py
setup.py
#!/usr/bin/env python import os from distutils.core import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='zuice', version='0.3.0-pre1', description='A dependency injection framework for Python', long_description=read("README.rst"), author='Michael Williamson', author_email='mike@zwobble.org', url='https://github.com/mwilliamson/zuice', packages=['zuice'], keywords="dependency injection di", classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Operating System :: OS Independent', ], )
Python
0
@@ -200,9 +200,9 @@ -pre -1 +2 ',%0A
230fca7eaecdcd71b4ad4f23603ce794386b7eb1
Fix version number on 0.4.0 tag (oops).
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2007-2008 Christopher Lenz # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. from distutils.cmd import Command import doctest from glob import glob import os try: from setuptools import setup except ImportError: from distutils.core import setup import sys class build_doc(Command): description = 'Builds the documentation' user_options = [ ('force', None, "force regeneration even if no reStructuredText files have changed"), ('without-apidocs', None, "whether to skip the generation of API documentaton"), ] boolean_options = ['force', 'without-apidocs'] def initialize_options(self): self.force = False self.without_apidocs = False def finalize_options(self): pass def run(self): from docutils.core import publish_cmdline from docutils.nodes import raw from docutils.parsers import rst docutils_conf = os.path.join('doc', 'conf', 'docutils.ini') epydoc_conf = os.path.join('doc', 'conf', 'epydoc.ini') try: from pygments import highlight from pygments.lexers import get_lexer_by_name from pygments.formatters import HtmlFormatter def code_block(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine): lexer = get_lexer_by_name(arguments[0]) html = highlight('\n'.join(content), lexer, HtmlFormatter()) return [raw('', html, format='html')] code_block.arguments = (1, 0, 0) code_block.options = {'language' : rst.directives.unchanged} code_block.content = 1 rst.directives.register_directive('code-block', code_block) except ImportError: print 'Pygments not installed, syntax highlighting disabled' for source in glob('doc/*.txt'): dest = os.path.splitext(source)[0] + '.html' if self.force or not os.path.exists(dest) or \ os.path.getmtime(dest) < os.path.getmtime(source): print 'building documentation file %s' % dest publish_cmdline(writer_name='html', argv=['--config=%s' % docutils_conf, source, dest]) if not self.without_apidocs: try: from epydoc import cli old_argv = sys.argv[1:] sys.argv[1:] = [ '--config=%s' % epydoc_conf, '--no-private', # epydoc bug, not read from config '--simple-term', '--verbose' ] cli.cli() sys.argv[1:] = old_argv except ImportError: print 'epydoc not installed, skipping API documentation.' class test_doc(Command): description = 'Tests the code examples in the documentation' user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): for filename in glob('doc/*.txt'): print 'testing documentation file %s' % filename doctest.testfile(filename, False, optionflags=doctest.ELLIPSIS) setup( name = 'CouchDB', version = '0.3', description = 'Python library for working with CouchDB', long_description = \ """This is a Python library for CouchDB. It provides a convenient high level interface for the CouchDB server.""", author = 'Christopher Lenz', author_email = 'cmlenz@gmx.de', license = 'BSD', url = 'http://code.google.com/p/couchdb-python/', zip_safe = True, classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Database :: Front-Ends', 'Topic :: Software Development :: Libraries :: Python Modules', ], packages = ['couchdb'], test_suite = 'couchdb.tests.suite', install_requires = ['httplib2', 'simplejson'], entry_points = { 'console_scripts': [ 'couchpy = couchdb.view:main', 'couchdb-dump = couchdb.tools.dump:main', 'couchdb-load = couchdb.tools.load:main' ], }, cmdclass = {'build_doc': build_doc, 'test_doc': test_doc} )
Python
0.000007
@@ -3504,17 +3504,17 @@ on = '0. -3 +4 ',%0A d
ee1e6b92b6b853025eff314ed65a4f752177c4b6
fix setup.py
setup.py
setup.py
from sqlalchemy_mptt import __version__ from setuptools import setup setup( name='sqlalchemy_mptt', version=__version__, url='http://github.com/ITCase/sqlalchemy_mptt/', author='Svintsov Dmitry', author_email='root@uralbash.ru', packages=['sqlalchemy_mptt', ], include_package_data=True, zip_safe=False, test_suite="nose.collector", license="MIT", description='SQLAlchemy MPTT mixins (Nested Sets)', package_data={ '': ['*.txt', '*.rst', '*.md'], }, long_description="http://github.com/ITCase/sqlalchemy_mptt/", install_requires=[ "sqlalchemy", ], classifiers=[ 'Development Status :: Production', 'Environment :: Console', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'Natural Language :: English', 'Natural Language :: Russian', 'Operating System :: OS Independent', 'Programming Language :: Python', "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Framework :: Pyramid ", "Framework :: Flask", "Topic :: Internet", "Topic :: Database", 'License :: OSI Approved :: MIT License', ], )
Python
0.000001
@@ -682,16 +682,23 @@ oduction +/Stable ',%0A
ec58fc2f0c077f3402b9dd69e67018a33a78737e
Update setup.py to add cupy.fallback_mode
setup.py
setup.py
#!/usr/bin/env python import os from setuptools import setup import sys import cupy_setup_build if sys.version_info[:3] == (3, 5, 0): if not int(os.getenv('CUPY_PYTHON_350_FORCE', '0')): msg = """ CuPy does not work with Python 3.5.0. We strongly recommend to use another version of Python. If you want to use CuPy with Python 3.5.0 at your own risk, set 1 to CUPY_PYTHON_350_FORCE environment variable.""" print(msg) sys.exit(1) requirements = { 'setup': [ 'fastrlock>=0.3', ], 'install': [ 'numpy>=1.9.0', 'six>=1.9.0', 'fastrlock>=0.3', ], 'stylecheck': [ 'autopep8==1.3.5', 'flake8==3.5.0', 'pbr==4.0.4', 'pycodestyle==2.3.1', ], 'test': [ 'pytest', 'mock', ], 'doctest': [ 'matplotlib', 'theano', ], 'docs': [ 'sphinx', 'sphinx_rtd_theme', ], 'travis': [ '-r stylecheck', '-r docs', ], 'appveyor': [ '-r test', ], } def reduce_requirements(key): # Resolve recursive requirements notation (-r) reqs = requirements[key] resolved_reqs = [] for req in reqs: if req.startswith('-r'): depend_key = req[2:].lstrip() reduce_requirements(depend_key) resolved_reqs += requirements[depend_key] else: resolved_reqs.append(req) requirements[key] = resolved_reqs for k in requirements.keys(): reduce_requirements(k) extras_require = {k: v for k, v in requirements.items() if k != 'install'} setup_requires = requirements['setup'] install_requires = requirements['install'] tests_require = requirements['test'] package_data = { 'cupy': [ 'core/include/cupy/complex/arithmetic.h', 'core/include/cupy/complex/catrig.h', 'core/include/cupy/complex/catrigf.h', 'core/include/cupy/complex/ccosh.h', 'core/include/cupy/complex/ccoshf.h', 'core/include/cupy/complex/cexp.h', 'core/include/cupy/complex/cexpf.h', 'core/include/cupy/complex/clog.h', 'core/include/cupy/complex/clogf.h', 'core/include/cupy/complex/complex.h', 'core/include/cupy/complex/complex_inl.h', 'core/include/cupy/complex/cpow.h', 'core/include/cupy/complex/cproj.h', 'core/include/cupy/complex/csinh.h', 'core/include/cupy/complex/csinhf.h', 'core/include/cupy/complex/csqrt.h', 'core/include/cupy/complex/csqrtf.h', 'core/include/cupy/complex/ctanh.h', 'core/include/cupy/complex/ctanhf.h', 'core/include/cupy/complex/math_private.h', 'core/include/cupy/carray.cuh', 'core/include/cupy/complex.cuh', 'core/include/cupy/atomics.cuh', 'core/include/cupy/_cuda/cuda-*/*.h', 'core/include/cupy/_cuda/cuda-*/*.hpp', 'cuda/cupy_thrust.cu', ], } package_data['cupy'] += cupy_setup_build.prepare_wheel_libs() package_name = cupy_setup_build.get_package_name() long_description = cupy_setup_build.get_long_description() ext_modules = cupy_setup_build.get_ext_modules() build_ext = cupy_setup_build.custom_build_ext sdist = cupy_setup_build.sdist_with_cython here = os.path.abspath(os.path.dirname(__file__)) # Get __version__ variable exec(open(os.path.join(here, 'cupy', '_version.py')).read()) setup( name=package_name, version=__version__, # NOQA description='CuPy: NumPy-like API accelerated with CUDA', long_description=long_description, author='Seiya Tokui', author_email='tokui@preferred.jp', url='https://docs-cupy.chainer.org/', license='MIT License', packages=[ 'cupy', 'cupy.binary', 'cupy.core', 'cupy.creation', 'cupy.cuda', 'cupy.cuda.memory_hooks', 'cupy.ext', 'cupy.fft', 'cupy.indexing', 'cupy.io', 'cupy.lib', 'cupy.linalg', 'cupy.logic', 'cupy.manipulation', 'cupy.math', 'cupy.padding', 'cupy.prof', 'cupy.random', 'cupy.sorting', 'cupy.sparse', 'cupy.sparse.linalg', 'cupy.statistics', 'cupy.testing', 'cupyx', 'cupyx.scipy', 'cupyx.scipy.fftpack', 'cupyx.scipy.ndimage', 'cupyx.scipy.sparse', 'cupyx.scipy.sparse.linalg', 'cupyx.scipy.special', 'cupyx.scipy.linalg', 'cupyx.linalg', 'cupyx.linalg.sparse' ], package_data=package_data, zip_safe=False, setup_requires=setup_requires, install_requires=install_requires, tests_require=tests_require, extras_require=extras_require, ext_modules=ext_modules, cmdclass={'build_ext': build_ext, 'sdist': sdist}, )
Python
0
@@ -3859,24 +3859,54 @@ 'cupy.ext',%0A + 'cupy.fallback_mode',%0A 'cup
8835dffe1f33dbf772462e75b1074b2b9a7e7fd6
Fix attrs version for backward compatibility
setup.py
setup.py
# -*- encoding: utf-8 -*- import os import re import codecs try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup def get_version(package): """ Return package version as listed in `__version__` in `init.py`. """ init_py = codecs.open(os.path.abspath(os.path.join(package, '__init__.py')), encoding='utf-8').read() return re.search("^__version__ = ['\"]([^'\"]+)['\"]", init_py, re.MULTILINE).group(1) def get_author(package): """ Return package author as listed in `__author__` in `init.py`. """ init_py = codecs.open(os.path.abspath(os.path.join(package, '__init__.py')), encoding='utf-8').read() return re.search("^__author__ = ['\"]([^'\"]+)['\"]", init_py, re.MULTILINE).group(1) def get_email(package): """ Return package email as listed in `__email__` in `init.py`. """ init_py = codecs.open(os.path.abspath(os.path.join(package, '__init__.py')), encoding='utf-8').read() return re.search("^__email__ = ['\"]([^'\"]+)['\"]", init_py, re.MULTILINE).group(1) def get_long_description(): """ return the long description from README.rst file :return: """ return codecs.open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8').read() setup( name='addonpayments-sdk-python', version=get_version('addonpayments'), author=get_author('addonpayments'), author_email=get_email('addonpayments'), url='https://github.com/ComerciaGP/addonpayments-Python-SDK', packages=find_packages(exclude=['tests*']), license='BSD', description='A SDK Addonpayments implemented with Python.', long_description=get_long_description(), install_requires=[ 'six', 'python-decouple', 'attrs', 'xmltodict', 'requests', 'future', ], classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.5', 'Operating System :: OS Independent', 'Topic :: Software Development' ], include_package_data=True, zip_safe=False, )
Python
0
@@ -1789,16 +1789,32 @@ 'attrs +%3E=16.3.0,%3C17.3.0 ',%0A
9dae7ba658f028e1f4de3291c56fb7b81c0e07c6
Change version
setup.py
setup.py
from setuptools import setup from sys import version if version < '2.6.0': raise Exception("This module doesn't support any version less than 2.6") import sys sys.path.append("./test") with open('README.rst', 'r') as f: long_description = f.read() classifiers = [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', "Programming Language :: Python", 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Topic :: Software Development :: Libraries :: Python Modules' ] setup( author='Keita Oouchi', author_email='keita.oouchi@gmail.com', url = 'https://github.com/keitaoouchi/seleniumwrapper', name = 'seleniumwrapper', version = '0.2.4', package_dir={"":"src"}, packages = ['seleniumwrapper'], test_suite = "test_seleniumwrapper.suite", license='BSD License', classifiers=classifiers, description = 'selenium webdriver wrapper to make manipulation easier.', long_description=long_description, )
Python
0
@@ -864,11 +864,11 @@ '0. -2.4 +3.0 ',%0A
54cb4f7eb7a69eaeb24e019d059cf39041704aff
Bump version: 3.4.3 → 3.4.4
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='ingest', version='3.4.3', author="Organized Crime and Corruption Reporting Project", packages=find_packages(exclude=['tests']), package_dir={'ingestors': 'ingestors'}, include_package_data=True, install_requires=[], license="MIT", zip_safe=False, keywords='ingestors', test_suite='tests', tests_require=[], entry_points={ 'ingestors': [ 'ignore = ingestors.ignore:IgnoreIngestor', 'html = ingestors.documents.html:HTMLIngestor', 'xml = ingestors.documents.xml:XMLIngestor', 'plain = ingestors.documents.plain:PlainTextIngestor', 'office = ingestors.documents.office:DocumentIngestor', 'opendoc = ingestors.documents.opendoc:OpenDocumentIngestor', 'ooxml = ingestors.documents.ooxml:OfficeOpenXMLIngestor', 'djvu = ingestors.documents.djvu:DjVuIngestor', 'pdf = ingestors.documents.pdf:PDFIngestor', 'rar = ingestors.packages.rar:RARIngestor', 'zip = ingestors.packages.zip:ZipIngestor', 'tar = ingestors.packages.tar:TarIngestor', '7z = ingestors.packages:SevenZipIngestor', 'gz = ingestors.packages:GzipIngestor', 'bz2 = ingestors.packages:BZ2Ingestor', 'pst = ingestors.email.outlookpst:OutlookPSTIngestor', 'olm = ingestors.email.olm:OutlookOLMArchiveIngestor', 'opfmsg = ingestors.email.olm:OutlookOLMMessageIngestor', 'olemsg = ingestors.email.outlookmsg:OutlookMsgIngestor', 'msg = ingestors.email.msg:RFC822Ingestor', 'vcard = ingestors.email.vcard:VCardIngestor', 'csv = ingestors.tabular.csv:CSVIngestor', 'access = ingestors.tabular.access:AccessIngestor', 'sqlite = ingestors.tabular.sqlite:SQLiteIngestor', 'xls = ingestors.tabular.xls:ExcelIngestor', 'xlsx = ingestors.tabular.xlsx:ExcelXMLIngestor', 'ods = ingestors.tabular.ods:OpenOfficeSpreadsheetIngestor', 'mbox = ingestors.email.mbox:MboxFileIngestor', 'dbf = ingestors.tabular.dbf:DBFIngestor', 'image = ingestors.media.image:ImageIngestor', 'tiff = ingestors.media.tiff:TIFFIngestor', 'svg = ingestors.media.svg:SVGIngestor', 'audio = ingestors.media.audio:AudioIngestor', 'video = ingestors.media.video:VideoIngestor' ], 'console_scripts': [ 'ingestors = ingestors.cli:cli' ], } )
Python
0.000001
@@ -128,17 +128,17 @@ on='3.4. -3 +4 ',%0A a
f9172ef83dfc96a29480e306de2d1219dd020dd6
add numpy dependencies
setup.py
setup.py
from setuptools import setup from os.path import join setup(name='landmarkerio-server', version='0.0.7', description='Menpo-based server for www.landmarker.io', author='James Booth', author_email='james.booth08@imperial.ac.uk', url='https://github.com/menpo/landmarkerio-server/', classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', ], packages=['landmarkerio'], install_requires=['menpo>=0.3.0', 'Flask>=0.10.1', 'Flask-RESTful>=0.2.11', 'CherryPy>=3.5.0', 'pathlib>=1.0', 'joblib>=0.8.2'], scripts=[join('landmarkerio', 'lmio'), join('landmarkerio', 'lmioserve'), join('landmarkerio', 'lmiocache')] )
Python
0.000001
@@ -877,24 +877,64 @@ Py%3E=3.5.0',%0A + 'numpy%3E=1.8.1',%0A
48a0c13cf38fd50927dbb110f56954e2567859c6
Revert "different pippery"
setup.py
setup.py
from distutils.core import setup import subprocess import pip r = pip.req.RequirementSet(pip.locations.build_prefix, pip.locations.src_prefix, download_dir=None) r.add_requirement(pip.req.InstallRequirement.from_line('git+ssh://git@git.seclab.cs.ucsb.edu:/cgc/fuzzer.git#egg=fuzzer')) r.add_requirement(pip.req.InstallRequirement.from_line('git+ssh://git@git.seclab.cs.ucsb.edu:/cgc/tracer.git#egg=tracer')) r.prepare_files(pip.index.PackageFinder([], None)) r.install([], []) setup( name='driller', version='1.0', packages=['driller'], data_files=[ ('bin/driller', ('bin/driller/listen.py',),), ], install_requires=[ 'cle', 'angr', 'redis', 'celery', 'simuvex', 'archinfo', 'dpkt-fix', 'termcolor', ], )
Python
0
@@ -49,174 +49,21 @@ ss%0A%0A -import pip%0Ar = pip.req.RequirementSet(pip.locations.build_prefix, pip.locations.src_prefix, download_dir=None)%0Ar.add_requirement(pip.req.InstallRequirement.from_line( +TRACER_URL = 'git @@ -101,20 +101,20 @@ du:/cgc/ -fuzz +trac er.git#e @@ -120,73 +120,29 @@ egg= -fuzzer'))%0Ar.add_requirement(pip.req.InstallRequirement.from_line( +tracer'%0AFUZZER_URL = 'git @@ -172,36 +172,36 @@ s.ucsb.edu:/cgc/ -trac +fuzz er.git#egg=trace @@ -199,85 +199,224 @@ egg= -tracer'))%0Ar.prepare_files(pip.index.PackageFinder(%5B%5D, None))%0Ar.install(%5B%5D, %5B%5D +fuzzer'%0A%0Aif subprocess.call(%5B'pip', 'install', TRACER_URL%5D) != 0:%0A raise LibError(%22Unable to install tracer%22)%0A%0Aif subprocess.call(%5B'pip', 'install', FUZZER_URL%5D) != 0:%0A raise LibError(%22Unable to install fuzzer%22 )%0A%0As
f6ab67e9d1d4974e16392cfadf811e0f2504287f
change version to 1.0
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup with open('requirements.txt') as f: required = f.read().splitlines() with open('test_requirements.txt') as f: test_required = f.read().splitlines() setup(name="carto", author="Daniel Carrión", author_email="daniel@carto.com", description="SDK around CARTO's APIs", version="1.0.0", url="https://github.com/CartoDB/carto-python", install_requires=required, packages=["carto"])
Python
0.000007
@@ -358,18 +358,16 @@ ion=%221.0 -.0 %22,%0A
5c802412e04f4548c81761000501d194a7c951c2
bump version
setup.py
setup.py
''' quick ------------------- Run clojure scripts and lein commands quickly using a persistent nREPL session. Links ````` * `development version <https://github.com/benwbooth/quick-clojure>`_ ''' import os from setuptools import setup, find_packages setup(name="quick-clojure", version='0.7', packages=find_packages(), # metadata for upload to PyPI author="Ben Booth", author_email="benwbooth@gmail.com", description="Run clojure scripts and lein commands quickly using a persistent nREPL session.", long_description=__doc__, test_suite='test', license="EPL v1.0", keywords="clojure repl nrepl leiningen lein", url="https://github.com/benwbooth/quick-clojure", zip_safe=True, platforms='any', classifiers=['Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Interpreters', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Utilities'], scripts=['quick','quick-exec','quick-exec-p'], install_requires=['nrepl-python-client','future'])
Python
0
@@ -320,9 +320,9 @@ ='0. -7 +8 ',%0A
354c1d4e94e1f22ca505c1959843005b55407973
Bump to version 0.7.2, rolling back to MDTraj readers
setup.py
setup.py
"""mBuild: A hierarchical, component based molecule builder With just a few lines of mBuild code, you can assemble reusable components into complex molecular systems for molecular dynamics simulations. mBuild is designed to minimize or even eliminate the need to explicitly translate and orient components when building systems: you simply tell it to connect two pieces! mBuild also keeps track of the system's topology so you don't have to worry about manually defining bonds when constructing chemically bonded structures from smaller components. """ from __future__ import print_function import os import subprocess from setuptools import setup, find_packages ##################################### VERSION = "0.7.1" ISRELEASED = False if ISRELEASED: __version__ = VERSION else: __version__ = VERSION + '.dev0' ##################################### def git_version(): # Return the git revision as a string # copied from numpy setup.py def _minimal_ext_cmd(cmd): # construct minimal environment env = {} for k in ['SYSTEMROOT', 'PATH']: v = os.environ.get(k) if v is not None: env[k] = v # LANGUAGE is used on win32 env['LANGUAGE'] = 'C' env['LANG'] = 'C' env['LC_ALL'] = 'C' out = subprocess.Popen( cmd, stdout=subprocess.PIPE, env=env).communicate()[0] return out try: out = _minimal_ext_cmd(['git', 'rev-parse', 'HEAD']) GIT_REVISION = out.strip().decode('ascii') except OSError: GIT_REVISION = 'Unknown' return GIT_REVISION def write_version_py(version, isreleased, filename): cnt = """ # This file is generated in setup.py at build time. version = '{version}' short_version = '{short_version}' full_version = '{full_version}' git_revision = '{git_revision}' release = {release} """ # git_revision if os.path.exists('.git'): git_revision = git_version() else: git_revision = 'Unknown' # short_version, full_version if isreleased: full_version = version short_version = version else: full_version = ("{version}+{git_revision}" .format(version=version, git_revision=git_revision)) short_version = version with open(filename, 'w') as f: f.write(cnt.format(version=version, short_version=short_version, full_version=full_version, git_revision=git_revision, release=isreleased)) write_version_py(VERSION, ISRELEASED, 'mbuild/version.py') setup( name='mbuild', version=__version__, description=__doc__.split('\n'), long_description=__doc__, author='Janos Sallai, Christoph Klein', author_email='janos.sallai@vanderbilt.edu, christoph.klein@vanderbilt.edu', url='https://github.com/mosdef-hub/mbuild', download_url='https://github.com/mosdef-hub/mbuild/tarball/{}'.format(__version__), packages=find_packages(), package_data={'mbuild': ['utils/reference/*.{pdb,mol2}', 'lib/*.{pdb,mol2}', ]}, package_dir={'mbuild': 'mbuild'}, include_package_data=True, license="MIT", zip_safe=False, keywords='mbuild', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Topic :: Scientific/Engineering :: Chemistry', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Operating System :: Unix', 'Operating System :: MacOS', ], )
Python
0
@@ -717,9 +717,9 @@ 0.7. -1 +2 %22%0AIS @@ -729,20 +729,19 @@ EASED = -Fals +Tru e%0Aif ISR
f2196d29208c4f3df0905227025eb36d5ea60ce6
Bump version to 2015.12.29
setup.py
setup.py
from setuptools import setup, find_packages import sys long_description = ( "This project contains a library and tools for manipulating and " "generating metadata files that conform to the CableLabs VOD Metada 1.1 " "specification" ) # Install requires configparser for Python 2.x if sys.version_info[0] < 3: install_requires = ['configparser'] tests_require = ['mock'] else: install_requires = [] tests_require = [] setup( name='vod_metadata', version='2015.3.16', license='MIT', url='https://github.com/bbayles/vod_metadata', description='CableLabs VOD Metadata 1.1 library and tools', long_description="Library and tools for CableLabs VOD Metadata 1.1", author='Bo Bayles', author_email='bbayles@gmail.com', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Telecommunications Industry', 'Topic :: Utilities', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', ], keywords='cablelabs vod metadata', packages=find_packages(exclude=[]), test_suite='tests', install_requires=install_requires, tests_require=tests_require, package_data={'vod_metadata': ["*.ini", "*.mp4", "*.pth", "*.xml"]}, )
Python
0
@@ -495,12 +495,13 @@ 015. -3.16 +12.29 ',%0A
f46b364d78ece19752535ec3882158901fe78649
prepare next release
setup.py
setup.py
try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup config = { 'description': 'BioMAJ', 'author': 'Olivier Sallou', 'url': 'http://biomaj.genouest.org', 'download_url': 'http://biomaj.genouest.org', 'author_email': 'olivier.sallou@irisa.fr', 'version': '3.0.6', 'classifiers': [ # How mature is this project? Common values are # 3 - Alpha # 4 - Beta # 5 - Production/Stable 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Natural Language :: English', 'Operating System :: POSIX :: Linux', # Indicate who your project is intended for 'Intended Audience :: Science/Research', 'Topic :: Scientific/Engineering :: Bio-Informatics', # Pick your license as you wish (should match "license" above) 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)', # Specify the Python versions you support here. In particular, ensure # that you indicate whether you support Python 2, Python 3 or both. 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4' ], 'install_requires': ['nose', 'pymongo', 'pycurl', 'ldap3', 'mock', 'py-bcrypt', 'mock', 'drmaa', 'future', 'elasticsearch'], 'packages': find_packages(), 'include_package_data': True, 'scripts': ['bin/biomaj-cli.py'], 'name': 'biomaj' } setup(**config)
Python
0
@@ -338,9 +338,9 @@ 3.0. -6 +7 ',%0A
b417db7cf6f06c74436733590ef15b27f912ed33
Add entry point to setup script
setup.py
setup.py
#!/usr/bin/python # -*- coding: latin-1 -*- """Setup script.""" try: from setuptools import setup except ImportError: from distutils.core import setup try: import grokapi version = grokapi.__version__ except ImportError: version = 'Undefined' with open('requirements.txt') as requirements_file: requirements = list(requirements_file.readlines()) classifiers = [ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Utilities' ] packages = ['grokapi'] setup( name='MediaCollectionDB', version=version, author='Commonists', author_email='ps.huard@gmail.com', url='http://github.com/Commonists/Grokapi', description='A thin client to query Wikimedia traffic statistics from stats.grok.se', long_description=open('README.md').read(), license='MIT', packages=packages, install_requires=requirements, classifiers=classifiers )
Python
0
@@ -368,16 +368,112 @@ nes())%0A%0A +entry_points = %7B%0A 'console_scripts': %5B%0A 'grokapi = grokapi.cli:main',%0A %5D%0A %7D%0A %0Aclassif @@ -1114,16 +1114,47 @@ ckages,%0A + entry_points=entry_points,%0A inst
f9947459c6c7330f02dd1f6c0fb59800289beca6
use a pep 440 compatible version number
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages """ Documentation can be found at https://docs.python.org/2/distutils/index.html, but usually you only need to do the following steps to publish a new package version to PyPI:: # Update the version tag in this file (setup.py) python setup.py register python setup.py sdist --formats=gztar,zip upload That's already it. You should get the following output written to your command line:: Server response (200): OK If you get errors, check the following things: - Are you behind a proxy? --> Try not to be behind a proxy (I don't actually know how to configure setup.py to be proxy-aware) - Is your command correct? --> Double-check using the reference documentation - Do you have all the necessary libraries to generate the wanted formats? --> Reduce the set of formats or install libs """ setup(name='CleanerVersion-anfema', version='1.5.3-anfema', description='A versioning solution for relational data models using the Django ORM. Please use swisscom/cleanerversion, this is just a temporary release with an additional bugfix.', long_description='CleanerVersion is a solution that allows you to read and write multiple versions of an entry ' 'to and from your relational database. It allows to keep track of modifications on an object ' 'over time, as described by the theory of **Slowly Changing Dimensions** (SCD) **- Type 2**. ' '' 'CleanerVersion therefore enables a Django-based Datawarehouse, which was the initial idea of ' 'this package.' 'Please use swisscom/cleanerversion, this is just a temporary release with an additional bugfix.', author='Manuel Jeckelmann, Jean-Christophe Zulian, Brian King, Andrea Marcacci', author_email='engineering.sophia@swisscom.com', license='Apache License 2.0', packages=find_packages(exclude=['cleanerversion', 'cleanerversion.*']), url='https://github.com/anfema/cleanerversion', install_requires=['django'], package_data={'versions': ['static/js/*.js','templates/versions/*.html']}, classifiers=[ 'Development Status :: 4 - Beta', 'Framework :: Django', 'Intended Audience :: Developers', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Topic :: Database', 'Topic :: System :: Archiving', ])
Python
0
@@ -926,23 +926,22 @@ n='1.5.3 --anfema +.post1 ',%0A
65ba164f7b2cf3256177dbf5a8e2b3f8796d4920
Use the correct name in setup.py
setup.py
setup.py
from setuptools import setup, find_packages from version import get_git_version setup(name='core', author='The Cut', author_email='development@thecut.net.au', url='http://projects.thecut.net.au/projects/thecut-authorship', namespace_packages=['thecut'], version=get_git_version(), packages=find_packages(), include_package_data=True, install_requires=['distribute'], )
Python
0.000035
@@ -90,12 +90,25 @@ me=' -core +thecut-authorship ',%0A
83a5bf4152da781da2e86b1bc5bda72aeb87bc6d
Update list trove classifiers
setup.py
setup.py
import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup version = '1.4.1.dev0' if sys.argv[-1] == 'publish': os.system('python setup.py sdist bdist_wheel upload') print("You probably want to also tag the version now:") print(" git tag -a %s -m 'version %s'" % (version, version)) print(" git push --tags") sys.exit() readme = open('README.rst').read() history = open('HISTORY.rst').read() setup( name='django-richtextfield', version=version, description='A Django model field and widget that renders a' ' customizable WYSIWYG/rich text editor', long_description=readme + '\n\n' + history, author='Jaap Roes', author_email='jaap.roes@gmail.com', url='https://github.com/jaap3/django-richtextfield', packages=[ 'djrichtextfield', ], include_package_data=True, install_requires=[], license="MIT", zip_safe=False, keywords='django-richtextfield, djrichtextfield django wywiwyg field', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], )
Python
0.000001
@@ -1320,17 +1320,17 @@ thon :: -2 +3 ',%0A @@ -1371,58 +1371,17 @@ :: -2.7',%0A 'Programming Language :: Python :: 3 +3 :: Only ',%0A @@ -1424,17 +1424,17 @@ on :: 3. -4 +6 ',%0A @@ -1473,17 +1473,17 @@ on :: 3. -5 +7 ',%0A @@ -1518,25 +1518,25 @@ Python :: 3. -6 +8 ',%0A %5D,%0A)%0A
59c665f27ccbb8fc07d3a2a23b161be5c732562f
bump version
setup.py
setup.py
#! /usr/bin/env python import ez_setup ez_setup.use_setuptools() import os import glob from setuptools import setup, find_packages NAME = 'bacula_configuration' VERSION = '0.91' WEBSITE = 'http://gallew.org/bacula_configuration' LICENSE = 'GPLv3 or later' DESCRIPTION = 'Bacula configuration management tool' AUTHOR = 'Brian Gallew' EMAIL = 'bacula_configuration@gallew.org' setup(name=NAME, version=VERSION, description=DESCRIPTION, long_description=open('README.md').read(), author=AUTHOR, author_email=EMAIL, url=WEBSITE, install_requires=['mysql-python'], extras_require={'parsing': ['pyparsing']}, scripts=glob.glob('bin/*'), include_package_data=True, zip_safe=False, package_data={ 'bacula_tools': ['data/*'], }, packages=['bacula_tools', ], classifiers=['Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: System Administrators', 'Operating System :: OS Independent', 'Programming Language :: Python', 'License :: OSI Approved :: GNU General Public License (GPL)', 'Topic :: Utilities'], entry_points={ 'console_scripts': [ 'manage_clients = bacula_tools.client:main', 'manage_catalogs = bacula_tools.catalog:main', 'manage_devices = bacula_tools.device:main', 'manage_filesets = bacula_tools.fileset:main', 'manage_pools = bacula_tools.pool:main', 'manage_storage = bacula_tools.storage:main', 'manage_messages = bacula_tools.messages:main', 'manage_schedules = bacula_tools.schedule:main', 'manage_jobs = bacula_tools.job:main', 'manage_directors = bacula_tools.director:main', 'manage_scripts = bacula_tools.scripts:main', ] }, )
Python
0
@@ -175,9 +175,9 @@ '0.9 -1 +2 '%0AWE
16f62228972d9281dd33172251a4a6402329d4d3
Remove pymatsolver from setup.py
setup.py
setup.py
#!/usr/bin/env python from __future__ import print_function """discretize Discretization tools for finite volume and inverse problems. """ import os import sys CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Physics', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Operating System :: Unix', 'Operating System :: MacOS', 'Natural Language :: English', ] def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration(None, parent_package, top_path) config.set_options(ignore_setup_xxx_py=True, assume_default_configuration=True, delegate_options_to_subpackages=True, quiet=True) config.add_subpackage('discretize') return config with open("README.rst") as f: LONG_DESCRIPTION = ''.join(f.readlines()) build_requires = [ 'numpy>=1.8', 'scipy>=0.13', 'cython>=0.2', 'pymatsolver>=0.1.2', 'properties', 'vectormath', ] metadata = dict( name="discretize", version="0.4.11", setup_requires=build_requires, install_requires=build_requires, author="SimPEG developers", author_email="rowanc1@gmail.com", description="Discretization tools for finite volume and inverse problems", long_description=LONG_DESCRIPTION, license="MIT", keywords="finite volume, discretization, pde, ode", url="http://simpeg.xyz/", download_url="http://github.com/simpeg/discretize", classifiers=CLASSIFIERS, platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], ) if len(sys.argv) >= 2 and ('--help' in sys.argv[1:] or sys.argv[1] in ('--help-commands', 'egg_info', '--version', 'clean')): # For these actions, NumPy is not required. # # They are required to succeed without Numpy, for example when # pip is used to install discretize when Numpy is not yet present in # the system. try: from setuptools import setup except ImportError: from distutils.core import setup else: if (len(sys.argv) >= 2 and sys.argv[1] in ('bdist_wheel', 'bdist_egg')) or ( 'develop' in sys.argv): # bdist_wheel/bdist_egg needs setuptools import setuptools from numpy.distutils.core import setup # Add the configuration to the setup dict when building # after numpy is installed metadata['configuration'] = configuration # A Small hack to remove -std=c99 from c++ compiler options (if present) # This should only be if numpy 1.18.0 is installed. from numpy.distutils.ccompiler import CCompiler_customize, CCompiler from numpy.distutils.ccompiler import replace_method _np_customize = CCompiler_customize def _simpeg_customize(self, dist, need_cxx=0): _np_customize(self, dist, need_cxx) if need_cxx: # Remove -std=c99 option if present try: self.compiler_so.remove('-std=c99') except (AttributeError, ValueError): pass replace_method(CCompiler, 'customize', _simpeg_customize) setup(**metadata)
Python
0.000001
@@ -1297,34 +1297,8 @@ 2',%0A - 'pymatsolver%3E=0.1.2',%0A
d286ce93d0394e3bd626aa12c4016527c4306a45
swap out .rst readme for .md one.
setup.py
setup.py
from setuptools import setup, find_packages import subprocess try: subprocess.check_call('pandoc --from=markdown README.md --to=rst --output=README.rst',shell=True) except Exception, e: print '*** NOTE: this package uses pandoc to generate rst documentation ' print 'from the original markdown and this step just failed! you need pandoc' print 'installed and in your path locally for this to work.' print '' print 'the error returned was',e print '' print 'continuing anyway...' with open('README.rst') as file: long_description = file.read() setup(name='papaltv', version='0.2.2', description='Interactive shell Apple Tv controller', long_description=long_description, author='Andrew Griffiths', author_email='andrew.john.griffiths@gmail.com', url='http://github.com/gdawg/papaltv', packages = ['papaltv'], scripts = ['bin/papaltv'], install_requires = ['beautifulsoup4'] )
Python
0
@@ -60,475 +60,8 @@ ss%0A%0A -try:%0A subprocess.check_call('pandoc --from=markdown README.md --to=rst --output=README.rst',shell=True)%0Aexcept Exception, e:%0A print '*** NOTE: this package uses pandoc to generate rst documentation '%0A print 'from the original markdown and this step just failed! you need pandoc'%0A print 'installed and in your path locally for this to work.'%0A print ''%0A print 'the error returned was',e%0A print ''%0A print 'continuing anyway...'%0A%0A%0A with @@ -78,11 +78,10 @@ DME. -rst +md ') a @@ -165,17 +165,17 @@ on='0.2. -2 +3 ',%0A
93794e7596a11c3e82ae89cf7ae8699bf456495e
Fix setup.py packaging
setup.py
setup.py
#!/usr/bin/env python import setuptools with open('VERSION') as f: version = f.read().strip() with open('README.md') as f: readme = f.read() setuptools.setup( name="alerta", version=version, description="Alerta unified command-line tool and SDK", long_description=readme, license="MIT", author="Nick Satterly", author_email="nick.satterly@theguardian.com", url="http://github.com/alerta/python-alerta", packages=['alertaclient'], install_requires=[ 'Click', 'requests', 'tabulate', 'pytz', 'six' ], entry_points={ 'console_scripts': [ 'alerta = alertaclient.cli:cli' ] }, keywords="alerta client unified command line tool sdk", classifiers=[ 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved :: MIT License', 'Intended Audience :: System Administrators', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 2.7', 'Topic :: System :: Monitoring', ] )
Python
0.000001
@@ -293,16 +293,66 @@ readme,%0A + url=%22http://github.com/alerta/python-alerta%22,%0A lice @@ -362,16 +362,16 @@ =%22MIT%22,%0A - auth @@ -448,83 +448,60 @@ -url=%22http://github.com/alerta/python-alerta%22,%0A packages=%5B'alertaclient +packages=setuptools.find_packages(exclude=%5B'tests '%5D +) ,%0A @@ -615,16 +615,67 @@ %0A %5D,%0A + include_package_data=True,%0A zip_safe=False,%0A entr @@ -921,46 +921,51 @@ ' -Licens +Intended Audienc e :: -OSI Approved :: MIT License +Information Technology ',%0A @@ -1013,24 +1013,134 @@ istrators',%0A + 'Intended Audience :: Telecommunications Industry',%0A 'License :: OSI Approved :: MIT License',%0A 'Pro
b52ec0805cff336f3c2e132766bf3b54b4ac2471
Update setup.py
setup.py
setup.py
from setuptools import setup, Distribution #from pypandoc import convert_file class BinaryDistribution(Distribution): def has_ext_modules(foo): return True #: Converts the Markdown README in the RST format that PyPi expects. #long_description = convert_file('README.md', 'rst') setup(name='pywinsparkle', description='A python wrapper for the winsparkle project', long_description='A python wrapper for the winsparkle project', version='1.5.0', url='https://github.com/dyer234/pywinsparkle', author='Daniel Dyer', author_email='dyer234@gmail.com', license='MIT', keywords="sparkle winsparkle windows update", test_suite='nose.collector', tests_require=['nose'], packages=["pywinsparkle"], package_data= { "pywinsparkle" : ["libs/x64/WinSparkle.dll", "libs/x86/WinSparkle.dll"] }, classifiers=[ # How mature is this project? Common values are # 3 - Alpha # 4 - Beta # 5 - Production/Stable 'Development Status :: 5 - Production/Stable', # Indicate who your project is intended for 'Intended Audience :: Developers', 'Topic :: Software Development', # Pick your license as you wish (should match "license" above) 'License :: OSI Approved :: MIT License', # Specify the Python versions you support here. In particular, ensure # that you indicate whether you support Python 2, Python 3 or both. 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', ], include_package_data=True, distclass=BinaryDistribution, )
Python
0
@@ -36,17 +36,16 @@ ibution%0A -# from pyp @@ -70,16 +70,16 @@ rt_file%0A + %0Aclass B @@ -232,17 +232,16 @@ xpects.%0A -# long_des @@ -284,16 +284,16 @@ 'rst')%0A + %0A%0Asetup( @@ -405,53 +405,24 @@ ion= -'A python wrapper for the winsparkle project' +long_description ,%0A
4106a8ae6d9779ae84ec4036cced05ca0f510ace
fix setup.py
setup.py
setup.py
from setuptools import setup, find_packages import sys import os version = __import__('turbo').version install_requires = [ ] for k in ['pymongo', 'requests', 'redis', 'docopt', 'jinja2']: try: _m = __import__(k) except ImportError: if k == 'pymongo': k = 'pymongo>=3.2' install_requires.append(k) kwargs = {} readme_path = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(readme_path, 'README.rst')) as f: kwargs['long_description'] = f.read() if sys.version_info < (2, 7): install_requires.append('unittest2') install_requires.append('tornado<=4.3.0') install_requires.append('futures') elif sys.version_info > (2, 7) and sys.version_info < (2, 7, 9): install_requires.append('tornado<5.0.0') else: install_requires.append('tornado') setup( name="turbo", version=version, author="Wecatch.me", author_email="wecatch.me@gmail.com", url="http://github.com/wecatch/app-turbo", license="http://www.apache.org/licenses/LICENSE-2.0", description="turbo is a web framework for fast web development based in tornado, mongodb, redis", keywords='web framework tornado mongodb', packages=find_packages(), install_requires=install_requires, scripts=['turbo/bin/turbo-admin'], **kwargs )
Python
0.000001
@@ -1298,16 +1298,397 @@ dmin'%5D,%0A + classifiers=%5B%0A 'License :: OSI Approved :: Apache Software License',%0A 'Programming Language :: Python :: 2.6',%0A 'Programming Language :: Python :: 2.7',%0A 'Programming Language :: Python :: 3.3',%0A 'Programming Language :: Python :: 3.4',%0A 'Programming Language :: Python :: 3.5',%0A 'Programming Language :: Python :: 3.6',%0A %5D,%0A **kw
106b4b3f71ad1e44c2d7175e23493595d6f5b7af
set version
setup.py
setup.py
# -*- coding: utf-8 -*- VERSION = "1.4dev5" try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages import os import sys # Taken from kennethreitz/requests/setup.py package_directory = os.path.realpath(os.path.dirname(__file__)) def get_file_contents(file_path): """Get the context of the file using full path name.""" content = "" try: full_path = os.path.join(package_directory, file_path) content = open(full_path, 'r').read() except: print >> sys.stderr, "### could not open file: %r" % file_path return content def get_package(): """ returns a tuple of path. returns ("/", "/usr") if we do a pacakge installation. Then a file PRIVACYIDEA_PACKAGE needs to be created. """ check_file = os.path.join(package_directory, "PRIVACYIDEA_PACKAGE") if os.path.isfile(check_file): return ("/", "/usr/") return ("", "") setup( name='privacyIDEA', version=VERSION, description='privacyIDEA: identity, multifactor authentication, ' 'authorization, audit', author='privacyidea.org', license='AGPL v3', author_email='cornelius@privacyidea.org', url='http://www.privacyidea.org', install_requires=["WebOb>=1.2,<1.4", "Pylons>=0.9.7,<=1.0", "SQLAlchemy>=0.6", "docutils>=0.4", "simplejson>=2.0", "pycrypto>=1.0", "repoze.who<=1.1", "pyrad>=1.1", "netaddr", "qrcode>=2.4", "configobj>=4.6.0", "httplib2", "pyyaml", "python-ldap", "Pillow", "sqlsoup", "pyparsing" ], scripts=['tools/privacyidea-convert-token', 'tools/privacyidea-create-pwidresolver-user', 'tools/privacyidea-create-sqlidresolver-user', 'tools/privacyidea-pip-update', 'tools/privacyidea-create-enckey', 'tools/privacyidea-create-auditkeys', 'tools/privacyidea-create-certificate', 'tools/privacyidea-create-database', 'tools/privacyidea-fix-access-rights', 'tools/totp-token', 'tools/privacyidea-create-ad-users', 'tools/privacyidea-setup' ], setup_requires=["PasteScript>=1.6.3"], packages=find_packages(exclude=['ez_setup']), include_package_data=True, test_suite='nose.collector', data_files=[(get_package()[0] + 'etc/privacyidea/', ['config/privacyidea.ini.example', 'config/privacyideaapp.wsgi', 'config/privacyideaapp.py', 'config/dictionary', 'config/dummy-encKey']), (get_package()[1] + 'share/man/man1', ["tools/privacyidea-convert-token.1", "tools/privacyidea-create-pwidresolver-user.1", "tools/privacyidea-create-sqlidresolver-user.1", "tools/totp-token.1", "tools/privacyidea-pip-update.1", "tools/privacyidea-create-enckey.1", "tools/privacyidea-create-auditkeys.1", "tools/privacyidea-create-certificate.1", "tools/privacyidea-create-database.1", "tools/privacyidea-fix-access-rights.1" ]), (get_package()[1] + 'lib/privacyidea/authmodules/FreeRADIUS', ["authmodules/FreeRADIUS/LICENSE", "authmodules/FreeRADIUS/privacyidea_radius.pm"]), (get_package()[1] + 'lib/privacyidea/authmodules/OTRS', ["authmodules/OTRS/privacyIDEA.pm"]) ], classifiers=["Framework :: Pylons", "License :: OSI Approved :: " "GNU Affero General Public License v3", "Programming Language :: Python", "Development Status :: 5 - Production/Stable", "Topic :: Internet", "Topic :: Security", "Topic :: System ::" " Systems Administration :: Authentication/Directory" ], message_extractors={'privacyidea': [ ('**.py', 'python', None), ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), ('lib/tokens/*.mako', 'mako', {'input_encoding': 'utf-8'}), ('public/**', 'ignore', None)]}, zip_safe=False, paster_plugins=['PasteScript', 'Pylons'], entry_points=""" [paste.app_factory] main = privacyidea.config.middleware:make_app [paste.app_install] main = pylons.util:PylonsInstaller [nose.plugins] pylons = pylons.test:PylonsPlugin """, long_description=get_file_contents('README.md') )
Python
0.000001
@@ -17,16 +17,17 @@ f-8 -*-%0A +# VERSION @@ -38,16 +38,32 @@ .4dev5%22%0A +VERSION = %221.4%22%0A try:%0A
7084b08c65d4df5586d84c35964af8fedf7fdb52
Fix black
setup.py
setup.py
# This file is part of Shuup. # # Copyright (c) 2012-2021, Shuup Commerce Inc. All rights reserved. # # This source code is licensed under the OSL-3.0 license found in the # LICENSE file in the root directory of this source tree. import os import setuptools import sys import shuup_setup_utils as utils TOPDIR = os.path.abspath(os.path.dirname(__file__)) LONG_DESCRIPTION_FILE = os.path.join(TOPDIR, "README.rst") VERSION_FILE = os.path.join(TOPDIR, "shuup", "_version.py") # Release instructions # # 1. Update the Change Log (CHANGELOG.md) # - Make sure all relevant changes since last release are listed # - Remove the instruction bullet point ("List all changes after # x.x.x here...") # - Change the "Unreleased" header to appropriate version header. # See header of the last release for example. # 2. Update VERSION variable here: Increase and drop .post0.dev suffix # 4. Update version and release variables in doc/conf.py # 5. Commit changes of steps 1--4 # 6. Tag the commit (of step 5) with # git tag -a -m "Shuup X.Y.Z" vX.Y.Z # where X.Y.Z is the new version number (must be same as VERSION # variable here) # 7. Check the tag is OK and push it with # git push origin refs/tags/vX.Y.Z # 8. Do a post-release commit: # - Add new "Unreleased" header and instruction bullet point to # Change Log # - Add ".post0.dev" suffix to VERSION variable here NAME = "shuup" VERSION = "2.6.5.post0.dev" DESCRIPTION = "E-Commerce Platform" AUTHOR = "Shuup Commerce Inc." AUTHOR_EMAIL = "shuup@shuup.com" URL = "http://shuup.com/" DOWNLOAD_URL_TEMPLATE = ( "https://github.com/shuup/shuup/releases/download/" "v{version}/shuup-{version}-py2.py3-none-any.whl" ) LICENSE = "proprietary" # https://spdx.org/licenses/ CLASSIFIERS = """ Development Status :: 5 - Production/Stable Intended Audience :: Developers License :: Other/Proprietary License Natural Language :: English Natural Language :: Chinese (Simplified) Natural Language :: Finnish Natural Language :: Japanese Natural Language :: Portuguese (Brazilian) Programming Language :: JavaScript Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Topic :: Internet :: WWW/HTTP :: Dynamic Content Topic :: Internet :: WWW/HTTP :: Site Management Topic :: Office/Business Topic :: Software Development :: Libraries :: Application Frameworks Topic :: Software Development :: Libraries :: Python Modules """.strip().splitlines() EXCLUDED_PACKAGES = [ "shuup_tests", "shuup_tests.*", ] utils.add_exclude_patters( [ "build", "doc", "var", "LC_MESSAGES", "local_settings.py", ] ) REQUIRES = [ "Babel==2.5.3", "bleach==3.1.5", "django>=1.11,<2.3", "django-bootstrap3>=11,<11.1", "django-countries>=6.1.2,<6.2", "django-enumfields>=2.0.0,<2.1", "django-filer>=1.7,<1.8", "django-filter>=2.2.0,<2.3", "django-jinja==2.5.0", "django-mptt==0.9.1", "django-parler==2.0.1", "django-polymorphic==2.1.2", "django-registration-redux==2.7", "django-reversion==3.0.5", "django-timezone-field==3.1", # doesn't support Django 3 in this version "djangorestframework==3.11", "factory-boy==2.7.0", "fake-factory>=0.5.0,<0.5.4", "Jinja2==2.8.1", "jsonfield>=1,<3", "keyring>=10", "keyrings.alt>=2", "lxml>=4,<5", "Markdown>=3,<4", "openpyxl>=2.3,<2.6", "python-dateutil>=2.8", "toml>=0.10.0,<1" "pytz>=2015.4", "requests>=2.7,<3", "six>=1.9,<2", "unicodecsv==0.14.1", "xlrd>=1", ] if __name__ == "__main__": if "upload" in sys.argv: raise EnvironmentError("Uploading is blacklisted") version = utils.get_version(VERSION, TOPDIR, VERSION_FILE) utils.write_version_to_file(version, VERSION_FILE) setuptools.setup( name=NAME, version=version, description=DESCRIPTION, long_description=utils.get_long_description(LONG_DESCRIPTION_FILE), url=URL, download_url=DOWNLOAD_URL_TEMPLATE.format(version=version), author=AUTHOR, author_email=AUTHOR_EMAIL, license=LICENSE, classifiers=CLASSIFIERS, install_requires=REQUIRES, python_requires='>=3.6', packages=utils.find_packages(exclude=EXCLUDED_PACKAGES), include_package_data=True, cmdclass=utils.COMMANDS, )
Python
0.000011
@@ -4303,15 +4303,15 @@ res= -' +%22 %3E=3.6 -' +%22 ,%0A
c26019ee038ee90c7cd39e3d19790ecb3fca75a3
fix __version__ in setup.py
setup.py
setup.py
import os from setuptools import setup from pip.req import parse_requirements from tfinterface import __version__ # parse requirements reqs = [str(r.req) for r in parse_requirements("requirements.txt", session=False)] # 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 = "tfinterface", version = __version__, author = "Cristian Garcia", author_email = "cgarcia.e88@gmail.com", description = ("A light wrapper over TensorFlow that enables you to easily create complex deep neural networks using the Builder Pattern through a functional fluent immutable API"), license = "MIT", keywords = ["tensorflow", "deep learning", "neural networks"], url = "https://github.com/cgarciae/tfinterface", packages = [ 'tfinterface', 'tfinterface.supervised', 'tfinterface.tests' ], package_data={ '': ['LICENCE', 'requirements.txt', 'README.md', 'CHANGELOG.md'], 'tfinterface': ['version.txt', 'README-template.md'] }, download_url = 'https://github.com/cgarciae/tfinterface/tarball/{0}'.format(version), include_package_data = True, long_description = read('README.md'), install_requires = reqs )
Python
0.000092
@@ -1342,23 +1342,27 @@ .format( +__ version +__ ),%0A i
852ea076e7fc04446aa58650b293a48d2a4089ba
Bump version to 0.2.0
setup.py
setup.py
from setuptools import setup, find_packages setup( name = 'bustime', version = '0.1', packages = find_packages(), description = 'SDK for the MTA Bus Time API', install_requires = ['requests>=2.0'], author = 'Steve Davis', author_email = 'steve@celery.club', url = 'https://github.com/celeryclub/bustime', download_url = 'https://github.com/celeryclub/bustime/tarball/0.1', keywords = 'mta bustime', )
Python
0.000001
@@ -80,17 +80,19 @@ on = '0. -1 +2.0 ',%0A pac @@ -387,9 +387,11 @@ l/0. -1 +2.0 ',%0A
cc860538eef75b527a209cfc85e24754c7468f5d
Add setuptools-git for setup.
setup.py
setup.py
from setuptools import setup version = "0.1" setup( version=version, description="A plugin for mr.awsome providing support for FreeBSD jails using ezjail.", name="mr.awsome.ezjail", author='Florian Schulze', author_email='florian.schulze@gmx.net', url='http://github.com/fschulze/mr.awsome.ezjail', include_package_data=True, zip_safe=False, packages=['mr'], namespace_packages=['mr'], install_requires=[ 'setuptools', 'mr.awsome', 'lazy' ], entry_points=""" [mr.awsome.plugins] ezjail = mr.awsome.ezjail:plugin """)
Python
0
@@ -509,16 +509,64 @@ %0A %5D,%0A + setup_requires=%5B%0A 'setuptools-git'%5D,%0A entr
e588d98f451c3cbfbdd3954b5784e8d8f15a1b9d
remove dev in setup.py
setup.py
setup.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals """ A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # To use a consistent encoding from os import path from codecs import open # Always prefer setuptools over distutils from setuptools import setup from slack_api_utils import __version__, __license__, __author__, __author_email__ here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, "README.md"), encoding="utf-8") as f: long_description = f.read() setup( name="slack-api-utils", # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/latest/single_source_version.html version=__version__, description="slack api utils for Python", long_description=long_description, # The project's main homepage. url="https://github.com/wakita181009/slack-api-utils", # Author details author=__author__, author_email=__author_email__, # Choose your license license=__license__, # See https://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ # How mature is this project? Common values are # 3 - Alpha # 4 - Beta # 5 - Production/Stable "Development Status :: 3 - Alpha", # Indicate who your project is intended for "Intended Audience :: Developers", "Topic :: Software Development :: Libraries :: Python Modules", # Pick your license as you wish (should match "license" above) "License :: OSI Approved :: MIT License", # Specify the Python versions you support here. In particular, ensure # that you indicate whether you support Python 2, Python 3 or both. "Programming Language :: Python :: 2.7", ], # What does your project relate to? keywords="slack api", # List run-time dependencies here. These will be installed by pip when # your project is installed. For an analysis of "install_requires" vs pip's # requirements files see: # https://packaging.python.org/en/latest/requirements.html install_requires=["slacker"], # List additional groups of dependencies here (e.g. development # dependencies). You can install these using the following syntax, # for example: # $ pip install -e .[dev,test] extras_require={ "dev": [], "test": ["coverage"], }, )
Python
0
@@ -2540,27 +2540,8 @@ e=%7B%0A - %22dev%22: %5B%5D,%0A
ce8004825bcf9ca41f72abc7535ea5055cd07973
remove pytables from req in setup.py - readthedocs and travis didnt like it
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Setup script for PyPI packaging This script is used for creating the PyPI package. python setup.py sdist - create gzip distr (source dist) python setup.py bdist_wheel - create build twine upload dist/* - upload to PyPI """ from setuptools import setup, find_packages import os with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() included_packages=find_packages(exclude=['build', 'docs', 'templates']) requirements = [ 'scipy', 'numpy', 'pandas', 'python-box', 'setuptools', 'pyyaml', 'matplotlib', 'xlrd', 'click', 'pytables', ] test_requirements = [ 'scipy', 'numpy', 'pandas', 'python-box', 'setuptools', 'pyyaml' 'matplotlib', 'lmfit', 'pyodbc', 'xlrd', 'click', 'pytables', 'pytest', ] name = 'cellpy' here = os.path.abspath(os.path.dirname(__file__)) userdir = os.path.expanduser("~") # os.mkdir(os.path.join(userdir, ".cellpy")) version_ns = {} with open(os.path.join(here, name, '_version.py')) as f: exec(f.read(), {}, version_ns) description = 'Extract data from battery cell testers.' setup(name=name, version=version_ns['__version__'], description=description, long_description=readme + '\n\n' + history, author="Jan Petter Maehlen", author_email='jepe@ife.no', url='https://github.com/jepegit/cellpy', packages=included_packages, package_dir={'cellpy':'cellpy'}, package_data={ 'cellpy':[], # 'README.rst'], 'databases': ['databases/cellpy_db.xlxs', 'databases/cellpy_dbc.xlxs', ], 'indata': [ ], 'outdata': [ ], 'parameters': ['parameters/_cellpy_prms_default.ini', ], 'scripts': ['examples/simple_reader.py', ], }, entry_points={ 'console_scripts': [ 'cellpy=cellpy.cellpy_setup:cli', ], }, #data_files=[userdir, ['cellpy/parameters/_cellpy_prms_default.ini']], include_package_data=True, install_requires=requirements, license="MIT license", zip_safe=False, keywords='cellpy', classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', "Programming Language :: Python :: 2", 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', # 'Programming Language :: Python :: 3', # 'Programming Language :: Python :: 3.3', # 'Programming Language :: Python :: 3.4', # 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], test_suite='tests', tests_require=test_requirements, )
Python
0
@@ -661,32 +661,34 @@ d', 'click',%0A + # 'pytables',%0A%5D%0A%0A
7a0cfe03fd600c625c361bbcf564ab8e72704a35
Fix package name
setup.py
setup.py
#!/usr/bin/python # -*- coding: utf-8 -*- # This file is part of the pymfony package. # # (c) Alexandre Quercia <alquerci@email.com> # # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. """ """ from __future__ import absolute_import; from distutils.core import setup; import os; realpathfile = os.path.realpath(os.path.dirname(__file__)); os.chdir(realpathfile); f = open("README.md"); long_description = "\n"+f.read(); f.close(); def find_packages(): return [ 'pymfony', 'pymfony.bundle', 'pymfony.bundle.framework_bundle', 'pymfony.bundle.framework_bundle.dependency', 'pymfony.component', 'pymfony.component.config', 'pymfony.component.config.definition', 'pymfony.component.console', 'pymfony.component.console_kernel', 'pymfony.component.dependency', 'pymfony.component.event_dispatcher', 'pymfony.component.httpkernel', 'pymfony.component.kernel', 'pymfony.component.system', 'pymfony.component.system.py2', 'pymfony.component.system.minor6', 'pymfony.component.system.py3', ]; def find_package_data(): return { '': [ "Resources/config/*.*", ] }; setup( name="pymfony", version="0.1.0", package_dir={'': 'src'}, packages=find_packages(), package_data=find_package_data(), author="Alexandre Quercia", author_email="alquerci@email.com", url="http://github.com/alquerci/pymfony", description='An implementation of "Symfony2 PHP Framework" into Python', long_description=long_description, license="MIT", classifiers=[ "Development Status :: 1 - Planning", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Operating System :: OS Independent", "License :: OSI Approved :: MIT License", "Intended Audience :: Developers", "Environment :: Console", "Environment :: Web Environment", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" "Topic :: Software Development :: Libraries :: PHP Classes", "Topic :: Software Development :: Libraries :: Application Frameworks", ], );
Python
0.000079
@@ -1144,16 +1144,20 @@ .system. +py2. minor6',
38452d9af048e95344a82bc3275ffd095eff8699
version 1.1.fb16
setup.py
setup.py
#! /usr/bin/env python ''' This file is part of ConfigShell. Copyright (c) 2011-2013 by Datera, 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. ''' from setuptools import setup setup( name = 'configshell-fb', version = '1.1.15', description = 'A framework to implement simple but nice CLIs.', license = 'Apache 2.0', maintainer = 'Andy Grover', maintainer_email = 'agrover@redhat.com', url = 'http://github.com/agrover/configshell-fb', packages = ['configshell'], use_2to3 = True, )
Python
0
@@ -713,9 +713,9 @@ .1.1 -5 +6 ',%0A
4f6d177bac356062901d2c699ff6b96b382a3fc5
Change command names
setup.py
setup.py
#!/usr/bin/env python3 from distutils.core import setup from distutils.command.install import install from distutils import dir_util from distutils import file_util import getpass import os import shutil import subprocess import config def setupUser(): import armaadmin.users print() print('Please set up the administrator account.') username = input('Username: ') password = getpass.getpass('Password: ') armaadmin.users.add(username, password, [], True) def setupDirs(): print() print('Making directories...') dir_util.mkpath(config.prefix) if config.creation: dir_util.mkpath(config.sources) dir_util.copy_tree('config', config.config) def setupApi(): if config.api: print() print('Installing API...') dir_util.copy_tree('api', config.api) def setupInit(): print() response = input('Which init system are you using: [1] SysV (Debian, Ubuntu, CentOS), [2] OpenRC (Gentoo), [3] Systemd (Arch, Fedora), [*] Other/None? ') if response == "1": print() print('Installing SysV init script...') file_util.copy_file('init/sysv/armaadmin', '/etc/init.d/') elif response == "2": print() print('Installing OpenRC init script...') file_util.copy_file('init/openrc/armaadmin', '/etc/init.d/') elif response == "3": print() print('Installing Systemd init script...') file_util.copy_file('init/systemd/armaadmin.service', '/usr/lib/systemd/system/') subprocess.call(['systemctl', 'daemon-reload']) class post_install(install): def run(self): open('armaadmin/users.db', 'w').close() setupUser() print() print('Installing...') shutil.copy('config.py', 'armaadmin/') install.run(self) os.remove('armaadmin/config.py') os.remove('armaadmin/users.db') setupDirs() setupApi() setupInit() class upgrade(install): def run(self): print() print('Upgrading...') shutil.copy('config.py', 'armaadmin/') install.run(self) os.remove('armaadmin/config.py') setupApi() setupInit() setup( name='ArmaAdmin', version='2.0', description='A complete Armagetron Advanced multi-server management framework and web interface', author='Foster McLane', author_email='fkmclane@gmail.com', url='http://github.com/fkmclane/ArmaAdmin', license='MIT', packages=[ 'armaadmin', 'armaadmin.routes' ], package_data={ 'armaadmin': [ 'config.py', 'users.db', 'www/*.*', 'www/admin/*.*', 'www/codemirror/*.*' ], 'armaadmin.routes': [ 'html/*.*' ] }, scripts=[ 'bin/armaadmin' ], cmdclass={ 'install': post_install, 'upgrade': upgrade } )
Python
0.000021
@@ -1442,20 +1442,19 @@ %0A%0Aclass -post +cmd _install @@ -1753,16 +1753,20 @@ %0A%0Aclass +cmd_ upgrade( @@ -2463,12 +2463,11 @@ l': -post +cmd _ins @@ -2483,16 +2483,20 @@ grade': +cmd_ upgrade
e4e547df7467531aec8ac24c12d3ae931e59e9e9
Remove test as we're not sharing the ID of users.
test/test_activity_update.py
test/test_activity_update.py
# -*- coding: utf8 -*- # This file is part of PYBOSSA. # # Copyright (C) 2015 Scifabric LTD. # # PYBOSSA is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # PYBOSSA is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with PYBOSSA. If not, see <http://www.gnu.org/licenses/>. from default import Test, with_context from pybossa.view.account import get_update_feed from factories import ProjectFactory, TaskFactory, TaskRunFactory, UserFactory, BlogpostFactory class TestActivityFeed(Test): def test_user_creation(self): """Test ACTIVITY FEED works for User creation.""" user = UserFactory.create() update_feed = get_update_feed() err_msg = "It should be the same user" assert update_feed[0]['fullname'] == user.fullname, err_msg assert update_feed[0]['name'] == user.name, err_msg # assert update_feed[0].get('info') is not None, err_msg err_msg = "The update action should be User" assert update_feed[0]['action_updated'] == 'User', err_msg def test_project_creation(self): """Test ACTIVITY FEED works for project creation.""" project = ProjectFactory.create() update_feed = get_update_feed() err_msg = "It should be the same project" assert update_feed[0]['id'] == project.id, err_msg assert update_feed[0]['name'] == project.name, err_msg assert update_feed[0]['short_name'] == project.short_name, err_msg # assert update_feed[0].get('info') is None, err_msg err_msg = "The update action should be Project" assert update_feed[0]['action_updated'] == 'Project', err_msg def test_blogpost_creation(self): """Test ACTIVITY FEED works for blog post creation.""" blogpost = BlogpostFactory.create() update_feed = get_update_feed() err_msg = "It should be the blog post" assert update_feed[0]['id'] == blogpost.project_id, err_msg assert update_feed[0]['name'] == blogpost.project.name, err_msg assert update_feed[0]['short_name'] == blogpost.project.short_name, err_msg # assert update_feed[0].get('info') is not None, err_msg err_msg = "The update action should be Project" assert update_feed[0]['action_updated'] == 'Blog', err_msg def test_task_creation(self): """Test ACTIVITY FEED works for task creation.""" task = TaskFactory.create() update_feed = get_update_feed() err_msg = "It should be the task" assert update_feed[0]['id'] == task.project_id, err_msg assert update_feed[0]['name'] == task.project.name, err_msg assert update_feed[0]['short_name'] == task.project.short_name, err_msg # assert update_feed[0].get('info') is not None, err_msg err_msg = "The update action should be Project" assert update_feed[0]['action_updated'] == 'Task', err_msg def test_taskrun_creation(self): """Test ACTIVITY FEED works for task_run creation.""" task_run = TaskRunFactory.create() update_feed = get_update_feed() err_msg = "It should be the same task_run" assert update_feed[0]['id'] == task_run.user.id, err_msg assert update_feed[0]['name'] == task_run.user.name, err_msg assert update_feed[0]['fullname'] == task_run.user.fullname, err_msg assert update_feed[0]['project_name'] == task_run.project.name, err_msg assert update_feed[0]['project_short_name'] == task_run.project.short_name, err_msg # assert update_feed[0].get('info') is not None, err_msg err_msg = "The update action should be Project" assert update_feed[0]['action_updated'] == 'UserContribution', err_msg def test_taskrun_creation_state_completed(self): """Test ACTIVITY FEED works for task_run creation state completed.""" task = TaskFactory.create(n_answers=1) task_run = TaskRunFactory.create(task=task) update_feed = get_update_feed() err_msg = "It should be the same task_run" assert update_feed[0]['id'] == task_run.project.id, err_msg assert update_feed[0]['name'] == task_run.project.name, err_msg assert update_feed[0]['short_name'] == task_run.project.short_name, err_msg # assert update_feed[0].get('info') is not None, err_msg err_msg = "The update action should be Project" assert update_feed[0]['action_updated'] == 'TaskCompleted', err_msg def test_max_limit(self): """Test ACTIVITY FEED limit works.""" ProjectFactory.create_batch(101) update_feed = get_update_feed() err_msg = "There should be at max 100 updates." assert len(update_feed) == 100, err_msg
Python
0
@@ -3582,73 +3582,8 @@ un%22%0A - assert update_feed%5B0%5D%5B'id'%5D == task_run.user.id, err_msg%0A
34366cacbe90e15fcc7c7c5a627eee868a3e9416
Implement file syncing
sync.py
sync.py
#! /usr/bin/env python import argparse, os, sys import dftext verbose = True parser = dftext.Parser() files = [] class SyncError(Exception): pass def output_wrapper(f): def inner(text): f.write(text) f.flush() return inner pout = output_wrapper(sys.stdout) perr = output_wrapper(sys.stderr) def init(): for f in os.listdir('.'): # Avoid decompressed files if f.endswith('.txt'): continue try: parser.decode_file(f) sync(f) except dftext.ParserError: pass except SyncError as e: if verbose: pout('\n') perr('File %s: Sync failed: %s\n' % (f, e)) def sync(path): if path.endswith('.txt'): path = path.rstrip('.txt') txt_path = path + '.txt' if not os.path.isfile(path): raise SyncError('Compressed file not found') if os.path.exists(txt_path) and not os.path.isfile(txt_path): raise SyncError('Decompressed file (%s) is not a file' % txt_path) # Determine whether the compressed or decompressed file is more up-to-date compressed_newer = (os.path.getmtime(path) > (os.path.getmtime(txt_path) if os.path.exists(txt_path) else -1)) if verbose: pout('%s file %s... ' % ('Decompressing' if compressed_newer else 'Compressing', path if compressed_newer else txt_path)) if compressed_newer: old_size = os.stat(path).st_size else: old_size = os.stat(txt_path).st_size pout('Done [%i -> ? bytes]\n' % (old_size)) if __name__ == '__main__': init()
Python
0.000011
@@ -40,16 +40,22 @@ os, sys +, time %0Aimport @@ -112,16 +112,28 @@ les = %5B%5D +%0Amtimes = %7B%7D %0A%0Aclass @@ -369,24 +369,79 @@ stdir('.'):%0A + if not os.path.isfile(f):%0A continue%0A # Av @@ -771,16 +771,164 @@ (f, e)) +%0A else:%0A files.append(f)%0A mtimes%5Bf%5D = os.path.getmtime(f)%0A mtimes%5Bf + '.txt'%5D = os.path.getmtime(f + '.txt') %0A%0Adef sy @@ -990,23 +990,13 @@ path -.rstrip('.txt') +%5B:-4%5D %0A @@ -1094,16 +1094,21 @@ sed file + (%25s) not fou @@ -1110,16 +1110,23 @@ t found' + %25 path )%0A if @@ -1387,16 +1387,17 @@ (path) %3E += %0A @@ -1703,58 +1703,756 @@ -else:%0A old_size = os.stat(txt_path).st_size + try:%0A with open(txt_path, 'w') as f:%0A f.write(parser.decode_file(path))%0A except dftext.ParserError as e:%0A raise SyncError('Could not decode file: %25s' %25 e)%0A new_size = os.stat(txt_path).st_size%0A # Update compressed file timestamp%0A with open(path, 'a'):%0A os.utime(path, None)%0A else:%0A old_size = os.stat(txt_path).st_size%0A try:%0A with open(path, 'w') as f:%0A f.write(parser.encode_file(txt_path))%0A except dftext.ParserError as e:%0A raise SyncError('Could not encode file: %25s' %25 e)%0A new_size = os.stat(path).st_size%0A mtimes%5Bpath%5D = os.path.getmtime(path)%0A mtimes%5Btxt_path%5D = os.path.getmtime(txt_path) %0A @@ -2474,9 +2474,10 @@ -%3E -? +%25i byt @@ -2498,46 +2498,295 @@ size -))%0A%0Aif __name__ == '__main__':%0A init( +, new_size))%0A%0Adef sync_changed():%0A for f in mtimes:%0A if mtimes%5Bf%5D != os.path.getmtime(f):%0A sync(f)%0A%0Aif __name__ == '__main__':%0A init()%0A try:%0A while True:%0A time.sleep(0.5)%0A sync_changed()%0A except KeyboardInterrupt:%0A print('' )%0A
20037b3eaeb04a75664ff2eb8f9c2b654f894693
Version 0.3
setup.py
setup.py
# -*- coding:utf-8 -*- from distutils.core import setup setup( name = 'elementflow', version = '0.2.0', author = 'Ivan Sagalaev', author_email = 'Maniac@SoftwareManiacs.Org', py_modules = ['elementflow'], url = 'https://launchpad.net/elementflow', license = 'LICENSE.txt', description = 'Python library for generating XML as a stream without first building a tree in memory.', long_description = open('README.txt').read(), )
Python
0.000001
@@ -104,9 +104,9 @@ '0. -2 +3 .0',
de22bdb895fc3595da615f9d0fa7670789a50ca7
Bump tqdm to fix a blocking bug
setup.py
setup.py
#!/usr/bin/env python import codecs import os.path import re import sys import setuptools here = os.path.abspath(os.path.dirname(__file__)) def read(*parts): # intentionally *not* adding an encoding option to open, See: # https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690 with codecs.open(os.path.join(here, *parts), 'r') as fp: return fp.read() def find_version(*file_paths): version_file = read(*file_paths) version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M) if version_match: return version_match.group(1) raise RuntimeError("Unable to find version string.") # Remember keep synchronized with the list of dependencies in tox.ini tests_require = [ "pytest", "requests-mock", ] needs_pytest = {"pytest", "test", "ptr"}.intersection(sys.argv) pytest_runner = ["pytest-runner"] if needs_pytest else [] setuptools.setup( name="neuroglancer-scripts", version=find_version("src", "neuroglancer_scripts", "__init__.py"), description="Conversion of images to the Neuroglancer pre-computed format", long_description=read("README.rst"), url="https://github.com/HumanBrainProject/neuroglancer-scripts", author="Yann Leprince", author_email="yann.leprince@cea.fr", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering :: Visualization", ], keywords="neuroimaging", package_dir={"": "src"}, packages=setuptools.find_packages("src"), install_requires=[ "nibabel >= 2", "numpy >= 1.11.0", "pillow >= 1.1.6", "requests >= 2", "scikit-image", # TODO use pillow instead "tqdm >= 4", ], python_requires="~= 3.5", extras_require={ "dev": tests_require + [ "check-manifest", "flake8", "pep8-naming", "pytest-cov", "readme_renderer", "sphinx", "tox", ], }, setup_requires=pytest_runner, tests_require=tests_require, entry_points={ "console_scripts": [ "compute-scales=neuroglancer_scripts.scripts.compute_scales:main", "convert-chunks=neuroglancer_scripts.scripts.convert_chunks:main", "generate-scales-info=neuroglancer_scripts.scripts.generate_scales_info:main", "link-mesh-fragments=neuroglancer_scripts.scripts.link_mesh_fragments:main", "mesh-to-precomputed=neuroglancer_scripts.scripts.mesh_to_precomputed:main", "scale-stats=neuroglancer_scripts.scripts.scale_stats:main", "slices-to-precomputed=neuroglancer_scripts.scripts.slices_to_precomputed:main", "volume-to-precomputed=neuroglancer_scripts.scripts.volume_to_precomputed:main", "volume-to-precomputed-pyramid=neuroglancer_scripts.scripts.volume_to_precomputed_pyramid:main", ], }, )
Python
0
@@ -2044,12 +2044,15 @@ qdm -%3E +~ = 4 +.29 %22,%0A
98a98265427d6a514d67565ec44644aa27659040
Bump token-auth
setup.py
setup.py
#!/usr/bin/env python import os import bluebottle from setuptools import setup, find_packages def read_file(name): return open(os.path.join(os.path.dirname(__file__), name)).read() readme = read_file('README.rst') changes = '' dependency_links = [ 'git+https://github.com/onepercentclub/django-taggit-autocomplete-modified.git@8e7fbc2deae2f1fbb31b574bc8819d9ae7c644d6#egg=django-taggit-autocomplete-modified-0.1.1b1', 'git+https://github.com/onepercentclub/django-bb-salesforce.git@1.2.0#egg=django-bb-salesforce-1.2.0', 'git+https://github.com/onepercentclub/django-tenant-extras.git@2.0.4#egg=django-tenant-extras-2.0.4', 'git+https://github.com/onepercentclub/django-token-auth.git@0.3.0#egg=django-token-auth-0.3.0', 'hg+https://bitbucket.org/jdiascarvalho/django-filetransfers@89c8381764da217d72f1fa396ce3929f0762b8f9#egg=django-filetransfers-0.1.1' ] install_requires = [ 'Babel==2.3.4', 'BeautifulSoup==3.2.1', 'Django==1.9.6', 'Pillow==3.2.0', 'South==1.0.2', 'Sphinx==1.4.1', 'bunch==1.0.1', 'celery==3.1.23', 'django-celery==3.1.17', 'django-choices==1.4.2', 'django-extensions==1.6.7', 'django-exportdb==0.4.6', 'django-filter==0.13.0', 'django-geoposition==0.2.2', 'django-localflavor==1.2', 'django-modeltranslation==0.11', 'django-taggit==0.18.3', 'django-tinymce==2.3.0', 'django-uuidfield==0.5.0', 'django-wysiwyg==0.7.1', 'django-dynamic-fixture==1.8.5', 'django-fluent-dashboard==0.6.1', 'djangorestframework==3.3.3', 'dkimpy==0.5.6', 'micawber==0.3.3', 'requests==2.5.1', 'sorl-thumbnail==12.3', 'transifex-client==0.11', 'django-tools==0.30.0', 'django-loginas==0.1.9', 'beautifulsoup4==4.4.1', 'psycopg2==2.6.1', 'django-fsm==2.4.0', 'suds-jurko==0.6', 'django-ipware==1.1.5', 'pygeoip==0.3.2', 'python-social-auth==0.2.19', 'python-memcached==1.57', 'lxml==3.6.0', 'unicodecsv==0.14.1', 'python-dateutil==2.5.3', 'gunicorn==19.5.0', 'surlex==0.2.0', 'django_polymorphic==0.9.2', 'fabric', 'django-tenant-schemas==1.6.2', 'raven==5.16.0', 'regex==2016.4.25', 'djangorestframework-jwt==1.8.0', 'django-filetransfers==0.1.1', 'django-admin-tools==0.7.2', 'django-rest-swagger==0.3.6', 'django-lockdown==1.2', 'mixpanel==4.3.0', 'wheel==0.29.0', # Github requirements 'django-taggit-autocomplete-modified==0.1.1b1', 'django-fluent-contents==1.1.4', 'django-bb-salesforce==1.2.0', 'django-tenant-extras==2.0.4', 'django-token-auth==0.3.0', ] tests_requires = [ 'httmock==1.2.5', 'coverage==4.0.3', 'django-nose==1.4.3', 'django-setuptest==0.2.1', 'factory-boy==2.7.0', 'mock==2.0.0', 'nose==1.3.7', 'pylint==1.5.5', 'tdaemon==0.1.1', 'WebTest==2.0.21', 'django-webtest==1.7.9', 'pyquery==1.2.13' ] dev_requires = [ 'ipdb' ] setup( name='bluebottle', version=bluebottle.__version__, license='BSD', # Packaging. packages=find_packages(exclude=('tests', 'tests.*')), install_requires=install_requires, dependency_links=dependency_links, # You can install these using the following syntax, for example: # $ pip install -e .[dev,test] extras_require={ 'dev': dev_requires, 'test': tests_requires, }, include_package_data=True, zip_safe=False, # Metadata for PyPI. description='Bluebottle, the crowdsourcing framework initiated by the 1%Club.', long_description='\n\n'.join([readme, changes]), author='1%Club', author_email='info@onepercentclub.com', platforms=['any'], url='https://github.com/onepercentclub/bluebottle', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Framework :: Django', 'Intended Audience :: Developers', 'Operating System :: Unix', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Topic :: Software Development :: Libraries :: Application Frameworks' ] )
Python
0.000001
@@ -603,17 +603,17 @@ git@2.0. -4 +6 #egg=dja @@ -630,25 +630,25 @@ -extras-2.0. -4 +6 ',%0A 'git+ @@ -2588,17 +2588,17 @@ as==2.0. -4 +6 ',%0A '
f411e874bcb33cd9f7f23a3abc23830e3728ccf5
bump to 0.2.2
setup.py
setup.py
from setuptools import setup from sys import version_info with open('README.rst') as README: long_description = README.read() long_description = long_description[long_description.index('Description'):] suds_install_requires = ['suds'] if version_info < (3,0) else ['suds-py3'] setup(name='wos', version='0.2.1', description='Web of Science client using API v3.', long_description=long_description, install_requires=['limit'] + suds_install_requires, url='http://github.com/enricobacis/wos', author='Enrico Bacis', author_email='enrico.bacis@gmail.com', license='MIT', packages=['wos'], scripts=['scripts/wos'], keywords='wos isi web of science knowledge api client' )
Python
0.000096
@@ -322,9 +322,9 @@ 0.2. -1 +2 ',%0A
cc2609ba27dbc8186d4dd19a31bed702d326f0af
clean docs and fixes some silly bugs
tags.py
tags.py
# tags.py --- # # Filename: tags.py # Description: Access to the Tags API # Author: Niklas Rehfeld # # Copyright 2014 Niklas Rehfeld # # 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. # """ People Tags API. See http://nationbuilder.com/people_tags_api for more details. """ import urllib2 import NationBuilderApi import json class Tags(NationBuilderApi): def __init__(self, slug, token): super(Tags, self).__init__(slug, token) self.GET_PERSON_TAGS_URL = self.GET_PERSON_URL + "/taggings" self.REMOVE_TAG_URL = self.GET_PERSON_URL + "/taggings/{1}" self.LIST_TAGS_URL = self.BASE_URL + "/tags" + self.PAGINATE_QUERY self.GET_BY_TAG_URL = ''.join(self.BASE_URL, "/tags/{tag}/people", self.PAGINATE_QUERY) def get_people_by_tag(self, tag, per_page=100): """ Get a list of all the people with a tag. Parameters: tag: the tag to look for. Cannot contain '/' characters. The tag is case sensitive. tags_per_page: the number of tags to get at once (default 100) per_page must be in the range 0 < per_page <= 100 Returns: a list of people records. """ self._authorise() page = 1 url = self.GET_BY_TAG_URL.format(tag=urllib2.quote(str(tag), ''), page=page, per_page=str(per_page)) header, content = self.http.request(url, headers=self.HEADERS) self._check_response(header, content, "Get people by tag", url) content = json.loads(content) people = content['results'] num_pages = content['total_pages'] while page < num_pages: page += 1 url = self.GET_BY_TAG_URL.format(tag=str(tag), page=page, per_page=str(per_page)) header, content = self.http.request(url, headers=self.HEADERS) self._check_response(header, content, "Get people by tag", url) content = json.loads(content) people.extend(content['results']) return people def get_person_tags(self, person_id): """ Get a complete list of all the taggings for a given person. Parameters: person_id : The NationBuilder ID of the person to query. Returns: a (possibly empty) list of tags. """ # person = self.get_person(person_id) # return json.loads(person)['person']['tags'] self._authorise() url = self.GET_PERSON_TAGS_URL.format(str(person_id)) headers, content = self.http.request(url, headers=self.HEADERS) self._check_response(headers, content, "Get Person Tags", url) return json.loads(content)['taggings'] def list_tags(self, tags_per_page=100): """ Show the tags that have been used before in a nation. Parameters: tags_per_page : how many tags to fetch per call, maximum. Defaults to 100 Returns: a list of tags. """ def get_list_tags_page(tags_per_page, page_num): # gets a page of results of the tag list self._authorise() url = self.LIST_TAGS_URL.format(page=str(page_num), per_page=str(tags_per_page)) header, content = self.http.request(url, headers=self.HEADERS) self._check_response(header, content, "Get tags page", url) return json.loads(content) page = get_list_tags_page(tags_per_page, 1) tags = [tag['name'] for tag in page['results']] total_pages = page['total_pages'] current_page = page['page'] while total_pages > current_page: current_page += 1 next_page = get_list_tags_page(tags_per_page, current_page) tags.extend([tag['name'] for tag in next_page['results']]) return tags def remove_tag(self, person_id, tag): """removes a tag from a person. Parameters: person_id : NationBuilder ID of the person to remove the tag from tag : the tag to remove. There is no response from this call, so this always returns None. """ self._authorise() url = self.REMOVE_TAG_URL.format(urllib2.quote(str(person_id)), urllib2.quote(str(tag))) hdr, cnt = self.http.request(url, method="DELETE", headers=self.HEADERS) self._check_response(hdr, cnt, "Remove Tag '%s' from id %d" % (tag, person_id), url)
Python
0
@@ -131,18 +131,17 @@ ehfeld%0A# - %0A + # Lic @@ -317,17 +317,16 @@ nse at%0A# - %0A# @@ -371,17 +371,16 @@ SE-2.0%0A# - %0A# Un @@ -810,16 +810,28 @@ urllib2%0A +from nb_api import N @@ -846,16 +846,16 @@ lderApi%0A - import j @@ -1227,16 +1227,17 @@ ''.join( +%5B self.BAS @@ -1299,24 +1299,25 @@ + self.PAGINAT @@ -1323,16 +1323,17 @@ TE_QUERY +%5D )%0A%0A d
c609cc937ab91a634b92a38b78ab86e323deaaf1
Fix setup.py.
setup.py
setup.py
#-*- coding: utf-8 -*- from setuptools import setup, find_packages import YaDiskClient setup( name='YaDiskClient', version=YaDiskClient.__version__, include_package_data=True, py_modules=['YaDiskClient'], url='https://github.com/TyVik/YaDiskClient', license='MIT', author='TyVik', author_email='tyvik8@gmail.com', description='Clent for Yandex.Disk', long_description=open('README.rst').read(), install_requires=['requests'], packages=find_packages(), keywords='Yandex.Disk, webdav, client, python, Yandex' # test_suite='YaDiskClient.TestYaDisk' # this line is commented because tests needs Yandex login and password classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python', 'Topic :: Internet', 'Topic :: Utilities', 'Topic :: System :: Archiving :: Backup', ], )
Python
0
@@ -552,16 +552,17 @@ Yandex' +, %0A# te
89ed956189c220690ff218e6fa93b5d352957b1a
add test_suite on setup
setup.py
setup.py
#!/usr/bin/env python # -*- coding:utf-8 -*- from setuptools import setup, find_packages import opps install_requires = ["django", "south>=0.7", "Pillow==1.7.8", "thumbor", 'libthumbor', "django-googl==0.1.1", "django-taggit", "django-wysiwyg-redactor==0.3.1", "django-haystack==1.2.7", "django-mptt", "django-appconf", "python-memcached"] dependency_links = ['http://github.com/avelino/django-googl/tarball/master' '#egg=django-googl', 'http://github.com/avelino/django-taggit/tarball/master' '#egg=django-taggit'] classifiers = ["Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Framework :: Django", 'Programming Language :: Python', "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 2.6", "Operating System :: OS Independent", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", 'Topic :: Software Development :: Libraries :: Python Modules'] try: long_description = open('README.md').read() except: long_description = opps.__description__ setup(name='opps', version=opps.__version__, description=opps.__description__, long_description=long_description, classifiers=classifiers, keywords='opps cms django apps magazines websites', author=opps.__author__, author_email=opps.__email__, url='http://oppsproject.org', download_url="https://github.com/opps/opps/tarball/master", license=opps.__license__, packages=find_packages(exclude=('doc', 'docs',)), namespace_packages=['opps'], package_dir={'opps': 'opps'}, install_requires=install_requires, dependency_links=dependency_links, scripts=['opps/bin/opps-admin.py'], include_package_data=True,)
Python
0
@@ -2211,10 +2211,38 @@ ta=True, +%0A test_suite='runtests' )%0A
dc81eea0fdd1a1b8e3a8a662db51f96cd6523de8
version 0.1.2
setup.py
setup.py
#!/usr/bin/env python try: # Third-party from setuptools import setup except ImportError: # Standard library from distutils.core import setup with open("README.rst") as file: long_description = file.read() setup(author="Timid Robot Zehta", author_email="tim@clockwork.net", classifiers=["Environment :: Console", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Topic :: System :: Monitoring", "Topic :: Utilities"], description=("Graphite-dashgen automates the creation of Graphite " "dashboards"), download_url="https://github.com/ClockworkNet/graphite-dashgen/releases", install_requires=["PyYAML"], license="MIT License", long_description=long_description, name="python-graphite-dashgen", py_modules=["dashgen"], url="https://github.com/ClockworkNet/graphite-dashgen", version="0.1.1", )
Python
0.000003
@@ -1002,17 +1002,17 @@ on=%220.1. -1 +2 %22,%0A
39ab58ed009568a3eca0fd168841d5437ee6f7d0
Corrige dependencias do setup.py e numero da versao do Python
setup.py
setup.py
#!/usr/bin/env python import os from codecs import open from setuptools import find_packages, setup version_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'pysigep', '__version__.py') about = {} with open(version_path, 'r') as f: exec(f.read(), about) with open('README.rst', 'r') as readme_file: readme = readme_file.read() with open('docs/history.rst', 'r') as history_file: history = history_file.read() requirements = [ 'lxml==3.7.3', 'requests==2.13.0', 'Pillow==4.1.0', 'Jinja2==2.9.6', 'zeep', ] test_requirements = [ 'coveralls', 'flake8', ] classifiers = [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Natural Language :: Portuguese', 'License :: OSI Approved :: MIT License', "Programming Language :: Python :: 2", 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ] setup( name=about['__title__'], version=about['__version__'], description=about['__description__'], long_description=readme + '\n\n' + history, author=about['__author__'], author_email=about['__author_email__'], maintainer=about['__maintainer__'], maintainer_email=about['__maintainer_email__'], url=about['__url__'], download_url=about['__download_url__'], packages=find_packages(include=['pysigep']), package_dir={'pysigep': 'pysigep'}, include_package_data=True, install_requires=requirements, license=about['__license__'], zip_safe=False, keywords='correios sigep sigepweb development api', classifiers=classifiers, platforms=['any'], test_suite='tests', tests_require=test_requirements, )
Python
0
@@ -513,93 +513,8 @@ = %5B%0A - 'lxml==3.7.3',%0A 'requests==2.13.0',%0A 'Pillow==4.1.0',%0A 'Jinja2==2.9.6',%0A @@ -761,231 +761,8 @@ e',%0A - %22Programming Language :: Python :: 2%22,%0A 'Programming Language :: Python :: 2.6',%0A 'Programming Language :: Python :: 2.7',%0A 'Programming Language :: Python :: 3.3',%0A 'Programming Language :: Python :: 3.4',%0A
97a7a0411ef43ed911b8ba90266c9c67577e1967
Include links to docs and repo
setup.py
setup.py
import os import re import sys from setuptools import setup, Extension from setuptools.command.build_ext import build_ext # These were only added to setuptools in 59.0.1. try: from setuptools.errors import CCompilerError from setuptools.errors import DistutilsExecError from setuptools.errors import DistutilsPlatformError except ImportError: from distutils.errors import CCompilerError from distutils.errors import DistutilsExecError from distutils.errors import DistutilsPlatformError cmdclass = {} PYPY = hasattr(sys, "pypy_version_info") JYTHON = sys.platform.startswith("java") requirements = [] compile_args = ["-Wall", "-Wextra"] ext_module = [ Extension( "maxminddb.extension", libraries=["maxminddb"], sources=["extension/maxminddb.c"], extra_compile_args=compile_args, ) ] # Cargo cult code for installing extension with pure Python fallback. # Taken from SQLAlchemy, but this same basic code exists in many modules. ext_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError) class BuildFailed(Exception): def __init__(self): self.cause = sys.exc_info()[1] class ve_build_ext(build_ext): # This class allows C extension building to fail. def run(self): try: build_ext.run(self) except DistutilsPlatformError: raise BuildFailed() def build_extension(self, ext): try: build_ext.build_extension(self, ext) except ext_errors: raise BuildFailed() except ValueError: # this can happen on Windows 64 bit, see Python issue 7511 if "'path'" in str(sys.exc_info()[1]): raise BuildFailed() raise cmdclass["build_ext"] = ve_build_ext # ROOT = os.path.dirname(__file__) with open(os.path.join(ROOT, "README.rst"), "rb") as fd: README = fd.read().decode("utf8") with open(os.path.join(ROOT, "maxminddb", "__init__.py"), "rb") as fd: maxminddb_text = fd.read().decode("utf8") LICENSE = ( re.compile(r".*__license__ = \"(.*?)\"", re.S).match(maxminddb_text).group(1) ) VERSION = ( re.compile(r".*__version__ = \"(.*?)\"", re.S).match(maxminddb_text).group(1) ) def status_msgs(*msgs): print("*" * 75) for msg in msgs: print(msg) print("*" * 75) def find_packages(location): packages = [] for pkg in ["maxminddb"]: for _dir, subdirectories, files in os.walk(os.path.join(location, pkg)): if "__init__.py" in files: tokens = _dir.split(os.sep)[len(location.split(os.sep)) :] packages.append(".".join(tokens)) return packages def run_setup(with_cext): kwargs = {} if with_cext: kwargs["ext_modules"] = ext_module setup( name="maxminddb", version=VERSION, author="Gregory Oschwald", author_email="goschwald@maxmind.com", description="Reader for the MaxMind DB format", long_description=README, url="http://www.maxmind.com/", packages=find_packages("."), package_data={"": ["LICENSE"], "maxminddb": ["extension.pyi", "py.typed"]}, package_dir={"maxminddb": "maxminddb"}, python_requires=">=3.6", include_package_data=True, install_requires=requirements, license=LICENSE, cmdclass=cmdclass, classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python", "Topic :: Internet :: Proxy Servers", "Topic :: Internet", ], **kwargs ) if PYPY or JYTHON: run_setup(False) status_msgs( "WARNING: Disabling C extension due to Python platform.", "Plain-Python build succeeded.", ) else: try: run_setup(True) except BuildFailed as exc: status_msgs( exc.cause, "WARNING: The C extension could not be compiled, " + "speedups are not enabled.", "Failure information, if any, is above.", "Retrying the build without the C extension now.", ) run_setup(False) status_msgs( "WARNING: The C extension could not be compiled, " + "speedups are not enabled.", "Plain-Python build succeeded.", )
Python
0
@@ -3245,16 +3245,290 @@ nddb%22%7D,%0A + project_urls=%7B%0A %22Documentation%22: %22https://maxminddb.readthedocs.org/%22,%0A %22Source Code%22: %22https://github.com/maxmind/MaxMind-DB-Reader-python%22,%0A %22Issue Tracker%22: %22https://github.com/maxmind/MaxMind-DB-Reader-python/issues%22,%0A %7D,%0A
544754701e0cd7243e7a7cfc5245bdb91b73d2c5
Fix a bug in setup.py
setup.py
setup.py
""" setup.py """ import sys import subprocess try: from setuptools import setup except ImportError: from distutils.core import setup PROC = subprocess.run(["git", "log", "-n1", "--pretty=%h"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) if PROC.returncode != 0: print("ERROR: while retreiving current git commit hash...", file=sys.stderr) print("The error message is:\n> %s" % PROC.stderr.decode("utf-8").strip(), file=sys.stderr) exit(1) COMMIT = PROC.stdout.decode("utf-8").strip() PROC = subprocess.run(["git", "describe", "--exact-match", "--tags", COMMIT], stdout=subprocess.PIPE, stderr=subprocess.PIPE) if PROC.returncode != 0: print("ERROR: there's no tag associated with the current commit", file=sys.stderr) print("> %s" % PROC.stderr.decode("utf-8").strip(), file=sys.stderr) exit(1) TAG = PROC.stdout.decode("utf-8").strip() setup( name='pystream-protobuf', packages=['stream'], version=TAG, description='Python implementation of stream library', author='Ali Ghaffaari', author_email='ali.ghaffaari@gmail.com', url='https://github.com/cartoonist/pystream-protobuf', download_url='https://github.com/cartoonist/pystream-protobuf/tarball/'+TAG, keywords=['protobuf', 'stream', 'protocol buffer'], classifiers=[], install_requires=['protobuf==3.0.0b4'], )
Python
0.000003
@@ -137,16 +137,53 @@ setup%0A%0A +PYPI_DISTNAME = %22pystream-protobuf%22%0A%0A PROC = s @@ -316,33 +316,33 @@ PROC.returncode -! += = 0:%0A print(%22 @@ -338,204 +338,8 @@ -print(%22ERROR: while retreiving current git commit hash...%22, file=sys.stderr)%0A print(%22The error message is:%5Cn%3E %25s%22 %25 PROC.stderr.decode(%22utf-8%22).strip(),%0A file=sys.stderr)%0A exit(1)%0A%0A COMM @@ -379,16 +379,20 @@ strip()%0A + PROC = s @@ -475,32 +475,34 @@ + + stdout=subproces @@ -526,32 +526,36 @@ bprocess.PIPE)%0A%0A + if PROC.returnco @@ -563,24 +563,28 @@ e != 0:%0A + + print(%22ERROR @@ -647,16 +647,18 @@ + file=sys @@ -666,24 +666,28 @@ stderr)%0A + + print(%22%3E %25s%22 @@ -739,24 +739,28 @@ sys.stderr)%0A + exit(1)%0A @@ -760,16 +760,20 @@ xit(1)%0A%0A + TAG = PR @@ -810,44 +810,149 @@ p()%0A -%0Asetup(%0A name='pystream-protobuf' +else:%0A import pkg_resources%0A dist = pkg_resources.get_distribution(PYPI_DISTNAME)%0A TAG = dist.version%0A%0Asetup(%0A name=PYPI_DISTNAME ,%0A
87831602727e71f1969499e84aca50385eb9b9ed
Fix bad syntax
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages import os import platform # Conditional include unittest2 for versions of python < 2.7 tests_require = ['nose', 'pyyaml'] platform_version = list(platform.python_version_tuple())[0:2] if platform_version[0] != '3' and platform_version != ['2', '7']: tests_require.append('unittest2') long_description = ('RavenPy is a pure-Python implementation of for talking to RavenDB') setup( name='RavenPy', version='0.1', description='Python RavenDB client', long_description=long_description, author='Mark Woodhall', author_email='mark.woodhall@gmail.com', url='https://github.com/firegrass/RavenPy', platforms='any' packages=['RavenPy'], install_requires = [ 'requests>=2.2.1', 'bunch>=1.0.1' ], test_suite='nose.collector', keywords = "ravendb raven database", zip_safe=True )
Python
0.999998
@@ -706,16 +706,17 @@ ms='any' +, %0A pac
93dc1eaa750e6dec8eedad2353fdabba19c829b1
Bump version (2.0.1).
setup.py
setup.py
# -*- coding: utf-8 -*- """ Jump Consistent Hash -------------------- Python implementation of the jump consistent hash algorithm by John Lamping and Eric Veach[1]. Requires Python 2.6-2.7 or 3.2+. Usage ````` .. code:: python >>> import jump >>> jump.hash(256, 1024) 520 Or if you want to use the C++ extension: .. code:: python >>> jump.fasthash(256, 1024) 520 Links ````` [1] http://arxiv.org/pdf/1406.2294v1.pdf """ from setuptools import setup, find_packages, Extension setup(name='jump_consistent_hash', version='2.0.0', description='Implementation of the Jump Consistent Hash algorithm', long_description=__doc__, author='Peter Renström', license='MIT', url='https://github.com/renstrom/python-jump-consistent-hash', packages=find_packages(), ext_modules=[ Extension('_jump', sources=[ 'jump/jump.cpp', 'jump/jumpmodule.c' ]) ], test_suite='jump.tests', keywords=[ 'jump hash', 'jumphash', 'jump consistent hash', 'consistent hash', 'hash algorithm', 'hash' ], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4' ])
Python
0
@@ -554,17 +554,17 @@ on='2.0. -0 +1 ',%0A
026a7d5649388e4d57eeabed8f36ecdf6f5bf0d3
fix aircv dep version
setup.py
setup.py
# coding: utf-8 # import sys sys.path.insert(0,'/usr/lib/pyshared/python2.7') from setuptools import setup, find_packages from airtest import __version__ long_description = '' try: with open('README.md') as f: long_description = f.read() except: pass setup( name='airtest', version=__version__, description='mobile test(black air) python lib', long_description=long_description, author='codeskyblue', author_email='codeskyblue@gmail.com', packages = find_packages(), include_package_data=True, package_data={}, install_requires=[ #'Appium-Python-Client >= 0.10', 'click >= 3.3', 'fuckit >= 4.8.0', 'humanize >= 0.5', 'pystache >= 0.5.4', 'aircv >= 1.02', 'Flask >= 0.10.1', # 'paramiko', #'androidviewclient >= 7.1.1', # 'requests >= 2.4.3', ], entry_points=''' [console_scripts] air.test = airtest.console:main ''')
Python
0
@@ -785,14 +785,13 @@ rcv -%3E += = 1. -0 2',%0A
d84d84c583db53759129216747da7b2e81d59582
Bump version to 0.0.2
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup def fullsplit(path, result=None): """ Split a pathname into components (the opposite of os.path.join) in a platform-neutral way. """ if result is None: result = [] head, tail = os.path.split(path) if head == '': return [tail] + result if head == path: return result return fullsplit(head, [tail] + result) # Compile the list of packages available, because distutils doesn't have # an easy way to do this. packages, data_files = [], [] root_dir = os.path.dirname(__file__) if root_dir != '': os.chdir(root_dir) djlime_dir = 'djlime' for dirpath, dirnames, filenames in os.walk(djlime_dir): # Ignore dirnames that start with '.' for i, dirname in enumerate(dirnames): if dirname.startswith('.'): del dirnames[i] if '__init__.py' in filenames: packages.append('.'.join(fullsplit(dirpath))) elif filenames: data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]]) setup( name='djlime', version='0.0.1', description='Django goodies.', author='Andrey Voronov', author_email='voronov84@gmail.com', url='http://github.com/freshlimestudio/djlime/', long_description="Django goodies.", packages=packages, data_files=data_files, requires=[ 'django(>=1.3)', ], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Utilities', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
Python
0.000001
@@ -1243,17 +1243,17 @@ on='0.0. -1 +2 ',%0A d
231297068b9cf4d78c25af7e95bcfe1b5a5d2bd3
version bump
setup.py
setup.py
from setuptools import setup, find_packages setup( name='httpagentparser', version='1.2.1', url="https://github.com/shon/httpagentparser", classifiers=[ 'Programming Language :: Python', 'Programming Language :: Python :: 3' ], include_package_data=True, description='Extracts OS Browser etc information from http user agent string', long_description=open("README.rst").read(), packages=find_packages(), author='Shekhar Tiwatne', author_email='pythonic@gmail.com', license="http://www.opensource.org/licenses/mit-license.php", test_suite="tests", )
Python
0.000001
@@ -90,17 +90,17 @@ on='1.2. -1 +2 ',%0A u
10ae12d60cb8bd9a9a3373f0432fdf57ca3d5e44
Bump filebrowser safe version to 0.2.13
setup.py
setup.py
from __future__ import with_statement import os import sys exclude = ["mezzanine/project_template/dev.db", "mezzanine/project_template/local_settings.py"] exclude = dict([(e, None) for e in exclude]) for e in exclude: if e.endswith(".py"): try: os.remove("%sc" % e) except: pass try: with open(e, "r") as f: exclude[e] = (f.read(), os.stat(e)) os.remove(e) except: pass from setuptools import setup, find_packages from mezzanine import __version__ as version install_requires = [ "django >= 1.3.3", "filebrowser_safe >= 0.2.12", "grappelli_safe >= 0.2.11", "bleach", "pytz", ] try: from PIL import Image, ImageOps except ImportError: try: import Image, ImageFile, ImageOps except ImportError: # no way to install pillow/PIL with jython, so exclude this in any case if not sys.platform.startswith('java'): install_requires += ["pillow"] try: setup( name="Mezzanine", version=version, author="Stephen McDonald", author_email="stephen.mc@gmail.com", description="An open source content management platform built using " "the Django framework.", long_description=open("README.rst").read(), license="BSD", url="http://mezzanine.jupo.org/", zip_safe=False, include_package_data=True, packages=find_packages(), install_requires=install_requires, entry_points=""" [console_scripts] mezzanine-project=mezzanine.bin.mezzanine_project:create_project """, classifiers=[ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Internet :: WWW/HTTP :: WSGI", "Topic :: Software Development :: Libraries :: " "Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules", ]) finally: for e in exclude: if exclude[e] is not None: data, stat = exclude[e] try: with open(e, "w") as f: f.write(data) os.chown(e, stat.st_uid, stat.st_gid) os.chmod(e, stat.st_mode) except: pass
Python
0
@@ -631,17 +631,17 @@ %3E= 0.2.1 -2 +3 %22,%0A %22
90a6bd545ed0b494eb3530159292147e08263a72
Update gmpy2 deps (segfault in test_pretty.py)
setup.py
setup.py
#!/usr/bin/env python3 """ This script uses Setuptools (http://pythonhosted.org/setuptools/), a collection of enhancements to the standard Python distutils. """ import re import sys import os import shutil from setuptools import setup, Command, find_packages # Make sure I have the right Python version. We can drop this # when setuptools 24.2.1 enter into the Debian stable. if sys.version_info[:2] < (3, 4): print('Diofant requires Python 3.4 or newer. ' 'Python %d.%d detected' % sys.version_info[:2]) sys.exit(-1) with open('diofant/__init__.py') as f: source = f.read() long_description = source.split('"""')[1] for line in source.splitlines(): m = re.match('^__version__ = "([0-9ab.]+)".*$', line) if m: __version__ = m.group(1) setup_reqs = ['setuptools>=5.5.1', 'pip>=6.0', 'pytest-runner'] extra_reqs = {'exports': ['numpy', 'scipy', 'Theano'], 'gmpy': ['gmpy2'], 'plot': ['pyparsing!=2.1.2', 'matplotlib'], 'interactive': ['ipython>=2.3.0'], 'docs': ['sphinx>=1.2.3', 'numpydoc', 'sphinx_rtd_theme'], } extra_reqs['develop'] = ['pytest>=3.0', 'flake8>=2.5.5', 'pep8-naming', 'pytest-cov', 'coverage'] + setup_reqs setup(name='Diofant', version=__version__, description='Computer algebra system (CAS) in Python', long_description=long_description, maintainer='Sergey B Kirpichev', license='BSD', keywords='Math CAS', url='http://diofant.rtfd.io', packages=find_packages(), ext_modules=[], classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Intended Audience :: Education', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Physics', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], python_requires='>=3.4', tests_require=extra_reqs['develop'], install_requires=['mpmath>=0.19', 'strategies>=0.2.3', 'cachetools'], setup_requires=setup_reqs, extras_require=extra_reqs, )
Python
0
@@ -942,16 +942,22 @@ %5B'gmpy2 +%3E2.0.3 '%5D,%0A
8291758ff2fc5266e28450c29b80d509a785641c
Update setup.py.
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read().replace('.. :changelog:', '') with open('requirements.txt') as requirements_file: requirements = requirements_file.read().split("\n") test_requirements = [ # TODO: put package test requirements here ] setup( name='deconstrst', version='0.1.0', description="Build sphinx documentation to JSON and jam it in the cloud", long_description=readme + '\n\n' + history, author="Ash Wilson", author_email='ash.wilson@rackspace.com', url='https://github.com/deconst/renderer-rst', packages=[ 'deconstrst', ], package_dir={'deconstrst': 'deconstrst'}, include_package_data=True, install_requires=requirements, license="Apache 2", zip_safe=False, keywords='deconstrst', classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Natural Language :: English', "Programming Language :: Python :: 2", 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], entry_points={ 'console_scripts': [ 'deconst-render-rst = deconstrst:main' ], }, test_suite='tests', tests_require=test_requirements )
Python
0
@@ -782,21 +782,21 @@ deconst/ +p re -nde +pa rer-rst' @@ -1608,14 +1608,15 @@ nst- +p re -nder +pare -rst
46182e3646f9932a6a39e95fe4f289dd0c62325b
remove unnecessary requirements list
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup requirements = ['click==6.2', 'pyparsing==2.0.7', 'ecdsa==0.13', 'PyYAML==3.11', 'pycrypto==2.6.1', ] requirements = [i.strip() for i in open("requirements.txt").readlines()] config = { 'name': 'SimpleGenerator', 'description': 'Simple string (password) generator script', 'author': 'Michal Wiacek', 'author_email': 'michal.wiacek@gmail.com', 'version': '0.1', 'install_requires': requirements, 'packages': ['simplegenerator'], 'entry_points': { "console_scripts": [ "pgen = simplegenerator.__main__:cli", ] }, 'classifiers': [ 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], } setup(**config)
Python
0.000077
@@ -139,189 +139,8 @@ up%0A%0A -requirements = %5B'click==6.2',%0A 'pyparsing==2.0.7',%0A 'ecdsa==0.13',%0A 'PyYAML==3.11',%0A 'pycrypto==2.6.1',%0A %5D %0Areq
f9403b00f8a7a219977ecb26c316fc37a5caf201
Set the startup script runnable on Windows OS. Fixes #3
setup.py
setup.py
#!/usr/bin/env python3 # encoding: UTF-8 """Build tar.gz for pygubu Needed packages to run (using Debian/Ubuntu package names): python3-tk """ import os import shutil from distutils.command.install import install from distutils.core import setup VERSION = open('version.txt').read().strip() class CustomInstall(install): """Custom installation class on package files. """ def run(self): """Run parent install, and then save the install dir in the script.""" install.run(self) # fix installation path in the script(s) for script in self.distribution.scripts: script_path = os.path.join(self.install_scripts, os.path.basename(script)) with open(script_path) as fh: content = fh.read() ipath = os.path.abspath(self.install_lib) content = content.replace('@ INSTALLED_BASE_DIR @', ipath) with open(script_path, 'w') as fh: fh.write(content) long_description = \ """ Welcome to pygubu a GUI designer for tkinter ============================================ Pygubu is a RAD tool to enable quick & easy development of user interfaces for the python tkinter module. The user interfaces designed are saved as XML, and by using the pygubu builder these can be loaded by applications dynamically as needed. Pygubu is inspired by Glade. Installation ------------ Pygubu requires python >= 2.7 (Tested only in python 2.7.3 and 3.2.3 with tk8.5) Download and extract the tarball. Open a console in the extraction path and execute: :: python setup.py install Usage ----- Create an UI definition using pygubu and save it to a file. Then, create your aplication script as shown below: :: #test.py import tkinter as tk import pygubu class Application: def __init__(self, master): #1: Create a builder self.builder = builder = pugubu.Builder() #2: Load an ui file builder.add_from_file('test.ui') #3: Create the widget using a master as parent self.mainwindow = builder.get_object('mainwindow', master) if __name__ == '__main__': root = tk.Tk() app = Application(root) root.mainloop() See the examples directory or watch this hello world example on video http://youtu.be/wuzV9P8geDg """ setup( name='pygubu', version=VERSION, license='GPL-3', author='Alejandro Autalán', author_email='alejandroautalan@gmail.com', description='A tkinter GUI builder.', long_description=long_description, url='https://github.com/alejandroautalan/pygubu', packages=['pygubu', 'pygubu.builder', 'pygubu.builder.widgets', 'pygubu.widgets', 'pygubudesigner', 'pygubudesigner.util'], package_data={ 'pygubudesigner': [ 'images/*.gif', 'images/widgets/16x16/*.gif', 'images/widgets/22x22/*.gif', 'ui/*.ui', 'locale/*/*/*.mo'], }, scripts=["bin/pygubu"], cmdclass={ 'install': CustomInstall, }, classifiers=[ "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities", "Topic :: Software Development :: User Interfaces", ], )
Python
0.000001
@@ -167,16 +167,32 @@ t shutil +%0Aimport platform %0A%0Afrom d @@ -1039,16 +1039,155 @@ ntent)%0A%0A + if platform.system() == 'Windows':%0A dest = script_path + '.pyw'%0A shutil.move(script_path, dest)%0A%0A %0Along_de
1ac534fe5f28b95bfd28a832290b61929c26cf4c
Make the import of distutils.extra non-mandatory in setup.py. Just print a warning that i18n commands are not available...
setup.py
setup.py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # 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 gettext import glob import os import subprocess import sys from setuptools import find_packages from setuptools.command.sdist import sdist try: import DistUtilsExtra.auto except ImportError: print >> sys.stderr, 'To build nova you need '\ 'https://launchpad.net/python-distutils-extra' sys.exit(1) assert DistUtilsExtra.auto.__version__ >= '2.18',\ 'needs DistUtilsExtra.auto >= 2.18' gettext.install('nova', unicode=1) from nova.utils import parse_mailmap, str_dict_replace from nova import version if os.path.isdir('.bzr'): with open("nova/vcsversion.py", 'w') as version_file: vcs_cmd = subprocess.Popen(["bzr", "version-info", "--python"], stdout=subprocess.PIPE) vcsversion = vcs_cmd.communicate()[0] version_file.write(vcsversion) class local_sdist(sdist): """Customized sdist hook - builds the ChangeLog file from VC first""" def run(self): if os.path.isdir('.bzr'): # We're in a bzr branch env = os.environ.copy() env['BZR_PLUGIN_PATH'] = os.path.abspath('./bzrplugins') log_cmd = subprocess.Popen(["bzr", "log", "--novalog"], stdout=subprocess.PIPE, env=env) changelog = log_cmd.communicate()[0] mailmap = parse_mailmap() with open("ChangeLog", "w") as changelog_file: changelog_file.write(str_dict_replace(changelog, mailmap)) sdist.run(self) nova_cmdclass = {'sdist': local_sdist} try: from sphinx.setup_command import BuildDoc class local_BuildDoc(BuildDoc): def run(self): for builder in ['html', 'man']: self.builder = builder self.finalize_options() BuildDoc.run(self) nova_cmdclass['build_sphinx'] = local_BuildDoc except: pass try: from babel.messages import frontend as babel nova_cmdclass['compile_catalog'] = babel.compile_catalog nova_cmdclass['extract_messages'] = babel.extract_messages nova_cmdclass['init_catalog'] = babel.init_catalog nova_cmdclass['update_catalog'] = babel.update_catalog except: pass def find_data_files(destdir, srcdir): package_data = [] files = [] for d in glob.glob('%s/*' % (srcdir, )): if os.path.isdir(d): package_data += find_data_files( os.path.join(destdir, os.path.basename(d)), d) else: files += [d] package_data += [(destdir, files)] return package_data DistUtilsExtra.auto.setup(name='nova', version=version.canonical_version_string(), description='cloud computing fabric controller', author='OpenStack', author_email='nova@lists.launchpad.net', url='http://www.openstack.org/', cmdclass=nova_cmdclass, packages=find_packages(exclude=['bin', 'smoketests']), include_package_data=True, test_suite='nose.collector', data_files=find_data_files('share/nova', 'tools'), scripts=['bin/nova-ajax-console-proxy', 'bin/nova-api', 'bin/nova-compute', 'bin/nova-console', 'bin/nova-dhcpbridge', 'bin/nova-direct-api', 'bin/nova-import-canonical-imagestore', 'bin/nova-instancemonitor', 'bin/nova-logspool', 'bin/nova-manage', 'bin/nova-network', 'bin/nova-objectstore', 'bin/nova-scheduler', 'bin/nova-spoolsentry', 'bin/stack', 'bin/nova-volume', 'bin/nova-vncproxy', 'tools/nova-debug'])
Python
0
@@ -922,23 +922,256 @@ st%0A%0A -try:%0A import +# In order to run the i18n commands for compiling and%0A# installing message catalogs, we use DistUtilsExtra.%0A# Don't make this a hard requirement, but warn that%0A# i18n commands won't be available if DistUtilsExtra is%0A# not installed...%0Atry:%0A from Dis @@ -1186,16 +1186,29 @@ tra.auto + import setup %0Aexcept @@ -1228,43 +1228,164 @@ -print %3E%3E sys.stderr, 'To build nova +from setuptools import setup%0A print %22Warning: DistUtilsExtra required to use i18n builders. %22%0A print %22To build nova with support for message catalogs, you @@ -1394,37 +1394,23 @@ eed -'%5C +%22 %0A - ' +print %22 http @@ -1453,119 +1453,17 @@ xtra -'%0A sys.exit(1)%0Aassert DistUtilsExtra.auto.__version__ %3E= -' 2.18 -',%5C%0A 'needs DistUtilsExtra.auto %3E= 2.18' +%22 %0A%0Age @@ -3632,28 +3632,8 @@ ta%0A%0A -DistUtilsExtra.auto. setu
268fa37807fed07739d4e81eab7d1fbcc5842db9
Remove long_description from setup.py
setup.py
setup.py
#!/usr/bin/env python from setuptools import find_packages, setup # setup the project setup( name='cmsplugin-newsplus', version='1.0.0', description='Simple news plugin for django-cms 3.x', long_description=open('README.rst').read(), author='Nimbis Services, Inc.', author_email='devops@nimbisservices.com', url='https://github.com/nimbis/cmsplugin-newsplus/', packages=find_packages(exclude=["tests", ]), license='BSD', classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Django', ], include_package_data=True, install_requires=[ 'Django', 'django-cms >= 2.4', 'djangocms-text-ckeditor >= 2.0', 'Pillow', ], zip_safe=False )
Python
0
@@ -201,56 +201,8 @@ x',%0A - long_description=open('README.rst').read(),%0A
c5e8059975115385f225029ba5c7380673524122
Version bump for css taming.
setup.py
setup.py
from setuptools import setup f = open('README.rst') long_description = f.read().strip() long_description = long_description.split('split here', 1)[1] f.close() setup( name='tw2.jit', version='2.0.4', description='toscawidgets2 wrapper for the javascript infovis toolkit(jit)', long_description=long_description, author='Ralph Bean', author_email='rbean@redhat.com', url='http://github.com/toscawidgets/tw2.jit', license='MIT', install_requires=[ "tw2.core>=2.0.0", "tw2.jquery", "genshi", "mako", "tw2.sqla", "sqlalchemy", "BeautifulSoup", ], packages=[ 'tw2', 'tw2.jit', 'tw2.jit.samples', 'tw2.jit.widgets', ], namespace_packages = ['tw2'], zip_safe=False, include_package_data=True, entry_points=""" [tw2.widgets] # Register your widgets so they can be listed in the WidgetBrowser tw2.jit = tw2.jit """, keywords = [ 'toscawidgets.widgets', ], classifiers = [ 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved :: MIT License', 'Environment :: Web Environment', 'Environment :: Web Environment :: ToscaWidgets', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Software Development :: Widget Sets', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: JavaScript', ], )
Python
0
@@ -203,9 +203,9 @@ 2.0. -4 +5 ',%0A
7afb5f15b86adcc0128d756df455534aaa381e97
Version 1.10.2.
setup.py
setup.py
from setuptools import setup, find_packages import sys, os version = '1.10.0' install_requires = [ # -*- Extra requirements: -*- ] setup(name='twitter', version=version, description="An API and command-line toolset for Twitter (twitter.com)", long_description=open("./README", "r").read(), # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: End Users/Desktop", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Communications :: Chat :: Internet Relay Chat", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", "Topic :: Utilities", "License :: OSI Approved :: MIT License", ], keywords='twitter, IRC, command-line tools, web 2.0', author='Mike Verdone', author_email='mike.verdone+twitterapi@gmail.com', url='http://mike.verdone.ca/twitter/', license='MIT License', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=True, install_requires=install_requires, entry_points=""" # -*- Entry points: -*- [console_scripts] twitter=twitter.cmdline:main twitterbot=twitter.ircbot:main twitter-log=twitter.logger:main twitter-archiver=twitter.archiver:main twitter-follow=twitter.follow:main twitter-stream-example=twitter.stream_example:main """, )
Python
0
@@ -69,17 +69,17 @@ = '1.10. -0 +2 '%0A%0Ainsta