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
2e43eb089dee46e4fab229a49429d231b23396ed
update the metadata
setup.py
setup.py
#!/usr/bin/env python import os, os.path from distutils.core import setup, Extension import distutils.msvccompiler source_files = ["Engine.cpp", "Wrapper.cpp", "PyV8.cpp"] macros = [("BOOST_PYTHON_STATIC_LIB", None)] third_party_libraries = ["python", "boost", "v8"] include_dirs = os.environ["INCLUDE"].split(';') + [os.path.join("lib", lib, "inc") for lib in third_party_libraries] library_dirs = os.environ["LIB"].split(';') + [os.path.join("lib", lib, "lib") for lib in third_party_libraries] libraries = ["winmm"] pyv8 = Extension(name = "_PyV8", sources = [os.path.join("src", file) for file in source_files], define_macros = macros, include_dirs = include_dirs, library_dirs = library_dirs, libraries = libraries, extra_compile_args = ["/O2", "/GL", "/MT", "/EHsc", "/Gy", "/Zi"], extra_link_args = ["/DLL", "/OPT:REF", "/OPT:ICF", "/MACHINE:X86"], ) setup(name='PyV8', version='0.1', description='Python Wrapper for Google V8 Engine', author='Flier Lu', author_email='flier.lu@gmail.com', url='http://code.google.com/p/pyv8/', license="Apache 2.0", py_modules=['PyV8'], ext_modules=[pyv8] )
Python
0.999993
@@ -1127,195 +1127,1177 @@ -author='Flier Lu',%0D%0A author_email='flier.lu@gmail.com',%0D%0A url='http://code.google.com/p/pyv8/',%0D%0A license=%22Apache 2.0%22,%0D%0A py_modules=%5B'PyV8'%5D,%0D%0A ext_modules=%5Bpyv8 +long_description=%22PyV8? is a python wrapper for Google V8 engine, it act as a bridge between the Python and JavaScript? objects, and support to hosting Google's v8 engine in a python script.%22,%0D%0A platforms=%22x86%22,%0D%0A author='Flier Lu',%0D%0A author_email='flier.lu@gmail.com',%0D%0A url='http://code.google.com/p/pyv8/',%0D%0A download_url='http://code.google.com/p/pyv8/downloads/list',%0D%0A license=%22Apache Software License%22,%0D%0A py_modules=%5B'PyV8'%5D,%0D%0A ext_modules=%5Bpyv8%5D,%0D%0A classifiers=%5B%0D%0A 'Development Status :: 4 - Beta',%0D%0A 'Environment :: Win32 (MS Windows)',%0D%0A 'Intended Audience :: Developers',%0D%0A 'Intended Audience :: System Administrators',%0D%0A 'License :: OSI Approved :: Apache Software License',%0D%0A 'Natural Language :: English',%0D%0A 'Operating System :: Microsoft :: Windows',%0D%0A 'Programming Language :: C++',%0D%0A 'Programming Language :: Python',%0D%0A 'Topic :: Internet',%0D%0A 'Topic :: Internet :: WWW/HTTP',%0D%0A 'Topic :: Software Development',%0D%0A 'Topic :: Software Development :: Libraries :: Python Modules',%0D%0A 'Topic :: Utilities', %0D%0A %5D%0D%0A
e6fa2ba2c7298cf2d3482961d76119c928fb2ed0
add example
setup.py
setup.py
# Copyright (C) 2015 Bitquant Research Laboratories (Asia) Limited # Released under the Simplified BSD License from setuptools import ( setup, find_packages, ) setup( name="algobroker", version = "0.0.1", author="Joseph C Wang", author_email='joequant@gmail.com', url="https://github.com/joequant/algobroker", description="Algorithmic trading broker", long_description="""Algobroker is an interface to trading and events""", license="BSD", packages=find_packages(), setup_requires = ['pyzmq', 'msgpack-python', 'plivo', 'twilio'], use_2to3 = True )
Python
0.000002
@@ -509,16 +509,82 @@ ages(),%0A + package_data = %7B'algobroker': %5B'algobroker/keys/*.example'%5D%7D,%0A setu @@ -667,34 +667,8 @@ ivo' -,%0A 'twilio' %5D,%0A
78674a31aca536309dea38aeb6ac1271910248bb
Bump up version number
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.md') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='apush', version='0.1.0', description='A simple Apple push notification service provider', long_description=readme, author='Barum Rho', author_email='barum@barumrho.com', url='https://github.com/barumrho/apush', license=license, keywords='apple push notification', packages=find_packages() )
Python
0.000011
@@ -210,11 +210,11 @@ ='0. -1.0 +2.1 ',%0A
8cd82d462132e0a5ac74bd540c6f1f092af73056
Bump version
setup.py
setup.py
# encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com> """ from __future__ import unicode_literals import io import os.path import setuptools import sys MISC_DIR = "misc" REQUIREMENT_DIR = "requirements" with io.open("README.rst", encoding="utf8") as f: long_description = f.read() with io.open(os.path.join(MISC_DIR, "summary.txt"), encoding="utf8") as f: summary = f.read() with open(os.path.join(REQUIREMENT_DIR, "requirements.txt")) as f: install_requires = [line.strip() for line in f if line.strip()] with open(os.path.join(REQUIREMENT_DIR, "test_requirements.txt")) as f: tests_require = [line.strip() for line in f if line.strip()] needs_pytest = set(["pytest", "test", "ptr"]).intersection(sys.argv) pytest_runner = ["pytest-runner"] if needs_pytest else [] author = "Tsuyoshi Hombashi" email = "gogogo.vm@gmail.com" project_name = "DataProperty" setuptools.setup( name=project_name, version="0.15.2", url="https://github.com/thombashi/" + project_name, bugtrack_url="https://github.com/thombashi/{:s}/issues".format( project_name), author=author, author_email=email, description=summary, include_package_data=True, install_requires=install_requires, keywords=["data", "property"], license="MIT License", long_description=long_description, maintainer=author, maintainer_email=email, packages=setuptools.find_packages(exclude=["test*"]), setup_requires=[] + pytest_runner, tests_require=tests_require, classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2", "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 :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", ], )
Python
0
@@ -960,11 +960,11 @@ %220.1 -5.2 +6.0 %22,%0A
7f7e4a73c9b0dfe395ed71fb19f6fa76186146da
Use system default python interpreter in setup.py
setup.py
setup.py
#!/usr/bin/env python2 from distutils.core import setup versionfile = open('VERSION', 'r') ver = versionfile.read().strip() versionfile.close() setup(name='SCoT', version=ver, description='Source Connectivity Toolbox', author='Martin Billinger', author_email='martin.billinger@tugraz.at', url='https://github.com/SCoT-dev/SCoT', packages=['scot', 'scot.backend', 'scot.builtin', 'eegtopo', 'eegtopo.geometry'], install_requires=['numpy >=1.7', 'scipy >=0.12'] )
Python
0.000001
@@ -14,17 +14,16 @@ v python -2 %0A%0Afrom d
3edb02b36a85712e896e785c9205f53258a48428
Update setup.py
setup.py
setup.py
import os.path import setuptools import sys REQUIREMENT_DIR = "requirements" needs_pytest = set(["pytest", "test", "ptr"]).intersection(sys.argv) pytest_runner = ["pytest-runner"] if needs_pytest else [] with open("README.rst") as fp: long_description = fp.read() with open(os.path.join("docs", "pages", "introduction", "summary.txt")) as f: summary = f.read() with open(os.path.join(REQUIREMENT_DIR, "requirements.txt")) as f: install_requires = [line.strip() for line in f if line.strip()] with open(os.path.join(REQUIREMENT_DIR, "test_requirements.txt")) as f: tests_require = [line.strip() for line in f if line.strip()] setuptools.setup( name="pytablereader", version="0.1.1", url="https://github.com/thombashi/pytablereader", bugtrack_url="https://github.com/thombashi/pytablereader/issues", author="Tsuyoshi Hombashi", author_email="gogogo.vm@gmail.com", description=summary, include_package_data=True, install_requires=install_requires, keywords=[ "table", "reader", "CSV", "Excel", "HTML", "MediaWiki", "JSON", ], long_description=long_description, license="MIT License", packages=setuptools.find_packages(exclude=["test*"]), setup_requires=pytest_runner, tests_require=tests_require, classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2", "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 :: Database", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", ], )
Python
0.000001
@@ -706,11 +706,11 @@ =%220. -1.1 +2.0 %22,%0A @@ -1045,23 +1045,16 @@ er%22, - %22CSV%22, %0A %22Ex @@ -1049,16 +1049,23 @@ %0A + %22CSV%22, %22Excel%22 @@ -1073,16 +1073,28 @@ %22HTML%22, + %22Markdown%22, %22MediaW
052ed182ec5171f9a36d1364722883ed70c28e48
Update descr.
setup.py
setup.py
#! /usr/bin/env python # Last Change: Sun Sep 14 05:00 PM 2008 J # Copyright (C) 2008 Cournapeau David <cournape@gmail.com> descr = """Talkbox, to make your numpy environment speech aware ! This is set of python modules for speech/signal processing. The goal of this toolbox is to be a sandbox for features which may end up in scipy at some point. I want to implement the following features: * Spectrum estimation related functions: both parametic (lpc, high resolution methods like music and co), and non-parametric (Welch, periodogram) will be implemented * Basic signal processing tasks such as resampling * Speech related functionalities: mfcc, mel spectrum, etc.. * More as it comes The 'vision' is to have a pure python implementation for everything, with optional C/C++/Lisp for speed, because I want this to be educational and useful: reading signal processing in C is no fun, and neither is waiting for your mfcc computation one hour before ICASSP submission deadline :).""" import os import sys DISTNAME = 'scikits.talkbox' DESCRIPTION = 'Talkbox, a set of python modules for speech/signal processing' LONG_DESCRIPTION = descr MAINTAINER = 'David Cournapeau', MAINTAINER_EMAIL = 'david@ar.media.kyoto-u.ac.jp', URL = 'http://projects.scipy.org/scipy/scikits' LICENSE = 'MIT' DOWNLOAD_URL = URL import setuptools from numpy.distutils.core import setup def configuration(parent_package='', top_path=None): if os.path.exists('MANIFEST'): os.remove('MANIFEST') from numpy.distutils.misc_util import Configuration config = Configuration(None, parent_package, top_path, maintainer = MAINTAINER, maintainer_email = MAINTAINER_EMAIL, description = DESCRIPTION, license = LICENSE, url = URL, download_url = DOWNLOAD_URL, long_description = LONG_DESCRIPTION) #config.set_options( # ignore_setup_xxx_py=True, # assume_default_configuration=True, # delegate_options_to_subpackages=True, # quiet=True, #) config.add_subpackage('scikits') config.add_subpackage(DISTNAME) #config.add_data_files('scikits/__init__.py') return config if __name__ == "__main__": setup(configuration = configuration, name = DISTNAME, install_requires = 'numpy', namespace_packages = ['scikits'], packages = setuptools.find_packages(), version = '0.0.1', include_package_data = True, #test_suite="tester", # for python setup.py test zip_safe = True, # the package can run out of an .egg file classifiers = [ 'Development Status :: 1 - Planning', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Topic :: Scientific/Engineering'], )
Python
0
@@ -189,19 +189,22 @@ are !%0A%0AT -his +alkbox is set @@ -353,50 +353,63 @@ nt. -I want to implement the following features +The following features are planned before a 1.0 release :%0A%0A @@ -568,28 +568,63 @@ ram) - will be implemented +%0A * Fourier-like transforms (DCT, DST, MDCT, etc...) %0A @@ -767,219 +767,248 @@ es%0A%0A -The 'vision' is to have a pure python implementation for everything, with%0Aoptional C/C++/Lisp for speed, because I want this to be educational and%0Auseful: reading signal processing in C is no fun, and neither is +I want talkbox to be useful for both research and educational purpose. As such,%0Aa requirement is to have a pure python implementation for everything - for%0Aeducational purpose and reproducibility - and optional C/C++/Lisp for speed -%0Abecause wai @@ -1015,17 +1015,17 @@ ting for -%0A + your mfc @@ -1071,17 +1071,17 @@ bmission - +%0A deadline
ffd9768ce16a3107b5c961fc1c806805ca341433
move fmtstr dependency to extras_require
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import platform from distutils.command.build import build from bpython import __version__, package_dir try: from setuptools import setup from setuptools.command.install import install as _install using_setuptools = True except ImportError: from distutils.core import setup from distutils.command.install import install as _install using_setuptools = False try: from distutils.command.build_py import build_py_2to3 as build_py except ImportError: from distutils.command.build_py import build_py try: from babel.messages.frontend import compile_catalog as _compile_catalog from babel.messages.frontend import extract_messages as _extract_messages from babel.messages.frontend import update_catalog as _update_catalog from babel.messages.frontend import init_catalog as _init_catalog using_translations = True except ImportError: using_translations = False try: import sphinx from sphinx.setup_command import BuildDoc if sphinx.__version__ == '1.1.2': # Sphinx 1.1.2 is buggy and building bpython with that version fails. # See #241. using_sphinx = False else: using_sphinx = True except ImportError: using_sphinx = False class install(_install): """Force install to run build target.""" def run(self): self.run_command('build') _install.run(self) cmdclass = dict(build_py=build_py, build=build, install=install) translations_dir = os.path.join(package_dir, 'translations') # localization options if using_translations: class compile_catalog(_compile_catalog): def initialize_options(self): """Simply set default domain and directory attributes to the correct path for bpython.""" _compile_catalog.initialize_options(self) self.domain = 'bpython' self.directory = translations_dir self.use_fuzzy = True class update_catalog(_update_catalog): def initialize_options(self): """Simply set default domain and directory attributes to the correct path for bpython.""" _update_catalog.initialize_options(self) self.domain = 'bpython' self.output_dir = translations_dir self.input_file = os.path.join(translations_dir, 'bpython.pot') class extract_messages(_extract_messages): def initialize_options(self): """Simply set default domain and output file attributes to the correct values for bpython.""" _extract_messages.initialize_options(self) self.domain = 'bpython' self.output_file = os.path.join(translations_dir, 'bpython.pot') class init_catalog(_init_catalog): def initialize_options(self): """Simply set default domain, input file and output directory attributes to the correct values for bpython.""" _init_catalog.initialize_options(self) self.domain = 'bpython' self.output_dir = translations_dir self.input_file = os.path.join(translations_dir, 'bpython.pot') build.sub_commands.insert(0, ('compile_catalog', None)) cmdclass['compile_catalog'] = compile_catalog cmdclass['extract_messages'] = extract_messages cmdclass['update_catalog'] = update_catalog cmdclass['init_catalog'] = init_catalog if using_sphinx: class BuildDocMan(BuildDoc): def initialize_options(self): BuildDoc.initialize_options(self) self.builder = 'man' self.source_dir = 'doc/sphinx/source' self.build_dir = 'build' build.sub_commands.insert(0, ('build_sphinx_man', None)) cmdclass['build_sphinx_man'] = BuildDocMan if platform.system() in ['FreeBSD', 'OpenBSD']: man_dir = 'man' else: man_dir = 'share/man' # manual pages man_pages = [ (os.path.join(man_dir, 'man1'), ['build/man/bpython.1']), (os.path.join(man_dir, 'man5'), ['build/man/bpython-config.5']), ] else: man_pages = [] data_files = [ # desktop shortcut (os.path.join('share', 'applications'), ['data/bpython.desktop']) ] data_files.extend(man_pages) # translations mo_files = list() for language in os.listdir(translations_dir): mo_subpath = os.path.join(language, 'LC_MESSAGES', 'bpython.mo') if os.path.exists(os.path.join(translations_dir, mo_subpath)): mo_files.append(mo_subpath) setup( name="bpython", version = __version__, author = "Bob Farrell, Andreas Stuehrk et al.", author_email = "robertanthonyfarrell@gmail.com", description = "Fancy Interface to the Python Interpreter", license = "MIT/X", url = "http://www.bpython-interpreter.org/", long_description = """bpython is a fancy interface to the Python interpreter for Unix-like operating systems.""", install_requires = [ 'pygments', 'fmtstr>=0.0.4' ], tests_require = ['mock'], packages = ["bpython", "bpython.test", "bpython.translations", "bpdb", "bpython.scrollfrontend"], data_files = data_files, package_data = { 'bpython': ['logo.png'], 'bpython.translations': mo_files, 'bpython.test': ['test.config', 'test.theme'] }, entry_points = { 'console_scripts': [ 'bpython = bpython.cli:main', 'bpython-urwid = bpython.urwid:main', 'bpython-scroll = bpython.scroll:main', ], 'gui_scripts': [ 'bpython-gtk = bpython.gtk_:main' ] }, scripts = ([] if using_setuptools else ['data/bpython', 'data/bpython-gtk', 'data/bpython-scroll', 'data/bpython-urwid']), cmdclass = cmdclass, test_suite = 'bpython.test' ) # vim: fileencoding=utf-8 sw=4 ts=4 sts=4 ai et sta
Python
0
@@ -4981,26 +4981,66 @@ ygments' -,%0A +%0A %5D,%0A extras_require = %7B%0A 'scroll': %5B 'fmtstr%3E @@ -5046,22 +5046,23 @@ %3E=0.0.4' +%5D %0A -%5D +%7D ,%0A te @@ -5560,24 +5560,33 @@ .scroll:main + %5Bscroll%5D ',%0A %5D
bffebebd86d09f5924461959401ef3698b4e47d5
Create version 0.3.23
setup.py
setup.py
from setuptools import setup setup(name='DukeDSClient', version='0.3.22', description='Command line tool(ddsclient) to upload/manage projects on the duke-data-service.', url='https://github.com/Duke-GCB/DukeDSClient', keywords='duke dds dukedataservice', author='John Bradley', license='MIT', packages=['ddsc','ddsc.core'], install_requires=[ 'requests', 'PyYAML', 'pytz', 'future', 'six', ], test_suite='nose.collector', tests_require=['nose', 'mock'], entry_points={ 'console_scripts': [ 'ddsclient = ddsc.__main__:main' ] }, classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Topic :: Utilities', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], )
Python
0
@@ -73,17 +73,17 @@ n='0.3.2 -2 +3 ',%0A
36984a3e951e5baed0041851901aa97b359ef840
add a comma
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[math]', ] metadata = dict( name="discretize", version="0.4.10", 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.999987
@@ -2192,16 +2192,17 @@ ut Numpy +, for exa
85950c20a13f34bb4a52ac7fa19ffaac8a1c7453
Drop 2 support.
setup.py
setup.py
# vim: set et nosi ai ts=4 sts=4 sw=4: # -*- coding: utf-8 -*- import os from setuptools import setup def read_local_file(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as f: return f.read().strip() README = read_local_file('README.md') VERSION = __import__('simple').__version__ setup( name='simple-packages', version=VERSION, description='Simple, consistent APIs for popular Python packages.', long_description=README, author='Grok Learning', author_email='social@groklearning.com', maintainer='Tim Dawborn', maintainer_email='tim.dawborn@gmail.com', url='https://github.com/groklearning/simple-packages', license='MIT', package_dir={ 'simple': 'simple', 'simple.PIL': 'simple/PIL', }, packages=[ 'simple', 'simple.PIL', ], install_requires=[ 'six', 'pillow >= 3.2.0', ], test_suite='nose.collector', tests_require=[ 'nose', ], classifiers=[ 'Development Status :: 5 - Production/Stable', '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.3', 'Programming Language :: Python :: 3.4', ], )
Python
0
@@ -876,23 +876,8 @@ s=%5B%0A - 'six',%0A @@ -1190,104 +1190,8 @@ n',%0A - 'Programming Language :: Python :: 2',%0A 'Programming Language :: Python :: 2.7',%0A
250970a54bc04cde46685692ec71d164ed17a484
Update to buildbot 2.4.0
setup.py
setup.py
from setuptools import setup, find_packages setup( name='autobuilder', version='2.1.0', packages=find_packages(), license='MIT', author='Matt Madison', author_email='matt@madison.systems', entry_points={ 'console_scripts': [ 'store-artifacts = autobuilder.scripts.store_artifacts:main', ] }, include_package_data=True, package_data={ 'autobuilder': ['templates/*.txt'] }, install_requires=['buildbot[tls]>=2.2.0', 'buildbot-worker>=2.2.0', 'buildbot-www>=2.2.0', 'buildbot-console-view>=2.2.0', 'buildbot-grid-view>=2.2.0', 'buildbot-waterfall-view>=2.2.0' 'buildbot-badges>=2.2.0', 'boto3', 'botocore', 'treq', 'twisted', 'python-dateutil', 'jinja2'] )
Python
0
@@ -88,9 +88,9 @@ ='2. -1 +2 .0', @@ -482,25 +482,25 @@ bot%5Btls%5D%3E=2. -2 +4 .0',%0A @@ -530,25 +530,25 @@ t-worker%3E=2. -2 +4 .0',%0A @@ -575,25 +575,25 @@ dbot-www%3E=2. -2 +4 .0',%0A @@ -625,33 +625,33 @@ console-view%3E=2. -2 +4 .0',%0A @@ -680,25 +680,25 @@ rid-view%3E=2. -2 +4 .0',%0A @@ -740,17 +740,17 @@ view%3E=2. -2 +4 .0'%0A @@ -787,17 +787,17 @@ dges%3E=2. -2 +4 .0',%0A
33453f6ffead26dfddb50336a930b000d01b8795
set correct version number
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf8 -*- __version__ = "$Revision$ $Date$" __author__ = "Guillaume Bour <guillaume@bour.cc>" __license__ = """ Copyright (C) 2010-2011, Guillaume Bour <guillaume@bour.cc> This program 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, version 3. This program 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 this program. If not, see <http://www.gnu.org/licenses/>. """ import os, os.path from setuptools import setup, Command from setuptools.command.install_lib import install_lib from distutils.dir_util import ensure_relative from distutils.util import convert_path, change_root from setuptools.dist import Distribution from setuptools.command.install import install class _Distribution(Distribution): def __init__(self, *args, **kwargs): # add new option for motherapps self.motherapps = [] Distribution.__init__(self, *args, **kwargs) # automatically install our install_lib version if not 'install' in self.cmdclass: self.cmdclass['install']= _install if not 'install_lib' in self.cmdclass: self.cmdclass['install_lib']= _install_lib def has_pure_modules(self): """Ensure install_lib.run() is executed even if we have no python modules """ return True class _install(install): def _fix_paths(self): self.install_apps = self.install_base # manage --prefix option (i.e is set when in an environment created with *virtualenv*) if self.prefix_option is None and self.install_base == '/usr': # default prefix # TODO: specific install paths may not be changes if explicitly specified by user on command line (--install-scripts and --install-data options) (self.install_scripts, self.install_data, self.install_apps) = ('/usr/bin', '/', '/') # manage --root option (is set when doing "setup.py bdist") if self.root is not None: for p in ('scripts','data','apps'): setattr(self, 'install_'+p, os.path.join(self.root, ensure_relative(getattr(self, 'install_'+p)))) def finalize_options(self): install.finalize_options(self) self._fix_paths() def run(self): self._fix_paths() install.run(self) class _install_lib(install_lib): excludes = ['.svn'] dest = 'var/lib/mother/apps' _pyfiles = [] def run(self): if self.dry_run or len(self.distribution.motherapps) == 0: return inst = self.get_finalized_command('install') for app in self.distribution.motherapps: self._copy_tree( os.path.join(*app.split('.')), os.path.join(inst.install_apps, self.dest) ) self.byte_compile(self._pyfiles) #do not copy webapp in python standard directory #install_lib.run(self) def _copy_tree(self, src, dst): """We replace Command.copy_tree() as we need to exclude .svn directories """ _excl = list(self.excludes) # we keep only the last dir of src path dststart = len(src.split(os.sep))-1 self.mkpath(os.path.join(dst, *src.split(os.sep)[dststart:])) for root, dirs, files in os.walk(src): if root in _excl: [_excl.append(os.path.join(root,d)) for d in dirs]; continue _dst = os.path.join(dst, *root.split(os.sep)[dststart:]) for d in dirs: if d in _excl: _excl.append(os.path.join(root, d)) else: self.mkpath(os.path.join(_dst, d)) [self._copy_file(os.path.join(root, f), os.path.join(_dst, f)) for f in files if f not in _excl] def _copy_file(self, src, dst): install_lib.copy_file(self,src, dst) if dst.endswith('.py'): self._pyfiles.append(dst) setup( name = 'strawberry', version = '0.1.0', description = 'WebApp - Web links bookmark', author = 'Guillaume Bour', author_email = 'guillaume@bour.cc', url = 'http://devedge.bour.cc/wiki/Strawberry/', license = 'GNU Affero General Public License v3', classifiers = [ 'Development Status :: 3 - Alpha', 'Environment :: Console', 'Environment :: Plugins', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: GNU Affero General Public License v3', 'Natural Language :: English', 'Natural Language :: French', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Topic :: Internet', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ], long_description = """Strawberry is a links bookmarking self-hosted service. It allows you to store, manage, classify and consult your preferred links from anywhere. Strawberry is self-hosted, meaning you need a server to host your strawberry instance. Strawberry is written in python, as a *Mother* WebApp """, install_requires = ['magic >= 0.1', 'mother-webapps-framework >= 0.1.0, < 0.2'], distclass = _Distribution, motherapps = ['strawberry'], )
Python
0.000005
@@ -3952,19 +3952,17 @@ = ' -0.1 +3 .0',%0A%09de
ec1afb1d57ea4c674475c9510de1e1964372043b
Add pripnglsch to setup.py
setup.py
setup.py
# PyPNG setup.py # This is the setup.py script used by distutils. # You can install the png module into your Python distribution with: # python setup.py install # You can also do other standard distutil type things, but you can refer # to the distutil documentation for that. # This script is also imported as a module by the Sphinx conf.py script # in the man directory, so that this file forms a single source for # metadata. # http://docs.python.org/release/2.4.4/dist/setup-script.html from distutils.core import setup def get_version(): from os.path import dirname, join for line in open(join(dirname(__file__), "code", "png.py")): if '__version__' in line: version = line.split('"')[1] break return version conf = dict( name='pypng', version=get_version(), description='Pure Python PNG image encoder/decoder', long_description=""" PyPNG allows PNG image files to be read and written using pure Python. It's available from github.com https://github.com/drj11/pypng """, author='David Jones', author_email='drj@pobox.com', url='https://github.com/drj11/pypng', package_dir={'': 'code'}, py_modules=['png', 'test_png', 'pngsuite'], scripts=[ "code/prichunkpng", "code/priforgepng", "code/pripalpng", "code/pripamtopng", "code/pripngtopam", "code/priweavepng" ], classifiers=[ 'Topic :: Multimedia :: Graphics', 'Topic :: Software Development :: Libraries :: Python Modules', 'Programming Language :: Python', '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', 'Programming Language :: Python :: 3.7', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', ], ) conf['download_url'] = \ 'https://github.com/drj11/pypng/archive/%(name)s-%(version)s.tar.gz' % conf if __name__ == '__main__': setup(**conf)
Python
0
@@ -1336,24 +1336,51 @@ ipamtopng%22,%0A + %22code/pripnglsch%22,%0A %22cod
61c42e177f1a6ca9a74bdda2da9ae0dcac06e74b
fix doc build broken by Sphinx 5
setup.py
setup.py
import pathlib from setuptools import setup, find_packages setup( name='graphviz', version='0.20.1.dev0', author='Sebastian Bank', author_email='sebastian.bank@uni-leipzig.de', description='Simple Python interface for Graphviz', keywords='graph visualization dot render', license='MIT', url='https://github.com/xflr6/graphviz', project_urls={ 'Documentation': 'https://graphviz.readthedocs.io', 'Changelog': 'https://graphviz.readthedocs.io/en/latest/changelog.html', 'Issue Tracker': 'https://github.com/xflr6/graphviz/issues', 'CI': 'https://github.com/xflr6/graphviz/actions', 'Coverage': 'https://codecov.io/gh/xflr6/graphviz', }, packages=find_packages(), platforms='any', python_requires='>=3.7', extras_require={ 'dev': ['tox>=3', 'flake8', 'pep8-naming', 'wheel', 'twine'], 'test': ['pytest>=7', 'pytest-mock>=3', 'mock>=4', 'pytest-cov', 'coverage'], 'docs': ['sphinx>=4', 'sphinx-autodoc-typehints', 'sphinx-rtd-theme'], }, long_description=pathlib.Path('README.rst').read_text(encoding='utf-8'), classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Topic :: Scientific/Engineering :: Visualization', ], )
Python
0
@@ -1027,16 +1027,19 @@ phinx%3E=4 +,%3C5 ', 'sphi
bb3d855d7335a456b0a15323e49aa0b40b04c38c
Bump the version number.
setup.py
setup.py
from setuptools import setup setup( name = 'pyTrivialCache', version = '0.2.0', description = "The poor man's API for manipulating a file system cache.", packages = [ 'pyTrivialCache' ], author = 'Roberto Reale', author_email = 'rober.reale@gmail.com', url = 'https://github.com/robertoreale/pyTrivialCache', keywords = [ 'filesystem', 'cache' ], install_requires = [ ], test_suite = 'nose.collector', tests_require = ['nose'], entry_points={ 'console_scripts': [ 'pyTrivialCache = pyTrivialCache.__main__:main' ] }, ) # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
Python
0.000002
@@ -80,9 +80,9 @@ '0. -2 +3 .0',
8d14ced65919fa6f94b041c79ae60439db4e243f
Add joblib to install_requires
setup.py
setup.py
from setuptools import setup def readme(): with open("README.rst") as readme_file: return readme_file.read() configuration = { "name": "pynndescent", "version": "0.3.0", "description": "Nearest Neighbor Descent", "long_description": readme(), "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Science/Research", "Intended Audience :: Developers", "License :: OSI Approved", "Programming Language :: C", "Programming Language :: Python", "Topic :: Software Development", "Topic :: Scientific/Engineering", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: Unix", "Operating System :: MacOS", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", ], "keywords": "nearest neighbor, knn, ANN", "url": "http://github.com/lmcinnes/pynndescent", "author": "Leland McInnes", "author_email": "leland.mcinnes@gmail.com", "maintainer": "Leland McInnes", "maintainer_email": "leland.mcinnes@gmail.com", "license": "BSD", "packages": ["pynndescent"], "install_requires": ["scikit-learn >= 0.18", "scipy >= 1.0", "numba >= 0.39"], "ext_modules": [], "cmdclass": {}, "test_suite": "nose.collector", "tests_require": ["nose"], "data_files": (), "zip_safe": True, } setup(**configuration)
Python
0
@@ -1340,16 +1340,34 @@ %3E= 0.39%22 +, %22joblib %3E= 0.11%22 %5D,%0A %22
f225727086739e5bb7a2baa057f828ca9b02be58
Bump Fluent Contents required version to 1.2+
setup.py
setup.py
from __future__ import print_function import datetime import os import setuptools # Make `pip install -e .` much faster. # See: https://bitbucket.org/pypa/setuptools/pull-requests/140/big-performance-fix-for-find_packages-by/diff#comment-18174057 def find_packages(*paths): packages = [] for path in paths or ['.']: path = os.path.abspath(path) cwd = os.getcwd() os.chdir(os.path.dirname(path)) for dirpath, dirnames, filenames in os.walk(os.path.basename(path)): if '__init__.py' in filenames: packages.append('.'.join(dirpath.split(os.path.sep))) else: dirnames[:] = [] os.chdir(cwd) return packages # Allow installation without git repository, e.g. inside Docker. if os.path.exists('.git'): kwargs = dict( use_scm_version={'version_scheme': 'post-release'}, setup_requires=['setuptools_scm'], ) else: kwargs = dict(version='0+d' + datetime.date.today().strftime('%Y%m%d')) with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f: long_description = f.read() setuptools.setup( name='django-icekit', author='Interaction Consortium', author_email='studio@interaction.net.au', url='https://github.com/ic-labs/django-icekit', description='A modular content CMS by Interaction Consortium.', long_description=long_description, license='MIT', packages=find_packages('icekit'), include_package_data=True, install_requires=[ 'django-any-urlfield', 'django-app-namespace-template-loader', 'django-bootstrap3', 'django-compressor', 'django-el-pagination', 'django-fluent-contents>=1.1.9', # For JS compatibility, see #138 'django-fluent-pages!=1.1', # Avoid 1.1 with missing import: https://github.com/django-fluent/django-fluent-pages/issues/125 'django-model-settings', 'django-mptt', 'django-multiurl', # import pattern changed in 0.8; version 1 to 1.0.1 has bug with parent # admins: github.com/django-polymorphic/django-polymorphic/pull/246 'django-object-actions>=0.7', # See: https://github.com/crccheck/django-object-actions/issues/45 'django-polymorphic>=0.8,!=1,!=1.0.1', 'django-wysiwyg', 'django_extensions', 'html5lib==0.999', # See: https://github.com/html5lib/html5lib-python/issues/189 and https://github.com/pydanny-archive/django-wysiwyg/issues/61 'nltk', 'Pillow>=4', # See: https://github.com/python-pillow/Pillow/issues/2206 'pip-tools', 'requests', 'unidecode', ], extras_require={ 'api': [ 'djangorestframework', ], 'brightcove': [ 'django-brightcove', ], 'dev': [ 'django-debug-toolbar', # 'glamkit-fallbackserve', 'ipdb', 'ipython<5', # Prompt does not work in Docker Cloud web terminal 'mkdocs', 'Werkzeug', ], 'django18': [ 'Django>=1.8,<1.9', # LTS ], 'forms': [ 'django-forms-builder', ], 'glamkit': [ 'glamkit-sponsors', 'icekit-events', 'icekit-press-releases>=0.81', 'glamkit-collections>=0.35', ], 'project': [ 'boto3', 'celery[redis]<4.0', 'ConcurrentLogHandler', 'django-celery', 'django-celery-email', 'django-countries', 'django-extensions', 'django-flat-theme<1.1.3', # See: https://github.com/elky/django-flat-theme/issues/30 'django-fluent-contents[markupoembeditemtext]', 'django-fluent-pages[redirectnodereversion]', 'django-master-password', 'django-polymorphic-auth', 'django-post-office', 'django-redis', 'django-reversion>=1.9.3,<1.10', # 1.9.3+ use DB transactions 1.10 has breaking changes for Django 1.9' 'django-storages', 'django-test-without-migrations', 'django-timezone', 'docutils', 'easy_thumbnails', 'flower', 'gunicorn', 'icekit-notifications', 'ixc-django-compressor', 'ixc-whitenoise', 'Jinja2', 'psycopg2', 'python-redis-lock[django]', 'pytz', 'raven', 'supervisor', ], 'search': [ 'django-fluent-pages[flatpage,fluentpage]', 'django-haystack', 'elasticsearch', 'elasticstack', ], 'test': [ 'celery[redis]==3.1.24', 'coverage', 'coveralls', 'django-dynamic-fixture', 'django-nose', 'django-webtest', 'djangorestframework', 'micawber', 'mock', 'nose-progressive', 'psycopg2', 'WebTest', ], 'docs': [ 'sphinx', 'sphinx-autobuild', 'recommonmark', ], }, **kwargs )
Python
0
@@ -1719,47 +1719,118 @@ %3E=1. -1.9 +2 ', # -For JS compatibility, see #138 +1.2+ has fix for placeholders in admin: https://github.com/django-fluent/django-fluent-contents/pull/89 %0A
047215a3e07e7cebf78e409602dd57a2709f8923
Update broken link in PyPi (Homepage)
setup.py
setup.py
import sys from setuptools import setup, find_packages from cement.utils import version VERSION = version.get_version() f = open('README.md', 'r') LONG = f.read() f.close() setup(name='cement', version=VERSION, description='CLI Framework for Python', long_description=LONG, long_description_content_type='text/markdown', classifiers=[], install_requires=[], keywords='cli framework', author='Data Folk Labs, LLC', author_email='derks@datafolklabs.com', url='http://builtoncement.org', license='BSD', packages=find_packages(exclude=['ez_setup', 'tests*']), package_data={'cement': ['cement/cli/templates/generate/*']}, include_package_data=True, zip_safe=False, test_suite='nose.collector', entry_points=""" [console_scripts] cement = cement.cli.main:main """, )
Python
0
@@ -499,16 +499,17 @@ rl='http +s ://built @@ -521,11 +521,11 @@ ent. -org +com ',%0A
f87bccbfda11d2c2d1a2ddb6611c1209e29289d9
revert preventing normalization (#174)
setup.py
setup.py
# Copyright 2018 Google LLC # # 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 io import os import setuptools # Disable version normalization performed by setuptools.setup() # Including this workaround for Python2.7 support try: # Try the approach of using sic(), added in setuptools 46.1.0 from setuptools import sic except ImportError: # Try the approach of replacing packaging.version.Version sic = lambda v: v try: # setuptools >=39.0.0 uses packaging from setuptools.extern from setuptools.extern import packaging except ImportError: # setuptools <39.0.0 uses packaging from pkg_resources.extern from pkg_resources.extern import packaging packaging.version.Version = packaging.version.LegacyVersion # Package metadata. name = "google-api-core" description = "Google API client core library" # Should be one of: # 'Development Status :: 3 - Alpha' # 'Development Status :: 4 - Beta' # 'Development Status :: 5 - Production/Stable' release_status = "Development Status :: 5 - Production/Stable" dependencies = [ "googleapis-common-protos >= 1.6.0, < 2.0dev", "protobuf >= 3.12.0", "google-auth >= 1.21.1, < 2.0dev", "requests >= 2.18.0, < 3.0.0dev", "setuptools >= 40.3.0", "packaging >= 14.3", "six >= 1.13.0", "pytz", 'futures >= 3.2.0; python_version < "3.2"', ] extras = { "grpc": "grpcio >= 1.29.0, < 2.0dev", "grpcgcp": "grpcio-gcp >= 0.2.2", "grpcio-gcp": "grpcio-gcp >= 0.2.2", } # Setup boilerplate below this line. package_root = os.path.abspath(os.path.dirname(__file__)) version = {} with open(os.path.join(package_root, "google/api_core/version.py")) as fp: exec(fp.read(), version) version = version["__version__"] readme_filename = os.path.join(package_root, "README.rst") with io.open(readme_filename, encoding="utf-8") as readme_file: readme = readme_file.read() # Only include packages under the 'google' namespace. Do not include tests, # benchmarks, etc. packages = [ package for package in setuptools.find_packages() if package.startswith("google") ] # Determine which namespaces are needed. namespaces = ["google"] if "google.cloud" in packages: namespaces.append("google.cloud") setuptools.setup( name=name, version=sic(version), description=description, long_description=readme, author="Google LLC", author_email="googleapis-packages@google.com", license="Apache 2.0", url="https://github.com/googleapis/python-api-core", classifiers=[ release_status, "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "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", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Operating System :: OS Independent", "Topic :: Internet", ], platforms="Posix; MacOS X; Windows", packages=packages, namespace_packages=namespaces, install_requires=dependencies, extras_require=extras, python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*", include_package_data=True, zip_safe=False, )
Python
0.000001
@@ -612,662 +612,8 @@ ls%0A%0A -# Disable version normalization performed by setuptools.setup()%0A# Including this workaround for Python2.7 support%0Atry:%0A # Try the approach of using sic(), added in setuptools 46.1.0%0A from setuptools import sic%0Aexcept ImportError:%0A # Try the approach of replacing packaging.version.Version%0A sic = lambda v: v%0A try:%0A # setuptools %3E=39.0.0 uses packaging from setuptools.extern%0A from setuptools.extern import packaging%0A except ImportError:%0A # setuptools %3C39.0.0 uses packaging from pkg_resources.extern%0A from pkg_resources.extern import packaging%0A packaging.version.Version = packaging.version.LegacyVersion%0A %0A# P @@ -2135,20 +2135,15 @@ ion= -sic( version -) ,%0A
ae279376122772dc189d744caa799c3a0916b38b
Fix setup.py
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() readme = open('README.rst').read() history = open('HISTORY.rst').read().replace('.. :changelog:', '') setup( name='django-bettertemplates', version='0.0.1', description='Django Better Templates', long_description=readme + '\n\n' + history, author='Sinnwerkstatt Medienagentur GmbH', author_email='web@sinnwerkstatt.com', url='https://github.com/sinnwerkstatt/django-bettertemplates', packages=[ 'bettertemplates', ], package_dir={'bettertemplates': 'bettertemplates'}, include_package_data=True, install_requires=['six'], license="BSD", zip_safe=False, keywords='Django Templates', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Natural Language :: English', "Programming Language :: Python :: 2", 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', ], )
Python
0.000001
@@ -273,19 +273,18 @@ 'README. -rst +md ').read(
761c6d6331b8031b957d772d203dcba2575eb908
Fix readthedocs URLs in the long description.
setup.py
setup.py
# Copyright 2013 Mark Dickinson # # 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 os.path from setuptools import setup, find_packages PROJECT_URL = "https://github.com/mdickinson/refcycle" def get_version_info(): """Extract version information as a dictionary from version.py.""" version_info = {} with open(os.path.join("refcycle", "version.py"), 'r') as f: version_code = compile(f.read(), "version.py", 'exec') exec(version_code, version_info) return version_info def long_description(version): with open('README.rst') as f: contents = f.read() # For a released version, we want the description to link to the # corresponding docs rather than the docs for master. contents = contents.replace( 'refcycle.readthedocs.org/en/latest', 'refcycle.readthedocs.org/en/maintenance-v{}'.format(version), ) return contents version_info = get_version_info() setup( name="refcycle", version=version_info['release'], author="Mark Dickinson", author_email="dickinsm@gmail.com", url=PROJECT_URL, license="Apache license", description="Find and visualise reference cycles between Python objects.", long_description=long_description(version_info['version']), install_requires=["six"], packages=find_packages(), classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "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", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Debuggers", ], data_files=[ ("", ["README.rst"]), ], )
Python
0.000019
@@ -1021,23 +1021,23 @@ ription( -version +release ):%0A w @@ -1220,16 +1220,48 @@ master.%0A + tag = 'v%7B%7D'.format(release)%0A cont @@ -1365,28 +1365,14 @@ ocs. +i o -rg /en/ -maintenance-v %7B%7D'. @@ -1378,23 +1378,19 @@ .format( -version +tag ),%0A ) @@ -1762,23 +1762,23 @@ n_info%5B' -version +release '%5D),%0A
36bb5f553f0488b8eba7c0b70c7a35ffccb47dbb
Add Easy-Deploy / Easy-Publish
setup.py
setup.py
""" The setup package to install TensorPy dependencies. *> This does NOT include TensorFlow installation. *> To install TensorFlow, use "./install.sh" """ from setuptools import setup, find_packages # noqa from os import path this_directory = path.abspath(path.dirname(__file__)) long_description = None try: with open(path.join(this_directory, 'README.md'), 'rb') as f: long_description = f.read().decode('utf-8') except IOError: long_description = 'Easy Image Classification with TensorFlow!' setup( name='tensorpy', version='1.4.2', description='Easy Image Classification with TensorFlow!', long_description=long_description, long_description_content_type='text/markdown', url='https://github.com/TensorPy/TensorPy', platforms=["Linux", "Unix", "Mac OS-X"], author='Michael Mintz', author_email='mdmintz@gmail.com', maintainer='Michael Mintz', license="MIT", classifiers=[ "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", ], python_requires='>=3.5, <3.8', install_requires=[ 'tensorflow==1.15.4', 'six>=1.11.0', 'requests>=2.18.4', 'Pillow==5.4.1', 'BeautifulSoup4>=4.6.0', ], packages=['tensorpy'], entry_points={ 'console_scripts': [ 'classify = tensorpy.classify:main', ], }, )
Python
0
@@ -205,27 +205,28 @@ oqa%0A -from os +import os%0A import -path +sys %0A%0A%0At @@ -241,16 +241,19 @@ ctory = +os. path.abs @@ -257,16 +257,19 @@ abspath( +os. path.dir @@ -327,16 +327,19 @@ th open( +os. path.joi @@ -519,16 +519,1444 @@ Flow!'%0A%0A +if sys.argv%5B-1%5D == 'publish':%0A reply = None%0A input_method = input%0A if not sys.version_info%5B0%5D %3E= 3:%0A input_method = raw_input # noqa%0A reply = str(input_method(%0A '%3E%3E%3E Confirm release PUBLISH to PyPI? (yes/no): ')).lower().strip()%0A if reply == 'yes':%0A print(%22%5Cn*** Checking code health with flake8:%5Cn%22)%0A flake8_status = os.system(%22flake8 --exclude=temp%22)%0A if flake8_status != 0:%0A print(%22%5CnWARNING! Fix flake8 issues before publishing to PyPI!%5Cn%22)%0A sys.exit()%0A else:%0A print(%22*** No flake8 issues detected. Continuing...%22)%0A print(%22%5Cn*** Rebuilding distribution packages: ***%5Cn%22)%0A os.system('rm -f dist/*.egg; rm -f dist/*.tar.gz; rm -f dist/*.whl')%0A os.system('python setup.py sdist bdist_wheel') # Create new tar/wheel%0A print(%22%5Cn*** Installing twine: *** (Required for PyPI uploads)%5Cn%22)%0A os.system(%22python -m pip install --upgrade 'twine%3E=1.15.0'%22)%0A print(%22%5Cn*** Installing tqdm: *** (Required for PyPI uploads)%5Cn%22)%0A os.system(%22python -m pip install --upgrade 'tqdm%3E=4.49.0'%22)%0A print(%22%5Cn*** Publishing The Release to PyPI: ***%5Cn%22)%0A os.system('python -m twine upload dist/*') # Requires ~/.pypirc Keys%0A print(%22%5Cn*** The Release was PUBLISHED SUCCESSFULLY to PyPI! :) ***%5Cn%22)%0A else:%0A print(%22%5Cn%3E%3E%3E The Release was NOT PUBLISHED to PyPI! %3C%3C%3C%5Cn%22)%0A sys.exit()%0A%0A setup(%0A
79343a79ddba721f4624f881689c66aeb25c5415
bump version for release
setup.py
setup.py
import os from setuptools import setup, Extension, find_packages import pkg_resources # make sure FastImage is importable import motmot.FastImage.FastImage as FastImage major,minor,build = FastImage.get_IPP_version() import motmot.FastImage.util as FastImage_util # build with same IPP as FastImage vals = FastImage_util.get_build_info(ipp_static=FastImage.get_IPP_static(), ipp_version='%d.%d'%(major,minor), ipp_arch=FastImage.get_IPP_arch(), ) ipp_sources = vals.get('ipp_sources',[]) ipp_include_dirs = vals.get('ipp_include_dirs',[]) ipp_library_dirs = vals.get('ipp_library_dirs',[]) ipp_libraries = vals.get('ipp_libraries',[]) ipp_define_macros = vals.get('ipp_define_macros',[]) ipp_extra_link_args = vals.get('extra_link_args',[]) ipp_extra_compile_args = vals.get('extra_compile_args',[]) ext_modules = [] if 1: realtime_image_analysis_sources=['src/realtime_image_analysis.c', 'src/c_fit_params.c', 'src/fic.c', 'src/eigen.c', 'src/c_time_time.c', ]+ipp_sources ext_modules.append(Extension(name='motmot.realtime_image_analysis.realtime_image_analysis', sources=realtime_image_analysis_sources, include_dirs=ipp_include_dirs, library_dirs=ipp_library_dirs, libraries=ipp_libraries+['cv'], define_macros=ipp_define_macros, extra_link_args=ipp_extra_link_args, extra_compile_args=ipp_extra_compile_args, )) setup(name='motmot.realtime_image_analysis-ipp', description="several image analysis functions that require Intel IPP and FastImage", long_description= """This code serves as the basis for at least 2 different classes of realtime trackers: 2D only trackers with no consideration of camera calibration and potentially-3D trackers with camera calibration and distortion information.""", version='0.5.8.1', author="Andrew Straw", author_email="strawman@astraw.com", url='http://code.astraw.com/projects/motmot', license='BSD', namespace_packages = ['motmot'], packages = find_packages(), ext_modules= ext_modules, )
Python
0
@@ -2302,17 +2302,17 @@ ='0.5.8. -1 +2 ',%0A
41f1fa3e04929cfda9df52f6f80eba5fed2150bb
Fix metadata
setup.py
setup.py
import sys import os try: from setuptools import setup except ImportError: from distutils.core import setup if 'sdist' in sys.argv: os.system('./admin/makedoc') version = '3.0.0-alpha' setup( name='python-openid', version=version, description='OpenID support for servers and consumers.', long_description='''This is a set of Python packages to support use of the OpenID decentralized identity system in your application. Want to enable single sign-on for your web site? Use the openid.consumer package. Want to run your own OpenID server? Check out openid.server. Includes example code and support for a variety of storage back-ends.''', url='http://github.com/openid/python-openid', packages=['openid', 'openid.consumer', 'openid.server', 'openid.store', 'openid.yadis', 'openid.extensions', 'openid.extensions.draft', ], # license specified by classifier. # license=getLicense(), author='Rami Chowdhury', author_email='rami.chowdhury@gmail.com', download_url='http://github.com/necaris/python3-openid/tarball/%s' % (version,), classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Systems Administration :: Authentication/Directory", ] )
Python
0.033154
@@ -698,21 +698,23 @@ com/ -openid +necaris /python +3 -ope
1c6c9895b0ce033276925c87bf8635438eb2fad6
Address some requirements problems on installing with pip
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function from builtins import next from builtins import filter from future import standard_library standard_library.install_aliases() import os from glob import glob from setuptools import setup from distutils.command import build as build_module import urllib.request, urllib.error, urllib.parse import io import os.path from ast import parse import numpy as np import scipy.misc def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() def geturlimage(url, timeout=10): img = None ntry = 0 while ntry < 3: try: rspns = urllib.request.urlopen(url, timeout=timeout) cntnt = rspns.read() img = scipy.misc.imread(io.BytesIO(cntnt)) break except urllib.error.URLError as e: ntry += 1 print(type(e)) return img class build(build_module.build): def run(self): path = 'sporco/data' urllst = {'lena.png' : 'http://sipi.usc.edu/database/misc/4.2.04.tiff', 'lena.grey.png' : 'http://web.archive.org/web/20070328214632/http://decsai.ugr.es/~javier/denoise/lena.png', 'barbara.png' : 'http://www.hlevkin.com/TestImages/barbara.bmp', 'barbara.grey.png' : 'http://web.archive.org/web/20070209141039/http://decsai.ugr.es/~javier/denoise/barbara.png', 'mandrill.tif' : 'http://sipi.usc.edu/database/misc/4.2.03.tiff', 'man.grey.tif' : 'http://sipi.usc.edu/database/misc/5.3.01.tiff', 'kiel.grey.bmp' : 'http://www.hlevkin.com/TestImages/kiel.bmp'} for key in list(urllst.keys()): fnm = os.path.splitext(key)[0] dst = os.path.join(path, fnm) + '.png' if not os.path.isfile(dst): print('Getting %s' % key) img = geturlimage(urllst[key]) if img is not None: scipy.misc.imsave(dst, img) build_module.build.run(self) name = 'sporco' # See http://stackoverflow.com/questions/2058802 with open(os.path.join(name, '__init__.py')) as f: version = parse(next(filter( lambda line: line.startswith('__version__'), f))).body[0].value.s packages = ['sporco', 'sporco.admm'] docdirbase = 'share/doc/%s-%s' % (name, version) data = [(docdirbase, glob("*.txt"))] dd = os.path.join(docdirbase,'examples') pp = os.path.join('examples') data.append((dd, glob(os.path.join(pp ,"*/*.py")))) longdesc = \ """ SPORCO is a Python package for solving optimisation problems with sparsity-inducing regularisation. These consist primarily of sparse coding and dictionary learning problems, including convolutional sparse coding and dictionary learning, but there is also support for other problems such as Total Variation regularisation and Robust PCA. In the current version all of the optimisation algorithms are based on the Alternating Direction Method of Multipliers (ADMM). """ on_rtd = os.environ.get('READTHEDOCS') == 'True' if on_rtd: print("Building on ReadTheDocs") install_requires = ['future', 'numpy', 'scipy'] else: install_requires = ['future', 'numpy', 'scipy', 'pyfftw'] setup( name = name, version = version, description = 'Sparse Optimisation Research Code: A Python package ' \ 'for sparse coding and dictionary learning', long_description = longdesc, keywords = ['Sparse Representations', 'Sparse Coding', 'Dictionary Learning', 'Convolutional Sparse Representations', 'Convolutional Sparse Coding', 'Optimization', 'ADMM'], platforms = 'Any', license = 'BSD', url = 'http://bwohlberg.github.io/sporco', author = 'Brendt Wohlberg', author_email = 'brendt@ieee.org', packages = packages, package_data = {'sporco': ['data/*.png']}, data_files = data, include_package_data = True, setup_requires = ['pytest-runner'], tests_require = ['pytest'], install_requires = install_requires, extras_require = { 'numexpr': ['numexpr'], 'datacursor': ['mpldatacursor'], }, cmdclass = { 'build': build }, classifiers = [ 'License :: OSI Approved :: BSD License', 'Development Status :: 4 - Beta', 'Intended Audience :: Education', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Topic :: Scientific/Engineering :: Information Analysis', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Software Development :: Libraries :: Python Modules' ], zip_safe = False )
Python
0
@@ -168,16 +168,17 @@ library%0A +%0A standard @@ -3323,16 +3323,30 @@ 'pyfftw' +, 'matplotlib' %5D%0A%0A%0Asetu @@ -4227,21 +4227,32 @@ = %5B' -pytest-runner +future', 'numpy', 'scipy '%5D,%0A @@ -4275,16 +4275,33 @@ e = %5B +'pytest-runner', 'pytest'
52ee1ff44b51c7f6a10697354031a326a825abcc
fix for dependencies that were not specified in the module setup
setup.py
setup.py
from setuptools import setup, find_packages DESCRIPTION = "A MongoDB object mapper inspired by Django models and SQLAlchemy's pythonic DSL." with open('README') as f: LONG_DESCRIPTION = f.read() VERSION = '0.1.2' CLASSIFIERS = [ 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ] setup( name='conjure', version=VERSION, packages=find_packages(), author='Stanislav Vishnevskiy', author_email='vishnevskiy@gmail.com', url='https://github.com/vishnevskiy/conjure', license='MIT', include_package_data=True, description=DESCRIPTION, long_description=LONG_DESCRIPTION, install_requires=[ 'pymongo<3.7', ], platforms=['any'], classifiers=CLASSIFIERS, test_suite='tests', )
Python
0
@@ -836,16 +836,58 @@ o%3C3.7',%0A + 'pyes',%0A 'python-dateutil'%0A %5D,%0A
606ed4f5f984c4e099442ae3db017c54b330bfd8
update videos.html
setup.py
setup.py
#!/usr/bin/python # -*- coding: utf-8 -*- """ Created on Sun May 17 07:14:20 2015 @author: ddboline """ from __future__ import (absolute_import, division, print_function) from setuptools import setup setup( name='roku_app', version='0.0.3.6', author='Daniel Boline', author_email='ddboline@gmail.com', description='roku_app', long_description='Roku Recording App', license='MIT', install_requires=['numpy'], packages=['roku_app'], package_dir={'roku_app': 'roku_app'}, package_data={'roku_app': ['roku_app/templates/*.html', ]}, entry_points={'console_scripts': ['run-recording = roku_app.record_roku:main', 'run-remcom-test = roku_app.remcom:remcom_test_main']} )
Python
0
@@ -247,9 +247,9 @@ 0.3. -6 +7 ',%0A
9bc7aad0189ac825fe3e81771d9b9e35e61ce6e8
Bump version to 0.0.7 in setup.py
setup.py
setup.py
# Copyright 2017 Google 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 # # https://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. """A setuptools based setup module for Fleetspeak. Forked from https://github.com/pypa/sampleproject/blob/master/setup.py . """ # Always prefer setuptools over distutils from setuptools import setup, find_packages setup( name='fleetspeak', # 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='0.0.6', description='Fleetspeak', long_description=( 'Fleetspeak is a framework for communicating with a fleet of ' 'machines, with a focus on security monitoring and basic ' 'administrative use cases. It is a subproject of GRR ( ' 'https://github.com/google/grr/blob/master/README.md ), and can be ' 'seen as an effort to modularizing and modernizing its communication ' 'mechanism.'), # The project's main homepage. url='https://github.com/google/fleetspeak', # Author details author='', author_email='', # Choose your license license='Apache License, Version 2.0', # 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 :: 4 - Beta', # 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 :: Apache Software 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='', # You can just specify the packages manually here if your project is # simple. Or you can use find_packages(). packages=find_packages(), # Alternatively, if you want to distribute just a my_module.py, uncomment # this: # py_modules=["my_module"], # 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=[ 'futures==3.2.0', 'google-apputils==0.4.2', 'grpcio==1.7.0', 'grpcio-tools==1.7.0', 'python-gflags==3.1.2', 'six==1.11.0', ], # 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': [], }, # If there are data files included in your packages that need to be # installed, specify them here. If using Python 2.6 or less, then these # have to be included in MANIFEST.in as well. package_data={ }, # Although 'package_data' is the preferred approach, in some case you may # need to place data files outside of your packages. See: # http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files pylint:disable=line-too-long # In this case, 'data_file' will be installed into '<sys.prefix>/my_data' data_files=[], # To provide executable scripts, use entry points in preference to the # "scripts" keyword. Entry points provide cross-platform support and allow # pip to create the appropriate form of executable for the target platform. entry_points={ }, )
Python
0
@@ -1046,17 +1046,17 @@ on='0.0. -6 +7 ',%0A%0A
cab06659f59d11ceb968b6afa685665ff0ab0c88
Add section before setting it
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from ooni import __version__, __author__ import os import sys import tempfile from ConfigParser import SafeConfigParser from os.path import join as pj from setuptools import setup from setuptools.command.install import install as _st_install class install(_st_install): def gen_config(self, share_path): config_file = pj(tempfile.mkdtemp(), "ooniprobe.conf.sample") o = open(config_file, "w+") with open("data/ooniprobe.conf.sample") as f: for line in f: if "/usr/share" in line: line = line.replace("/usr/share", share_path) o.write(line) o.close() return config_file def set_data_files(self, share_path): for root, dirs, file_names in os.walk('data/'): files = [] for file_name in file_names: if file_name.endswith('.pyc'): continue elif file_name.endswith('.dat') and \ file_name.startswith('Geo'): continue elif file_name == "ooniprobe.conf.sample": files.append(self.gen_config(share_path)) continue files.append(pj(root, file_name)) self.distribution.data_files.append( [ pj(share_path, 'ooni', root.replace('data/', '')), files ] ) settings = SafeConfigParser() settings.set("directories", "data_dir", os.path.join(share_path, "ooni")) with open("ooni/settings.ini", "w+") as fp: settings.write(fp) def run(self): share_path = os.path.abspath(pj(self.prefix, 'share')) self.set_data_files(share_path) self.do_egg_install() install_requires = [] dependency_links = [] data_files = [] packages = [ 'ooni', 'ooni.api', 'ooni.deckgen', 'ooni.deckgen.processors', 'ooni.kit', 'ooni.nettests', 'ooni.nettests.manipulation', 'ooni.nettests.experimental', 'ooni.nettests.scanning', 'ooni.nettests.blocking', 'ooni.nettests.third_party', 'ooni.report', 'ooni.resources', 'ooni.templates', 'ooni.tests', 'ooni.utils' ] with open('requirements.txt') as f: for line in f: if line.startswith("#"): continue if line.startswith('https'): dependency_links.append(line) continue install_requires.append(line) with open('README.rst') as f: readme = f.read() with open('ChangeLog.rst') as f: changelog = f.read() setup( name="ooniprobe", version=__version__, author=__author__, author_email="ooni-dev@torproject.org", description="Network Interference detection tool.", long_description=readme + '\n\n' + changelog, license='BSD 2 clause', url="https://ooni.torproject.org/", package_dir={'ooni': 'ooni'}, data_files=data_files, packages=packages, include_package_data=True, scripts=["bin/oonideckgen", "bin/ooniprobe", "bin/oonireport", "bin/ooniresources"], dependency_links=dependency_links, install_requires=install_requires, cmdclass={"install": install}, classifiers=( "Development Status :: 5 - Production/Stable", "Environment :: Console", "Framework :: Twisted", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: End Users/Desktop", "Intended Audience :: Information Technology", "Intended Audience :: Science/Research", "Intended Audience :: Telecommunications Industry", "License :: OSI Approved :: BSD License" "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2 :: Only", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Operating System :: POSIX :: BSD", "Operating System :: POSIX :: BSD :: BSD/OS", "Operating System :: POSIX :: BSD :: FreeBSD", "Operating System :: POSIX :: BSD :: NetBSD", "Operating System :: POSIX :: BSD :: OpenBSD", "Operating System :: POSIX :: Linux", "Operating System :: Unix", "Topic :: Scientific/Engineering :: Information Analysis", "Topic :: Security", "Topic :: Security :: Cryptography", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Testing", "Topic :: Software Development :: Testing :: Traffic Generation", "Topic :: System :: Networking :: Monitoring", ) ) from subprocess import Popen, PIPE process = Popen(['ooniresources', '--update-inputs', '--update-geoip'], stdout=PIPE, stderr=PIPE) while process.poll() is None: out = process.stdout.read() sys.stdout.write(out) sys.stdout.flush()
Python
0
@@ -1529,16 +1529,60 @@ arser()%0A + settings.add_section(%22directories%22)%0A
ca7df2103a2e53f0b401c7004a2a5e942bd3e7e1
Remove PIL and docutils from requirements, easy_thumbnails requires it anyway
setup.py
setup.py
from distutils.core import setup from setuptools import setup, find_packages setup(name = "django-image-cropping", version = "0.3.0", description = "A reusable app for cropping images easily and non-destructively in Django", long_description=open('README.rst').read(), author = "jonasvp", author_email = "jvp@jonasundderwolf.de", url = "http://github.com/jonasundderwolf/django-image-cropping", #Name the folder where your packages live: #(If you have other packages (dirs) or modules (py files) then #put them into the package directory - they will be found #recursively.) packages = find_packages(), include_package_data=True, install_requires = [ 'docutils', 'PIL', 'easy_thumbnails', ], classifiers = [ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
Python
0
@@ -700,43 +700,8 @@ = %5B%0A - 'docutils',%0A 'PIL',%0A
d497942fedb3096b291f887b70ca231c203e6b85
Bump version.
setup.py
setup.py
"""Setup for Flask Jsondash.""" from glob import glob import os from setuptools import setup, find_packages SRCDIR = '.' folder = os.path.abspath(os.path.dirname(__file__)) template_start = '{}/flask_jsondash/templates'.format(folder) static_start = '{}/flask_jsondash/static'.format(folder) def get_all_files(pattern, start_dir=None): """Get all subdirectory files specified by `pattern`.""" paths = [] if start_dir is None: start_dir = os.getcwd() for root, dirs, files in os.walk(start_dir): globbed = glob(os.path.join(root, pattern)) paths.extend(globbed) return paths def readme(): """Grab the long README file.""" try: with open('README.md', 'r') as fobj: return fobj.read() except IOError: try: with open('README.rst', 'r') as fobj: return fobj.read() except IOError: return 'No README specified.' def get_requires(): """Extract the requirements from a standard requirements.txt file.""" path = '{}/requirements.txt'.format(folder) with open(path) as reqs: return [req for req in reqs.readlines() if req] # Recursively retrieve all package data (static files) # Make sure static data exists, except uncompiled source (sass, etc) js_files = get_all_files('*.js', start_dir='{}/js'.format(static_start)) css_files = get_all_files('*.css', start_dir='{}/css'.format(static_start)) html_files = get_all_files('*.html', start_dir=template_start) staticfiles = js_files + css_files + html_files setup( name='flask_jsondash', version='3.3.1', description=('Easily configurable, chart dashboards from any ' 'arbitrary API endpoint. JSON config only. Ready to go.'), long_description=readme(), author='Chris Tabor', author_email='dxdstudio@gmail.com', url='https://github.com/christabor/flask_jsondash', license='MIT', classifiers=[ 'Topic :: Software Development', 'Programming Language :: Python :: 2.7', ], package_dir={'': SRCDIR}, packages=find_packages(SRCDIR, exclude=['ez_setup', 'examples', 'tests']), package_data=dict(flask_jsondash=staticfiles), zip_safe=False, include_package_data=True, )
Python
0
@@ -1602,17 +1602,17 @@ sion='3. -3 +4 .1',%0A
5c1397fd563f30741f71f07433722dfe3f5a322d
Update pypi.python.org URL to pypi.org (#21)
setup.py
setup.py
# -*- coding: utf-8 -*- import sys from setuptools import setup, find_packages from codecs import open setup( name='email_validator', version='1.0.3', description='A robust email syntax and deliverability validation library for Python 2.x/3.x.', long_description=open("README.rst", encoding='utf-8').read(), url='https://github.com/JoshData/python-email-validator', author=u'Joshua Tauberer', author_email=u'jt@occams.info', license='CC0 (copyright waived)', # See https://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Development Status :: 5 - Production/Stable', 'License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication', 'Intended Audience :: Developers', 'Topic :: Software Development :: Libraries :: Python Modules', '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', ], keywords="email address validator", packages=find_packages(), install_requires=[ "idna>=2.0.0", "dnspython>=1.15.0"], entry_points={ 'console_scripts': [ 'email_validator=email_validator:main', ], }, )
Python
0
@@ -489,15 +489,8 @@ ypi. -python. org/
acdeb233acd9d3f5e1b5e7e5c9df6030fdb0cd85
Fix bugs in setup.py.
setup.py
setup.py
from distutils.core import setup setup( name='django-analyze-sesions', version='0.1', author='Kevan Carstensen', author_email='kevan@isnotajoke.com', packages=['analyze_sessions'], url='http://isnotajoke.com', license='LICENSE.txt', description='Tools to analyze Django DB sessions', long_description=open('README.md').read(), install_requires=[ "Django >= 1.3.0", ], )
Python
0
@@ -62,16 +62,17 @@ lyze-ses +s ions',%0A @@ -193,16 +193,87 @@ essions' +, 'analyze_sessions.management', 'analyze_sessions.management.commands' %5D,%0A u
29023d781b817db58686e23ff47e134f63b1a86e
Add python version dependency in setup
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup with open("README.rst") as fh: long_description = fh.read() setup( name='sigtools', version='2.0.2', description="Utilities for working with inspect.Signature objects.", long_description=long_description, long_description_content_type='text/x-rst', license='MIT', author='Yann Kaiser', author_email='kaiser.yann@gmail.com', url='https://sigtools.readthedocs.io/', packages=['sigtools', 'sigtools.tests'], tests_require=[ 'repeated_test', 'sphinx', 'mock', 'coverage', 'unittest2' ], install_requires=['six'], extras_require={ ':python_version in "2.6 2.7 3.2"': ['funcsigs>=0.4'], ':python_version in "2.6"': ['ordereddict'], }, test_suite='unittest2.collector', keywords='introspection signature', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', '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', 'Programming Language :: Python :: 3.7', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
Python
0.000001
@@ -653,24 +653,89 @@ es=%5B'six'%5D,%0A + python_requires='%3E=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',%0A extras_r
86954efce4f93f4614137a262d94b6acffa8521f
Remove the upper bound
setup.py
setup.py
from setuptools import setup, find_packages kwargs = { 'packages': find_packages( exclude=['tests', '*.tests', '*.tests.*', 'tests.*']), 'include_package_data': True, 'install_requires': [ 'django>=1.4,<1.8', ], 'name': 'django-tracking2', 'version': __import__('tracking').get_version(), 'author': 'Byron Ruth', 'author_email': 'b@devel.io', 'description': ('django-tracking2 tracks the length of time visitors ' 'and registered users spend on your site'), 'license': 'BSD', 'keywords': 'visitor tracking time analytics', 'url': 'https://github.com/bruth/django-tracking2', 'classifiers': [ 'Development Status :: 4 - Beta', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Topic :: Internet :: WWW/HTTP', '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', ], } setup(**kwargs)
Python
0.998353
@@ -227,13 +227,8 @@ =1.4 -,%3C1.8 ',%0A
29fb5c36e7f2dd647c18d30ad026b1de6ff03821
Update dev status
setup.py
setup.py
from setuptools import setup # from setuptools import find_packages # from os import path # from codecs import open # To use a consistent encoding # here = path.abspath(path.dirname(__file__)) # # Get the long description from the relevant file # with open(path.join(here, 'README'), encoding='utf-8') as f: # long_description = f.read() l_d = '' try: import pypandoc l_d = pypandoc.convert('README.md', 'rst') except: pass # Set the version. Possibly this can be converted to another method such as Numpy # is using in the future. https://github.com/numpy/numpy/blob/master/setup.py # DO NOT USE from gwtsa import __version__ as it causes problems with Travis. MAJOR = 0 MINOR = 0 MICRO = 1 ISRELEASED = False VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO) setup( name='gwtsa', # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # http://packaging.python.org/en/latest/tutorial.html#version version=VERSION, description='Open Source Time Series Analysis', long_description=l_d, # The project's main homepage. url='https://github.com/gwtsa/gwtsa', # Author details author='Mark Bakker', author_email='markbak@gmail.com', # Choose your license license='MIT', # See https://PyPI.python.org/PyPI?%3Aaction=list_classifiers classifiers=[ 'Development Status :: 1 - Planning', # Indicate who your project is intended for # 'Intended Audience :: Groundwater Modelers', # Pick yor 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' ], platforms='Windows, Mac OS-X', install_requires=['numpy>=1.9', 'matplotlib>=1.4', 'lmfit>=0.9', 'pandas>=0.15', 'scipy>=0.15', 'statsmodels>=0.5', 'tabulate', 'requests', 'pyproj'], packages=['gwtsa'], include_package_data=True, )
Python
0
@@ -1495,20 +1495,17 @@ :: -1 - Planning +3 - Alpha ',%0A
80d50feb7353067f2477c4e21be833e1d37d3999
Bump pypi version
setup.py
setup.py
#!/usr/bin/env python import os import sys from setuptools import setup try: import pandoc except ImportError: pandoc = None if sys.argv[-1] == 'publish': assert pandoc, 'You have to do: pip install pyandoc' os.system('python setup.py sdist upload') sys.exit(0) def read(fname): with open(fname) as f: return f.read() def get_description(): with open('README.md') as f: desc = f.read() short = desc.split('===\n')[1].strip().split('\n')[0] if pandoc: doc = pandoc.Document() doc.markdown = desc.encode('utf-8') desc = doc.rst.decode('utf-8') return short, desc install_requires = [ l for l in read('requirements.txt').splitlines() if l and not l.startswith('#')] short, desc = get_description() setup( version='1.0.0', name='aiohttp-login', url='https://github.com/imbolc/aiohttp-login', description=short, long_description=desc, packages=['aiohttp_login'], author='Imbolc', author_email='imbolc@imbolc.name', license='ISC', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Programming Language :: Python', 'Programming Language :: Python :: 3', ], install_requires=install_requires, include_package_data=True )
Python
0
@@ -811,17 +811,17 @@ on='1.0. -0 +1 ',%0A n
6d8702c2d96f9feb3bfd83afd2e161903df83e15
Add git vcsversion method.
setup.py
setup.py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC. # 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. """ Utilities with minimum-depends for use in setup.py """ import os import re import subprocess def parse_mailmap(mailmap='.mailmap'): mapping = {} if os.path.exists(mailmap): fp = open(mailmap, 'r') for l in fp: l = l.strip() if not l.startswith('#') and ' ' in l: canonical_email, alias = l.split(' ') mapping[alias] = canonical_email return mapping def str_dict_replace(s, mapping): for s1, s2 in mapping.iteritems(): s = s.replace(s1, s2) return s # Get requirements from the first file that exists def get_reqs_from_files(requirements_files): reqs_in = [] for requirements_file in requirements_files: if os.path.exists(requirements_file): return open(requirements_file, 'r').read().split('\n') return [] def parse_requirements(requirements_files=['requirements.txt', 'tools/pip-requires']): requirements = [] for line in get_reqs_from_files(requirements_files): if re.match(r'\s*-e\s+', line): requirements.append(re.sub(r'\s*-e\s+.*#egg=(.*)$', r'\1', line)) elif re.match(r'\s*-f\s+', line): pass else: requirements.append(line) return requirements def parse_dependency_links(requirements_files=['requirements.txt', 'tools/pip-requires']): dependency_links = [] for line in get_reqs_from_files(requirements_files): if re.match(r'(\s*#)|(\s*$)', line): continue if re.match(r'\s*-[ef]\s+', line): dependency_links.append(re.sub(r'\s*-[ef]\s+', '', line)) return dependency_links def write_requirements(): venv = os.environ.get('VIRTUAL_ENV', None) if venv is not None: with open("requirements.txt", "w") as req_file: output = subprocess.Popen(["pip", "-E", venv, "freeze", "-l"], stdout=subprocess.PIPE) requirements = output.communicate()[0].strip() req_file.write(requirements)
Python
0.000004
@@ -2837,8 +2837,940 @@ ements)%0A +%0A%0Adef _run_shell_command(cmd):%0A output = subprocess.Popen(%5B%22/bin/sh%22, %22-c%22, cmd%5D,%0A stdout=subprocess.PIPE)%0A return output.communicate()%5B0%5D.strip()%0A%0A%0Adef write_vcsversion(location):%0A %22%22%22 Produce a vcsversion dict that mimics the old one produced by bzr%0A %22%22%22%0A if os.path.isdir('.git'):%0A branch_nick_cmd = 'git branch %7C grep -Ei %22%5C* (.*)%22 %7C cut -f2 -d%22 %22'%0A branch_nick = _run_shell_command(branch_nick_cmd)%0A revid_cmd = %22git rev-parse HEAD%22%0A revid = _run_shell_command(revid_cmd).split()%5B0%5D%0A revno_cmd = %22git log --oneline %7C wc -l%22%0A revno = _run_shell_command(revno_cmd)%0A with open(location, 'w') as version_file:%0A version_file.write(%22%22%22%0A# This file is automatically generated by setup.py, So don't edit it. :)%0Aversion_info = %7B%0A 'branch_nick': '%25s',%0A 'revision_id': '%25s',%0A 'revno': %25s%0A%7D%0A%22%22%22 %25 (branch_nick, revid, revno))%0A
26521700dbf48acd6bea691bcb888286c78bc75a
Version 0.1.0.
setup.py
setup.py
from setuptools import find_packages, setup REQUIRES = [ 'markdown', 'mdx_outline', ] SOURCES = [] with open('README.rst', 'r') as f: long_description = f.read() setup( name="mdx_attr_cols", version="0.1.0a", url='http://github.com/CTPUG/mdx_attr_cols', license='MIT', description="A bootstrap 3 row and columns extension for Markdown", long_description=long_description, author='CTPUG', author_email='ctpug@googlegroups.com', packages=find_packages(), include_package_data=True, install_requires=REQUIRES, dependency_links=SOURCES, setup_requires=[ # Add setuptools-git, so we get correct behaviour for # include_package_data 'setuptools_git >= 1.0', ], classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Framework :: Django', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Internet :: WWW/HTTP', ], )
Python
0
@@ -222,17 +222,16 @@ n=%220.1.0 -a %22,%0A u
19c9465a740c065ea6380a56be4d748ada58b174
Upgrade ConfigArgParse
setup.py
setup.py
from setuptools import setup from setuptools.command.test import test as TestCommand import os import sys if sys.version_info < (3, 4, 2): # This is the minimum version supported by aiohttp. raise RuntimeError("hangups requires Python 3.4.2+") # Find __version__ without import that requires dependencies to be installed: exec(open(os.path.join( os.path.dirname(__file__), 'hangups/version.py' )).read()) class PytestCommand(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): import pytest errno = pytest.main(self.test_args) sys.exit(errno) class PylintCommand(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): import pylint.lint # Exits with number of messages. pylint.lint.Run(['--reports=n', 'hangups']) class Pep8Command(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): import pep8 style_guide = pep8.StyleGuide(config_file='setup.cfg') report = style_guide.check_files(['hangups']) if report.total_errors: sys.exit(1) with open('README.rst') as f: readme = f.read() install_requires = [ 'ConfigArgParse==0.10.0', 'aiohttp>=1.2,<1.3', 'appdirs==1.4.0', 'readlike>=0.1', 'requests==2.6.0', 'ReParser==1.4.3', # use alpha protobuf for official Python 3 support 'protobuf==3.0.0a3', 'urwid==1.3.1', 'MechanicalSoup==0.4.0', ] if sys.version_info < (3, 4, 3): # For Python earlier than 3.4.3, use a backported asyncio that fixes an # issue with an exception being logged on exit. install_requires.append('asyncio==3.4.3') setup( name='hangups', version=__version__, description=('the first third-party instant messaging client for Google ' 'Hangouts'), long_description=readme, url='https://github.com/tdryer/hangups', author='Tom Dryer', author_email='tomdryer.com@gmail.com', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: End Users/Desktop', 'Natural Language :: English', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3 :: Only', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Topic :: Communications :: Chat', 'Environment :: Console :: Curses', ], packages=['hangups', 'hangups.ui'], install_requires=install_requires, tests_require=[ # >= 2.7.3 required for Python 3.5 support 'pytest==2.8.7', 'pylint==1.5.4', 'pep8==1.7.0', 'httpretty==0.8.14', ], cmdclass={ 'test': PytestCommand, 'lint': PylintCommand, 'style': Pep8Command, }, entry_points={ 'console_scripts': [ 'hangups=hangups.ui.__main__:main', ], }, )
Python
0.000001
@@ -1507,17 +1507,17 @@ rse==0.1 -0 +1 .0',%0A
d984f9d74ab5efab9f8e25cd2a590ace359ff4fb
add 'dev' to extras_require
setup.py
setup.py
import os import re import sys from subprocess import check_output from setuptools import ( setup, find_packages, Command, ) class ApiDocs(Command): """ A custom command that calls sphinx-apidoc see: https://www.sphinx-doc.org/en/master/man/sphinx-apidoc.html """ description = 'builds the api documentation using sphinx-apidoc' user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): command = [ None, # in Sphinx < 1.7.0 the first command-line argument was parsed, in 1.7.0 it became argv[1:] '--force', # overwrite existing files '--module-first', # put module documentation before submodule documentation '--separate', # put documentation for each module on its own page '-o', './docs/_autosummary', # where to save the output files 'msl', # the path to the Python package to document ] import sphinx if sphinx.version_info[:2] < (1, 7): from sphinx.apidoc import main else: from sphinx.ext.apidoc import main command.pop(0) main(command) class BuildDocs(Command): """ A custom command that calls sphinx-build see: https://www.sphinx-doc.org/en/master/man/sphinx-build.html """ description = 'builds the documentation using sphinx-build' user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): command = [ None, # in Sphinx < 1.7.0 the first command-line argument was parsed, in 1.7.0 it became argv[1:] '-b', 'html', # the builder to use, e.g., create a HTML version of the documentation '-a', # generate output for all files '-E', # ignore cached files, forces to re-read all source files from disk 'docs', # the source directory where the documentation files are located './docs/_build/html', # where to save the output files ] import sphinx if sphinx.version_info[:2] < (1, 7): from sphinx import build_main else: from sphinx.cmd.build import build_main command.pop(0) build_main(command) def read(filename): with open(filename) as fp: return fp.read() def fetch_init(key): # open the __init__.py file to determine a value instead of importing the package return re.search(r'{}\s*=\s*(.+)'.format(key), read(init_original)).group(1).strip('\'\"') def get_version(): init_version = fetch_init('__version__') if 'dev' not in init_version or testing: return init_version if 'develop' in sys.argv: # then installing in editable (develop) mode # python setup.py develop # pip install -e . # following PEP-440, the local version identifier starts with '+' return init_version + '+editable' # append the commit hash to __version__ setup_dir = os.path.dirname(os.path.realpath(__file__)) try: # write all error messages from git to devnull with open(os.devnull, mode='w') as devnull: out = check_output(['git', 'rev-parse', 'HEAD'], cwd=setup_dir, stderr=devnull) sha1 = out.strip().decode() except: # the git executable is not available, manually parse .git directory try: git_dir = os.path.join(setup_dir, '.git') with open(os.path.join(git_dir, 'HEAD'), mode='rt') as fp1: line = fp1.readline().strip() if line.startswith('ref:'): _, ref_path = line.split() with open(os.path.join(git_dir, ref_path), mode='rt') as fp2: sha1 = fp2.readline().strip() else: # detached HEAD sha1 = line except: return init_version suffix = sha1[:7] if not suffix or init_version.endswith(suffix): return init_version # following PEP-440, the local version identifier starts with '+' dev_version = init_version + '+' + suffix with open(init_original) as fp: init_source = fp.read() if os.path.isfile(init_backup): os.remove(init_backup) os.rename(init_original, init_backup) with open(init_original, mode='wt') as fp: fp.write(re.sub( r'__version__\s*=.+', "__version__ = '{}'".format(dev_version), init_source )) return dev_version install_requires = [] tests_require = [ 'pytest>=4.4', # >=4.4 to support the "-p conftest" option 'pytest-cov', 'pythonnet;sys_platform=="win32"', ] docs_require = ['sphinx', 'sphinx_rtd_theme'] testing = {'test', 'tests', 'pytest'}.intersection(sys.argv) pytest_runner = ['pytest-runner'] if testing else [] needs_sphinx = {'doc', 'docs', 'apidoc', 'apidocs', 'build_sphinx'}.intersection(sys.argv) sphinx = docs_require + install_requires if needs_sphinx else [] init_original = 'msl/qt/__init__.py' init_backup = init_original + '.backup' version = get_version() setup( name='msl-qt', version=version, author=fetch_init('__author__'), author_email='info@measurement.govt.nz', url='https://github.com/MSLNZ/msl-qt', description='Custom Qt components for the user interface', long_description=read('README.rst'), license='MIT', platforms='any', classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Science/Research', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', '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', 'Topic :: Software Development :: User Interfaces' 'Topic :: Scientific/Engineering', ], setup_requires=sphinx + pytest_runner, tests_require=tests_require, install_requires=install_requires, extras_require={ 'PySide6': ['PySide6'], 'PySide2': ['PySide2'], 'PyQt6': ['PyQt6'], 'PyQt5': ['PyQt5'], 'tests': tests_require, 'docs': docs_require, }, cmdclass={'docs': BuildDocs, 'apidocs': ApiDocs}, packages=find_packages(include=('msl*',)), include_package_data=True, ) if os.path.isfile(init_backup): os.remove(init_original) os.rename(init_backup, init_original)
Python
0.000002
@@ -6481,24 +6481,69 @@ cs_require,%0A + 'dev': tests_require + docs_require,%0A %7D,%0A c
e78044306dd1a7c7484e5bd83bc0cda7d6bc2c75
bump version
setup.py
setup.py
from setuptools import setup, find_packages setup( name="django-salmonella", version="0.2.0", author='Lincoln Loop', author_email='info@lincolnloop.com', description=("raw_id_fields widget replacement that handles display of an object's " "string value on change and can be overridden via a template."), packages=find_packages(), url="http://github.com/lincolnloop/django-salmonella/", install_requires=['setuptools'], 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 :: Software Development :: Libraries :: Python Modules' ] )
Python
0
@@ -92,17 +92,17 @@ on=%220.2. -0 +1 %22,%0A a
24507f0500e1e9172e0a663f98a4eebcddce232e
Add mypy to dev requirements
setup.py
setup.py
import os from setuptools import find_packages, setup # single source of truth for package version version_ns = {} # type: ignore with open(os.path.join("globus_cli", "version.py")) as f: exec(f.read(), version_ns) version = version_ns["__version__"] setup( name="globus-cli", version=version, packages=find_packages(exclude=["tests", "tests.*"]), python_requires=">=3.6", install_requires=[ "globus-sdk==2.0.1", "click>=7.1.1,<8.0", "jmespath==0.10.0", "configobj>=5.0.6,<6.0.0", "requests>=2.0.0,<3.0.0", # cryptography has unusual versioning and compatibility rules: # https://cryptography.io/en/latest/api-stability/ # we trust the two next major versions, per the Deprecation policy # # as new versions of cryptography are released, we may need to update # this requirement "cryptography>=1.8.1,<3.4.0", ], extras_require={ # the development extra is for CLI developers only "development": [ # testing "pytest<5", "pytest-cov<3.0", # mocking `requests` "responses==0.12.1", # loading fixture data "ruamel.yaml==0.16.12", # linting tools "black==20.8b1", "isort>=5.6.4,<6.0", "flake8>=3.8.4,<4.0", "flake8-bugbear==20.11.1", ], }, entry_points={"console_scripts": ["globus = globus_cli:main"]}, # descriptive info, non-critical description="Globus CLI", long_description=open("README.rst").read(), author="Stephen Rosen", author_email="sirosen@globus.org", url="https://github.com/globus/globus-cli", keywords=["globus", "cli", "command line"], classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", ], )
Python
0
@@ -1410,24 +1410,51 @@ ==20.11.1%22,%0A + %22mypy==0.800%22,%0A %5D,%0A
dc6d19fa8f967741ea209be529946e0232e3be28
Set version to 1.0.1.
setup.py
setup.py
from setuptools import setup, find_packages setup( name = 'vitalstyles', description = 'Generate CSS/SASS/LESS documentation with previews using Markdown in comments.', version = '1.0', license = 'BSD', author = 'Espen Angell Kristiansen', author_email = 'post@espenak.net', url = 'https://github.com/appressoas/vitalstyles', packages=find_packages(exclude=['manage']), install_requires = [ 'setuptools', 'Markdown', 'Jinja2', 'pygments', ], classifiers = [ 'Intended Audience :: Developers', 'License :: OSI Approved', 'Programming Language :: Python' ], include_package_data=True, zip_safe=True, entry_points = { 'console_scripts': [ 'vitalstyles-cli = vitalstyles.cli:cli', ], }, )
Python
0
@@ -190,16 +190,18 @@ n = '1.0 +.1 ',%0A l
4117539f0e2c377ebaf50120a4a3205b5cfa952e
Bump dependency versions
setup.py
setup.py
#!/usr/bin/env python import os, sys, glob, subprocess, textwrap, setuptools try: # Git version extraction logic designed to be compatible with both semver and PEP 440 version = subprocess.check_output(["git", "describe", "--tags", "--match", "v*.*.*"]).decode() version = version.strip("v\n").replace("-", "+", 1).replace("-", ".") except Exception: version = "0.0.0" setuptools.setup( name="aegea", version=version, url="https://github.com/kislyuk/aegea", license=open("LICENSE.md").readline().strip(), author="Andrey Kislyuk", author_email="kislyuk@gmail.com", description="Amazon Web Services Operator Interface", long_description=open("README.rst").read(), install_requires=[ "boto3 >= 1.14.20, < 2", "argcomplete >= 1.9.5, < 2", "paramiko >= 2.4.2, < 3", "requests >= 2.18.4, < 3", "tweak >= 1.0.3, < 2", "keymaker >= 1.1.0, < 2", "pyyaml >= 3.12, < 6", "python-dateutil >= 2.6.1, < 3", "babel >= 2.4.0, < 3", "ipwhois >= 1.1.0, < 2", "uritemplate >= 3.0.0, < 4", "awscli >= 1.17.14, < 2", "chalice >= 1.15.1, < 2" ], extras_require={ ':python_version == "2.7"': [ "enum34 >= 1.1.6, < 2", "ipaddress >= 1.0.19, < 2", "subprocess32 >= 3.2.7, < 4" ] }, tests_require=[ "coverage", "flake8", "mypy" ], packages=setuptools.find_packages(exclude=["test"]), scripts=glob.glob("scripts/*"), platforms=["MacOS X", "Posix"], test_suite="test", include_package_data=True )
Python
0
@@ -754,12 +754,12 @@ 1.1 -4.20 +6.43 , %3C @@ -1132,12 +1132,13 @@ 1.1 -7.14 +8.203 , %3C @@ -1167,12 +1167,12 @@ = 1. -15.1 +21.7 , %3C
0cd23b7ca563a92adc0c5882d9f434955a983aff
Update python setup.py classifiers to Python 3.7
setup.py
setup.py
############################################################################### # Caleydo - Visualization for Molecular Biology - http://caleydo.org # Copyright (c) The Caleydo Team. All rights reserved. # Licensed under the new BSD license, available at http://caleydo.org/license ############################################################################### from __future__ import with_statement, print_function from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) def read_it(name): with open(path.join(here, name), encoding='utf-8') as f: return f.read() # read package.json information with open(path.join(here, 'package.json'), encoding='utf-8') as json_data: import json pkg = json.load(json_data) def packaged(*files): r = {} global pkg r[pkg['name']] = list(files) return r def requirements(file): return [r.strip() for r in read_it(file).strip().split('\n') if not r.startswith('-e git+https://')] def to_version(v): import datetime now = datetime.datetime.utcnow() return v.replace('SNAPSHOT', now.strftime('%Y%m%d-%H%M%S')) setup( name=pkg['name'], version=to_version(pkg['version']), url=pkg['homepage'], description=pkg['description'], long_description=read_it('README.md'), long_description_content_type='text/markdown', keywords=pkg.get('keywords', ''), author=pkg['author']['name'], author_email=pkg['author']['email'], license=pkg['license'], zip_safe=False, entry_points={ 'phovea.registry': ['{0} = {0}:phovea'.format(pkg['name'])], 'phovea.config': ['{0} = {0}:phovea_config'.format(pkg['name'])] }, # See https://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Intended Audience :: Developers', 'Operating System :: OS Independent', # Pick your license as you wish (should match "license" above) 'License :: OSI Approved :: ' + ('BSD License' if pkg['license'] == 'BSD-3-Clause' else pkg['license']), 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4' ], # You can just specify the packages manually here if your project is # simple. Or you can use find_packages(). packages=find_packages(exclude=['docs', 'tests*']), # 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=requirements('requirements.txt'), tests_require=requirements('requirements_dev.txt'), # If there are data files included in your packages that need to be # installed, specify them here. If using Python 2.6 or less, then these # have to be included in MANIFEST.in as well. package_data=packaged('config.json', 'buildInfo.json'), # Although 'package_data' is the preferred approach, in some case you may # need to place data files outside of your packages. See: # http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # noqa # In this case, 'data_file' will be installed into '<sys.prefix>/my_data' data_files=[] # [('my_data', ['data/data_file'])], )
Python
0.000062
@@ -2089,57 +2089,12 @@ :: -2 +3 .7' -,%0A 'Programming Language :: Python :: 3.4' %0A %5D
c46da7419dee72f543ea289eb6b6531dfa31a280
Update version
setup.py
setup.py
"""PySend """ from setuptools import setup, find_packages from codecs import open from os import path 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() setup( name='pysend', version='0.0.1', description='Unified interface for sending email', long_description=long_description, url='https://github.com/growdaisy/pysend', author='Pokey Rule', author_email='pokey@growdaisy.com', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Topic :: Communications :: Email', 'License :: OSI Approved :: MIT License', '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', ], keywords='email smtp sendgrid', packages=find_packages(exclude=['contrib', 'docs', 'tests*']), install_requires=['requests'], )
Python
0
@@ -336,9 +336,9 @@ 0.0. -1 +2 ',%0A%0A
4db183d19f2e4f37d43ff130965587a14d8b1bfc
version bump
setup.py
setup.py
from distutils.core import setup setup( name='admanagerplusclient', version='0.7.0', author='Jim Barcelona', author_email='barce@me.com', packages=['admanagerplusclient', 'admanagerplusclient.tests'], install_requires=[ 'future', ], scripts=[], url='http://pypi.python.org/pypi/admanagerplusclient/', license='LICENSE', description='A client for interacting with the Ad Manager Plus Platform.', long_description=open('README.txt').read(), )
Python
0.000001
@@ -85,9 +85,9 @@ ='0. -7 +8 .0',
ef4ed496d89dd22d6710bf61f10df14c041f1ae9
update xarray cap to match pandas cap
setup.py
setup.py
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup # To use a consistent encoding import codecs import os import sys here = os.path.abspath(os.path.dirname(__file__)) with codecs.open(os.path.join(here, 'description.txt'), encoding='utf-8') as f: long_description = f.read() version_filename = os.path.join('pysat', 'version.txt') with codecs.open(os.path.join(here, version_filename)) as version_file: version = version_file.read().strip() # packages to be installed # starting with packages common across all setups install_requires = ['requests', 'beautifulsoup4', 'lxml', 'netCDF4'] # packages with Fortran code fortran_install = ['pysatCDF', 'madrigalWeb', 'h5py', 'PyForecastTools'] # python version specific support libraries if sys.version_info.major == 2: install_requires.extend(['xarray<0.12', 'pandas>=0.23, <0.25', 'numpy>=1.12, <1.17', 'scipy<1.3', 'matplotlib<3.0']) else: # python 3+ install_requires.extend(['xarray', 'pandas>=0.23, <0.25', 'numpy>=1.12', 'scipy', 'matplotlib']) # flag, True if on readthedocs on_rtd = os.environ.get('READTHEDOCS') == 'True' # include Fortran for normal install # read the docs doesn't do Fortran if not on_rtd: # not on ReadTheDocs, add Fortran install_requires.extend(fortran_install) setup( name='pysat', # 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='Supports science data analysis across measurement platforms', long_description=long_description, # The project's main homepage. url='http://github.com/pysat/pysat', # Author details author='Russell Stoneback', author_email='rstoneba@utdallas.edu', package_data={'pysat': ['pysat/version*.txt']}, include_package_data=True, # Choose your license license='BSD', # 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 :: 5 - Production/Stable', # Indicate who your project is intended for 'Intended Audience :: Science/Research', 'Topic :: Scientific/Engineering :: Astronomy', 'Topic :: Scientific/Engineering :: Physics', 'Topic :: Scientific/Engineering :: Atmospheric Science', # Pick your license as you wish (should match "license" above) 'License :: OSI Approved :: BSD 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.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', ], # What does your project relate to? # keywords='sample setuptools development', # You can just specify the packages manually here if your project is # simple. Or you can use find_packages(). packages=['pysat', 'pysat.instruments', 'pysat.ssnl'], # 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=install_requires, )
Python
0
@@ -1166,16 +1166,21 @@ %5B'xarray +%3C0.15 ', 'pand
4b3dc61e5cb46774cf647f8c640b280aae1e4e90
Handle symlinks in path to home directory
setup.py
setup.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # © 2017-2019 qsuscs, TobiX # Should still run with Python 2.7... from __future__ import print_function, unicode_literals import os import sys from glob import glob os.chdir(os.path.dirname(os.path.abspath(__file__))) exit = 0 for f in glob('dot.*'): dst_home = '~/' + f[3:].replace("--", "\ufffd").replace("-", "/").replace("\ufffd", "-") dst = os.path.expanduser(dst_home) src = os.path.join(os.getcwd(), f) src_rel = os.path.relpath(src, os.path.dirname(dst)) try: os.makedirs(os.path.dirname(dst)) except OSError: pass try: os.symlink(src_rel, dst) except OSError: # Broken symbolic links do not "exist" if not os.path.exists(dst): print('"{}" is a broken link pointing to "{}", replacing.'.format( dst_home, os.readlink(dst))) os.remove(dst) os.symlink(src_rel, dst) elif not os.path.samefile(src, dst): print('"{}" exists and does not link to "{}".'.format(dst_home, f)) exit = 1 sys.exit(exit)
Python
0
@@ -55,10 +55,10 @@ 7-20 +2 1 -9 qsu @@ -261,16 +261,66 @@ le__)))%0A +home = os.path.realpath(os.path.expanduser('~'))%0A%0A exit = 0 @@ -363,15 +363,8 @@ me = - '~/' + f%5B3 @@ -445,35 +445,29 @@ t = -os.path.expanduser( +home + '/' + dst_home )%0A @@ -462,17 +462,16 @@ dst_home -) %0A src
32fe723d195d03f68714d3b97d77f2ce34e02e13
Bump version and Python version.
setup.py
setup.py
from setuptools import setup setup( name='ppb-vector', version='0.2', packages=['ppb_vector'], url='http://github.com/pathunstrom/ppb-vector', license='', author='Piper Thunstrom', author_email='pathunstrom@gmail.com', description='A basic game development Vector2 class.', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.5' ] )
Python
0
@@ -68,17 +68,17 @@ sion='0. -2 +3 ',%0A p @@ -540,9 +540,9 @@ : 3. -5 +6 '%0A
7cd6bdb80649f6ef903cd8356b5c417fbb84cad4
Add twistedcaldav.directory to packages.
setup.py
setup.py
#!/usr/bin/env python ## # Copyright (c) 2006 Apple Computer, Inc. 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. # # DRI: Wilfredo Sanchez, wsanchez@apple.com ## import sys import os # # Compute the version number. # svnversion = os.popen("svnversion -n %r trunk" % (os.path.dirname(__file__),)) svn_revision = svnversion.read() svnversion.close() if "S" in svn_revision: # FIXME: Get release version from svn URL. print "Working copy (%s) is not trunk. Unable to determine version number." % (svn_revision,) sys.exit(1) elif svn_revision == "exported": # Weird Apple thing: Get the B&I version number from the path segments = __file__.split(os.path.sep)[:-1] segments.reverse() for segment in segments: try: version = segment[segment.rindex("-")+1:] break except ValueError: continue else: version = "unknown" else: version = "dev." + svn_revision # # Options # description = "CalDAV protocol extensions to twisted.web2.dav", long_description = """ Extends twisted.web2.dav to implement CalDAV-aware resources and methods. """ classifiers = None # # Write version file # version_file = file(os.path.join("twistedcaldav", "version.py"), "w") version_file.write('version = "%s"\n' % (version,)) version_file.close() # # Run setup # from distutils.core import setup setup( name = "twistedcaldav", version = version, description = description, long_description = long_description, url = None, classifiers = classifiers, author = "Apple Computer, Inc.", author_email = None, license = None, platforms = [ "all" ], packages = [ "twistedcaldav", "twistedcaldav.method", "twistedcaldav.query" ], scripts = [ "bin/caldavd" ], data_files = [("caldavd", ["conf/repository.xml", "conf/caldavd.plist"]),], )
Python
0.000112
@@ -2285,16 +2285,43 @@ caldav%22, + %22twistedcaldav.directory%22, %22twiste
5ef63a4400669a67ab09d9a822ace4f7e6c5acf5
Add sphinx and spelling packages to setup.py
setup.py
setup.py
from distutils.core import setup GITHUB_URL = 'https://github.com/jongiddy/jute' VERSION = '0.1.8' def contents_of(filename): with open(filename, encoding='utf-8') as f: return f.read() setup( name='jute', packages=['jute'], package_dir={'jute': 'python3/jute'}, version=VERSION, description='Interface module that verifies both providers and callers', long_description=contents_of('README.rst'), keywords=['interface', 'polymorphism'], author='Jonathan Patrick Giddy', author_email='jongiddy@gmail.com', url=GITHUB_URL, download_url='{}/tarball/v{}'.format(GITHUB_URL, VERSION), classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Natural Language :: English", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Libraries :: Python Modules", ], )
Python
0
@@ -1266,10 +1266,195 @@ %0A %5D,%0A + extras_require=%7B%0A 'doc': %5B%0A %22pyenchant%22, # pre-requisite for sphinxcontrib-spelling%0A %22sphinx%22,%0A %22sphinxcontrib-spelling%22,%0A %5D,%0A %7D,%0A )%0A
6e2f22d4e710e90100387f62715282c58612e102
Add install_requires.
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup long_description = open('README.md', 'r').read() setup( name="loofah", version="0.1", packages=[ "loofah" ], author="Paul Tagliamonte", author_email="paultag@debian.org", long_description=long_description, description='does some stuff with things & stuff', license="Expat", url="", platforms=['any'] )
Python
0
@@ -96,16 +96,161 @@ read()%0A%0A +with open('requirements.txt') as f:%0A install_requires = %5Bl for l in f.read().splitlines()%0A if not l.startswith('#')%5D%0A%0A%0A setup(%0A @@ -489,16 +489,55 @@ stuff',%0A + install_requires=install_requires,%0A lice
e4b441a38e8a68d8b1e697a6e5e0cb818ea2eb64
bump other packages too
setup.py
setup.py
import sys from setuptools import setup # Be verbose about Python < 3.6 being deprecated. if sys.version_info < (3, 6): print('\n' * 3 + '*' * 64) print('lastcast requires Python 3.6+, and might be broken if run with\n' 'this version of Python.') print('*' * 64 + '\n' * 3) setup( name='lastcast', version='2.0.1', description='Scrobble music to last.fm from Chromecast.', author='Erik Price', url='https://github.com/erik/lastcast', packages=['lastcast'], entry_points={ 'console_scripts': [ 'lastcast = lastcast.__main__:main', ], }, license='MIT', classifiers=[ "Programming Language :: Python", "Programming Language :: Python :: 3", "Operating System :: OS Independent", ], install_requires=[ 'PyChromecast==12.1.4', 'click==6.7', 'pylast==1.7.0', 'toml==0.9.4', ] )
Python
0
@@ -869,11 +869,13 @@ ck== -6.7 +8.1.3 ',%0A @@ -894,11 +894,11 @@ st== -1.7 +5.0 .0', @@ -919,11 +919,12 @@ ==0. -9.4 +10.2 ',%0A
2808199dbfa969823e5a7b3c16eedc1dcd531251
update to v0.2.dev
setup.py
setup.py
#!/usr/bin/env python # Licensed under a 3-clause BSD style license - see LICENSE.rst import glob import os import sys import ah_bootstrap from setuptools import setup #A dirty hack to get around some early import/configurations ambiguities if sys.version_info[0] >= 3: import builtins else: import __builtin__ as builtins builtins._ASTROPY_SETUP_ = True from astropy_helpers.setup_helpers import ( register_commands, adjust_compiler, get_debug_option, get_package_info) from astropy_helpers.git_helpers import get_git_devstr from astropy_helpers.version_helpers import generate_version_py # Get some values from the setup.cfg try: from ConfigParser import ConfigParser except ImportError: from configparser import ConfigParser conf = ConfigParser() conf.read(['setup.cfg']) metadata = dict(conf.items('metadata')) PACKAGENAME = metadata.get('package_name', 'packagename') DESCRIPTION = metadata.get('description', 'Astropy affiliated package') AUTHOR = metadata.get('author', '') AUTHOR_EMAIL = metadata.get('author_email', '') LICENSE = metadata.get('license', 'unknown') URL = metadata.get('url', 'http://astropy.org') # Get the long description from the package's docstring __import__(PACKAGENAME) package = sys.modules[PACKAGENAME] LONG_DESCRIPTION = package.__doc__ # Store the package name in a built-in variable so it's easy # to get from other parts of the setup infrastructure builtins._ASTROPY_PACKAGE_NAME_ = PACKAGENAME # VERSION should be PEP386 compatible (http://www.python.org/dev/peps/pep-0386) VERSION = '0.1' # Indicates if this version is a release version RELEASE = 'dev' not in VERSION if not RELEASE: VERSION += get_git_devstr(False) # Populate the dict of setup command overrides; this should be done before # invoking any other functionality from distutils since it can potentially # modify distutils' behavior. cmdclassd = register_commands(PACKAGENAME, VERSION, RELEASE) # Adjust the compiler in case the default on this platform is to use a # broken one. adjust_compiler(PACKAGENAME) # Freeze build information in version.py generate_version_py(PACKAGENAME, VERSION, RELEASE, get_debug_option(PACKAGENAME)) # Treat everything in scripts except README.rst as a script to be installed scripts = [fname for fname in glob.glob(os.path.join('scripts', '*')) if os.path.basename(fname) != 'README.rst'] # Get configuration information from all of the various subpackages. # See the docstring for setup_helpers.update_package_files for more # details. package_info = get_package_info() # Add the project-global data package_info['package_data'].setdefault(PACKAGENAME, []) package_info['package_data'][PACKAGENAME].append('data/*') # Include all .c files, recursively, including those generated by # Cython, since we can not do this in MANIFEST.in with a "dynamic" # directory name. c_files = [] for root, dirs, files in os.walk(PACKAGENAME): for filename in files: if filename.endswith('.c'): c_files.append( os.path.join( os.path.relpath(root, PACKAGENAME), filename)) package_info['package_data'][PACKAGENAME].extend(c_files) setup(name=PACKAGENAME, version=VERSION, description=DESCRIPTION, scripts=scripts, install_requires=['astropy','matplotlib>=1.2'], author=AUTHOR, author_email=AUTHOR_EMAIL, license=LICENSE, url=URL, long_description=LONG_DESCRIPTION, cmdclass=cmdclassd, zip_safe=False, use_2to3=True, **package_info )
Python
0
@@ -1548,17 +1548,21 @@ ON = '0. -1 +2.dev '%0A%0A# Ind
1680cc753010ca267cdcc12ae414e6083baeb686
bump version
setup.py
setup.py
import sys if sys.version_info[0] < 3: sys.exit('Sorry, Python < 3.x is not supported') # Try using setuptools first, if it's installed from setuptools import setup, find_packages packages = ["pytc_gui", "pytc_gui/dialogs", "pytc_gui/widgets", "pytc_gui/widgets/experiment_box", "pytc_gui/widgets/experiment_box/experiment_dialog"] # Need to add all dependencies to setup as we go! setup(name='pytc-gui', packages=packages, version='1.2.2', description="PyQt5 GUI for pytc API", long_description=open("README.rst").read(), author='Hiranmayi Duvvuri', author_email='hiranmayid8@gmail.com', url='https://github.com/harmslab/pytc-gui', download_url='https://github.com/harmslab/pytc-gui/tarball/1.2.2', zip_safe=False, install_requires=["pytc-fitter>=1.1.5","seaborn","pyqt5"], package_data={"pytc_gui":["*.png","widgets/experiment_box/icons/*.png"]}, classifiers=['Programming Language :: Python'], entry_points = { 'gui_scripts': [ 'pytc-gui = pytc_gui.main_window:main' ] })
Python
0
@@ -494,25 +494,25 @@ ersion='1.2. -2 +3 ',%0A des @@ -1150,9 +1150,8 @@ %7D)%0A -%0A
c630a4c44babac54ce01dc5898a9d6fbfae598c6
Remove unecessary dependency
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages from holmes import __version__ tests_require = [ 'mock', 'nose', 'coverage', 'yanc', 'preggy', 'tox', 'ipdb', 'coveralls', 'factory_boy', 'sqltap', 'sphinx', 'honcho', ] setup( name='holmes', version=__version__, description='Holmes is a service to investigate your website health.', long_description=''' Holmes is a service to investigate your website health. ''', keywords='seo health web', author='Globo.com', author_email='appdev@corp.globo.com', url='', license='MIT', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Operating System :: MacOS', 'Operating System :: POSIX', 'Operating System :: Unix', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', ], packages=find_packages(), include_package_data=True, install_requires=[ 'derpconf>=0.6.0,<0.7.0', 'cow-framework>=0.8.0,<0.9.0', 'ujson>=1.33,<1.34.0', 'requests>=2.2.1,<2.3.0', 'lxml>=3.3.3,<3.4.0', 'cssselect>=0.9.1,<0.10.0', 'sheep>=0.3.10,<0.4.0', 'pycurl>=7.19.0,<7.20.0', 'alembic>=0.6.3,<0.7.0', 'mysql-python>=1.2.5,<1.3.0', 'six>=1.6.1,<1.7.0', 'octopus-http>=0.6.3,<0.7.0', 'redis>=2.9.1,<2.10.0', 'toredis>=0.1.2,<0.2.0', 'raven>=4.1.1,<4.2.0', 'rotunicode>=1.0.1,<1.1.0', 'materialgirl>=0.5.0,<0.6.0', 'pyelasticsearch>=0.6.1,<0.7.0', 'tornadoes>=2.1.0,<2.2.0', 'Babel>=1.3,<1.4', 'holmesalf>=0.1.2,<0.2.0' ], extras_require={ 'tests': tests_require, }, entry_points={ 'console_scripts': [ 'holmes-api=holmes.server:main', 'holmes-worker=holmes.worker:main', 'holmes-material=holmes.material:main', 'holmes-search=holmes.search:main', ], }, )
Python
0.027308
@@ -1817,42 +1817,8 @@ 4',%0A - 'holmesalf%3E=0.1.2,%3C0.2.0'%0A
223791ba7ec2071664f55dbba3a953faa68fe50f
Version bump
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup setup(name='python-imdb', version='0.1.15', description='Python interface to IMDb plain-text data files', author='nandhp', author_email='nandhp@gmail.com', url='https://github.com/nandhp/python-imdb', packages=['imdb'] )
Python
0.000001
@@ -100,9 +100,9 @@ .1.1 -5 +6 ',%0A
02ac38532cea722ef71717cbe70f9639a4373d07
Tweak description and long_description
setup.py
setup.py
import re from setuptools import setup with open('nexmo/__init__.py', 'r') as fd: version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) setup(name='nexmo', version=version, description='Python client for the Nexmo API', long_description='Python client for the Nexmo API', url='http://github.com/Nexmo/nexmo-python', author='Tim Craft', author_email='mail@timcraft.com', license='MIT', packages=['nexmo'], platforms=['any'], install_requires=['requests'])
Python
0.000002
@@ -237,39 +237,39 @@ on=' -Python client for the Nexmo API +Nexmo Client Library for Python ',%0A @@ -287,16 +287,28 @@ iption=' +This is the Python c @@ -317,25 +317,152 @@ ent -for the Nexmo API +library for Nexmo%5C's API. To use it you%5C'll need a Nexmo account. Sign up %60for free at nexmo.com %3Chttp://nexmo.com?src=python-client-library%3E%60_. ',%0A
5f0a1afdf1317da3b101171e6935be3b891a8a73
Add more detailed metadata to setup.py
setup.py
setup.py
from setuptools import setup, find_packages setup( name = "vmflib", version = "0.1", packages = find_packages(), scripts = ['tools/buildbsp.py'], entry_points = { 'console_scripts': [ 'buildbsp = buildbsp:main' ] }, # metadata for upload to PyPI author = "Stephen Eisenhauer", author_email = "bhs2007@gmail.com", description = "A package for creating Valve Map Format (VMF) files for the Source engine", license = "BSD", keywords = "vmf valve map format source engine", url = "http://github.com/BHSPitMonkey/vmflib", # could also include long_description, download_url, classifiers, etc. )
Python
0
@@ -1,8 +1,32 @@ +#! /usr/bin/env python3%0A from set @@ -626,77 +626,921 @@ -# could also include long_description, download_url, classifiers, etc. +classifiers = %5B%0A %22Programming Language :: Python :: 3%22,%0A %22Development Status :: 3 - Alpha%22,%0A %22Environment :: Other Environment%22,%0A %22Intended Audience :: Developers%22,%0A %22License :: OSI Approved :: BSD License%22,%0A %22Operating System :: OS Independent%22,%0A %22Topic :: Software Development :: Libraries :: Python Modules%22,%0A %22Topic :: Games/Entertainment%22,%0A %5D,%0A long_description = %22%22%22%5C%0ATools for creating Valve Map Format (VMF) files%0A-----------------------------------------------%0A%0Avmflib is a python module to help developers create maps for VMF-compatible %0Avideo games procedurally using Python. The VMF format is best known for its %0Ause in the Source Engine and its many games.%0A%0AAlso included is a script (buildbsp) to help automate the process of compiling%0Aand installing VMF maps into ready-to-use BSP files.%0A%0AThis package requires Python 3 or later.%0A%22%22%22 %0A)%0A
35fd4836b0d823dbceea8694c9f7a23c4dc40f20
update the realease
setup.py
setup.py
import re from setuptools import find_packages, setup install_requires = [ 'wagtail>=1.9,<1.11', 'user-agents>=1.0.1', 'wagtailfontawesome>=1.0.6', ] tests_require = [ 'factory_boy==2.8.1', 'flake8', 'flake8-blind-except', 'flake8-debugger', 'flake8-imports', 'freezegun==0.3.8', 'pytest-cov==2.4.0', 'pytest-django==3.1.2', 'pytest-sugar==0.7.1', 'pytest-mock==1.6.3', 'pytest==3.1.0', 'wagtail_factories==0.3.0', ] docs_require = [ 'sphinx>=1.4.0', ] with open('README.rst') as fh: long_description = re.sub( '^.. start-no-pypi.*^.. end-no-pypi', '', fh.read(), flags=re.M | re.S) setup( name='wagtail-personalisation', version='0.9.1', description='A Wagtail add-on for showing personalized content', author='Lab Digital BV', author_email='opensource@labdigital.nl', url='http://labdigital.nl', install_requires=install_requires, tests_require=tests_require, extras_require={ 'docs': docs_require, 'test': tests_require, }, packages=find_packages('src'), package_dir={'': 'src'}, include_package_data=True, license='MIT', long_description=long_description, classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', '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', 'Framework :: Django', 'Framework :: Django :: 1.9', 'Framework :: Django :: 1.10', 'Framework :: Django :: 1.11', 'Topic :: Internet :: WWW/HTTP :: Site Management', ], )
Python
0
@@ -720,10 +720,16 @@ ='0. -9. +10.0beta 1',%0A
4ca207458b1007fbef11d62f63af9fdf8f91a19b
Fix req parsing
setup.py
setup.py
#!/usr/bin/python # -*- coding: UTF-8 -*- from setuptools import setup from pip.req import parse_requirements from oshino_admin.version import get_version install_reqs = list(parse_requirements("requirements/release.txt", session={})) test_reqs = list(parse_requirements("requirements/test.txt", session={})) setup(name="oshino-admin", version=get_version(), description="", author="zaibacu", author_email="zaibacu@gmail.com", packages=["oshino_admin"], install_requires=[str(ir.req) for ir in install_reqs], test_suite="pytest", tests_require=[str(tr.req) for tr in test_reqs], setup_requires=["pytest-runner"], entry_points={'console_scripts': ['oshino-admin = oshino_admin.run:main' ] } )
Python
0.000292
@@ -64,16 +64,134 @@ t setup%0A +%0Atry: # for pip %3E= 10%0A from pip._internal.req import parse_requirements%0Aexcept ImportError: # for pip %3C= 9.0.3%0A from pip
59091a8c2bb76860d52eac5214166eb57ec013a7
change project, package name to all lowercase letters
setup.py
setup.py
import os try: from setuptools import setup except ImportError: from distutils.core import setup DESCRIPTION = "Galaxy Cluster Properties and Weak Lensing Profiles" LONG_DESCRIPTION = """ cluster-lensing: galaxy cluster halo calculations ====================================================== This package includes tools for calculating a variety of galaxy cluster properties, as well as mass-richness and mass-concentration scaling relations, and weak lensing profiles. These include surface mass density (Sigma) and differential surface mass density (DeltaSigma) for NFW halos, both with and without the effects of cluster miscentering. For more information, visit http://github.com/jesford/cluster-lensing """ NAME = "cluster-lensing" AUTHOR = "Jes Ford" AUTHOR_EMAIL = "jesford@uw.edu" MAINTAINER = "Jes Ford" MAINTAINER_EMAIL = "jesford@uw.edu" URL = 'http://github.com/jesford/cluster-lensing' DOWNLOAD_URL = 'http://github.com/jesford/cluster-lensing' LICENSE = 'MIT' VERSION = '0.0.1' setup(name=NAME, version=VERSION, description=DESCRIPTION, long_description=LONG_DESCRIPTION, author=AUTHOR, author_email=AUTHOR_EMAIL, maintainer=MAINTAINER, maintainer_email=MAINTAINER_EMAIL, url=URL, download_url=DOWNLOAD_URL, license=LICENSE, packages=['cluster-lensing'], classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 2.7', )
Python
0.000036
@@ -133,19 +133,8 @@ ter -Properties and @@ -150,15 +150,12 @@ ing -Profile +Tool s%22%0AL @@ -179,25 +179,24 @@ %22%22%22%0Acluster -- lensing: gal @@ -665,42 +665,39 @@ p:// -github.com/jesford/ cluster -- lensing +.readthedocs.org/ %0A%22%22%22 @@ -708,25 +708,24 @@ E = %22cluster -- lensing%22%0AAUT @@ -865,33 +865,32 @@ /jesford/cluster -- lensing'%0ADOWNLOA @@ -927,25 +927,24 @@ ford/cluster -- lensing'%0ALIC @@ -973,11 +973,11 @@ '0. -0. 1 +.0 '%0A%0As @@ -992,18 +992,16 @@ e=NAME,%0A - vers @@ -1017,18 +1017,16 @@ ON,%0A - descript @@ -1038,26 +1038,24 @@ ESCRIPTION,%0A - long_des @@ -1081,26 +1081,24 @@ IPTION,%0A - author=AUTHO @@ -1100,18 +1100,16 @@ AUTHOR,%0A - auth @@ -1131,26 +1131,24 @@ _EMAIL,%0A - maintainer=M @@ -1158,18 +1158,16 @@ TAINER,%0A - main @@ -1201,18 +1201,16 @@ IL,%0A - url=URL, @@ -1206,26 +1206,24 @@ url=URL,%0A - download @@ -1245,18 +1245,16 @@ RL,%0A - license= @@ -1262,18 +1262,16 @@ ICENSE,%0A - pack @@ -1284,17 +1284,16 @@ 'cluster -- lensing' @@ -1295,18 +1295,16 @@ sing'%5D,%0A - clas @@ -1574,17 +1574,130 @@ :: 2.7' -, +%0A %5D,%0A install_requires=%5B%0A %22numpy%22,%0A %22scipy%22,%0A %22pandas%22,%0A %22astropy%22%0A %5D %0A )%0A
1f9c491ccf8411eb68c4992cf9f50b2b852e8cb1
Bump version to pre-release
setup.py
setup.py
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name='scholarly', version='1.4.5', author='Steven A. Cholewiak, Panos Ipeirotis, Victor Silva, Arun Kannawadi', author_email='steven@cholewiak.com, panos@stern.nyu.edu, vsilva@ualberta.ca, arunkannawadi@astro.princeton.edu', description='Simple access to Google Scholar authors and citations', long_description=long_description, long_description_content_type="text/markdown", license='Unlicense', url='https://github.com/scholarly-python-package/scholarly', packages=setuptools.find_packages(), keywords=['Google Scholar', 'academics', 'citations'], classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3', 'Topic :: Software Development :: Libraries :: Python Modules'], install_requires=['arrow', 'beautifulsoup4', 'bibtexparser', 'requests[security]', 'requests[socks]', 'stem', 'fake_useragent', 'PySocks', 'selenium', 'python-dotenv', 'free-proxy', 'sphinx_rtd_theme', 'typing_extensions' ], test_suite="test_module.py" )
Python
0
@@ -140,11 +140,17 @@ ='1. -4.5 +5.0-alpha ',%0A
c0bbad726a92bbda75d4de6ba73ce49c97a5fba8
Bump version to 1.1
setup.py
setup.py
from distutils.core import setup setup( name='requests-negotiate', version='1.0', license='BSD', packages=['requests_negotiate'], classifiers=['License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content'], install_requires=['requests', 'python-gssapi'], )
Python
0
@@ -84,9 +84,9 @@ ='1. -0 +1 ',%0A
68e7ba3db32e1a8632cd317206769e5b5e96c9a8
Bump version
setup.py
setup.py
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-zipview', version='0.1', packages=['zipview'], include_package_data=True, license='MIT License', # example license description='A simple Django base view to zip and stream several files.', long_description=README, url='https://github.com/thibault/django-zipview/', author='Thibault Jouannic', author_email='thibault@miximum.fr', classifiers=[ 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', # Replace these appropriately if you are stuck on Python 2. 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ], )
Python
0
@@ -309,11 +309,13 @@ on=' +1. 0. -1 +0 ',%0A
39a3eb69dd98518093ac84025eb6d037aceb0d10
Fix setup.py, and bump version
setup.py
setup.py
""" Setup file for the cred-client package. """ from setuptools import setup import sys # The package only works with python >=3.0 if sys.version_info < (3,): print("I'm only for 3, please upgrade") sys.exit(1) version = '0.2.4' setup( name='cred-client', version=version, author='Tehnix', author_email='ckl@codetalk.io', packages=[ 'cred', 'cred.client' ], scripts=[], url='https://github.com/Tehnix/cred-client', download_url='https://github.com/Tehnix/cred-client/tarball/v{0}'.format(version), license='BSD', description='Client Library for cred-server.', # long_description=open('README.md').read(), classifiers=[ 'Development Status :: 1 - Planning', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: BSD License', 'Operating System :: MacOS :: MacOS X', 'Operating System :: POSIX', 'Programming Language :: Python :: 3 :: Only', 'Topic :: Home Automation', ], install_requires=[], #test_suite='nose.collector', )
Python
0
@@ -233,9 +233,9 @@ 0.2. -4 +5 '%0A%0As @@ -360,52 +360,46 @@ es=%5B -%0A 'cred' +%5D ,%0A - - 'cred.client'%0A %5D +include_package_data=True ,%0A
f5082476aa8c25bcdea6fe1f96e0f1184195d875
update setup.py
setup.py
setup.py
#!/usr/bin/env python __author__ = "Daniel W. Davies" __copyright__ = "Copyright Daniel W. Davies, Adam J. Jackson, Keith T. Butler (2019)" __version__ = "2.3.2" __maintainer__ = "Anthony O. Onwuli" __email__ = "anthony.onwuli16@imperial.ac.uk" __date__ = "Nov 4 2021" from setuptools import setup, Extension import os import unittest module_dir = os.path.dirname(os.path.abspath(__file__)) if __name__ == "__main__": setup( name="SMACT", version="2.3.2", description="Semiconducting Materials by Analogy and Chemical Theory", long_description=open(os.path.join(module_dir, "README.md")).read(), long_description_content_type="text/markdown", url="https://github.com/WMD-group/SMACT", author="Daniel W. Davies", author_email="d.davies16@imperial.ac.uk", maintainer="Anthony O. Onwuli", maintainer_email="anthony.onwuli16@imperial.ac.uk", license="MIT", packages=["smact", "smact.tests", "smact.structure_prediction"], package_data={ "smact": [ "data/*.txt", "data/*.csv", "data/*.data", "data/*.xlsx", "data/*.json", ] }, zip_safe=False, test_suite="smact.tests.test", install_requires=[ "scipy", "numpy", "spglib", "pymatgen", "ase", "pandas", "pathos", ], classifiers=[ "Programming Language :: Python", "Development Status :: 5 - Production/Stable", "Intended Audience :: Science/Research", "Operating System :: OS Independent", "Topic :: Scientific/Engineering", ], )
Python
0.000001
@@ -153,17 +153,17 @@ = %222.3. -2 +4 %22%0A__main @@ -255,18 +255,19 @@ = %22 -Nov 4 +July 7 202 -1 +2 %22%0A%0Af @@ -470,17 +470,17 @@ on=%222.3. -2 +3 %22,%0A
39508d207c4cd9f09ffffe2448a78209665f8234
version bump
setup.py
setup.py
# Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path 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='djangodbu', # 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='0.0.1rc1', description='Tools for debugging Django', long_description=long_description, # The project's main homepage. url='https://github.com/mulderns/djangodbu', # Author details author='Valtteri Kortesmaa', author_email='mulderns@iki.fi', # Choose your license license='MIT', # 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 :: Debuggers', # 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', 'Programming Language :: Python :: 2.7', #'Programming Language :: Python :: 3', #'Programming Language :: Python :: 3.3', #'Programming Language :: Python :: 3.4', #'Programming Language :: Python :: 3.5', ], # What does your project relate to? keywords=['django', 'debug', 'shell_plus', 'orm'], # You can just specify the packages manually here if your project is # simple. Or you can use find_packages(). #packages=find_packages(exclude=['contrib', 'docs', 'tests']), packages=['djangodbu'], # Alternatively, if you want to distribute just a my_module.py, uncomment # this: # py_modules=["my_module"], # 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=['peppercorn'], # 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': ['check-manifest'], # 'test': ['coverage'], #}, # If there are data files included in your packages that need to be # installed, specify them here. If using Python 2.6 or less, then these # have to be included in MANIFEST.in as well. #package_data={ # 'sample': ['package_data.dat'], #}, # Although 'package_data' is the preferred approach, in some case you may # need to place data files outside of your packages. See: # http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # noqa # In this case, 'data_file' will be installed into '<sys.prefix>/my_data' #data_files=[('my_data', ['data/data_file'])], # To provide executable scripts, use entry points in preference to the # "scripts" keyword. Entry points provide cross-platform support and allow # pip to create the appropriate form of executable for the target platform. #entry_points={ # 'console_scripts': [ # 'sample=sample:main', # ], #}, )
Python
0.000001
@@ -607,12 +607,9 @@ 0.0. -1rc1 +2 ',%0A%0A
1f3de18fde0438622026a890a172964b6cbbe992
Version bump ready for PyPI release
setup.py
setup.py
import os import sys try: from setuptools import setup has_setuptools = True except ImportError: from distutils.core import setup has_setuptools = False if has_setuptools: from setuptools.command.test import test as TestCommand class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): import pytest errno = pytest.main(self.test_args) sys.exit(errno) setup_options = dict( install_requires=( 'pytz', 'python-dateutil', ), zip_safe=False, include_package_data=True, cmdclass = {'test': PyTest}, ) else: setup_options = dict( requires=( 'pytz', 'python_dateutil', ), ) setup( name='django-recurrence', version='1.1.0-dev', license='BSD', description='Django utility wrapping dateutil.rrule', author='Tamas Kemenczy', author_email='tamas.kemenczy@gmail.com', classifiers=( 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', ), requires=( 'Django', 'pytz', 'python_dateutil', ), packages=( 'recurrence', ), package_dir={ 'recurrence': 'recurrence' }, package_data={ 'recurrence': [ os.path.join('static', '*.css'), os.path.join('static', '*.png'), os.path.join('static', '*.js'), os.path.join('locale', '*.po'), os.path.join('locale', '*.mo'), ], }, **setup_options )
Python
0
@@ -956,12 +956,8 @@ .1.0 --dev ',%0A @@ -1435,16 +1435,306 @@ ython',%0A + %22Programming Language :: Python :: 2%22,%0A 'Programming Language :: Python :: 2.6',%0A 'Programming Language :: Python :: 2.7',%0A %22Programming Language :: Python :: 3%22,%0A %22Programming Language :: Python :: 3.3%22,%0A %22Programming Language :: Python :: 3.4%22,%0A ),%0A%0A
62455662631da3999344ca6581c93b2fed851e07
fix #2470
setup.py
setup.py
import os import runpy from codecs import open from setuptools import setup, find_packages # Based on https://github.com/pypa/sampleproject/blob/master/setup.py # and https://python-packaging-user-guide.readthedocs.org/ here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() VERSION = runpy.run_path(os.path.join(here, "mitmproxy", "version.py"))["VERSION"].split("-0x")[0] setup( name="mitmproxy", version=VERSION, description="An interactive, SSL-capable, man-in-the-middle HTTP proxy for penetration testers and software developers.", long_description=long_description, url="http://mitmproxy.org", author="Aldo Cortesi", author_email="aldo@corte.si", license="MIT", classifiers=[ "License :: OSI Approved :: MIT License", "Development Status :: 5 - Production/Stable", "Environment :: Console", "Environment :: Console :: Curses", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Operating System :: Microsoft :: Windows", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Security", "Topic :: Internet", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: Proxy Servers", "Topic :: Software Development :: Testing" ], packages=find_packages(include=[ "mitmproxy", "mitmproxy.*", "pathod", "pathod.*", ]), include_package_data=True, entry_points={ 'console_scripts': [ "mitmproxy = mitmproxy.tools.main:mitmproxy", "mitmdump = mitmproxy.tools.main:mitmdump", "mitmweb = mitmproxy.tools.main:mitmweb", "pathod = pathod.pathod_cmdline:go_pathod", "pathoc = pathod.pathoc_cmdline:go_pathoc" ] }, # https://packaging.python.org/en/latest/requirements/#install-requires # It is not considered best practice to use install_requires to pin dependencies to specific versions. install_requires=[ "blinker>=1.4, <1.5", "brotlipy>=0.5.1, <0.8", "certifi>=2015.11.20.1", # no semver here - this should always be on the last release! "click>=6.2, <7", "cryptography>=2.1.4,<2.2", 'h11>=0.7.0,<0.8', "h2>=3.0, <4", "hyperframe>=5.0, <6", "kaitaistruct>=0.7, <0.8", "ldap3>=2.4,<2.5", "passlib>=1.6.5, <1.8", "pyasn1>=0.3.1,<0.5", "pyOpenSSL>=17.2,<17.6", "pyparsing>=2.1.3, <2.3", "pyperclip>=1.5.22, <1.7", "requests>=2.9.1, <3", "ruamel.yaml>=0.13.2, <0.16", "sortedcontainers>=1.5.4, <1.6", "tornado>=4.3, <4.6", "urwid>=1.3.1, <1.4", ], extras_require={ ':sys_platform == "win32"': [ "pydivert>=2.0.3,<2.2", ], 'dev': [ "flake8>=3.5, <3.6", "Flask>=0.10.1, <0.13", "mypy>=0.560,<0.561", "pytest-cov>=2.2.1, <3", "pytest-faulthandler>=1.3.0, <2", "pytest-timeout>=1.0.0, <2", "pytest-xdist>=1.14, <2", "pytest>=3.1, <4", "rstcheck>=2.2, <4.0", "sphinx_rtd_theme>=0.1.9, <0.3", "sphinx-autobuild>=0.5.2, <0.8", "sphinx>=1.3.5, <1.7", "sphinxcontrib-documentedlist>=0.5.0, <0.7", "tox>=2.3, <3", ], 'examples': [ "beautifulsoup4>=4.4.1, <4.7", "Pillow>=4.3,<4.4", ] } )
Python
0.000001
@@ -7,21 +7,8 @@ os%0A -import runpy%0A from @@ -28,16 +28,26 @@ t open%0A%0A +import re%0A from set @@ -369,32 +369,17 @@ ()%0A%0A -VERSION = runpy.run_path +with open (os. @@ -425,35 +425,87 @@ y%22)) -%5B%22VERSION%22%5D.split(%22 + as f:%0A VERSION = re.search(r'VERSION = %22(.+?)(?: -0x +%7C %22) -%5B0%5D +', f.read()).group(1) %0A%0Ase
6dfe9f2ef3072ee52bcfa12eaf4cf4d6127af846
Revert back to simple installation.
setup.py
setup.py
from setuptools import setup, find_packages import os import subprocess from setuptools.command.install import install as install_command from setuptools.command.develop import develop as develop_command from setuptools.command.egg_info import egg_info as egg_info_command try: # for pip >= 10 from pip._internal.req import parse_requirements from pip._internal.download import PipSession except ImportError: # for pip <= 9.0.3 from pip.req import parse_requirements from pip.download import PipSession links = [] requires = [] try: requirements = list(parse_requirements('requirements.txt')) except Exception: # new versions of pip requires a session requirements = list(parse_requirements('requirements.txt', session=PipSession())) to_manually_install = [] for item in requirements: # we want to handle package names and also repo urls link = None if getattr(item, 'url', None): # older pip has url link = str(item.url) elif getattr(item, 'link', None): # newer pip has link link = str(item.link) if link is not None and item.editable: to_manually_install.append(link) continue if link is not None: links.append(link) if item.req: requires.append(str(item.req)) def manual_install(): global to_manually_install for link in to_manually_install: print("Manually installing editable url: {}".format(link)) command = 'pip install -v -e {}'.format(link) subprocess.run(command.split()) class InstallCommand(install_command): def run(self): manual_install() super().run() class DevelopCommand(develop_command): def run(self): manual_install() super().run() class EggInfoCommand(egg_info_command): def run(self): manual_install() super().run() setup( name='dps', author="Eric Crawford", author_email="eric.crawford@mail.mcgill.ca", version='0.1', packages=find_packages(), setup_requires=['numpy>=1.7'], install_requires=requires, dependency_links=links, cmdclass={'install': InstallCommand, 'develop': DevelopCommand, 'egg_info': EggInfoCommand}, entry_points={ 'console_scripts': ['dps-hyper=dps.hyper.command_line:dps_hyper_cl', 'dps-run=dps.run:run', 'readme=dps.utils.base:view_readme_cl', 'tf-inspect=dps.utils.tf:tf_inspect_cl', 'git-summary=dps.utils.base:git_summary_cl', 'report-to-videos=dps.utils.html_report:report_to_videos_cl'] } )
Python
0
@@ -41,2160 +41,156 @@ ges%0A -import os%0Aimport subprocess%0Afrom setuptools.command.install import install as install_command%0Afrom setuptools.command.develop import develop as develop_command%0Afrom setuptools.command.egg_info import egg_info as egg_info_command%0A%0Atry: # for pip %3E= 10%0A from pip._internal.req import parse_requirements%0A from pip._internal.download import PipSession%0Aexcept ImportError: # for pip %3C= 9.0.3%0A from pip.req import parse_requirements%0A from pip.download import PipSession%0A%0Alinks = %5B%5D%0Arequires = %5B%5D%0A%0Atry:%0A requirements = list(parse_requirements('requirements.txt'))%0Aexcept Exception:%0A # new versions of pip requires a session%0A requirements = list(parse_requirements('requirements.txt', session=PipSession()))%0A%0Ato_manually_install = %5B%5D%0A%0Afor item in requirements:%0A # we want to handle package names and also repo urls%0A link = None%0A if getattr(item, 'url', None): # older pip has url%0A link = str(item.url)%0A elif getattr(item, 'link', None): # newer pip has link%0A link = str(item.link)%0A%0A if link is not None and item.editable:%0A to_manually_install.append(link)%0A continue%0A%0A if link is not None:%0A links.append(link)%0A%0A if item.req:%0A requires.append(str(item.req))%0A%0A%0Adef manual_install():%0A global to_manually_install%0A for link in to_manually_install:%0A print(%22Manually installing editable url: %7B%7D%22.format(link))%0A command = 'pip install -v -e %7B%7D'.format(link)%0A subprocess.run(command.split())%0A%0A%0Aclass InstallCommand(install_command):%0A def run(self):%0A manual_install()%0A super().run()%0A%0A%0Aclass DevelopCommand(develop_command):%0A def run(self):%0A manual_install()%0A super().run()%0A%0A%0Aclass EggInfoCommand(egg_info_command):%0A def run(self):%0A manual_install()%0A super().run()%0A%0A%0Asetup(%0A name='dps',%0A author=%22Eric Crawford%22,%0A author_email=%22eric.crawford@mail.mcgill.ca%22,%0A version='0.1',%0A packages=find_packages(),%0A setup_requires=%5B'numpy%3E=1.7'%5D,%0A install_requires=requires,%0A dependency_links=links,%0A cmdclass=%7B'install': InstallCommand, 'develop': DevelopCommand, 'egg_info': EggInfoCommand%7D +%0Asetup(%0A name='dps',%0A author=%22Eric Crawford%22,%0A author_email=%22eric.crawford@mail.mcgill.ca%22,%0A version='0.1',%0A packages=find_packages() ,%0A
82cda10d145faa1ef13c22cdbd6e1c586a6dfdf9
remove debug print and update dependencies
setup.py
setup.py
#!/usr/bin/env python # vim: et:sta:bs=2:sw=4: from setuptools import setup, find_packages, findall from get_git_version import get_git_version import os, os.path def find_package_data(): base = os.path.join(os.path.dirname(__file__), 'src') s, r = ['.'], [] while s: p = s.pop() for c in os.listdir(os.path.join(base, p)): if os.path.isdir(os.path.join(base, p, c)): s.append(os.path.join(p, c)) elif c.endswith('.mirte'): r.append(os.path.join(p, c)) print r return r setup(name='tkbd', version=get_git_version(), description='Terminal Kamer Bezetting Daemon voor de faculteit NWI '+ 'van de Radboud Universiteit', author='Bas Westerbaan', author_email='bas@westerbaan.name', url='http://github.com/bwesterb/tkbd', packages=['tkbd'], zip_safe=False, package_dir={'tkbd': 'src'}, package_data={'tkbd': find_package_data()}, install_requires = [ 'docutils>=0.3', 'mirte>=0.1.0a3', 'sarah>=0.1.1', 'msgpack-python>=0.1.10', 'joyce>=0.1.1'], )
Python
0
@@ -536,20 +536,8 @@ c))%0A - print r%0A @@ -1065,17 +1065,17 @@ ah%3E=0.1. -1 +2 ',%0A @@ -1131,17 +1131,17 @@ ce%3E=0.1. -1 +2 '%5D,%0A
8fda341a5d6fbb4e466dcb4d300a9cdd28701d77
extend the list of trove classifiers
setup.py
setup.py
# -*- coding: utf-8 -*- import os import sys from setuptools import setup, Extension, find_packages try: from Cython.Build import cythonize except ImportError: # A 'cythonize' stub is needed so that build, develop and install can # start before Cython is installed. cythonize = lambda extensions, **kwargs: extensions try: from pypandoc import convert def read_md(f): return convert(f, 'rst') except ImportError: convert = None # note: this warning is only for package registration step if 'register' in sys.argv: print("warning: pypandoc not found, could not convert Markdown to RST") def read_md(f): return open(f, 'r').read() # noqa def get_version(version_tuple): if not isinstance(version_tuple[-1], int): return '.'.join(map(str, version_tuple[:-1])) + version_tuple[-1] return '.'.join(map(str, version_tuple)) init = os.path.join(os.path.dirname(__file__), 'imgui', '__init__.py') version_line = list(filter(lambda l: l.startswith('VERSION'), open(init)))[0] VERSION = get_version(eval(version_line.split('=')[-1])) README = os.path.join(os.path.dirname(__file__), 'README.md') if sys.platform in ('cygwin', 'win32'): # windows # note: `/FI` means forced include in VC++/VC # note: may be obsoleted in future if ImGui gets patched os_specific_flags = ['/FIpy_imconfig.h'] # placeholder for future os_specific_macros = [] else: # OS X and Linux # note: `-include` means forced include in GCC/clang # note: may be obsoleted in future if ImGui gets patched # placeholder for future os_specific_flags = ['-includeconfig-cpp/py_imconfig.h'] os_specific_macros = [] if os.environ.get("_CYTHONIZE_WITH_COVERAGE", None): compiler_directives = { 'linetrace': True, } cythonize_opts = { 'gdb_debug': True, } general_macros = [('CYTHON_TRACE_NOGIL', '1')] else: compiler_directives = {} cythonize_opts = {} general_macros = [] setup( name='imgui', version=VERSION, packages=find_packages('.'), author=u'Michał Jaworski', author_email='swistakm@gmail.com', description="Cython-based Python bindings for dear imgui", long_description=read_md(README), url="https://github.com/swistakm/pyimgui", ext_modules=cythonize([ Extension( "imgui.core", ["imgui/core.pyx"], extra_compile_args=os_specific_flags, define_macros=[ # note: for raising custom exceptions directly in ImGui code ('PYIMGUI_CUSTOM_EXCEPTION', None) ] + os_specific_macros + general_macros, include_dirs=['imgui', 'config-cpp'], ), ], compiler_directives=compiler_directives, **cythonize_opts), install_requires=['cython'], setup_requires=['cython'], extras_require={ 'glfw': ['glfw'], 'sdl2': ['PySDL2'], }, include_package_data=True, license='BSD', classifiers=[ 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Programming Language :: Cython', 'Programming Language :: Python :: 2', 'Operating System :: MacOS :: MacOS X', 'Topic :: Games/Entertainment', ], )
Python
0.00002
@@ -3189,54 +3189,559 @@ 2',%0A -%0A 'Operating System :: MacOS :: MacOS X + 'Programming Language :: Python :: 2.7',%0A%0A 'Programming Language :: Python :: 3',%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%0A 'Programming Language :: Python :: Implementation :: CPython',%0A 'Programming Language :: Cython',%0A%0A 'Operating System :: MacOS :: MacOS X',%0A 'Operating System :: POSIX :: Linux',%0A 'Operating System :: Microsoft :: Windows ',%0A%0A
060b8a8b9c03a8c0b7f3acd72789b4a6ab6f6c8a
Fix setup.py import subprocess.run (not supported on < py3.5)
setup.py
setup.py
#!/usr/bin/env python3 """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject Extra supported commands are: * gen_tl, to generate the classes required for Telethon to run * clean_tl, to clean these generated classes * pypi, to generate sdist, bdist_wheel, and push to PyPi """ # To use a consistent encoding from subprocess import run from shutil import rmtree from codecs import open from sys import argv from os import path # Always prefer setuptools over distutils from setuptools import find_packages, setup try: from telethon import TelegramClient except ImportError: TelegramClient = None if __name__ == '__main__': if len(argv) >= 2 and argv[1] == 'gen_tl': from telethon_generator.tl_generator import TLGenerator generator = TLGenerator('telethon/tl') if generator.tlobjects_exist(): print('Detected previous TLObjects. Cleaning...') generator.clean_tlobjects() print('Generating TLObjects...') generator.generate_tlobjects( 'telethon_generator/scheme.tl', import_depth=2 ) print('Done.') elif len(argv) >= 2 and argv[1] == 'clean_tl': from telethon_generator.tl_generator import TLGenerator print('Cleaning...') TLGenerator('telethon/tl').clean_tlobjects() print('Done.') elif len(argv) >= 2 and argv[1] == 'pypi': for x in ('build', 'dist', 'Telethon.egg-info'): rmtree(x, ignore_errors=True) run('python3 setup.py sdist', shell=True) run('python3 setup.py bdist_wheel', shell=True) run('twine upload dist/*', shell=True) for x in ('build', 'dist', 'Telethon.egg-info'): rmtree(x, ignore_errors=True) else: if not TelegramClient: print('Run `python3', argv[0], 'gen_tl` first.') quit() 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() setup( name='Telethon', # Versions should comply with PEP440. version=TelegramClient.__version__, description="Full-featured Telegram client library for Python 3", long_description=long_description, url='https://github.com/LonamiWebs/Telethon', download_url='https://github.com/LonamiWebs/Telethon/releases', author='Lonami Exo', author_email='totufals@hotmail.com', license='MIT', # See https://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ # 3 - Alpha # 4 - Beta # 5 - Production/Stable 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Topic :: Communications :: Chat', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6' ], keywords='telegram api chat client library messaging mtproto', packages=find_packages(exclude=[ 'telethon_generator', 'telethon_tests', 'run_tests.py', 'try_telethon.py' ]), install_requires=['pyaes', 'rsa'] )
Python
0
@@ -389,61 +389,8 @@ ing%0A -from subprocess import run%0Afrom shutil import rmtree%0A from @@ -1399,16 +1399,239 @@ 'pypi':%0A + # Need python3.5 or higher, but Telethon is supposed to support 3.x%0A # Place it here since noone should be running ./setup.py pypi anyway%0A from subprocess import run%0A from shutil import rmtree%0A%0A
b0ebc89420a9a1f3d49369fb1ce50f102a2d2495
Move repository from @edoburu to @django-parler team
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages from os import path import codecs import os import re import sys def read(*parts): file_path = path.join(path.dirname(__file__), *parts) return codecs.open(file_path, encoding='utf-8').read() def find_version(*parts): version_file = read(*parts) version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M) if version_match: return str(version_match.group(1)) raise RuntimeError("Unable to find version string.") setup( name='django-categories-i18n', version=find_version('categories_i18n', '__init__.py'), license='Apache 2.0', install_requires=[ 'django-mptt>=0.5.5', 'django-parler>=1.4', ], requires=[ 'Django (>=1.5)', ], description='Translatable Categories model', long_description=read('README.rst'), author='Diederik van der Boor', author_email='opensource@edoburu.nl', url='https://github.com/edoburu/django-categories-i18n', download_url='https://github.com/edoburu/django-categories-i18n/zipball/master', packages=find_packages(exclude=('example*',)), include_package_data=True, zip_safe=False, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Framework :: Django', 'Framework :: Django :: 1.6', 'Framework :: Django :: 1.7', 'Framework :: Django :: 1.8', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Software Development :: Libraries :: Python Modules', ] )
Python
0
@@ -992,39 +992,45 @@ ps://github.com/ -edoburu +django-parler /django-categori @@ -1076,23 +1076,29 @@ hub.com/ -edoburu +django-parler /django-
2e62f1dff218f4357bee0ad2a6e9a0e5e956ad55
fix twine check warnings (#23)
setup.py
setup.py
import os from setuptools import setup long_description = open('README.rst' if os.path.exists('README.rst') else 'README.md').read() setup( name='sphinx-confluence', description='Atlassian Confluence extension for sphinx', long_description=long_description, version='0.0.4', author='Arello Mobile', url='https://github.com/Arello-Mobile/sphinx-confluence', packages=['sphinx_confluence'], include_package_data=True, license='MIT', install_requires=open('requirements.txt').read(), classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], )
Python
0
@@ -226,16 +226,67 @@ phinx',%0A + long_description_content_type='text/markdown',%0A long
cc33a5ebed8132c1fa87fa83710693e6130bc12e
remove extra = in setup.py
setup.py
setup.py
from setuptools import setup, find_packages setup( name='credstash', version='1.5', description='A utility for managing secrets in the cloud using AWS KMS and DynamoDB', license='Apache2', url='https://github.com/LuminalOSS/credstash', classifiers=[ 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: Apache Software License', ], install_requires=['boto>=2.38.0', 'pycrypto>=2.6.1', 'boto3>==1.1.1'], extras_require = {'YAML': ['PyYAML>=3.10']}, scripts=['credstash.py'], py_modules=['credstash'], entry_points={ 'console_scripts': [ 'credstash = credstash:main' ] } )
Python
0.000009
@@ -503,17 +503,16 @@ 'boto3%3E= -= 1.1.1'%5D,
db211034e21cebbb6c9681b1c854412dbe90a51b
Install backports namespace packages conditionally
setup.py
setup.py
#! /usr/bin/env python """Cheroot package setuptools installer.""" # Project skeleton maintained at https://github.com/jaraco/skeleton import io import setuptools with io.open('README.rst', encoding='utf-8') as readme: long_description = readme.read() name = 'cheroot' description = 'Highly-optimized, pure-python HTTP server' nspkg_technique = 'native' """ Does this package use "native" namespace packages or pkg_resources "managed" namespace packages? """ repo_slug = 'cherrypy/{}'.format(name) repo_url = 'https://github.com/{}'.format(repo_slug) params = dict( name=name, use_scm_version=True, author='CherryPy Team', author_email='team@cherrypy.org', description=description or name, long_description=long_description, url=repo_url, project_urls={ 'CI: AppVeyor': 'https://ci.appveyor.com/project/{}'.format(repo_slug), 'CI: Travis': 'https://travis-ci.org/{}'.format(repo_slug), 'CI: Circle': 'https://circleci.com/gh/{}'.format(repo_slug), 'Docs: RTD': 'https://{}.cherrypy.org'.format(name), 'GitHub: issues': '{}/issues'.format(repo_url), 'GitHub: repo': repo_url, }, packages=setuptools.find_packages(), include_package_data=True, namespace_packages=( name.split('.')[:-1] if nspkg_technique == 'managed' else [] ), python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*', install_requires=[ 'backports.functools_lru_cache', 'six>=1.11.0', 'more_itertools>=2.6', ], extras_require={ 'docs': [ 'sphinx', 'rst.linker>=1.9', 'jaraco.packaging>=3.2', 'docutils', 'alabaster', 'collective.checkdocs', ], 'testing': [ 'pytest>=2.8', 'pytest-sugar', 'pytest-testmon>=0.9.7', 'pytest-watch', # measure test coverage 'coverage', # send test coverage to codecov.io 'codecov', 'pytest-cov', 'backports.unittest_mock', ], }, setup_requires=[ 'setuptools_scm>=1.15.0', 'setuptools_scm_git_archive>=1.0', ], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Framework :: CherryPy', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python', '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', 'Programming Language :: Python :: Implementation', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: Jython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: HTTP Servers', 'Topic :: Internet :: WWW/HTTP :: WSGI', 'Topic :: Internet :: WWW/HTTP :: WSGI :: Server', ], entry_points={ }, ) if __name__ == '__main__': setuptools.setup(**params)
Python
0
@@ -1435,49 +1435,8 @@ s=%5B%0A - 'backports.functools_lru_cache',%0A @@ -2018,16 +2018,309 @@ t-cov',%0A + %5D,%0A ':python_version%3C%223.3%22': %5B%0A # functools_lru_cache has been added to stdlib in Python 3.2%0A # however it's only got support for %60%60typed%60%60 arg in Python 3.3%0A 'backports.functools_lru_cache',%0A %5D,%0A 'testing:python_version%3C%223.3%22': %5B%0A
9161a18157c767760e7bfe6c3b3a4bfad07876ef
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.2', '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
@@ -1367,11 +1367,11 @@ '1. -1.2 +2.0 ',%0A
06db8ec819fe8f2dffc6b7c93e9a72fcb24b188c
Add oscar 0.8 as a valid version
setup.py
setup.py
from setuptools import setup, find_packages # dirty hack to allow running sdist in a vbox # source: Leonardo.Z's answer on this StackOverflow thread: # http://stackoverflow.com/questions/7719380/python-setup-py-sdist-error-operation-not-permitted import os if os.environ.get('USER', '') == 'vagrant': del os.link # /dirty hack setup( name='django-oscar-adyen', version='0.1.2', url='https://github.com/oscaro/django-oscar-adyen', author='Mathieu Richardoz', author_email='mr@babik.fr', description='Adyen payment module for django-oscar', long_description=open('README.rst').read(), keywords='payment, django, oscar, adyen', license='BSD', packages=find_packages(), include_package_data=True, install_requires=[ 'bleach==1.4', 'django-oscar>=0.7,<0.8', 'freezegun==0.1.18', 'requests>=2.0,<3.0', ], classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: POSIX :: Linux', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Topic :: Office/Business :: Financial :: Point-Of-Sale', 'Topic :: Software Development :: Libraries :: Python Modules', ] )
Python
0.000011
@@ -385,17 +385,17 @@ on='0.1. -2 +3 ',%0A u @@ -816,17 +816,17 @@ =0.7,%3C0. -8 +9 ',%0A
31f08ace2e2ea8266fc17350b2e3dbd832517515
Upgrade to prompt_toolkit==0.42.
setup.py
setup.py
import re import ast from setuptools import setup, find_packages _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('pgcli/__init__.py', 'rb') as f: version = str(ast.literal_eval(_version_re.search( f.read().decode('utf-8')).group(1))) description = 'CLI for Postgres Database. With auto-completion and syntax highlighting.' setup( name='pgcli', author='Amjith Ramanujam', author_email='amjith[dot]r[at]gmail.com', version=version, license='LICENSE.txt', url='http://pgcli.com', packages=find_packages(), package_data={'pgcli': ['pgclirc']}, description=description, long_description=open('README.rst').read(), install_requires=[ 'click >= 3.2', 'Pygments >= 2.0', # Pygments has to be Capitalcased. WTF? 'prompt_toolkit==0.40', 'psycopg2 >= 2.5.4', 'sqlparse == 0.1.14', 'configobj >= 5.0.6' ], entry_points=''' [console_scripts] pgcli=pgcli.main:cli ''', classifiers=[ 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: Unix', 'Programming Language :: Python', '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 :: SQL', 'Topic :: Database', 'Topic :: Database :: Front-Ends', 'Topic :: Software Development', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
Python
0
@@ -872,17 +872,17 @@ kit==0.4 -0 +2 ',%0A
f581deba1b3058b4bce38810682a0f2f4c1dedf8
Bump to v1.4.1
setup.py
setup.py
from setuptools import setup, find_packages setup( name='primestg', version='1.4.0', packages=find_packages(), url='https://github.com/gisce/primestg', license='GNU Affero General Public License v3', author='GISCE-TI, S.L.', author_email='devel@gisce.net', install_requires=[ 'lxml', 'zeep' ], description='Prime STG-DC Interface Specification', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: GNU Affero General Public License v3', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.6', ] )
Python
0.000001
@@ -88,9 +88,9 @@ 1.4. -0 +1 ',%0A
3d2bbe90617ec090b5f413b95fc9d1161c2848fa
Update package name in setup.py
setup.py
setup.py
#!/usr/bin/env python3 from distutils.core import setup setup(name='auto-investor', version='1.0.5', description='LendingClub auto-investment tool', author='Joe Butler', author_email='joebutler88@gmail.com', packages=['investor'], )
Python
0
@@ -67,21 +67,17 @@ me=' -auto-investor +lenderbot ',%0A @@ -98,9 +98,9 @@ 1.0. -5 +6 ',%0A @@ -137,19 +137,17 @@ auto -- + invest -ment +or too
39ebb2d463dc7185801aac2dee8ec30fa4adcfac
Allow cryptography versions >3 (but <4) (#164)
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='signxml', version="2.8.0", url='https://github.com/kislyuk/signxml', license='Apache Software License', author='Andrey Kislyuk', author_email='kislyuk@gmail.com', description='Python XML Signature library', long_description=open('README.rst').read(), install_requires=[ 'lxml >= 4.2.1, < 5', 'eight >= 0.4.2, < 2', 'cryptography >= 2.1.4, < 3', 'pyOpenSSL >= 17.5.0, < 20', 'certifi >= 2018.1.18' ], extras_require={ ':python_version == "2.7"': [ 'enum34 >= 1.1.6, < 2', 'ipaddress >= 1.0.17, < 2' ] }, packages=find_packages(exclude=['test']), platforms=['MacOS X', 'Posix'], package_data={'signxml': ['schemas/*.xsd']}, zip_safe=False, include_package_data=True, test_suite='test', classifiers=[ 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: MacOS :: MacOS X', 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Topic :: Software Development :: Libraries :: Python Modules' ] )
Python
0.000001
@@ -475,17 +475,17 @@ .1.4, %3C -3 +4 ',%0A
67c6f7b1460403e51125eb15f7d081e6de20f6ab
Downgrade Celery and kombu.
setup.py
setup.py
#!/usr/bin/env python """Kegbot Beer Kegerator Server package. Kegbot is a hardware and software system to record and monitor access to a beer kegerator. For more information and documentation, see http://kegbot.org/ """ from setuptools import setup, find_packages VERSION = '0.9.25' DOCLINES = __doc__.split('\n') SHORT_DESCRIPTION = DOCLINES[0] LONG_DESCRIPTION = '\n'.join(DOCLINES[2:]) DEPENDENCIES = [ 'kegbot-pyutils == 0.1.7', 'kegbot-api == 0.1.14', 'Django == 1.6.4', 'django-imagekit == 3.1', 'django-registration == 1.0', 'django-socialregistration == 0.5.10', 'django-bootstrap-pagination == 0.1.10', 'Celery == 3.1.11', 'South == 0.8.4', 'django-crispy-forms == 1.2.8', 'foursquare == 2014.04.10', 'gunicorn == 18.0', 'MySQL-python == 1.2.5', 'pillow == 2.4.0', 'protobuf == 2.5.0', 'python-gflags == 2.0', 'django-redis == 3.6.1', 'pytz == 2014.2', 'redis == 2.9.1', 'requests == 2.2.1', 'tweepy == 2.2', 'jsonfield == 0.9.20', ] def setup_package(): setup( name = 'kegbot', version = VERSION, description = SHORT_DESCRIPTION, long_description = LONG_DESCRIPTION, author = 'Bevbot LLC', author_email = 'info@bevbot.com', url = 'http://kegbot.org/', packages = find_packages(), scripts = [ 'bin/kegbot', 'bin/setup-kegbot.py', ], install_requires = DEPENDENCIES, dependency_links = [ 'https://github.com/rem/python-protobuf/tarball/master#egg=protobuf-2.4.1', ], include_package_data = True, entry_points = { 'console_scripts': ['instance=django.core.management:execute_manager'], }, ) if __name__ == '__main__': setup_package()
Python
0
@@ -634,25 +634,78 @@ %0A%0A -'Celery == 3.1.11 +# See kegbot-server issue #264%0A 'Celery == 3.1.9',%0A 'kombu == 3.0.14 ',%0A%0A
768820a4af086e72c88e779f08a7f597ad4a2774
Update email
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="valideer", version="0.2", 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@podio.com", packages=find_packages(), install_requires=["decorator"], tests_require=["nose", "coverage"], platforms=["any"], keywords="validation adaptation typechecking jsonschema", classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "License :: OSI Approved :: MIT License", ], )
Python
0
@@ -338,14 +338,21 @@ orge -@podio +.sakkis@gmail .com
b99c83ff15a02d4be3dc2e7f6e4a27601fdbdbf2
fix setup.py
setup.py
setup.py
from setuptools import setup, find_packages from codecs import open from os import path 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='hazelcast-python-client', version='0.1', description='Hazelcast Python Client', long_description=long_description, url='https://github.com/hazelcast/hazelcast-python-client', author='The Python Packaging Authority', author_email='pypa-dev@googlegroups.com', classifiers=[ # 3 - Alpha # 4 - Beta # 5 - Production/Stable 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python', # 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', # 'Programming Language :: Python :: 3.3', # 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: CPython', # 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Software Development :: Libraries :: Python Modules' ], packages=find_packages(exclude=['examples', 'docs', 'tests']), package_dir={'hazelcast': 'hazelcast'}, install_requires=[], tests_require=['hazelcast-remote-controller'], )
Python
0.000001
@@ -521,38 +521,33 @@ or=' -The Python Packaging Authority +Hazelcast Inc. Developers ',%0A @@ -571,16 +571,17 @@ il=' -pypa-dev +hazelcast @goo @@ -1528,16 +1528,29 @@ 'tests' +, 'benchmark' %5D),%0A
0a0a64aab06e202fe37805523dd2f3e862fcb7d8
Bump version to 0.3.16
setup.py
setup.py
#!/usr/bin/env python import os import sys from distutils.core import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() _install_requires = [ "parsimonious>=0.5,<0.6", "dodge>=0.1.5,<0.2", ] if sys.version_info[:2] <= (2, 6): _install_requires.append("argparse>=1.1,<2.0") setup( name='mammoth', version='0.3.15', description='Convert Word documents from docx to simple and clean HTML and Markdown', long_description=read("README"), author='Michael Williamson', author_email='mike@zwobble.org', url='http://github.com/mwilliamson/python-mammoth', packages=['mammoth', 'mammoth.docx', 'mammoth.style_reader', 'mammoth.writers'], scripts=["scripts/mammoth"], keywords="docx word office clean html markdown md", install_requires=_install_requires, 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', ], )
Python
0
@@ -373,17 +373,17 @@ n='0.3.1 -5 +6 ',%0A d
b87f2d324ec42a294f557064933a3e21d4507e70
Bump pandas from 1.3.2 to 1.3.3
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup(name='l1', version='0.1', description='L1', author='Bugra Akyildiz', author_email='vbugra@gmail.com', url='bugra.github.io', packages=['l1'], install_requires=['pandas==1.3.2', 'cvxopt==1.2.6', 'statsmodels==0.12.2', ] )
Python
0.000005
@@ -267,17 +267,17 @@ as==1.3. -2 +3 ',%0A
0e5e46615ce8f599483c5075cc120cf6aad4c8a5
Tweak setup.py
setup.py
setup.py
from __future__ import print_function from setuptools import setup from setuptools.command.test import test as TestCommand import io import os import sys import wsstat py_version = sys.version_info[:2] if py_version < (3, 3): raise Exception("websockets requires Python >= 3.3.") here = os.path.abspath(os.path.dirname(__file__)) with open('requirements.txt') as f: dependencies = f.read().splitlines() def read(*filenames, **kwargs): encoding = kwargs.get('encoding', 'utf-8') sep = kwargs.get('sep', '\n') buf = [] for filename in filenames: with io.open(filename, encoding=encoding) as f: buf.append(f.read()) return sep.join(buf) long_description = read('README.rst') class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): import pytest errcode = pytest.main(self.test_args) sys.exit(errcode) setup( name='wsstat', version=wsstat.__version__, url='http://github.com/fitblip/wsstat/', author='Ryan Sears', tests_require=['pytest'], install_requires=dependencies, cmdclass={'test': PyTest}, author_email='fitblip@gmail.com', description='Websocket health monitoring made simple (and beautiful)', long_description=long_description, packages=['wsstat'], include_package_data=True, test_suite='test.test_wsstat', entry_points={ 'console_scripts': [ 'wsstat = wsstat.main:run', ], }, classifiers = [], extras_require={ 'testing': ['pytest'], } )
Python
0.000001
@@ -718,11 +718,10 @@ DME. -rst +md ')%0A%0A
7bda19daf9fba63ea3e2d374a5f13390f3f7fa05
Bump version to 3.1
setup.py
setup.py
from setuptools import setup setup( name='cloudify-diamond-plugin', version='3.1', author='Cloudify', author_email='cosmo-admin@gigaspaces.com', packages=['diamond_agent', 'cloudify_handler'], install_requires=['cloudify-plugins-common==3.1', 'diamond==3.5.0', 'ConfigObj==5.0.6', 'psutil==2.1.1'], )
Python
0
@@ -79,17 +79,17 @@ ersion=' -3 +1 .1',%0A
0f6be423058d98f7365f95c427ab59db5608af80
use jsonobject in setup.py
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='pillowtop', version='0.1.3.1', description='A couchdbkit changes listener for doing backend processing', author='Dimagi', author_email='dev@dimagi.com', url='http://www.dimagi.com/', packages=find_packages(exclude=['*.pyc']), include_package_data=True, test_suite='pillowtop.tests', test_loader='unittest2:TestLoader', install_requires=[ "restkit", "couchdbkit", "simplejson", "requests", "gevent", "greenlet", "rawes", 'django>=1.3.1', 'dimagi-utils>=1.0.0' ], tests_require=[ 'unittest2', ] )
Python
0.000002
@@ -483,16 +483,27 @@ %22 +jsonobject- couchdbk @@ -504,16 +504,25 @@ uchdbkit +%3E=0.6.5.2 %22,%0A
3c538568092e6a1fe54f0b3aea6ac423f454da60
Bump flake8-bugbear from 20.1.2 to 20.1.3
setup.py
setup.py
# -*- coding: utf-8 -*- import re from setuptools import setup, find_packages EXTRAS_REQUIRE = { "sqlalchemy": [ "flask-sqlalchemy", 'marshmallow-sqlalchemy>=0.13.0; python_version >= "3.6"', 'marshmallow-sqlalchemy>=0.13.0,<0.19.0; python_version < "3.6"', ], "docs": ["marshmallow-sqlalchemy>=0.13.0", "Sphinx==2.3.1", "sphinx-issues==1.2.0"], "lint": [ "flake8==3.7.9", 'flake8-bugbear==20.1.2; python_version >= "3.5"', "pre-commit~=1.20", ], } EXTRAS_REQUIRE["tests"] = EXTRAS_REQUIRE["sqlalchemy"] + ["pytest", "mock"] EXTRAS_REQUIRE["dev"] = EXTRAS_REQUIRE["tests"] + EXTRAS_REQUIRE["lint"] + ["tox"] REQUIRES = ["Flask", "marshmallow>=2.0.0", "six>=1.9.0"] 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="flask-marshmallow", version=find_version("src/flask_marshmallow/__init__.py"), description="Flask + marshmallow for beautiful APIs", long_description=read("README.rst"), author="Steven Loria", author_email="sloria1@gmail.com", url="https://github.com/marshmallow-code/flask-marshmallow", packages=find_packages("src"), package_dir={"": "src"}, include_package_data=True, install_requires=REQUIRES, extras_require=EXTRAS_REQUIRE, license="MIT", zip_safe=False, keywords="flask-marshmallow", classifiers=[ "Development Status :: 4 - Beta", "Environment :: Web Environment", "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", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", ], test_suite="tests", project_urls={ "Issues": "https://github.com/marshmallow-code/flask-marshmallow/issues", "Funding": "https://opencollective.com/marshmallow", }, )
Python
0.000002
@@ -446,17 +446,17 @@ r==20.1. -2 +3 ; python
8bcce091eda16be9cd613a010b5647e3166e0c2b
Fix removal functions in oslo_utils for astara
astara/tenant.py
astara/tenant.py
# Copyright 2014 DreamHost, LLC # # Author: DreamHost, LLC # # 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. """Manage the resources for a given tenant. """ import collections import threading from oslo_log import log as logging from oslo_utils import timeutils from astara.common.i18n import _LE from astara import state from astara import drivers LOG = logging.getLogger(__name__) class InvalidIncomingMessage(Exception): pass class ResourceContainer(object): def __init__(self): self.state_machines = {} self.deleted = collections.deque(maxlen=50) self.lock = threading.Lock() def __delitem__(self, item): with self.lock: del self.state_machines[item] self.deleted.append(item) def items(self): """Get all state machines. :returns: all state machines in this RouterContainer """ with self.lock: return list(self.state_machines.items()) def values(self): with self.lock: return list(self.state_machines.values()) def has_been_deleted(self, resource_id): """Check if a resource has been deleted. :param resource_id: The resource's id to check against the deleted list :returns: Returns True if the resource_id has been deleted. """ with self.lock: return resource_id in self.deleted def __getitem__(self, item): with self.lock: return self.state_machines[item] def __setitem__(self, key, value): with self.lock: self.state_machines[key] = value def __contains__(self, item): with self.lock: return item in self.state_machines class TenantResourceManager(object): """Keep track of the state machines for the logical resources for a given tenant. """ def __init__(self, tenant_id, notify_callback, queue_warning_threshold, reboot_error_threshold): self.tenant_id = tenant_id self.notify = notify_callback self._queue_warning_threshold = queue_warning_threshold self._reboot_error_threshold = reboot_error_threshold self.state_machines = ResourceContainer() self._default_resource_id = None def _delete_resource(self, resource_id): "Called when the Automaton decides the resource can be deleted" if resource_id in self.state_machines: LOG.debug('deleting state machine for %s', resource_id) del self.state_machines[resource_id] if self._default_resource_id == resource_id: self._default_resource_id = None def shutdown(self): LOG.info('shutting down') for resource_id, sm in self.state_machines.items(): try: sm.service_shutdown() except Exception: LOG.exception(_LE( 'Failed to shutdown state machine for %s'), resource_id ) def _report_bandwidth(self, resource_id, bandwidth): LOG.debug('reporting bandwidth for %s', resource_id) msg = { 'tenant_id': self.tenant_id, 'timestamp': timeutils.isotime(), 'event_type': 'astara.bandwidth.used', 'payload': dict((b.pop('name'), b) for b in bandwidth), 'uuid': resource_id, } self.notify(msg) def get_state_machines(self, message, worker_context): """Return the state machines and the queue for sending it messages for the logical resource being addressed by the message. """ if (not message.resource or (message.resource and not message.resource.id)): LOG.error(_LE( 'Cannot get state machine for message with ' 'no message.resource')) raise InvalidIncomingMessage() state_machines = [] # Send to all of our resources. if message.resource.id == '*': LOG.debug('routing to all state machines') state_machines = self.state_machines.values() # Ignore messages to deleted resources. elif self.state_machines.has_been_deleted(message.resource.id): LOG.debug('dropping message for deleted resource') return [] # Send to resources that have an ERROR status elif message.resource.id == 'error': state_machines = [ sm for sm in self.state_machines.values() if sm.has_error() ] LOG.debug('routing to %d errored state machines', len(state_machines)) # Create a new state machine for this router. elif message.resource.id not in self.state_machines: LOG.debug('creating state machine for %s', message.resource.id) # load the driver if not message.resource.driver: LOG.error(_LE('cannot create state machine without specifying' 'a driver.')) return [] driver_obj = \ drivers.get(message.resource.driver)(worker_context, message.resource.id) if not driver_obj: # this means the driver didn't load for some reason.. # this might not be needed at all. LOG.debug('for some reason loading the driver failed') return [] def deleter(): self._delete_resource(message.resource.id) new_state_machine = state.Automaton( driver=driver_obj, resource_id=message.resource.id, tenant_id=self.tenant_id, delete_callback=deleter, bandwidth_callback=self._report_bandwidth, worker_context=worker_context, queue_warning_threshold=self._queue_warning_threshold, reboot_error_threshold=self._reboot_error_threshold, ) self.state_machines[message.resource.id] = new_state_machine state_machines = [new_state_machine] # Send directly to an existing router. elif message.resource.id: state_machines = [self.state_machines[message.resource.id]] # Filter out any deleted state machines. return [ machine for machine in state_machines if (not machine.deleted and not self.state_machines.has_been_deleted(machine.resource_id)) ] def get_state_machine_by_resource_id(self, resource_id): try: return self.state_machines[resource_id] except KeyError: return None
Python
0.00031
@@ -685,16 +685,32 @@ hreading +%0Aimport datetime %0A%0Afrom o @@ -3702,26 +3702,54 @@ p': -timeutils.isotime( +datetime.datetime.isoformat(timeutils.utcnow() ),%0A
9444be6e891e7f7690dc10415690e484e17b3b61
Extend base extraction module
fenrir/extraction/base.py
fenrir/extraction/base.py
# coding: utf-8 # Author: Vova Zaytsev <zaytsev@usc.edu> import re import textblob class TextPreprocessor(object): HTML_SPECIAL_CHARS = re.compile("\&#?[a-z0-9]+;") def __init__(self): pass def clean_html_junk(self, text): return self.HTML_SPECIAL_CHARS.sub("", text) def sent_segmentize(self, text): text = self.clean_html_junk(text) lines = text.split("\n") sents = [] for line in lines: blob = textblob.TextBlob(line) sents.extend(map(str, blob.sentences)) return sents
Python
0
@@ -78,16 +78,47 @@ xtblob%0A%0A +from client.api import common%0A%0A %0Aclass T @@ -147,16 +147,19 @@ ):%0A%0A +RE_ HTML_SPE @@ -201,16 +201,180 @@ 9%5D+;%22)%0A%0A + RE_Q_PHRASE_PATTERN_1 = re.compile(%22%5C%22(%5B%5E%5C%22%5D*)%5C%22%22)%0A RE_Q_PHRASE_PATTERN_2 = re.compile(%22%5C'(%5B%5E%5C%22%5D*)%5C'%22)%0A RE_Q_PHRASE_PATTERN_3 = re.compile(%22%E2%80%9C(%5B%5E%E2%80%9C%E2%80%9D%5D*)%E2%80%9D%22)%0A%0A def @@ -460,16 +460,19 @@ rn self. +RE_ HTML_SPE @@ -749,16 +749,16 @@ ences))%0A - @@ -771,8 +771,1072 @@ sents%0A%0A + def extract_quoted(self, sentence_list):%0A quoted = %5B%5D%0A for sent in sentence_list:%0A quoted.extend(self.RE_Q_PHRASE_PATTERN_1.findall(sent))%0A quoted.extend(self.RE_Q_PHRASE_PATTERN_2.findall(sent))%0A quoted.extend(self.RE_Q_PHRASE_PATTERN_3.findall(sent))%0A return quoted%0A%0A def filter_sents(self, sentence_list,%0A tokens_min=4,%0A tokens_max=30):%0A filtered = %5B%5D%0A for sentno, sent in enumerate(sentence_list):%0A text = sent.decode(%22utf-8%22)%0A tokens = %5Bt.lower() for t in textblob.TextBlob(text).tokens%5D%0A tk_size = len(tokens)%0A tx_size = len(text)%0A is_important = tk_size %3E= tokens_min and tk_size %3C= tokens_max%0A filtered.append(%7B%0A %22id%22: sentno,%0A %22text%22: text,%0A %22tokens%22: tokens,%0A %22tk_size%22: tk_size,%0A %22tx_size%22: tx_size,%0A %22is_important%22: is_important%0A %7D)%0A return filtered%0A%0A
f77e92aef7e337ed67ebc78d4de5829285ed651a
Update url
setup.py
setup.py
from us import __appname__, __version__ from setuptools import setup, find_packages long_description = open('README.rst').read() setup( name=__appname__, version=__version__, author="Jeremy Carbaugh", author_email="jcarbaugh@sunlightfoundation.com", url='https://github.com/sunlightlabs/python-us', description='US state meta information and other fun stuff', long_description=long_description, license='BSD', packages=find_packages(), package_data={'us': ['*.pkl']}, include_package_data=True, install_requires=['jellyfish==0.2.0'], entry_points={ 'console_scripts': ['states = us.cli.states:main']}, platforms=['any'], )
Python
0.000001
@@ -293,19 +293,19 @@ com/ -s un -lightlab +itedstate s/py
90211e1cabc91f95889846702d3801512ab5ae21
Create appdir if necessary.
repl/repl.py
repl/repl.py
import atexit import os import shlex import subprocess import sys import click from .util import (fcomplete, set_title, inp, replace_slice, get_terminal_size, strip_control) class REPL(object): def __init__(self, color, prompt, sub, command, external): self.color_enabled = color self.prompt_string = prompt self.cmd_sub_str = sub self.command = command self.enable_external = external self.setup_readline() def setup_readline(self): try: import readline except ImportError: self.has_readline = False else: # determine history file name if not self.command: histname = 'history' else: histname = 'history-' + self.command[0].replace(os.sep, '_') histfile = os.path.join(click.get_app_dir('repl'), histname) # read old history, of present try: readline.read_history_file(histfile) except IOError: pass atexit.register(readline.write_history_file, histfile) readline.parse_and_bind('tab: complete') readline.set_completer_delims(' \t\n') readline.set_completer(fcomplete) self.has_readline = True # got readline support return self.has_readline def colorize(self, sequence, text, end="00"): # see: https://stackoverflow.com/questions/9468435/ # look-how-to-fix-column-calculation-in-python-readline-if-use-color-prompt # # and: http://bugs.python.org/issue12972' # http://wiki.hackzine.org/development/misc/readline-color-prompt.html rl_start = rl_end = '' if self.has_readline: rl_start = '\001' rl_end = '\002' return (rl_start + "\033[" + sequence + "m" + rl_end + text + rl_start + "\033[" + end + "m" + rl_end) @property def prompt(self): if self.prompt_string is not None: return self.prompt_string if not self.color_enabled: return ' '.join(self.command) + '>> ' color = '34' sub_color = '37' prompt_cmd = [ self.colorize('1;' + color, part) if part != self.cmd_sub_str else self.colorize('0;' + sub_color, u'\u2026') for part in self.command ] return ' '.join(prompt_cmd) + self.colorize('0;' + color, '>> ') @property def title(self): return '[{}] {}>>'.format( os.path.split(os.path.abspath('.'))[-1], ' '.join(self.command)) def pre_prompt(self): pass def run(self): while True: set_title(self.title) self.pre_prompt() try: line = inp(self.prompt).lstrip() if not self.enable_external and line.startswith('!'): cmd_args = shlex.split(line[1:]) subprocess.call(cmd_args) continue uargs = shlex.split(line) except EOFError: print() sys.exit(0) except ValueError as e: print(e) continue # substitute values cmd = replace_slice(self.cmd_sub_str, uargs, self.command, append=True) set_title(' '.join(cmd)) subprocess.call(cmd) class GitREPL(REPL): def cwd_is_repo(self): return subprocess.call(['git', 'rev-parse']) == 0 @classmethod def detect(self, command): return ['git'] == [c for c in command if not c.startswith('-')] def pre_prompt(self): try: branch_output = subprocess.check_output(['git', 'branch']) except subprocess.CalledProcessError: return # display special prompt w, _ = get_terminal_size() active_branch = None branches = [] for line in branch_output.splitlines(): branch = line[2:].rstrip() if line.startswith('* '): active_branch = branch branches.append(branch) flags = [] if 'todo' in branches: branches.remove('todo') # do not show in branch list flags.append('TODO') branch_status = ' '.join( click.style(b, fg='green', bold=(b == active_branch)) for b in branches) flag_status = ' '.join('[' + click.style(flag, fg='cyan') + ']' for flag in flags) spacing = 2 bs_len = len(strip_control(branch_status)) fl_len = len(strip_control(flag_status)) rem_space = w - (bs_len % w) - fl_len - spacing if rem_space < 0: click.echo(branch_status) click.echo(flag_status) else: click.echo( branch_status + ' ' * (rem_space + spacing) + flag_status) available_repls = {'git': GitREPL}
Python
0
@@ -836,16 +836,142 @@ p, '_')%0A + appdir = click.get_app_dir('repl')%0A if not os.path.exists(appdir):%0A os.makedirs(appdir)%0A @@ -1002,33 +1002,14 @@ oin( -click.get_ app -_ dir -('repl') , hi