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
158c06f4cacea2e01848e8a5b6dbe8bb9c28543f
Fix package setup.
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='djoser', packages=['djoser'], install_requires=[ 'Django>=1.7', 'djangorestframework>=2.4.3', ], tests_require=[ 'djet>=0.0.9' ], package_data={ 'templates': ['templates/*.html', 'templates/*.txt'] }, )
Python
0
@@ -235,24 +235,32 @@ %0A %5D,%0A +include_ package_data @@ -264,76 +264,32 @@ ata= -%7B%0A 'templates': %5B'templates/*.html', 'templates/*.txt'%5D%0A %7D +True,%0A zip_safe=False ,%0A)%0A
0489a7d3eb8b29850aedf51d9397a66de85e7e9e
Update maintainer
setup.py
setup.py
# # Copyright (c) 2015-2017 LabKey Corporation # # 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. # """ Setup script for Python client API for LabKey Server. Also installs included versions of third party libraries, if those libraries are not already installed. """ import re from setuptools import setup packages = [ 'labkey', 'labkey.unsupported' ] with open('labkey/__init__.py', 'r') as fd: version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) if not version: raise RuntimeError('Cannot find version information') long_desc = "Python client API for LabKey Server. Supports query and experiment APIs." setup( name='labkey', version=version, description='Python client API for LabKey Server', long_description=long_desc, license="Apache License 2.0", author='LabKey', author_email='nicka@labkey.com', maintainer='Nick Arnold', maintainer_email='nicka@labkey.com', url='https://github.com/LabKey/labkey-api-python', packages=packages, package_data={}, install_requires=['requests'], tests_require=['requests', 'mock'], keywords="labkey api client", classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Science/Research', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: Apache Software License', 'Operating System :: MacOS', 'Operating System :: Microsoft', 'Operating System :: POSIX', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', 'Topic :: Scientific/Engineering' ] )
Python
0.000001
@@ -1434,14 +1434,12 @@ ick -Arnold +Kerr ',%0A
587ea4f32bb9c932278d282e362e8278b7d3e1bc
Bump version to 1.1
setup.py
setup.py
from setuptools import setup, find_packages setup( name='django-txtlocal', packages=find_packages(), include_package_data=True, install_requires=['requests>=1.2.3'], version='1.0', description='App for sending and receiving SMS messages via http://www.textlocal.com', long_description=open('README.rst').read(), author='Incuna Ltd', author_email='admin@incuna.com', url='https://github.com/incuna/django-txtlocal/', )
Python
0
@@ -196,9 +196,9 @@ ='1. -0 +1 ',%0A
9639c3fef58948942e769abda23e2703a5fbbbf4
make jinja2 a runtime dep rather than a develop dep. (#397)
setup.py
setup.py
import os from setuptools import setup, find_packages __here__ = os.path.dirname(os.path.abspath(__file__)) package_info = dict((k, None) for k in ["RELEASE", "COMMIT", "VERSION", "NAME"]) for name in package_info: with open(os.path.join(__here__, "insights", name)) as f: package_info[name] = f.read().strip() entry_points = { 'console_scripts': [ 'insights-run = insights.core:main', 'gen_api = insights.tools.generate_api_config:main', 'insights-perf = insights.tools.perf:main', 'client = insights.client:run' ] } runtime = set([ 'pyyaml>=3.10,<=3.12', 'six', 'requests', 'pyOpenSSL' ]) develop = set([ 'flake8==3.3.0', 'coverage==4.3.4', 'pytest==3.0.6', 'pytest-cov==2.4.0', 'Sphinx', 'sphinx_rtd_theme', 'Jinja2==2.9.6', 'futures==3.0.5', 'requests==2.13.0', 'wheel' ]) if __name__ == "__main__": # allows for runtime modification of rpm name name = os.environ.get("INSIGHTS_CORE_NAME", package_info["NAME"]) setup( name=name, version=package_info["VERSION"], description="Insights Application Programming Interface", author_email="insights@redhat.com", license="Apache 2", url="https://access.redhat.com/insights", classifiers=[ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2.7", "Topic :: System :: Monitoring", "Intended Audience :: Information Technology" ], packages=find_packages(), install_requires=list(runtime), extras_require={ 'develop': list(runtime | develop), 'optional': ['python-cjson', 'python-logstash', 'python-statsd', 'watchdog'], }, entry_points=entry_points, include_package_data=True )
Python
0
@@ -653,16 +653,38 @@ OpenSSL' +,%0A 'Jinja2==2.9.6', %0A%5D)%0A%0Adev @@ -824,37 +824,16 @@ theme',%0A - 'Jinja2==2.9.6',%0A 'fut
a6c3782d6c60f3660b7978d7311335e093c9a179
bump version to 0.1.7
setup.py
setup.py
from setuptools import setup with open('README.md') as readme_file: readme = readme_file.read() setup( name='splits', version='0.1.6', author='Thomas Millar, Jeff Magnusson', author_email='millar.thomas@gmail.com, magnussj@gmail.com', license='MIT', description='A library for dealing with splittable files', packages=['splits'], long_description=readme, url='https://github.com/stitchfix/splits', keywords=['split', 'multifile', 'splittable'], classifiers=[ 'Intended Audience :: Developers', ], install_requires=['boto', 'nose'], python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*', )
Python
0.000001
@@ -142,9 +142,9 @@ 0.1. -6 +7 ',%0A
283f355ab3ad09ddcd016f9c019e1c5a1375ddd1
fix setup.py
setup.py
setup.py
from setuptools import setup, find_packages from pathlib import Path import numpy as np import versioneer req_path = Path('requirements.txt') if not req_path.is_file(): req_path = Path('scvelo.egg-info') / req_path with req_path.open() as requirements: requires = [l.strip() for l in requirements] setup( name="scvelo", version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), install_requires=requires, packages=find_packages(), include_dirs=[np.get_include()], author="Volker Bergen", author_email="volker.bergen@helmholtz-muenchen.de", description='Stochastic RNA velocity for inferring single cell dynamics', license='BSD', url="https://github.com/VolkerBergen/scvelo", download_url=f"https://github.com/VolkerBergen/scvelo", keywords=["RNAseq", "singlecell", "stochastic", "velocity", "transcriptomics"], )
Python
0.000001
@@ -876,16 +876,15 @@ tomics%22%5D -, %0A )%0A
7eaf0dff72fff8aa66082998b226b3f02c4b43e1
Add a version number to the setup script (only to experiment with easy_install).
setup.py
setup.py
#!/usr/bin/env python """ctypes code generator """ import os, sys from distutils.core import setup, Command class test(Command): # Original version of this class posted # by Berthold Hoellmann to distutils-sig@python.org description = "run tests" user_options = [ ('tests=', 't', "comma-separated list of packages that contain test modules"), ('use-resources=', 'u', "resources to use - resource names are defined by tests"), ('refcounts', 'r', "repeat tests to search for refcount leaks (requires 'sys.gettotalrefcount')"), ] boolean_options = ["refcounts"] def initialize_options(self): self.build_base = 'build' self.use_resources = "" self.refcounts = False self.tests = "ctypeslib.test" # initialize_options() def finalize_options(self): if self.refcounts and not hasattr(sys, "gettotalrefcount"): raise DistutilsOptionError("refcount option requires Python debug build") self.tests = self.tests.split(",") self.use_resources = self.use_resources.split(",") # finalize_options() def run(self): self.run_command('build') import ctypes.test ctypes.test.use_resources.extend(self.use_resources) for name in self.tests: package = __import__(name, globals(), locals(), ['*']) print "Testing package", name, (sys.version, sys.platform, os.name) ctypes.test.run_tests(package, "test_*.py", self.verbose, self.refcounts) # run() # class test setup(name="ctypeslib", packages = ['ctypeslib', 'ctypeslib.codegen'], scripts = ['scripts/h2xml.py', 'scripts/xml2py.py'], description="ctypes code generator", long_description = __doc__, author="Thomas Heller", author_email="theller@ctypes.org", license="MIT License", ## url="http://starship.python.net/crew/theller/ctypes.html", ## platforms=["windows", "Linux", "MacOS X", "Solaris", "FreeBSD"], cmdclass = {'test': test}, )
Python
0
@@ -1999,16 +1999,42 @@ cense%22,%0A + version = %220.5.0%22,%0A%0A ##
2db62ba9f60ede1fda1ab6536b8368c01938f0e5
Fix django-oauth2-provider dependency link
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='edx-oauth2-provider', version='0.2.0', description='Provide OAuth2 access to edX installations', author='edX', url='https://github.com/edx/edx-oauth2-provider', license='AGPL', classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: GNU Affero General Public License v3', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Django', ], packages=['oauth2_provider'], dependency_links=[ 'git+https://github.com/edx/django-oauth2-provider@0.2.7-dev-edx.1#egg=django-oauth2-provider-0.2.7-fork-edx-1', ], install_requires=[ 'django-oauth2-provider==0.2.7-fork-edx-1', 'PyJWT==0.2.1' ] )
Python
0.00001
@@ -733,16 +733,17 @@ 2.7- -dev +fork -edx -. +- 1#eg
2849a167d76a51681dd9621d5659179aaf951f45
drop pypi and add py38
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages from distutils.extension import Extension import logging import os import sys try: from Cython.Build import cythonize extension = cythonize( [ Extension( 'psd_tools.compression._packbits', ['src/psd_tools/compression/_packbits.pyx'] ) ], language_level=sys.version_info[0], ) except ImportError: logging.error('Cython not found, no extension will be built.') extension = [] def get_version(): """ Get package version. """ curdir = os.path.dirname(__file__) filename = os.path.join(curdir, 'src', 'psd_tools', 'version.py') with open(filename, 'r') as fp: return fp.read().split('=')[1].strip(" \r\n'") setup( name='psd-tools', version=get_version(), author='Kota Yamaguchi', author_email='KotaYamaguchi1984@gmail.com', url='https://github.com/psd-tools/psd-tools', description='Python package for working with Adobe Photoshop PSD files', long_description=( open('README.rst').read() + "\n\n" + open('CHANGES.rst').read() ), license='MIT License', install_requires=[ 'docopt>=0.5', 'attrs>=19.2.0', 'Pillow>=6.2.0', 'enum34;python_version<"3.4"', 'aggdraw', 'numpy', 'scipy', 'scikit-image', ], keywords="photoshop psd pil pillow", package_dir={'': 'src'}, packages=find_packages('src'), ext_modules=extension, entry_points={'console_scripts': ['psd-tools=psd_tools.__main__:main']}, classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT 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 :: Implementation :: PyPy', 'Topic :: Multimedia :: Graphics', 'Topic :: Multimedia :: Graphics :: Viewers', 'Topic :: Multimedia :: Graphics :: Graphics Conversion', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
Python
0
@@ -2147,30 +2147,11 @@ :: -Implementation :: PyPy +3.8 ',%0A
022ae8a30812916538faeab02385c7d80dc9e623
Add myself as maintainer
setup.py
setup.py
from setuptools import setup, find_packages import os 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', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development', 'Topic :: Software Development :: Libraries :: Application Frameworks', ] setup( author="Riccardo Forina", author_email="riccardo@forina.me", name='django-admin-bootstrapped', version='2.0.0', description='A Bootstrap theme for Django Admin', long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(), url='https://github.com/django-admin-bootstrapped/django-admin-bootstrapped', license='BSD License', platforms=['OS Independent'], classifiers=CLASSIFIERS, install_requires=[ 'setuptools', 'Django>=1.6', ], packages=find_packages(), include_package_data=True, zip_safe=False )
Python
0.000125
@@ -679,16 +679,114 @@ na.me%22,%0A + maintainer=%22Riccardo Magliocchetti%22,%0A maintainer_email=%22riccardo.magliocchetti@gmail.com%22,%0A name
ed333751b78ee63adee9317d1462b99e8d92fed1
Tag v0.9-dev for development
setup.py
setup.py
#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages setup( name="bentoo", description="Benchmarking tools", version="0.8", packages=find_packages(), scripts=["scripts/generator.py", "scripts/runner.py", "scripts/collector.py", "scripts/analyser.py"], package_data={ '': ['*.adoc', '*.rst', '*.md'] }, author="Zhang YANG", author_email="zyangmath@gmail.com", license="PSF", keywords="Benchmark;Performance Analysis", url="http://github.com/ProgramFan/bentoo" )
Python
0
@@ -155,17 +155,21 @@ sion=%220. -8 +9-dev %22,%0A p
d0d86c658d549c70d4f66241414e6f0a85d632ad
Add dep.
setup.py
setup.py
import re from setuptools import setup, find_packages versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M) with open("src/fusion_index/_version.py", "rt") as f: version = versionPattern.search(f.read()).group(1) setup( name='fusion-index', version=version, description='Lookup/search index service for Fusion', url='https://bitbucket.org/fusionapp/fusion-index', install_requires=[ 'Twisted[tls] >= 15.0.0', 'txspinneret >= 0.1.2', 'Axiom >= 0.7.4', 'eliot >= 0.8.0', 'testtools', 'characteristic', 'hypothesis>=3.0.0,<4.0.0', 'eliot', 'fusion_util', 'toolz', 'py2casefold', ], license='MIT', packages=find_packages(where='src') + ['twisted.plugins'], package_dir={'': 'src'}, include_package_data=True)
Python
0.000001
@@ -702,16 +702,45 @@ efold',%0A + 'prometheus_client',%0A
55acaf3f70eaf8e8baa59b57d85ce1202c01580f
Modify the version number.
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name = 'parsec.py', version = '1.0.0', description = 'parser combinator.', long_description = 'A univeral Python parser combinator library inspirted by Parsec library of Haskell.', author = 'He Tao', author_email = 'sighingnow@gmail', url = 'https://github.com/sighignow/parsec.py', license = 'MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', "Topic :: Software Development :: Compilers", 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Programming Language :: Python', "License :: OSI Approved :: MIT License", ], platforms = 'any', keywords = 'monad parser combinator', package_dir = {'': 'src'}, packages = find_packages('src'), test_suite = 'tests.parsec_test', )
Python
0.000001
@@ -135,9 +135,9 @@ = ' -1 +2 .0.0
b2366fda0a0340951482c95003b6dd7bc82641ef
version bump 0.2.8
setup.py
setup.py
""" Flask-Assistant ------------- Framework for Building Virtual Assistants with API.AI """ from setuptools import setup setup( name='Flask-Assistant', version='0.2.7', url='https://github.com/treethought/flask-assistant', license='Apache 2.0', author='Cam Sweeney', author_email='cpsweene@gmail.com', description='Framework for Building Virtual Assistants with API.AI', long_description=__doc__, packages=['flask_assistant', 'api_ai'], zip_safe=False, include_package_data=True, platforms='any', install_requires=[ 'Flask', 'requests', 'six', 'ruamel.yaml' ], extras_require={ 'HassRemote': ["homeassistant>=0.37.1"] }, entry_points={ 'console_scripts': ['schema=api_ai.cli:schema', 'query=api_ai.cli:query', 'templates=api_ai.cli:gen_templates', 'entities=api_ai.cli:entities', 'intents=api_ai.cli:intents', 'check=api_ai.cli:check'] }, classifiers=[ 'License :: OSI Approved :: Apache Software License', 'Framework :: Flask', 'Programming Language :: Python', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development :: Libraries :: Python Modules' ] )
Python
0.000001
@@ -168,17 +168,17 @@ on='0.2. -7 +8 ',%0A u
9041036f52458669215769775c0be4337e0f1352
Add clean command to setup.py
setup.py
setup.py
import os import re import setuptools directory = os.path.dirname(os.path.abspath(__file__)) # Extract version information path = os.path.join(directory, "metal", "__init__.py") with open(path) as read_file: text = read_file.read() pattern = re.compile(r"^__version__ = ['\"]([^'\"]*)['\"]", re.MULTILINE) version = pattern.search(text).group(1) # Extract long_description path = os.path.join(directory, "README.md") with open(path) as read_file: long_description = read_file.read() setuptools.setup( name="snorkel-metal", version=version, url="https://github.com/HazyResearch/metal", description="A system for quickly generating training data with multi-task weak supervision", long_description_content_type="text/markdown", long_description=long_description, license="Apache License 2.0", packages=setuptools.find_packages(), include_package_data=True, keywords="machine-learning ai information-extraction weak-supervision mtl multitask multi-task-learning", classifiers=[ "Intended Audience :: Science/Research", "Topic :: Scientific/Engineering :: Information Analysis", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", ], project_urls={ # Optional "Homepage": "https://hazyresearch.github.io/snorkel/", "Source": "https://github.com/HazyResearch/metal/", "Bug Reports": "https://github.com/HazyResearch/metal/issues", "Citation": "https://ajratner.github.io/assets/papers/mts-draft.pdf", }, )
Python
0.000001
@@ -33,16 +33,329 @@ ptools%0A%0A +%0Aclass CleanCommand(setuptools.Command):%0A %22%22%22Custom clean command to tidy up the project root.%22%22%22%0A%0A user_options = %5B%5D%0A%0A def initialize_options(self):%0A pass%0A%0A def finalize_options(self):%0A pass%0A%0A def run(self):%0A os.system(%22rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info%22)%0A%0A%0A director @@ -1880,10 +1880,48 @@ %0A %7D,%0A + cmdclass=%7B%22clean%22: CleanCommand%7D,%0A )%0A
158c8fcb4f94affc96a61fe36c2bd36cd6445509
Version bump for release.
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: set ts=4 sw=4 et sts=4 ai: # # Copyright 2009 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 # # 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 try: from setuptools import setup from setuptools.command import sdist, install except ImportError: from distutils.core import setup from distutils.command import sdist, install from datetime_tz import update_win32tz_map class update_sdist(sdist.sdist): def run(self): update_win32tz_map.update_stored_win32tz_map() sdist.sdist.run(self) class update_install(install.install): def run(self): if not os.path.exists(os.path.join(os.path.dirname(__file__), "datetime_tz", "win32tz_map.py")): # Running an install from a non-sdist, so need to generate map update_win32tz_map.update_stored_win32tz_map() install.install.run(self) import sys data = dict( name='python-datetime-tz', version='0.3', author='Tim Ansell', author_email='mithro@mithis.com', url='http://github.com/mithro/python-datetime-tz', description="""\ A drop in replacement for Python's datetime module which cares deeply about timezones. """, license="License :: OSI Approved :: Apache Software License", classifiers=[ "Intended Audience :: Developers", "Development Status :: 4 - Beta", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Internationalization", ], packages=['datetime_tz'], install_requires=[], setup_requires=["Genshi"], py_modules=['datetime_tz','datetime_tz.pytz_abbr'], test_suite='tests', cmdclass={'sdist': update_sdist, "install": update_install}, ) if sys.version[:3] < '3.0': data['install_requires'].append('pytz >= 2007g') data['install_requires'].append('python-dateutil >= 1.4') else: data['install_requires'].append('pytz >= 2011g') data['install_requires'].append('python-dateutil >= 2.0') setup(**data)
Python
0
@@ -1445,17 +1445,17 @@ sion='0. -3 +4 ',%0A a
92a9b98b0b17e6322ff4c81511c4186baac3dd2d
Add explicit argparse dependency for Python 2.6.
setup.py
setup.py
#!/usr/bin/env python # Copyright (c) 2015 - The MITRE Corporation # For license information, see the LICENSE.txt file from os.path import abspath, dirname, join import sys from setuptools import setup, find_packages BASE_DIR = dirname(abspath(__file__)) VERSION_FILE = join(BASE_DIR, 'sdv', 'version.py') def get_version(): with open(VERSION_FILE) as f: for line in f.readlines(): if line.startswith("__version__"): version = line.split()[-1].strip('"') return version raise AttributeError("Package does not have a __version__") py_maj, py_minor = sys.version_info[:2] if py_maj != 2: raise Exception('stix-validator required Python 2.6/2.7') if (py_maj, py_minor) < (2, 6): raise Exception('stix-validator requires Python 2.6/2.7') fn_readme = join(BASE_DIR, "README.rst") with open(fn_readme) as f: readme = f.read() install_requires = [ 'lxml>=3.3.5', 'xlrd>=0.9.2', 'ordereddict', 'python-dateutil' ] extras_require = { 'docs': [ 'Sphinx==1.2.1', 'sphinxcontrib-napoleon==0.2.4', 'sphinx_rtd_theme==0.1.7', ], 'test': [ "nose==1.3.0", "tox==1.6.1" ], } setup( name='stix-validator', description='APIs and scripts for validating STIX and CybOX documents.', author='The MITRE Corporation', author_email='stix@mitre.org', url='http://stix.mitre.org/', version=get_version(), packages=find_packages(), scripts=['sdv/scripts/stix_validator.py', 'sdv/scripts/cybox_validator.py'], include_package_data=True, install_requires=install_requires, extras_require=extras_require, long_description=readme, keywords="stix cybox xml validation validator stix-validator" )
Python
0
@@ -1003,16 +1003,143 @@ til'%0A%5D%0A%0A +# Python 2.6 does not come with argparse%0Atry:%0A import argparse%0Aexcept ImportError:%0A install_requires.append('argparse')%0A%0A extras_r
e7d8039e1c42062b1816cec7294135b25e103650
Fix up setup.py
setup.py
setup.py
#!/usr/bin/env python3 # Copyright 2012-2020 James Geboski <jgeboski@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. from setuptools import setup setup( name="mctl", version="2.0.0", url="https://github.com/jgeboski/mctl", author="James Geboski", author_email="jgeboski@gmail.com", license="MIT", description="Minecraft server controller and plugin manager", packages=["mctl"], install_requires=["aiofiles", "aiohttp", "Click", "PyYAML"], python_requires=">=3.7", entry_points={"console_scripts": ["mctl = mctl.commands:main"]}, )
Python
0.000003
@@ -999,17 +999,17 @@ %22, %22 -C +c lick%22, %22 PyYA @@ -1008,14 +1008,14 @@ %22, %22 -PyYAML +pyyaml %22%5D,%0A @@ -1107,12 +1107,11 @@ nds: -main +cli %22%5D%7D,
2f403df689f0566e9197fff277bac8d5e1e4d3dd
update setup.py
setup.py
setup.py
#!/usr/bin/python # ex:set fileencoding=utf-8: import os import sys import re from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand import contact_form_bootstrap README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() install_requires = [ 'django-crispy-bootstrap==0.1.1.1', 'django-crispy-forms>=1.11.2', 'django-recaptcha==2.0.6', 'requests==2.25.1', ] prod_requires = [ ] dev_requires = [ # 'flake8>=1.6,<2.0', 'django-extensions>=1.5.5', 'django-debug-toolbar>=1.3.0', ] tests_require = [ 'pytest', 'pytest-cov==2.11.1', 'pytest-django', 'mock', 'coverage==5.5', ] class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): #import here, cause outside the eggs aren't loaded import pytest errno = pytest.main(self.test_args) sys.exit(errno) # Thank django-rest-framework team for the idea def get_version(package): """ Return package version as listed in `VERSION` in `init.py`. """ init_py = open(os.path.join(package, '__init__.py')).read() return re.search("VERSION = ['\"]([^'\"]+)['\"]", init_py).group(1) version = get_version('contact_form_bootstrap') if sys.argv[-1] == 'publish': if os.system("pip freeze | grep wheel"): print("wheel not installed.\nUse `pip install wheel`.\nExiting.") sys.exit() if os.system("pip freeze | grep twine"): print("twine not installed.\nUse `pip install twine`.\nExiting.") sys.exit() os.system("python setup.py sdist bdist_wheel") os.system("twine upload dist/*") print("You probably want to also tag the version now:") print(" git tag -a %s -m 'version %s'" % (version, version)) print(" git push --tags") sys.exit() setup( name='django_contactform_bootstrap', version=contact_form_bootstrap.VERSION, packages=find_packages('.'), include_package_data=True, license='BSD License', # example.new license description='A Django Base contact form with bootstrap 3 and map.', long_description=README, url='http://www.github.com/alainivars/contact_form_bootstrap/', author='James Bennett, Alain Ivars', author_email='alainivars@highfeature.com', extras_require={ 'tests': tests_require, 'dev': dev_requires, 'prod': prod_requires, }, install_requires=install_requires, tests_require=tests_require, 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', # Replace these appropriately if you are stuck on Python 2. 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ], cmdclass={'test': PyTest}, )
Python
0.000001
@@ -3076,60 +3076,158 @@ :: -2.7',%0A 'Programming Language :: Python :: 3.4 +3.6',%0A 'Programming Language :: Python :: 3.7',%0A 'Programming Language :: Python :: 3.8',%0A 'Programming Language :: Python :: 3.9 ',%0A
7bc2295ef2f3f1d44a8a1f0c7592edb2e1fcf79f
enforce django-fluent-utils 1.1.2 for PyDev/PyCharm fixes
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 # When creating the sdist, make sure the django.mo file also exists: if 'sdist' in sys.argv or 'develop' in sys.argv: try: os.chdir('fluent_contents') from django.core.management.commands.compilemessages import Command command = Command() command.execute(stdout=sys.stderr, verbosity=1) except ImportError: # < Django 1.7 from django.core.management.commands.compilemessages import compile_messages compile_messages(sys.stderr) finally: os.chdir('..') 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-fluent-contents', version=find_version('fluent_contents', '__init__.py'), license='Apache License, Version 2.0', install_requires=[ 'django-fluent-utils>=1.0', # DRY utility code 'django-parler>=1.1.1', # Needed for Django 1.7 compatibility 'django-polymorphic>=0.6', # Needed for Django 1.7 compatibility 'django-tag-parser>=2.0', 'django-template-analyzer>=1.4', # Needed for Django 1.7 compatibility 'future>=0.12.2', 'six>=1.5.2', ], requires=[ 'Django (>=1.4)', ], extras_require = { 'code': ['Pygments'], 'disquscommentsarea': ['django-disqus'], 'formdesignerlink': ['django-form-designer'], 'markup': ['docutils', 'textile', 'Markdown>=1.7'], 'oembeditem': ['micawber>=0.2.6'], 'text': ['django-wysiwyg>=0.5.1'], 'twitterfeed': ['twitter-text-py>=1.0.3'], }, dependency_links = [ 'git+https://github.com/philomat/django-form-designer.git#egg=django-form-designer', ], description='A widget engine to display various content on Django pages', long_description=read('README.rst'), author='Diederik van der Boor', author_email='opensource@edoburu.nl', url='https://github.com/edoburu/django-fluent-contents', download_url='https://github.com/edoburu/django-fluent-contents/zipball/master', packages=find_packages(exclude=('example*',)), include_package_data=True, test_suite = 'runtests', zip_safe=False, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Framework :: Django', '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', 'Programming Language :: Python :: 3.3', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development :: Libraries :: Application Frameworks', 'Topic :: Software Development :: Libraries :: Python Modules', ] )
Python
0.000001
@@ -1270,13 +1270,13 @@ %3E=1. -0', +1.2',
7be23730a3712eadba620184f62f49c9064bb9a5
bump version to b13, no release yet
setup.py
setup.py
from __future__ import print_function try: from setuptools import setup # try first in case it's already there. except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup setup( name='vpython', packages=['vpython'], version='0.2.0b12', description='VPython for Jupyter Notebook', long_description=open('README.md').read(), author='John Coady / Ruth Chabay / Bruce Sherwood / Steve Spicklemire', author_email='bruce.sherwood@gmail.com', url='http://pypi.python.org/pypi/vpython/', license='LICENSE.txt', keywords='vpython', classifiers=[ 'Framework :: IPython', 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Intended Audience :: End Users/Desktop', 'Natural Language :: English', 'Programming Language :: Python', 'Topic :: Multimedia :: Graphics :: 3D Modeling', 'Topic :: Multimedia :: Graphics :: 3D Rendering', 'Topic :: Scientific/Engineering :: Visualization', ], install_requires=['jupyter', 'vpnotebook'], package_data={'vpython': ['data/*']}, )
Python
0
@@ -299,17 +299,17 @@ '0.2.0b1 -2 +3 ',%0A d
1b2bf239a8357f5de9fcfab2f9f6fe2fd9557db3
Make python3 compatible.
setup.py
setup.py
# -*- coding: utf-8 -*- # Copyright (C) 2012-2014 MUJIN Inc from distutils.core import setup try: from mujincommon.setuptools import Distribution except ImportError: from distutils.dist import Distribution version = {} execfile('python/mujincontrollerclient/version.py', version) setup( distclass=Distribution, name='mujincontrollerclient', version=version['__version__'], packages=['mujincontrollerclient'], package_dir={'mujincontrollerclient': 'python/mujincontrollerclient'}, scripts=['bin/mujin_controllerclientpy_registerscene.py'], locale_dir='locale', license='Apache License, Version 2.0', long_description=open('README.rst').read(), # flake8 compliance configuration enable_flake8=True, # Enable checks fail_on_flake=True, # Fail builds when checks fail install_requires = [], )
Python
0
@@ -229,12 +229,13 @@ exec -file +(open ('py @@ -272,16 +272,24 @@ sion.py' +).read() , versio
a086b5592c1a1cd94e4744027ac6180095122314
Bump verison number for PyPi
setup.py
setup.py
import os import sys from distutils.util import convert_path from fnmatch import fnmatchcase from setuptools import setup, find_packages version = '0.1.8' # Provided as an attribute, so you can append to these instead # of replicating them: standard_exclude = ('*.py', '*.pyc', '*$py.class', '*~', '.*', '*.bak') standard_exclude_directories = ('.*', 'CVS', '_darcs', './build', './dist', 'EGG-INFO', '*.egg-info') # (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php # Note: you may want to copy this into your setup.py file verbatim, as # you can't import this from another package, when you don't know if # that package is installed yet. def find_package_data( where='.', package='', exclude=standard_exclude, exclude_directories=standard_exclude_directories, only_in_packages=True, show_ignored=False): """ Return a dictionary suitable for use in ``package_data`` in a distutils ``setup.py`` file. The dictionary looks like:: {'package': [files]} Where ``files`` is a list of all the files in that package that don't match anything in ``exclude``. If ``only_in_packages`` is true, then top-level directories that are not packages won't be included (but directories under packages will). Directories matching any pattern in ``exclude_directories`` will be ignored; by default directories with leading ``.``, ``CVS``, and ``_darcs`` will be ignored. If ``show_ignored`` is true, then all the files that aren't included in package data are shown on stderr (for debugging purposes). Note patterns use wildcards, or can be exact paths (including leading ``./``), and all searching is case-insensitive. """ out = {} stack = [(convert_path(where), '', package, only_in_packages)] while stack: where, prefix, package, only_in_packages = stack.pop(0) for name in os.listdir(where): fn = os.path.join(where, name) if os.path.isdir(fn): bad_name = False for pattern in exclude_directories: if (fnmatchcase(name, pattern) or fn.lower() == pattern.lower()): bad_name = True if show_ignored: print >> sys.stderr, ( "Directory %s ignored by pattern %s" % (fn, pattern)) break if bad_name: continue if (os.path.isfile(os.path.join(fn, '__init__.py')) and not prefix): if not package: new_package = name else: new_package = package + '.' + name stack.append((fn, '', new_package, False)) else: stack.append((fn, prefix + name + '/', package, only_in_packages)) elif package or not only_in_packages: # is a file bad_name = False for pattern in exclude: if (fnmatchcase(name, pattern) or fn.lower() == pattern.lower()): bad_name = True if show_ignored: print >> sys.stderr, ( "File %s ignored by pattern %s" % (fn, pattern)) break if bad_name: continue out.setdefault(package, []).append(prefix+name) return out LONG_DESCRIPTION = """ =============== django-helpdesk =============== This is a Django-powered helpdesk ticket tracker, designed to plug into an existing Django website and provide you with internal (or, perhaps, external) helpdesk management. """ setup( name='django-helpdesk', version=version, description="Django-powered ticket tracker for your helpdesk", long_description=LONG_DESCRIPTION, classifiers=[ "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Framework :: Django", "Environment :: Web Environment", "Operating System :: OS Independent", "Intended Audience :: Customer Service", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Topic :: Office/Business", "Topic :: Software Development :: Bug Tracking", ], keywords=['django', 'helpdesk', 'tickets', 'incidents', 'cases'], author='Ross Poulton', author_email='ross@rossp.org', url='http://github.com/rossp/django-helpdesk', license='BSD', packages=find_packages(), package_data=find_package_data("helpdesk", only_in_packages=False), include_package_data=True, zip_safe=False, install_requires=['setuptools', 'pytz'], )
Python
0.000002
@@ -150,9 +150,9 @@ 0.1. -8 +9 '%0A%0A#
8b0dc1ac533c566060020723252c7dfd5551fc8f
Update pytest-cov requirement from <2.11.0,>=2.8.1 to >=2.8.1,<2.12.0 (#612)
setup.py
setup.py
from setuptools import find_packages, setup def readme(): with open("README.md", "r") as f: return f.read() setup( name="larq", version="0.10.2", python_requires=">=3.6", author="Plumerai", author_email="opensource@plumerai.com", description="An Open Source Machine Learning Library for Training Binarized Neural Networks", long_description=readme(), long_description_content_type="text/markdown", url="https://larq.dev/", packages=find_packages(exclude=["larq.snapshots"]), license="Apache 2.0", install_requires=[ "numpy >= 1.15.4, < 2.0", "terminaltables>=3.1.0", "dataclasses ; python_version<'3.7'", "importlib-metadata >= 2.0, < 4.0 ; python_version<'3.8'", ], extras_require={ "tensorflow": ["tensorflow>=1.14.0"], "tensorflow_gpu": ["tensorflow-gpu>=1.14.0"], "test": [ "black==20.8b1", "flake8>=3.7.9,<3.9.0", "isort==5.7.0", "packaging>=19.2,<21.0", "pytest>=5.2.4,<6.3.0", "pytest-cov>=2.8.1,<2.11.0", "pytest-xdist>=1.30,<2.3", "pytest-mock>=2.0,<3.6", "pytype==2020.10.8", "snapshottest>=0.5.1,<0.7.0", ], }, classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Science/Research", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Mathematics", "Topic :: Scientific/Engineering :: Artificial Intelligence", "Topic :: Software Development", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", ], )
Python
0.00001
@@ -1100,17 +1100,17 @@ 8.1,%3C2.1 -1 +2 .0%22,%0A
3249702ba601377dd21daab2131d851aeb90a6ff
update dependency of chilero to >=3.4.2
setup.py
setup.py
import setuptools setup_params = dict( name='chilero_pg', use_scm_version=True, namespace_packages=['chilero'], packages=setuptools.find_packages(), include_package_data=True, url='https://github.com/dmonroy/chilero.pg', author='Darwin Monroy', author_email='contact@darwinmonroy.com', description='PostgreSQL utilities for chilero', install_requires=[ 'aiopg', 'chilero>=0.3.10' ], setup_requires=[ 'setuptools_scm', ], ) if __name__ == '__main__': setuptools.setup(**setup_params)
Python
0
@@ -428,12 +428,11 @@ %3E=0. -3.10 +4.2 '%0A
87fd39eafd4a2d8310a9273136a95438b7c36f56
fix blessings requirement to allow 1.5, don't require <2
setup.py
setup.py
from setuptools import setup import ast import os def version(): """Return version string.""" with open(os.path.join('curtsies', '__init__.py')) as input_file: for line in input_file: if line.startswith('__version__'): return ast.parse(line).body[0].value.s setup(name='curtsies', version=version(), description='Curses-like terminal wrapper, with colored strings!', url='https://github.com/thomasballinger/curtsies', author='Thomas Ballinger', author_email='thomasballinger@gmail.com', license='MIT', packages=['curtsies'], install_requires = [ 'blessings>1.5, <2.0' ], tests_require = [ 'mock', 'pyte' ], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Console', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: POSIX', 'Programming Language :: Python', ], zip_safe=False)
Python
0.000009
@@ -658,17 +658,12 @@ ngs%3E += 1.5 -, %3C2.0 '%0A
d825a89a1d4d19f9979504078f0091493f41677e
Bump version.
setup.py
setup.py
from setuptools import setup setup(name='execution-trace', version='1.0.0', description='Record the state of Python functions as they execute.', url='http://github.com/mihneadb/python-execution-trace', author='Mihnea Dobrescu-Balaur', author_email='mihnea@linux.com', license='MIT', packages=['execution_trace', 'execution_trace.viewer'], include_package_data=True, install_requires=[ 'voluptuous==0.8.10', 'Flask==0.10.1', ], test_suite='nose.collector', tests_require=[ 'nose==1.3.7', 'mock==1.3.0' ], scripts=[ 'bin/view_trace', ], zip_safe=False )
Python
0
@@ -74,17 +74,17 @@ on='1.0. -0 +1 ',%0A
f1527402bc4ca40e638022d611920e855df1244e
use right url and name in setup
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup with open('README.md') as f: readme = f.read() setup(name='meteor-ddp', version='0.1.0', description='An event driven meteor client', long_description=readme, license='MIT', author='Harrison Harnisch', author_email='hharnisc@gmail.com', url='https://github.com/hharnisc/meteor-ddp', keywords = ["meteor", "ddp", "events", "emitter", "node.js", "node", "eventemitter", "event_emitter"], classifiers = [ "Programming Language :: Python", "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", #only one tested "Topic :: Other/Nonlisted Topic" ], py_modules=['MeteorClient'], install_requires=[ 'python-ddp' ], )
Python
0
@@ -110,26 +110,29 @@ p(name=' +python- meteor --ddp ',%0A v @@ -356,18 +356,21 @@ isc/ +python- meteor --ddp ',%0A
65dcbf1894444208a0a18cf1993da8b5b7844044
Fix #14 -- pip not installing full package
setup.py
setup.py
#!/usr/bin/env python """How to release a new version: https://packaging.python.org/en/latest/distributing.html#uploading-your-project-to-pypi""" from businesstime import __version__ try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='businesstime', version=__version__, author='SeatGeek', author_email='hi@seatgeek.com', packages=[ 'businesstime', 'businesstime.holidays', ], url='http://github.com/seatgeek/businesstime', license=open('LICENSE.txt').read(), classifiers=[ 'Programming Language :: Python :: 2.7', ], description='A simple utility for calculating business time aware timedeltas between two datetimes', long_description=open('README.rst').read() + '\n\n' + open('CHANGES.rst').read(), tests_require=['nose'], test_suite='nose.collector' )
Python
0
@@ -183,17 +183,8 @@ __%0A%0A -try:%0A from @@ -206,64 +206,22 @@ ort -setup%0Aexcept ImportError:%0A from distutils.core import +find_packages, set @@ -357,72 +357,74 @@ ges= -%5B%0A 'businesstime',%0A 'businesstime.holidays',%0A %5D +find_packages(),%0A include_package_data=True,%0A zip_safe=False ,%0A
4c307de8e4efc3f43218d438c1465c3c60ab91b7
Bump version to 0.21.0
setup.py
setup.py
from setuptools import setup, find_packages __version__ = '0.20.0' setup( name="Flask-REST-JSONAPI", version=__version__, description='Flask extension to create REST web api according to JSONAPI 1.0 specification with Flask, Marshmallow \ and data provider of your choice (SQLAlchemy, MongoDB, ...)', url='https://github.com/miLibris/flask-rest-jsonapi', author='miLibris API Team', author_email='pf@milibris.net', license='MIT', classifiers=[ 'Framework :: Flask', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'License :: OSI Approved :: MIT License', ], keywords='web api rest jsonapi flask sqlalchemy marshmallow', packages=find_packages(exclude=['tests']), zip_safe=False, platforms='any', install_requires=['six', 'Flask>=0.11', 'marshmallow==2.13.1', 'marshmallow_jsonapi', 'sqlalchemy'], setup_requires=['pytest-runner'], tests_require=['pytest'], extras_require={'tests': 'pytest', 'docs': 'sphinx'} )
Python
0
@@ -57,17 +57,17 @@ _ = '0.2 -0 +1 .0'%0A%0A%0Ase
2399c500a43ed4b6eec7f79dce51166c98503721
update version
setup.py
setup.py
from setuptools import setup setup( version = '1.2.15', name = 'dotmap', packages = ['dotmap'], # this must be the same as the name above description = 'ordered, dynamically-expandable dot-access dictionary', author = 'Chris Redford', author_email = 'credford@gmail.com', url = 'https://github.com/drgrib/dotmap', # use the URL to the github repo download_url = 'https://github.com/drgrib/dotmap/tarball/1.0', keywords = ['dict', 'dot', 'map', 'order', 'ordered', 'ordereddict', 'access', 'dynamic'], # arbitrary keywords classifiers = [], )
Python
0
@@ -51,9 +51,9 @@ .2.1 -5 +6 ',%0A%09
13de2353047e22390964497b536f4647f44ad89b
Bump version to 0.30.1
setup.py
setup.py
from setuptools import setup, find_packages __version__ = '0.30.0' setup( name="Flask-REST-JSONAPI", version=__version__, description='Flask extension to create REST web api according to JSONAPI 1.0 specification with Flask, Marshmallow \ and data provider of your choice (SQLAlchemy, MongoDB, ...)', url='https://github.com/miLibris/flask-rest-jsonapi', author='miLibris API Team', author_email='pf@milibris.net', license='MIT', classifiers=[ 'Framework :: Flask', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'License :: OSI Approved :: MIT License', ], keywords='web api rest jsonapi flask sqlalchemy marshmallow', packages=find_packages(exclude=['tests']), zip_safe=False, platforms='any', install_requires=['six', 'Flask>=0.11', 'marshmallow==2.18.0', 'marshmallow_jsonapi', 'sqlalchemy'], setup_requires=['pytest-runner'], tests_require=['pytest'], extras_require={'tests': 'pytest', 'docs': 'sphinx'} )
Python
0
@@ -59,17 +59,17 @@ = '0.30. -0 +1 '%0A%0A%0Asetu
782733ef64fd16418a48f9bca1b288efcb26d057
Add a few more entrypoints for defaults.
setup.py
setup.py
#!/usr/bin/env python import os from setuptools import setup def readreq(filename): result = [] with open(filename) as f: for req in f: req = req.partition('#')[0].strip() if not req: continue result.append(req) return result def readfile(filename): with open(filename) as f: return f.read() setup( name='turnstile', version='0.7.0b1', author='Kevin L. Mitchell', author_email='kevin.mitchell@rackspace.com', url='https://github.com/klmitch/turnstile', description="Distributed rate-limiting middleware", long_description=readfile('README.rst'), license='Apache License (2.0)', classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Framework :: Paste', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', 'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware', ], packages=['turnstile'], install_requires=readreq('.requires'), tests_require=readreq('.test-requires'), entry_points={ 'paste.filter_factory': [ 'turnstile = turnstile.middleware:turnstile_filter', ], 'console_scripts': [ 'setup_limits = turnstile.tools:setup_limits.console', 'dump_limits = turnstile.tools:dump_limits.console', 'remote_daemon = turnstile.tools:remote_daemon.console', 'turnstile_command = turnstile.tools:turnstile_command.console', 'compactor_daemon = turnstile.tools:compactor.console', ], 'turnstile.limit': [ 'limit = turnstile.limits:Limit', ], 'turnstile.middleware': [ 'turnstile = turnstile.middleware:TurnstileMiddleware', ], }, )
Python
0
@@ -1678,32 +1678,367 @@ le',%0A %5D,%0A + 'turnstile.redis_client': %5B%0A 'redis = redis:StrictRedis',%0A %5D,%0A 'turnstile.connection_class': %5B%0A 'redis = redis:Connection',%0A 'unix_domain = redis:UnixDomainSocketConnection',%0A %5D,%0A 'turnstile.connection_pool': %5B%0A 'redis = redis:ConnectionPool',%0A %5D,%0A 'turnsti
18db3bf628d1d18a381b70bed936a1173eb00aa5
fix for requirements.txt environment markers
setup.py
setup.py
# -*- coding: utf-8 -*- import os import codecs import re import sys import shutil from setuptools import setup, find_packages try: # for pip >= 10 from pip._internal.req import parse_requirements except ImportError: # for pip <= 9.0.3 from pip.req import parse_requirements PACKAGE = "business_logic" NAME = "django-business-logic" DESCRIPTION = "Visual programming framework for django" AUTHOR = "Dmitry Kuksinsky" AUTHOR_EMAIL = "dgk@dgk.su" URL = "https://github.com/dgk/django-business-logic" def get_version(package): """ Return package version as listed in `__version__` in `init.py`. """ init_py = open(os.path.join(package, '__init__.py')).read() return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1) version = get_version(PACKAGE) def get_packages(package): """ Return root package and all sub-packages. """ return [dirpath for dirpath, dirnames, filenames in os.walk(package) if os.path.exists(os.path.join(dirpath, '__init__.py'))] def get_package_data(package): """ Return all files under the root package, that are not in a package themselves. """ walk = [(dirpath.replace(package + os.sep, '', 1), filenames) for dirpath, dirnames, filenames in os.walk(package) if not os.path.exists(os.path.join(dirpath, '__init__.py'))] filepaths = [] for base, filenames in walk: filepaths.extend([os.path.join(base, filename) for filename in filenames]) return {package: filepaths} def path(*parts): return os.path.join(os.path.dirname(__file__), *parts) def clean(): for d in ('dist', 'build', '{}.egg-info'.format(NAME.replace('-', '_'))): if os.path.exists(d): shutil.rmtree(d) if sys.argv[-1] == 'publish': clean() if os.system("pip freeze | grep twine"): print("twine not installed.\nUse `pip install twine`.\nExiting.") sys.exit(1) os.system("python setup.py sdist bdist_wheel") os.system("twine upload dist/*") print("You probably want to also tag the version now:") print(" git tag -a %s -m 'version %s'" % (version, version)) print(" git push --tags") sys.exit() setup( name=NAME, version=get_version(PACKAGE), description=DESCRIPTION, long_description=codecs.open(path('README.rst'), encoding='utf-8').read(), author=AUTHOR, author_email=AUTHOR_EMAIL, url=URL, # download_url='{}/archive/{}.tar.gz'.format(URL, VERSION), packages=get_packages(PACKAGE), package_data={ PACKAGE: [ 'locale/*/LC_MESSAGES/django.[mp]o', 'static/business_logic/*.html', 'static/business_logic/*.js', 'static/business_logic/*.map', 'static/business_logic/blockly/*', 'static/business_logic/src/assets/fonts/*', ] }, license='MIT', keywords=['django', ], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', '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 :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Framework :: Django', 'Framework :: Django :: 1.11', 'Framework :: Django :: 2.0', 'Framework :: Django :: 2.1', ], zip_safe=False, install_requires=[ str(x.req) for x in parse_requirements(path('requirements.txt'), session=False) ], )
Python
0
@@ -3840,16 +3840,68 @@ +'%7B%7D; %7B%7D'.format(x.req, x.markers) if x.markers else str(x.re
845d0b2a35d1828ff4b867c8141d2e0ed5605095
version 0.3 for build
setup.py
setup.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from setuptools import setup, find_packages import os setup( name="graphpype", version='0.0.2', packages=find_packages(), author="David Meunier", description="Graph analysis for neuropycon (using nipype, and ephypype); based on previous packages dmgraphanalysis and then dmgraphanalysis_nodes and graphpype", lisence='BSD 3', install_requires=['numpy>=1.3.0', 'statsmodels', 'nipype', 'configparser', "pandas", 'networkx==1.9', "matplotlib"] )
Python
0
@@ -146,9 +146,9 @@ 0.0. -2 +3 ',%0A
54b1c8bcfadae586e33cfff7813c8066ca50560d
update version number
setup.py
setup.py
#from distutils.core import setup from setuptools import setup, Extension from os.path import exists from subprocess import call sa = Extension('dsts.sa', include_dirs=['dsts/external/dstc/SAIS-SK/src/'], sources=['dsts/samodule.cpp', 'dsts/external/dstsc/SAIS-SK/src/mmap.cpp', 'dsts/external/dstsc/SAIS-SK/src/fileopen.cpp', 'dsts/external/dstsc/SAIS-SK/src/gt-alloc.cpp', 'dsts/external/dstsc/SAIS-SK/src/sk-sain.cpp']) lz = Extension('dsts.lz', include_dirs=['dsts/external/dstc/lzOG/src/', 'dsts/external/dstc/SAIS-SK/src/'], sources=['dsts/lzmodule.cpp', 'dsts/external/dstsc/lzOG/src/lzOG.cpp', 'dsts/external/dstsc/SAIS-SK/src/mmap.cpp', 'dsts/external/dstsc/SAIS-SK/src/fileopen.cpp', 'dsts/external/dstsc/SAIS-SK/src/gt-alloc.cpp', 'dsts/external/dstsc/SAIS-SK/src/sk-sain.cpp']) # When this script is run, we want to unsure that the distc package is installed # The distc package has C++ code that is required when building the lz extension if not exists("dsts/external/dstsc/SAIS-SK/") or not exists("dsts/external/dstsc/lzOG/"): call(["git", "submodule", "update", "--init"]) setup(name="dsts", version="0.7", description="Python data structures.", author="Angelos Molfetas", author_email="angelos.molfetas@unimelb.edu.au", packages=['dsts'], long_description="Python data structures. Suffix array Construction Algorithm, Rabin & Karp fingerprint generator, LZ factorisor.", ext_modules=[lz, sa], )
Python
0.000002
@@ -1256,9 +1256,9 @@ =%220. -7 +8 %22,%0A
ff8b2a2584a85d1df49667e87d4c894b644cc02a
bump version
setup.py
setup.py
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='hopsutil', version='0.7.2', author='Robin Andersson', author_email='robin2@kth.se', description='A helper library for Hops that facilitates development by hiding the complexity of discovering services and setting up security.', license='Apache License 2.0', keywords='HOPS, Hadoop', url='https://github.com/hopshadoop/hops-util-python', download_url = 'https://github.com/hopshadoop/hops-util-python/archive/0.7.2.tar.gz', packages=['hopsutil'], long_description=read('README.rst'), classifiers=[ 'Development Status :: 3 - Alpha', 'Topic :: Utilities', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', ], install_requires=[] )
Python
0
@@ -168,17 +168,17 @@ on='0.7. -2 +3 ',%0A a @@ -584,17 +584,17 @@ ive/0.7. -2 +3 .tar.gz'
6b7da0bbda76360f22fa95c8bb1a38c59920e16a
Bump version 0.6.5
setup.py
setup.py
from __future__ import print_function import os from setuptools import setup, find_packages from distutils.command.build import build as _build executables = [ 'jpegoptim', 'pngcrush', 'optipng', 'convert', # From GraphicsMagick or ImageMagick. 'lessc', 'r.js', 'postcss', ] def which(exe): for path in os.environ['PATH'].split(os.pathsep): fpath = os.path.join(path, exe) if os.path.exists(fpath) and os.access(fpath, os.X_OK): return fpath class build(_build): def finalize_options(self): _build.finalize_options(self) for exe in executables: print('checking for %r...' % exe) fpath = which(exe) if not fpath: print('WARNING: Missing %r executable!' % exe) else: print(fpath) setup(name='pyramid_frontend', cmdclass={'build': build}, version='0.6.4', description='Themes, image filtering, and frontend asset handling.', long_description='', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.5', 'Framework :: Pyramid', 'Intended Audience :: Developers', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Multimedia :: Graphics', ], keywords='pyramid themes frontend assets', url='http://github.com/cartlogic/pyramid_frontend', author='Scott Torborg', author_email='scott@cartlogic.com', install_requires=[ 'Pyramid>=1.4.5', 'Pillow>=2.1.0', # Provides PIL 'Mako>=0.9.0', 'WebHelpers2>=2.0b5', 'six>=1.5.2', 'lockfile>=0.9.1', ], license='MIT', packages=find_packages(), test_suite='nose.collector', tests_require=['nose'], include_package_data=True, zip_safe=False, entry_points="""\ [console_scripts] pcompile = pyramid_frontend.compile:main """)
Python
0.000001
@@ -924,17 +924,17 @@ on='0.6. -4 +5 ',%0A
fe37e213cd3567af85922d7f56e0a8a9c2f2b2e7
version bump
setup.py
setup.py
#!/usr/bin/env python import codecs from setuptools import setup try: codecs.lookup('mbcs') except LookupError: ascii = codecs.lookup('ascii') codecs.register(lambda name, enc=ascii: {True: enc}.get(name == 'mbcs')) VERSION = '0.4.3' setup( name='steem', version=VERSION, description='Python library for STEEM', long_description=open('README.md').read(), download_url='https://github.com/xeroc/python-steem/tarball/' + VERSION, author='Fabian Schuh', author_email='<Fabian@chainsquad.com>', maintainer='Fabian Schuh', maintainer_email='<Fabian@chainsquad.com>', url='http://www.github.com/xeroc/python-steem', keywords=['steem', 'library', 'api', 'rpc'], packages=["steem", "steemapi", "steembase"], classifiers=[ 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3', 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Intended Audience :: Financial and Insurance Industry', 'Topic :: Office/Business :: Financial', ], install_requires=[ "graphenelib", "websockets==2.0", "scrypt==0.7.1", "diff-match-patch==20121119", "appdirs==1.4.0", "python-frontmatter==0.2.1", "pycrypto==2.6.1", "funcy", # "python-dateutil", # "secp256k1==0.13.2" ], dependency_links=[ "git+https://github.com/xeroc/python-graphenelib@minimal#egg=graphenelib" ], setup_requires=['pytest-runner'], tests_require=['pytest'], include_package_data=True, )
Python
0.000001
@@ -239,17 +239,17 @@ = '0.4. -3 +4 '%0A%0Asetup @@ -627,40 +627,18 @@ p:// -www.github.com/xeroc/python-stee +pysteem.co m',%0A
e1a900485e1917d251336e104d2a4c18774c62e4
Bump version
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2015 grafana-dashboard-builder contributors # # 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 sys from setuptools import setup from setuptools.command.test import test as TestCommand __author__ = 'Jakub Plichta <jakub.plichta@gmail.com>' class Tox(TestCommand): user_options = [('tox-args=', 'a', "Arguments to pass to tox")] def initialize_options(self): TestCommand.initialize_options(self) self.tox_args = None def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): # import here, cause outside the eggs aren't loaded import tox import shlex args = self.tox_args if args: args = shlex.split(self.tox_args) errno = tox.cmdline(args=args) sys.exit(errno) params = { 'name': 'grafana-dashboard-builder', 'version': '0.1.0a9', 'packages': [ 'grafana_dashboards', 'grafana_dashboards.client', 'grafana_dashboards.components' ], 'scripts': [ 'bin/grafana_dashboard_builder.py' ], 'url': 'https://github.com/jakubplichta/grafana-dashboard-builder', 'license': 'Apache License, Version 2.0', 'author': 'Jakub Plichta', 'author_email': 'jakub.plichta@gmail.com', 'description': 'Generate Grafana dashboards with YAML', 'classifiers': [ 'Topic :: Utilities', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: Information Technology', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], 'keywords': 'grafana yaml', 'cmdclass': {'test': Tox}, 'tests_require': ['tox', 'mock'], 'install_requires': ['PyYAML', 'argparse'], 'entry_points': { 'console_scripts': [ 'grafana-dashboard-builder = grafana_dashboards.cli:main', ], }, 'long_description': """grafana-dashboard-builder is an open-source tool for easier creation of Grafana dashboards. It is written in Python and uses YAML descriptors for dashboard templates. This project has been inspired by Jenkins Job Builder that allows users to describe Jenkins jobs with human-readable format. grafana-dashboard-builder aims to provide similar simplicity to Grafana dashboard creation and to give users easy way how they can create dashboard templates filled with different configuration.""" } setup(**params)
Python
0
@@ -1490,9 +1490,10 @@ 1.0a -9 +10 ',%0A
019cb2986e902bf36bc5c1ed1dd4b612f288b0f5
add bdist_mpkg to setuptools command list
setup.py
setup.py
#!/usr/bin/env python # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: import os from os.path import join as pjoin, exists import sys from glob import glob from distutils import log # BEFORE importing distutils, remove MANIFEST. distutils doesn't properly # update it when the contents of directories change. if exists('MANIFEST'): os.remove('MANIFEST') # Import build helpers try: from nisext.sexts import package_check, get_comrec_build except ImportError: raise RuntimeError('Need nisext package from nibabel installation' ' - please install nibabel first') from setup_helpers import (generate_a_pyrex_source, cmdclass, INFO_VARS, build_py) # build_py will do 2to3 for Python3 # monkey-patch numpy distutils to use Cython instead of Pyrex from numpy.distutils.command.build_src import build_src build_src.generate_a_pyrex_source = generate_a_pyrex_source # Add custom commit-recording build command cmdclass['build_py'] = get_comrec_build('nipy', build_py) 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) # The quiet=True option will silence all of the name setting warnings: # Ignoring attempt to set 'name' (from 'nipy.core' to # 'nipy.core.image') # Robert Kern recommends setting quiet=True on the numpy list, stating # these messages are probably only used in debugging numpy distutils. config.get_version(pjoin('nipy', 'info.py')) # sets config.version config.add_subpackage('nipy', 'nipy') return config ################################################################################ # For some commands, use setuptools if len(set(('develop', 'bdist_egg', 'bdist_rpm', 'bdist', 'bdist_dumb', 'bdist_wininst', 'install_egg_info', 'egg_info', 'easy_install', )).intersection(sys.argv)) > 0: from setup_egg import extra_setuptools_args # extra_setuptools_args can be defined from the line above, but it can # also be defined here because setup.py has been exec'ed from # setup_egg.py. if not 'extra_setuptools_args' in globals(): extra_setuptools_args = dict() # Hard and soft dependency checking package_check('numpy', INFO_VARS['NUMPY_MIN_VERSION']) package_check('scipy', INFO_VARS['SCIPY_MIN_VERSION']) package_check('nibabel', INFO_VARS['NIBABEL_MIN_VERSION']) package_check('sympy', INFO_VARS['SYMPY_MIN_VERSION']) def _mayavi_version(pkg_name): """Mayavi2 pruned enthought. namespace at 4.0.0 """ v = '' try: from mayavi import version v = version.version if v == '': v = '4.0.0' # must be the one in Debian except ImportError: from enthought.mayavi import version v = version.version return v package_check('mayavi', INFO_VARS['MAYAVI_MIN_VERSION'], optional=True, version_getter=_mayavi_version) # Cython can be a build dependency def _cython_version(pkg_name): from Cython.Compiler.Version import version return version package_check('cython', INFO_VARS['CYTHON_MIN_VERSION'], optional=True, version_getter=_cython_version, messages={'opt suffix': ' - you will not be able ' 'to rebuild Cython source files into C files', 'missing opt': 'Missing optional build-time ' 'package "%s"'} ) ################################################################################ # commands for installing the data from numpy.distutils.command.install_data import install_data from numpy.distutils.command.build_ext import build_ext def data_install_msgs(): # Check whether we have data packages from nibabel.data import datasource_or_bomber DATA_PKGS = INFO_VARS['DATA_PKGS'] templates = datasource_or_bomber(DATA_PKGS['nipy-templates']) example_data = datasource_or_bomber(DATA_PKGS['nipy-data']) for dpkg in (templates, example_data): if hasattr(dpkg, 'msg'): # a bomber object, warn log.warn('%s\n%s' % ('_'*80, dpkg.msg)) class MyInstallData(install_data): """ Subclass the install_data to generate data install warnings if necessary """ def run(self): install_data.run(self) data_install_msgs() class MyBuildExt(build_ext): """ Subclass the build_ext to generate data install warnings if necessary: warn at build == warn early This is also important to get a warning when run a 'develop'. """ def run(self): build_ext.run(self) data_install_msgs() cmdclass['install_data'] = MyInstallData cmdclass['build_ext'] = MyBuildExt ################################################################################ def main(**extra_args): from numpy.distutils.core import setup setup(name=INFO_VARS['NAME'], maintainer=INFO_VARS['MAINTAINER'], maintainer_email=INFO_VARS['MAINTAINER_EMAIL'], description=INFO_VARS['DESCRIPTION'], long_description=INFO_VARS['LONG_DESCRIPTION'], url=INFO_VARS['URL'], download_url=INFO_VARS['DOWNLOAD_URL'], license=INFO_VARS['LICENSE'], classifiers=INFO_VARS['CLASSIFIERS'], author=INFO_VARS['AUTHOR'], author_email=INFO_VARS['AUTHOR_EMAIL'], platforms=INFO_VARS['PLATFORMS'], # version set by config.get_version() above requires=INFO_VARS['REQUIRES'], configuration = configuration, cmdclass = cmdclass, scripts = glob('scripts/*'), **extra_args) if __name__ == "__main__": main(**extra_setuptools_args)
Python
0
@@ -2112,17 +2112,16 @@ t_dumb', - %0A @@ -2190,16 +2190,42 @@ stall',%0A + 'bdist_mpkg',%0A
fb166c2afa110b758efbc8aeae9ff177050bfa0c
Add correct filename in OnionLauncher ui directory
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup import sys setup(name="OnionLauncher", version="0.0.1", description="Launcher for Tor", license = "BSD", author="Neel Chauhan", author_email="neel@neelc.org", url="https://www.github.com/neelchauhan/OnionLauncher/", packages=["OnionLauncher"], entry_points={'gui_scripts': ['OnionLauncher=OnionLauncher.main:main_loop']}, package_data={"OnionLauncher": ["data/*"]}, install_requires=[ "stem", ], data_files=[ (sys.prefix + "/share/pixmaps", ["icons/scalable/onionlauncher.svg"]), (sys.prefix + "/share/applications", ["data/onionlauncher.desktop"]), ], classifiers=[ "Environment :: X11 Applications :: Qt", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", ], )
Python
0.000003
@@ -410,20 +410,24 @@ her%22: %5B%22 -data +ui_files /*%22%5D%7D,%0A%09
f3c72bae983dd5ed5ead47573120fb48f3bac521
Update pypi.python.org URL to pypi.org
setup.py
setup.py
#!/usr/bin/env python from io import open from setuptools import find_packages, setup setup( name='django-debug-toolbar', version='1.9.1', description='A configurable set of panels that display various debug ' 'information about the current request/response.', long_description=open('README.rst', encoding='utf-8').read(), author='Rob Hudson', author_email='rob@cogit8.org', url='https://github.com/jazzband/django-debug-toolbar', download_url='https://pypi.python.org/pypi/django-debug-toolbar', license='BSD', packages=find_packages(exclude=('tests.*', 'tests', 'example')), python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", install_requires=[ 'Django>=1.11', 'sqlparse>=0.2.0', ], include_package_data=True, zip_safe=False, # because we're including static files classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Framework :: Django', 'Framework :: Django :: 1.11', 'Framework :: Django :: 2.0', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', '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', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
Python
0
@@ -506,23 +506,19 @@ ypi. -python.org/pypi +org/project /dja @@ -530,24 +530,25 @@ ebug-toolbar +/ ',%0A licen
6a0f3af96e331882e620c6d6bffe020979323f26
Create a PIP-installable package
setup.py
setup.py
from distutils.core import setup setup( name='logcandy', version='0.1.0', author='Wojciech Gaca', author_email='wmgaca@gmail.com', packages=['logcandy'], scripts=[], url='http://github.com/wmgaca/logcandy', license='LICENSE.txt', description='Python logging utils.', long_description=open('README.txt').read(), install_requires=[] )
Python
0.000001
@@ -249,20 +249,16 @@ 'LICENSE -.txt ',%0A d @@ -331,11 +331,10 @@ DME. -txt +md ').r
a216f8ca01afa17e42079077c03e00313aea8fd0
Update github url on pypi
setup.py
setup.py
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft. 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. #-------------------------------------------------------------------------- from distutils.core import setup # To build: # python setup.py sdist # # To install: # python setup.py install # # To register (only needed once): # python setup.py register # # To upload: # python setup.py sdist upload setup(name='azure', version='0.10.0', description='Microsoft Azure client APIs', long_description=open('README.rst', 'r').read(), license='Apache License 2.0', author='Microsoft Corporation', author_email='ptvshelp@microsoft.com', url='https://github.com/WindowsAzure/azure-sdk-for-python', classifiers=[ 'Development Status :: 5 - Production/Stable', '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', 'License :: OSI Approved :: Apache Software License'], packages=['azure', 'azure.http', 'azure.servicebus', 'azure.storage', 'azure.servicemanagement'], install_requires=['python-dateutil', 'pyopenssl', 'futures'] )
Python
0
@@ -1282,15 +1282,8 @@ com/ -Windows Azur
3c8c94d8a5ba208a8cc5d5f1d389125af79834d2
Add missing packages to setup.py
setup.py
setup.py
# -*- coding: utf-8 -*- from __future__ import print_function from setuptools import setup, find_packages import os import stat import sys #VERSION="2.1dev4" VERSION="3.2" # Taken from kennethreitz/requests/setup.py package_directory = os.path.realpath(os.path.dirname(__file__)) def get_file_contents(file_path): """Get the context of the file using full path name.""" content = "" try: full_path = os.path.join(package_directory, file_path) content = open(full_path, 'r').read() except: print("### could not open file {0!r}".format(file_path), file=sys.stderr) return content def get_file_list(file_path): full_path = os.path.join(package_directory, file_path) file_list = os.listdir(full_path) # now we need to add the path to the files return [file_path + f for f in file_list] install_requires = ["Flask>=0.10.1", "Flask-Migrate>=1.2.0", "Flask-SQLAlchemy>=2.0", "Flask-Script>=2.0.5", "Jinja2>=2.10.1", "Mako>=0.9.1", "PyMySQL>=0.6.6", "Pillow>=6.2.1", "PyJWT>=1.3.0", "PyYAML>=5.1", "SQLAlchemy>=1.3.0", "Werkzeug>=0.10.4", "alembic>=0.6.7", "bcrypt>=1.1.0", "beautifulsoup4>=4.3.2", "ldap3>=2.6", "netaddr>=0.7.12", "passlib>=1.6.2", "pyOpenSSL>=17.5", "pyrad>=2.0", "qrcode>=6.1", "requests>=2.7.0", "sqlsoup>=0.9.0", "ecdsa>=0.13.3", "lxml>=4.2.5", "python-gnupg>=0.4.4", "defusedxml>=0.4.1", "flask-babel>=0.9", "croniter>=0.3.8", "oauth2client>=2.0.1", "configobj>=5.0.6" ] # For python 2.6 we need additional dependency importlib try: import importlib except ImportError: install_requires.append('importlib') def get_man_pages(dir): """ Get man pages in a directory. :param dir: :return: list of file names """ files = os.listdir(dir) r_files = [] for file in files: if file.endswith(".1"): r_files.append(dir + "/" + file) return r_files def get_scripts(dir): """ Get files that are executable :param dir: :return: list of file names """ files = os.listdir(dir) r_files = [] for file in files: if os.stat(dir + "/" + file)[stat.ST_MODE] & stat.S_IEXEC: r_files.append(dir + "/" + file) return r_files setup( name='privacyIDEA', version=VERSION, description='privacyIDEA: identity, multifactor authentication (OTP), ' 'authorization, audit', author='privacyidea.org', license='AGPLv3', author_email='cornelius@privacyidea.org', url='http://www.privacyidea.org', keywords='OTP, two factor authentication, management, security', python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*', packages=find_packages(), scripts=["pi-manage"] + get_scripts("tools"), extras_require={ 'dev': ["Sphinx>=1.3.1", "sphinxcontrib-httpdomain>=1.3.0"], 'test': ["coverage>=3.7.1", "mock>=1.0.1", "pyparsing>=2.0.3", "nose>=1.3.4", "responses>=0.4.0", "six>=1.8.0"], }, install_requires=install_requires, include_package_data=True, data_files=[('etc/privacyidea/', ['deploy/apache/privacyideaapp.wsgi', 'deploy/privacyidea/dictionary']), ('share/man/man1', get_man_pages("tools")), ('lib/privacyidea/migrations', ["migrations/alembic.ini", "migrations/env.py", "migrations/README", "migrations/script.py.mako"]), ('lib/privacyidea/migrations/versions', get_file_list("migrations/versions/")), ('lib/privacyidea/', ['requirements.txt']) ], classifiers=["Framework :: Flask", "License :: OSI Approved :: " "GNU Affero General Public License v3", "Programming Language :: Python", "Development Status :: 5 - Production/Stable", "Topic :: Internet", "Topic :: Security", "Topic :: System ::" " Systems Administration :: Authentication/Directory", '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' ], #message_extractors={'privacyidea': [ # ('**.py', 'python', None), # ('static/**.html', 'html', {'input_encoding': 'utf-8'})]}, zip_safe=False, long_description=get_file_contents('README.rst') )
Python
0
@@ -2044,16 +2044,62 @@ %3E=5.0.6%22 +,%0A %22flask-versioned%3E=0.9.4%22 %0A
a8f36f4cbab4f4740c632cc9f9831c9626f52220
Bump version to v0.5.1
setup.py
setup.py
# -*- coding: utf-8 -*- from os import path, chdir, pardir from setuptools import setup, find_packages README = open(path.join(path.dirname(__file__), 'README.rst')).read() # allow setup.py to be run from any path chdir(path.normpath(path.join(path.abspath(__file__), pardir))) setup( name="django-onfido", version="0.5.0", packages=find_packages(), install_requires=[ 'django>=1.8', 'requests>=2', 'python-dateutil' ], include_package_data=True, description='Django app for integration with Onfido.', long_description=README, url='https://github.com/yunojuno/django-onfido', author='Hugo Rodger-Brown', author_email='code@yunojuno.com', maintainer='Hugo Rodger-Brown', maintainer_email='hugo@yunojuno.com', classifiers=[ 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ], )
Python
0
@@ -324,17 +324,17 @@ on=%220.5. -0 +1 %22,%0A p
1c510e27027cf2490a69b8ce351a468c588e62a6
Add isodate dependency - anticipating datetime fix.
setup.py
setup.py
#!/usr/bin/env python import sys import re def setup_python3(): # Taken from "distribute" setup.py from distutils.filelist import FileList from distutils import dir_util, file_util, util, log from os.path import join tmp_src = join("build", "src") log.set_verbosity(1) fl = FileList() for line in open("MANIFEST.in"): if not line.strip(): continue fl.process_template_line(line) dir_util.create_tree(tmp_src, fl.files) outfiles_2to3 = [] for f in fl.files: outf, copied = file_util.copy_file(f, join(tmp_src, f), update=1) if copied and outf.endswith(".py"): outfiles_2to3.append(outf) util.run_2to3(outfiles_2to3) # arrange setup to use the copy sys.path.insert(0, tmp_src) return tmp_src kwargs = {} if sys.version_info[0] >= 3: from setuptools import setup kwargs['use_2to3'] = True # kwargs['requires'] = ['bsddb3'] kwargs['src_root'] = setup_python3() else: try: from setuptools import setup kwargs['test_suite'] = "nose.collector" except ImportError: from distutils.core import setup # Find version. We have to do this because we can't import it in Python 3 until # its been automatically converted in the setup process. def find_version(filename): _version_re = re.compile(r'__version__ = "(.*)"') for line in open(filename): version_match = _version_re.match(line) if version_match: return version_match.group(1) version = find_version('rdflib/__init__.py') setup( name = 'rdflib', version = version, description = "RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.", author = "Daniel 'eikeon' Krech", author_email = "eikeon@eikeon.com", maintainer = "Daniel 'eikeon' Krech", maintainer_email = "eikeon@eikeon.com", url = "http://rdflib.net/", license = "http://rdflib.net/latest/LICENSE", platforms = ["any"], classifiers = ["Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: Implementation :: Jython", "Programming Language :: Python :: Implementation :: PyPy", "License :: OSI Approved :: BSD License", "Topic :: Software Development :: Libraries :: Python Modules", "Operating System :: OS Independent", "Natural Language :: English", ], long_description = \ """RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information. The library contains parsers and serializers for RDF/XML, N3, NTriples, Turtle, TriX and RDFa . The library presents a Graph interface which can be backed by any one of a number of Store implementations, including, Memory, MySQL, Redland, SQLite, Sleepycat and SQLObject. If you have recently reported a bug marked as fixed, or have a craving for the very latest, you may want the development version instead: http://rdflib.googlecode.com/hg#egg=rdflib-dev """, download_url = "http://rdflib.net/rdflib-%s.tar.gz" % version, packages = ['rdflib', 'rdflib/plugins', 'rdflib/plugins', 'rdflib/plugins/parsers', 'rdflib/plugins/parsers/rdfa', 'rdflib/plugins/parsers/rdfa/transform', 'rdflib/plugins/serializers', ], **kwargs )
Python
0
@@ -920,18 +920,16 @@ True%0A - # kwargs%5B @@ -929,16 +929,24 @@ kwargs%5B' +install_ requires @@ -956,14 +956,52 @@ = %5B' -bsddb3 +isodate'%5D%0A kwargs%5B'requires'%5D = %5B'isodate '%5D%0A @@ -1088,24 +1088,24 @@ mport setup%0A - kwar @@ -1140,16 +1140,106 @@ lector%22%0A + kwargs%5B'install_requires'%5D = %5B'isodate'%5D%0A kwargs%5B'requires'%5D = %5B'isodate'%5D%0A exce
b70b7cba81914f731445272408cbedd809fad011
version update
setup.py
setup.py
from setuptools import setup, find_packages setup(name='googlefinance', version='0.1', description='Package to retrive current quotes, historical prices, and descriptive details from Google Finance.', author='Alex Curto', license='MIT', packages=find_packages(), install_requires=[ 'beautifulsoup4', ], zip_safe=False, )
Python
0.000001
@@ -87,9 +87,9 @@ ='0. -1 +2 ',%0A
3352920f7e92e2732eb2914313bdee6b5ab7f549
Fix bin scripts having python2 or python3 specific path.
setup.py
setup.py
# -*- coding: utf-8 -*- # Copyright (C) 2012-2014 MUJIN Inc from distutils.core import setup try: from mujincommon.setuptools import Distribution except ImportError: from distutils.dist import Distribution version = {} exec(open('python/mujincontrollerclient/version.py').read(), version) setup( distclass=Distribution, name='mujincontrollerclient', version=version['__version__'], packages=['mujincontrollerclient'], package_dir={'mujincontrollerclient': 'python/mujincontrollerclient'}, scripts=['bin/mujin_controllerclientpy_registerscene.py', 'bin/mujin_controllerclientpy_applyconfig.py'], locale_dir='locale', license='Apache License, Version 2.0', long_description=open('README.rst').read(), # flake8 compliance configuration enable_flake8=True, # Enable checks fail_on_flake=True, # Fail builds when checks fail install_requires=[], )
Python
0.000003
@@ -520,16 +520,201 @@ -scripts= +data_files=%5B%0A # using scripts= will cause the first line of the script being modified for python2 or python3%0A # put the scripts in data_files will copy them as-is%0A ('bin', %5B'bi @@ -804,16 +804,24 @@ nfig.py' +%5D),%0A %5D,%0A l
58ac22761db59f58362a0c25e5961348a67137f1
no hgtools
setup.py
setup.py
from setuptools import setup, find_packages import os # The version of the wrapped library is the starting point for the version number of the python package. # In bugfix releases of the python package, add a '-' suffix and an incrementing integer. # For example, a packaging bugfix release version 1.4.4 of the js.jquery package would be version 1.4.4-1 . version = '1.7.0' def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() long_description = (read('README.txt') + '\n' + read('js', 'underscore', 'test_underscore.js.txt') + '\n' + read('CHANGES.txt')) setup(name='js.underscore', version=version, description="Fanstatic packaging of underscore.js", long_description=long_description, classifiers=[], keywords='', author='Andreas Kaiser', author_email='disko@binary-punks.com', url="https://github.com/disko/js.underscore", license='BSD', packages=find_packages(),namespace_packages=['js'], include_package_data=True, zip_safe=False, setup_requires=['hgtools'], install_requires=['fanstatic', 'setuptools',], entry_points={'fanstatic.libraries': ['underscore.js = js.underscore:library',],},)
Python
0.999709
@@ -1131,42 +1131,8 @@ se,%0A - setup_requires=%5B'hgtools'%5D,%0A
fb70f949437a1dbf5117f634a966c05fa8da0c63
package data
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup import os __version__ = '1.0' # identify main version of dohq-tfs tool devStatus = '4 - Beta' # default build status, see: https://pypi.python.org/pypi?%3Aaction=list_classifiers if 'TRAVIS_BUILD_NUMBER' in os.environ and 'TRAVIS_BRANCH' in os.environ: print("This is TRAVIS-CI build") print("TRAVIS_BUILD_NUMBER = {}".format(os.environ['TRAVIS_BUILD_NUMBER'])) print("TRAVIS_BRANCH = {}".format(os.environ['TRAVIS_BRANCH'])) __version__ += '.{}{}'.format( '' if 'release' in os.environ['TRAVIS_BRANCH'] or os.environ['TRAVIS_BRANCH'] == 'master' else 'dev', os.environ['TRAVIS_BUILD_NUMBER'], ) devStatus = '5 - Production/Stable' if 'release' in os.environ['TRAVIS_BRANCH'] or os.environ[ 'TRAVIS_BRANCH'] == 'master' else devStatus else: print("This is local build") __version__ += '.dev0' # set version as major.minor.localbuild if local build: python setup.py install print("dohq-tfs build version = {}".format(__version__)) setup( name='dohq-tfs', version=__version__, description='dohq-tfs is a TFS API Python client that can work with TFS workflow and workitems.', long_description='You can see detailed user manual here: https://devopshq.github.io/tfs/', license='MIT', author='Alexey Burov', author_email='allburov@gmail.com', url='https://devopshq.github.io/tfs/', download_url='https://github.com/devopshq/tfs.git', entry_points={}, classifiers=[ 'Development Status :: {}'.format(devStatus), 'Environment :: Console', 'Intended Audience :: Developers', 'Topic :: Software Development :: Libraries :: Python Modules', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 3.4', ], keywords=[ 'TFS', 'library', 'api', 'client', 'utility', 'routines', 'workitem', 'changesets', 'TFS2015', ], packages=[ 'tfs', ], setup_requires=[ 'pytest-runner' ], tests_require=[ 'pytest==3.1.2', 'HTTPretty', 'pytest_httpretty', ], install_requires=[ 'requests', ], package_data={ '': [ './tfs/*' 'LICENSE', 'README.md', ], }, zip_safe=True, )
Python
0.000001
@@ -2466,30 +2466,10 @@ '. +. / -tfs/*'%0A%0A ' LICE @@ -2487,16 +2487,19 @@ ' +../ README.m
71dcfe9343e8dd408f75eb12ddbbec038fab4b75
update setup.py
setup.py
setup.py
# -*- coding: utf-8 -*- import sys import os from distutils.core import setup from setuptools import find_packages ######### # settings ######### project_var_name = "pymmails" sversion = "0.2" versionPython = "%s.%s" % (sys.version_info.major, sys.version_info.minor) path = "Lib/site-packages/" + project_var_name readme = 'README.rst' history = "HISTORY.rst" KEYWORDS = project_var_name + ', synchronization, files, Xavier, Dupré' DESCRIPTION = """A module to download emails from an IMAP4 server""" CLASSIFIERS = [ 'Programming Language :: Python :: %d' % sys.version_info[0], 'Intended Audience :: Developers', 'Topic :: Scientific/Engineering', 'Topic :: Education', 'License :: OSI Approved :: MIT License', 'Development Status :: 5 - Production/Stable' ] ####### # data ####### packages = find_packages('src', exclude='src') package_dir = {k: "src/" + k.replace(".", "/") for k in packages} package_data = {} ############ # functions ############ def is_local(): file = os.path.abspath(__file__).replace("\\", "/").lower() if "/temp/" in file and "pip-" in file: return False for cname in {"bdist_msi", "build27", "build_script", "build_sphinx", "build_ext", "bdist_wheel", "bdist_egg", "bdist_wininst", "clean_pyd", "clean_space", "copy27", "copy_dist", "local_pypi", "notebook", "publish", "publish_doc", "register", "unittests", "unittests_LONG", "unittests_SKIP", "unittests_GUI", "run27", "sdist", "setupdep", "test_local_pypi", "upload_docs", "setup_hook", "copy_sphinx", "write_version"}: if cname in sys.argv: try: import_pyquickhelper() except ImportError: return False return True else: return False return False def ask_help(): return "--help" in sys.argv or "--help-commands" in sys.argv def import_pyquickhelper(): try: import pyquickhelper except ImportError: sys.path.append( os.path.normpath( os.path.abspath( os.path.join( os.path.dirname(__file__), "..", "pyquickhelper" if sys.version_info[ 0] >= 3 else "py27_pyquickhelper_27", "src")))) try: import pyquickhelper except ImportError as e: message = "Module pyquickhelper is needed to build the documentation ({0}), not found in path {1} - current {2}".format( sys.executable, sys.path[-1], os.getcwd()) raise ImportError(message) from e return pyquickhelper def verbose(): print("---------------------------------") print("package_dir =", package_dir) print("packages =", packages) print("package_data=", package_data) print("current =", os.path.abspath(os.getcwd())) print("---------------------------------") ########## # version ########## if is_local() and not ask_help(): def write_version(): pyquickhelper = import_pyquickhelper() from pyquickhelper.pycode import write_version_for_setup return write_version_for_setup(__file__) if sys.version_info[0] != 2: write_version() versiontxt = os.path.join(os.path.dirname(__file__), "version.txt") if os.path.exists(versiontxt): with open(versiontxt, "r") as f: lines = f.readlines() subversion = "." + lines[0].strip("\r\n ") if subversion == ".0": raise Exception("Subversion is wrong: '{0}'.".format(subversion)) else: raise FileNotFoundError(versiontxt) else: # when the module is installed, no commit number is displayed subversion = "" if "upload" in sys.argv and not subversion and not ask_help(): # avoid uploading with a wrong subversion number try: import pyquickhelper pyq = True except ImportError: pyq = False raise Exception( "subversion is empty, cannot upload, is_local()={0}, pyquickhelper={1}".format(is_local(), pyq)) ############## # common part ############## if os.path.exists(readme): if sys.version_info[0] == 2: from codecs import open with open(readme, "r", encoding='utf-8-sig') as f: long_description = f.read() else: long_description = "" if os.path.exists(history): if sys.version_info[0] == 2: from codecs import open with open(history, "r", encoding='utf-8-sig') as f: long_description += f.read() if "--verbose" in sys.argv: verbose() if is_local(): pyquickhelper = import_pyquickhelper() logging_function = pyquickhelper.get_fLOG() logging_function(OutputPrint=True) from pyquickhelper.pycode import process_standard_options_for_setup r = process_standard_options_for_setup( sys.argv, __file__, project_var_name, unittest_modules=["pyquickhelper"], additional_notebook_path=["pyquickhelper"], requirements=["pyquickhelper"], fLOG=logging_function, covtoken=("c17fe586-68b7-4157-9af0-a73c92d16fc7", "'_UT_36_std' in outfile")) if not r and not ({"bdist_msi", "sdist", "bdist_wheel", "publish", "publish_doc", "register", "upload_docs", "bdist_wininst", "build_ext"} & set(sys.argv)): raise Exception("unable to interpret command line: " + str(sys.argv)) else: r = False if ask_help(): pyquickhelper = import_pyquickhelper() from pyquickhelper.pycode import process_standard_options_for_setup_help process_standard_options_for_setup_help(sys.argv) if not r: if len(sys.argv) in (1, 2) and sys.argv[-1] in ("--help-commands",): pyquickhelper = import_pyquickhelper() from pyquickhelper.pycode import process_standard_options_for_setup_help process_standard_options_for_setup_help(sys.argv) else: pyquickhelper = import_pyquickhelper() from pyquickhelper.pycode import clean_readme long_description = clean_readme(long_description) setup( name=project_var_name, version='%s%s' % (sversion, subversion), author='Xavier Dupré', author_email='xavier.dupre@gmail.com', license="MIT", url="http://www.xavierdupre.fr/app/pymmails/helpsphinx/index.html", download_url="https://github.com/sdpython/pymmails/", description=DESCRIPTION, long_description=long_description, keywords=KEYWORDS, classifiers=CLASSIFIERS, packages=packages, package_dir=package_dir, package_data=package_data, install_requires=["pyquickhelper", "pycryptodomex" # to use encryption from pyquickhelper ], )
Python
0.000001
@@ -1638,16 +1638,23 @@ version%22 +, %22lab%22 %7D:%0A
89901677819f219423e56fc1a19c2942c9d0bdeb
Increment version to 0.2.0.
setup.py
setup.py
#-*- coding: utf-8 -*- # # setup.py # anytop # # Created by Lars Yencken on 2011-10-09. # Copyright 2011 Lars Yencken. All rights reserved. # from distutils.core import setup setup( name='anytop', version='0.1.2', description='Streaming frequency distribution viewer.', long_description=open('README.rst').read(), author='Lars Yencken', author_email='lars@yencken.org', url='http://bitbucket.org/larsyencken/anytop', scripts=['anytop', 'anyhist'], packages=['anyutil'], license='ISC', )
Python
0.000001
@@ -219,11 +219,11 @@ ='0. -1.2 +2.0 ',%0A
8e94134c4b6d6509cd515508bb2229c647d6867b
Bump to version 1.0.0. This project will be using Semantic Versioning.
setup.py
setup.py
""" SQLAlchemy-JSONAPI ------------------ JSON API Mixin for SQLAlchemy that aims to meet the full JSON API spec as published at http://jsonapi.org/format. Full documentation is available at: https://github.com/coltonprovias/sqlalchemy-jsonapi """ from setuptools import setup setup(name='SQLAlchemy-JSONAPI', version='0.3', uri='http://github.com/coltonprovias/sqlalchemy-jsonapi', license='MIT', author='Colton J. Provias', author_email='cj@coltonprovias.com', description='JSONAPI Mixin for SQLAlchemy', long_description=__doc__, py_modules=['sqlalchemy_jsonapi'], zip_safe=False, include_package_data=True, platforms='any', install_requires=['SQLAlchemy'], classifiers= ['Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development :: Libraries :: Python' ' Modules'])
Python
0
@@ -327,11 +327,13 @@ on=' +1. 0. -3 +0 ',%0A
228501299249d4e97d2bd948afea0cfca93b6a4e
Add a generic implementation for the recently introduced `Repository.has_node(path,rev)`
trac/versioncontrol/api.py
trac/versioncontrol/api.py
# -*- coding: iso8859-1 -*- # # Copyright (C) 2005 Edgewall Software # Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgewall.com/license.html. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision # history and logs, available at http://projects.edgewall.com/trac/. # # Author: Christopher Lenz <cmlenz@gmx.de> from __future__ import generators from trac.perm import PermissionError class Repository(object): """ Base class for a repository provided by a version control system. """ def __init__(self, name, authz, log): self.name = name self.authz = authz or Authorizer() self.log = log def close(self): """ Close the connection to the repository. """ raise NotImplementedError def get_changeset(self, rev): """ Retrieve a Changeset object that describes the changes made in revision 'rev'. """ raise NotImplementedError def has_node(self, path, rev): """ Tell if there's a node at the specified (path,rev) combination. """ raise NotImplementedError def get_node(self, path, rev=None): """ Retrieve a Node (directory or file) from the repository at the given path. If the rev parameter is specified, the version of the node at that revision is returned, otherwise the latest version of the node is returned. """ raise NotImplementedError def get_oldest_rev(self): """ Return the oldest revision stored in the repository. """ raise NotImplementedError oldest_rev = property(lambda x: x.get_oldest_rev()) def get_youngest_rev(self): """ Return the youngest revision in the repository. """ raise NotImplementedError youngest_rev = property(lambda x: x.get_youngest_rev()) def previous_rev(self, rev): """ Return the revision immediately preceding the specified revision. """ raise NotImplementedError def next_rev(self, rev): """ Return the revision immediately following the specified revision. """ raise NotImplementedError def rev_older_than(self, rev1, rev2): """ Return True if rev1 is older than rev2, i.e. if rev1 comes before rev2 in the revision sequence. """ raise NotImplementedError def get_youngest_rev_in_cache(self, db): """ Return the youngest revision currently cached. The way revisions are sequenced is version control specific. By default, one assumes that the revisions are sequenced in time. """ cursor = db.cursor() cursor.execute("SELECT rev FROM revision ORDER BY time DESC LIMIT 1") row = cursor.fetchone() return row and row[0] or None def get_path_history(self, path, rev=None, limit=None): """ Retrieve all the revisions containing this path (no newer than 'rev'). The result format should be the same as the one of Node.get_history() """ raise NotImplementedError def normalize_path(self, path): """ Return a canonical representation of path in the repos. """ return NotImplementedError def normalize_rev(self, rev): """ Return a canonical representation of a revision in the repos. 'None' is a valid revision value and represents the youngest revision. """ return NotImplementedError class Node(object): """ Represents a directory or file in the repository. """ DIRECTORY = "dir" FILE = "file" def __init__(self, path, rev, kind): assert kind in (Node.DIRECTORY, Node.FILE), "Unknown node kind %s" % kind self.path = str(path) self.rev = rev self.kind = kind def get_content(self): """ Return a stream for reading the content of the node. This method will return None for directories. The returned object should provide a read([len]) function. """ raise NotImplementedError def get_entries(self): """ Generator that yields the immediate child entries of a directory, in no particular order. If the node is a file, this method returns None. """ raise NotImplementedError def get_history(self, limit=None): """ Generator that yields (path, rev, chg) tuples, one for each revision in which the node was changed. This generator will follow copies and moves of a node (if the underlying version control system supports that), which will be indicated by the first element of the tuple (i.e. the path) changing. Starts with an entry for the current revision. """ raise NotImplementedError def get_properties(self): """ Returns a dictionary containing the properties (meta-data) of the node. The set of properties depends on the version control system. """ raise NotImplementedError def get_content_length(self): raise NotImplementedError content_length = property(lambda x: x.get_content_length()) def get_content_type(self): raise NotImplementedError content_type = property(lambda x: x.get_content_type()) def get_name(self): return self.path.split('/')[-1] name = property(lambda x: x.get_name()) def get_last_modified(self): raise NotImplementedError last_modified = property(lambda x: x.get_last_modified()) isdir = property(lambda x: x.kind == Node.DIRECTORY) isfile = property(lambda x: x.kind == Node.FILE) class Changeset(object): """ Represents a set of changes of a repository. """ ADD = 'add' COPY = 'copy' DELETE = 'delete' EDIT = 'edit' MOVE = 'move' def __init__(self, rev, message, author, date): self.rev = rev self.message = message self.author = author self.date = date def get_changes(self): """ Generator that produces a (path, kind, change, base_rev, base_path) tuple for every change in the changeset, where change can be one of Changeset.ADD, Changeset.COPY, Changeset.DELETE, Changeset.EDIT or Changeset.MOVE, and kind is one of Node.FILE or Node.DIRECTORY. """ raise NotImplementedError class PermissionDenied(PermissionError): """ Exception raised by an authorizer if the user has insufficient permissions to view a specific part of the repository. """ def __str__(self): return self.action class Authorizer(object): """ Base class for authorizers that are responsible to granting or denying access to view certain parts of a repository. """ def assert_permission(self, path): if not self.has_permission(path): raise PermissionDenied, \ 'Insufficient permissions to access %s' % path def assert_permission_for_changeset(self, rev): if not self.has_permission_for_changeset(rev): raise PermissionDenied, \ 'Insufficient permissions to access changeset %s' % rev def has_permission(self, path): return 1 def has_permission_for_changeset(self, rev): return 1
Python
0
@@ -1368,33 +1368,123 @@ -raise NotImplementedError +try:%0A self.get_node()%0A return True%0A except TracError:%0A return False %0A
52b84607bf473a838d11f5654ddd727c79ce3d01
version 1.0.0 locker added synch decorator added
setup.py
setup.py
""" This script will work from within the main package directory. """ try: from setuptools import setup except: from distutils.core import setup from distutils.util import convert_path import os, sys # set package path and name PACKAGE_PATH = '.' PACKAGE_NAME = 'pyrep' # check python version if sys.version_info[:2] < (2, 6): raise RuntimeError("Python version 2.6, 2.7 or >= 3.2 required.") # automatically create MANIFEST.in commands = [# include MANIFEST.in '# include this file, to ensure we can recreate source distributions', 'include MANIFEST.in' # exclude all .log files '\n# exclude all logs', 'global-exclude *.log', # exclude all other non necessary files '\n# exclude all other non necessary files ', 'global-exclude .project', 'global-exclude .pydevproject', # exclude all of the subversion metadata '\n# exclude all of the subversion metadata', 'global-exclude *.svn*', 'global-exclude .svn/*', 'global-exclude *.git*', 'global-exclude .git/*', # include all LICENCE files '\n# include all license files found', 'global-include ./*LICENSE.*', # include all README files '\n# include all readme files found', 'global-include ./*README.*', 'global-include ./*readme.*'] with open('MANIFEST.in','w') as fd: for l in commands: fd.write(l) fd.write('\n') # declare classifiers CLASSIFIERS = """\ Development Status :: 4 - Beta Intended Audience :: Science/Research Intended Audience :: Developers License :: OSI Approved :: GNU Affero General Public License v3 Programming Language :: Python Programming Language :: Python :: 2 Programming Language :: Python :: 2.6 Programming Language :: Python :: 2.7 Topic :: Software Development Topic :: Software Development :: Build Tools Topic :: Scientific/Engineering Operating System :: Microsoft :: Windows Operating System :: POSIX Operating System :: Unix Operating System :: MacOS """ # create descriptions LONG_DESCRIPTION = ["This package provides a pythonic way to organize dumping and pulling python objects and other type of files to a folder or a directory that is called repository.", "A Repository can be created in any directory or folder, it suffices to initialize a Repository instance in a directory to start dumping and pulling object into it. .", "Any directory or a folder that contains a .pyrepinfo binary file in it, is theoretically a pyrep Repository." "By default dump and pull methods use pickle to serialize storing python objects.", "Practically any other methods can be used simply by providing the means and the required libraries in a simple form of string.",] DESCRIPTION = [ LONG_DESCRIPTION[0] ] # get package info PACKAGE_INFO={} ver_path = convert_path('__init__.py') with open(ver_path) as ver_file: exec(ver_file.read(), PACKAGE_INFO) # create meta data metadata = dict(name = PACKAGE_NAME, packages = [PACKAGE_NAME], package_dir = {PACKAGE_NAME: '.'}, version = PACKAGE_INFO['__version__'] , author = "Bachir AOUN", author_email = "bachir.aoun@e-aoun.com", description = "\n".join(DESCRIPTION), long_description = "\n".join(LONG_DESCRIPTION), url = "http://bachiraoun.github.io/pyrep/", download_url = "https://github.com/bachiraoun/pyrep", license = 'GNU', install_requires = ["pylocker",] classifiers = [_f for _f in CLASSIFIERS.split('\n') if _f], platforms = ["Windows", "Linux", "Mac OS-X", "Unix"], ) # setup setup(**metadata)
Python
0
@@ -3855,16 +3855,17 @@ ocker%22,%5D +, %0A
ae5b71fbc1535c6d3112fced769d5237b48dda93
Add a -v (verbose) option.
redo.py
redo.py
#!/usr/bin/python import sys, os, subprocess import options from helpers import * optspec = """ redo [targets...] -- d,debug print dependency checks as they happen ifchange only redo if the file is modified or deleted ifcreate only redo if the file is created """ o = options.Options('redo', optspec) (opt, flags, extra) = o.parse(sys.argv[1:]) targets = extra or ['it'] def log(s): sys.stdout.flush() sys.stderr.write('redo: %s%s' % (REDO_DEPTH, s)) sys.stderr.flush() def debug(s): if REDO_DEBUG: log(s) def add_dep(t, mode, dep): open('.redo/dep.%s' % t, 'a').write('%s %s\n' % (mode, dep)) def find_do_file(t): dofile = '%s.do' % t if os.path.exists(dofile): add_dep(t, 'm', dofile) if dirty_deps(dofile, depth = ''): build(dofile) return dofile else: add_dep(t, 'c', dofile) return None def _dirty_deps(t, depth): debug('%s?%s\n' % (depth, t)) if not os.path.exists('.redo/stamp.%s' % t): debug('%s-- DIRTY (no stamp)\n' % depth) return True stamptime = os.stat('.redo/stamp.%s' % t).st_mtime try: realtime = os.stat(t).st_mtime except OSError: realtime = 0 if stamptime != realtime: debug('%s-- DIRTY (mtime)\n' % depth) return True for sub in open('.redo/dep.%s' % t).readlines(): assert(sub[0] in ('c','m')) assert(sub[1] == ' ') assert(sub[-1] == '\n') mode = sub[0] name = sub[2:-1] if mode == 'c': if os.path.exists(name): debug('%s-- DIRTY (created)\n' % depth) return True elif mode == 'm': if dirty_deps(name, depth + ' '): #debug('%s-- DIRTY (sub)\n' % depth) return True return False def dirty_deps(t, depth): if _dirty_deps(t, depth): unlink('.redo/stamp.%s' % t) # short circuit future checks return True return False def stamp(t): stampfile = '.redo/stamp.%s' % t open(stampfile, 'w').close() try: mtime = os.stat(t).st_mtime except OSError: mtime = 0 os.utime(stampfile, (mtime, mtime)) def build(t): unlink('.redo/dep.%s' % t) open('.redo/dep.%s' % t, 'w').close() dofile = find_do_file(t) if not dofile: if os.path.exists(t): # an existing source file stamp(t) return # success else: raise Exception('no rule to make %r' % t) unlink(t) os.putenv('REDO_TARGET', t) os.putenv('REDO_DEPTH', REDO_DEPTH + ' ') tmpname = '%s.redo.tmp' % t unlink(tmpname) f = open(tmpname, 'w+') argv = ['sh', '-e', dofile, t, 'FIXME', tmpname] log('%s\n' % t) rv = subprocess.call(argv, stdout=f.fileno()) st = os.stat(tmpname) #log('rv: %d (%d bytes) (%r)\n' % (rv, st.st_size, dofile)) stampfile = '.redo/stamp.%s' % t if rv==0: if st.st_size: os.rename(tmpname, t) else: unlink(tmpname) stamp(t) else: unlink(tmpname) unlink(stampfile) f.close() if rv != 0: raise Exception('non-zero return code building %r' % t) mkdirp('.redo') REDO_TARGET = os.getenv('REDO_TARGET', '') REDO_DEPTH = os.getenv('REDO_DEPTH', '') assert(not (opt.ifchange and opt.ifcreate)) if opt.debug: REDO_DEBUG = 1 os.putenv('REDO_DEBUG', '1') else: REDO_DEBUG = os.getenv('REDO_DEBUG', '') and 1 or 0 for t in targets: if REDO_TARGET: add_dep(REDO_TARGET, opt.ifcreate and 'c' or 'm', t) if opt.ifcreate: pass # just adding the dependency (above) is enough elif opt.ifchange: if dirty_deps(t, depth = ''): build(t) else: build(t)
Python
0.000005
@@ -161,16 +161,58 @@ happen%0A +v,verbose print commands as they are run%0A ifchange @@ -2793,16 +2793,60 @@ mpname%5D%0A + if REDO_VERBOSE:%0A argv%5B1%5D += 'v'%0A log( @@ -3592,16 +3592,154 @@ d 1 or 0 +%0Aif opt.verbose:%0A REDO_VERBOSE = 1%0A os.putenv('REDO_VERBOSE', '1')%0Aelse:%0A REDO_VERBOSE = os.getenv('REDO_VERBOSE', '') and 1 or 0 %0A%0Afor t
028afb2d0cecc90d198994fe8799764588c52dad
Set version = 1.2
setup.py
setup.py
#!/usr/bin/env python #coding: utf-8 from setuptools import setup, find_packages from os.path import join, dirname setup( name='mosecom_air', version='1.1', description='Web service dedicated to air pollution in Moscow.', long_description=open('README.md').read(), author='elsid', author_email='elsid.mail@gmail.com', packages=find_packages(), scripts=['manage.py', 'parse_html.py', 'request.py'], install_requires=[ 'django >= 1.6.1', 'djangorestframework >= 2.3.12', 'flup >= 1.0.2', 'johnny-cache >= 1.4', 'psycopg2 >= 2.4.5', 'pyquery >= 1.2.4', 'simplejson >= 3.3.1', 'yaml >= 3.10', ], )
Python
0.999996
@@ -156,17 +156,17 @@ sion='1. -1 +2 ',%0A d
d543286e998f76ebc915efb5366218d23faa195b
Bump sql-metadata from 1.5.0 to 1.7.0
setup.py
setup.py
from setuptools import setup, find_packages from indexdigest import VERSION # @see https://packaging.python.org/tutorials/packaging-projects/#creating-setup-py with open("README.md", "r") as fh: long_description = fh.read() # @see https://github.com/pypa/sampleproject/blob/master/setup.py setup( name='indexdigest', version=VERSION, author='Maciej Brencz', author_email='maciej.brencz@gmail.com', license='MIT', description='Analyses your database queries and schema and suggests indices and schema improvements', long_description=long_description, long_description_content_type="text/markdown", url='https://github.com/macbre/index-digest', # 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 :: Developers', 'Intended Audience :: System Administrators', 'Topic :: Database', # Pick your license as you wish '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 :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], packages=find_packages(), extras_require={ 'dev': [ 'coverage==5.2', 'pylint>=2.4.2', 'pytest==5.2.0', 'twine==3.2.0', ] }, install_requires=[ 'docopt==0.6.2', 'PyYAML==5.1.2', 'mysqlclient==2.0.1', 'sql_metadata==1.5.0', 'termcolor==1.1.0', 'yamlordereddictloader==0.4.0' ], entry_points={ 'console_scripts': [ 'add_linter=indexdigest.cli.add_linter:main', # creates a new linter from a template 'index_digest=indexdigest.cli.script:main', ], } )
Python
0.000002
@@ -1901,17 +1901,17 @@ data==1. -5 +7 .0',%0A
ab5c466005f796c8c757e13ed0f3ed64dd5bfbae
bump version
setup.py
setup.py
#!/usr/bin/env python3 # publish on pypi # --------------- # $ python3 setup.py sdist # $ twine upload dist/imagecluster-x.y.z.tar.gz import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.rst'), encoding='utf-8') as fd: long_description = fd.read() setup( name='imagecluster', version='0.3.0', description='cluster images based on image content using a pre-trained ' \ 'deep neural network and hierarchical clustering', long_description=long_description, url='https://github.com/elcorto/imagecluster', author='Steve Schmerler', author_email='git@elcorto.com', license='BSD 3-Clause', keywords='image cluster vgg16 deep-learning', packages=['imagecluster'], install_requires=open('requirements.txt').read().splitlines(), )
Python
0
@@ -374,17 +374,17 @@ sion='0. -3 +4 .0',%0A
fca083b024349ac66bac77b8e491b417a89f790c
disable openmp for windows
setup.py
setup.py
import glob import os.path import platform import sys import warnings import logging from setuptools import Extension, setup NAME = 'implicit' VERSION = '0.1.4' SRC_ROOT = 'implicit' try: from Cython.Build import cythonize has_cython = True except ImportError: has_cython = False is_dev = 'dev' in VERSION use_cython = is_dev or '--cython' in sys.argv or '--with-cython' in sys.argv if '--no-cython' in sys.argv: use_cython = False sys.argv.remove('--no-cython') if '--without-cython' in sys.argv: use_cython = False sys.argv.remove('--without-cython') if '--cython' in sys.argv: sys.argv.remove('--cython') if '--with-cython' in sys.argv: sys.argv.remove('--with-cython') if use_cython and not has_cython: if is_dev: raise RuntimeError('Cython required to build dev version of %s.' % NAME) warnings.warn('Cython not installed. Building without Cython.') use_cython = False use_openmp = True def find_files(dir_path, extension): for root, _, files in os.walk(dir_path): for name in files: if name.endswith(extension): yield os.path.join(root, name) def import_string_from_path(path): return os.path.splitext(path)[0].replace('/', '.') def define_extensions(use_cython=False): if sys.platform.startswith("win"): # compile args from # https://msdn.microsoft.com/en-us/library/fwkeyyhe.aspx compile_args = ['/openmp', '/O2'] link_args = ['/openmp'] else: compile_args = ['-Wno-unused-function', '-O3', '-ffast-math'] link_args = [] if use_openmp: compile_args.append("-fopenmp") link_args.append("-fopenmp") if 'anaconda' not in sys.version.lower(): compile_args.append('-march=native') src_ext = '.pyx' if use_cython else '.c' modules = [ Extension(import_string_from_path(filepath), [filepath], language='c', extra_compile_args=compile_args, extra_link_args=link_args) for filepath in find_files(SRC_ROOT, src_ext) ] if use_cython: return cythonize(modules) else: return modules # set_gcc copied from glove-python project # https://github.com/maciejkula/glove-python def set_gcc(): """ Try to find and use GCC on OSX for OpenMP support. """ # For macports and homebrew patterns = ['/opt/local/bin/gcc-mp-[0-9].[0-9]', '/opt/local/bin/gcc-mp-[0-9]', '/usr/local/bin/gcc-[0-9].[0-9]', '/usr/local/bin/gcc-[0-9]'] if 'darwin' in platform.platform().lower(): gcc_binaries = [] for pattern in patterns: gcc_binaries += glob.glob(pattern) gcc_binaries.sort() if gcc_binaries: _, gcc = os.path.split(gcc_binaries[-1]) os.environ["CC"] = gcc else: global use_openmp use_openmp = False logging.warning('No GCC available. Install gcc from Homebrew ' 'using brew install gcc.') set_gcc() setup( name=NAME, version=VERSION, description='Collaborative Filtering for Implicit Datasets', url='http://github.com/benfred/implicit/', author='Ben Frederickson', author_email='ben@benfrederickson.com', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'Natural Language :: English', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', 'Programming Language :: Cython', 'Operating System :: OS Independent', 'Topic :: Software Development :: Libraries :: Python Modules'], keywords='Matrix Factorization, Implicit Alternating Least Squares, ' 'Collaborative Filtering, Recommender Systems', packages=[SRC_ROOT], install_requires=['numpy', 'scipy>=0.16'], setup_requires=["Cython >= 0.19"], ext_modules=define_extensions(use_cython), test_suite="tests", )
Python
0
@@ -1443,19 +1443,8 @@ = %5B -'/openmp', '/O2 @@ -1471,17 +1471,8 @@ = %5B -'/openmp' %5D%0A
2211bcc8b52ac06ef835609fd8a5b4fae8c13099
Version 1.6.1.
setup.py
setup.py
import os from setuptools import setup, find_packages # Utility function to read the README file. # From http://packages.python.org/an_example_pypi_project/setuptools.html. def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup(name="nodebox-opengl", version="1.6", description="NodeBox for OpenGL is a free, cross-platform library for " "generating 2D animations with Python programming code.", long_description=read("README.txt"), keywords="2d graphics sound physics games multimedia", license="BSD", author="Tom De Smedt, Frederik De Bleser", url="http://www.cityinabottle.org/nodebox/", packages=find_packages(), package_data={ "nodebox.gui": ["theme/*"] }, install_requires=[ "pyglet", ], classifiers=[ "Development Status :: 4 - Beta", "Environment :: MacOS X", "Environment :: Win32 (MS Windows)", "Environment :: X11 Applications", "Intended Audience :: Developers", "Intended Audience :: Education", "License :: OSI Approved :: BSD License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Topic :: Artistic Software", "Topic :: Games/Entertainment", "Topic :: Multimedia :: Graphics", "Topic :: Software Development :: Libraries :: Python Modules", ], )
Python
0
@@ -312,16 +312,18 @@ ion=%221.6 +.1 %22,%0D%0A
c415ca1152e9d82c4fbecdcea331e97d074ef30f
change start visibility of button
trunk/editor/arearesize.py
trunk/editor/arearesize.py
#!/usr/bin/env python from PyQt4.QtGui import * from PyQt4.QtCore import * from structdata.project import g_project class ResizeButton(QPushButton): def sizeHint(self): return QSize(10, 10) def __init__(self, parent=None): super(ResizeButton, self).__init__(parent) self.setStyleSheet("background-color:" "rgba( 255, 255, 255, 100% );") self.setFixedHeight(10) self.setFixedWidth(10) class AreaResize(QWidget): def sizeHint(self): return QSize(self.current_width, self.current_height) def __init__(self, area, bg_width, bg_height, parent=None): super(AreaResize, self).__init__(parent) self.in_resize = False self.bg_width = bg_width self.bg_height = bg_height self.area = area self.resize(QSize(self.toAbsolute(self.area.width, 'x'), self.toAbsolute(self.area.height, 'y'))) self.current_width = self.width() self.current_height = self.height() self.setSizePolicy(QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Preferred)) self.change_area_name = QLabel(self) self.change_area_name.setText(self.area.id) self.vl = QVBoxLayout() self.vl.setAlignment(Qt.AlignCenter) self.vl.addStretch() self.vl.addWidget(self.change_area_name) self.setLayout(self.vl) self.signal_mapper_pressed = QSignalMapper(self) self.resize_buttons = [] for i in range(8): button = ResizeButton(self) button.setVisible(True) if i == 0 or i == 3: button.setCursor(Qt.SizeFDiagCursor) elif i == 1 or i == 2: button.setCursor(Qt.SizeBDiagCursor) elif i == 4 or i == 5: button.setCursor(Qt.SizeVerCursor) else: button.setCursor(Qt.SizeHorCursor) button.move(self.change_position(i)) self.connect(button, SIGNAL("pressed()"), self.signal_mapper_pressed, SLOT("map()")) self.signal_mapper_pressed.setMapping(button, i) self.resize_buttons.append(button) self.connect(self.signal_mapper_pressed, SIGNAL("mapped(int)"), self.start_track) def change_position(self, index): """funzione che ritorna la posizione di ogni bottone per il resize""" pos = [QPoint(0, 0), QPoint(self.width() - 10, 0), QPoint(0, self.height() - 10), QPoint(self.width() - 10, self.height() - 10), QPoint(self.width() / 2, 0), QPoint(self.width() / 2, self.height() - 10), QPoint(0, self.height() / 2), QPoint(self.width() - 10, self.height() / 2)] return pos[index] def start_track(self, index): self.in_resize = True self.index = index def mouseMoveEvent(self, event=None): if (event.buttons() and Qt.LeftButton) == Qt.LeftButton and self.in_resize: x = event.pos().x() #uso per non superare i bordi laterali dello sfondo x = min(x, self.bg_width - self.x()) if x + self.x() > 0\ else max(0, x) y = event.pos().y() #uso per non superare i bordi superiore e inferiore dello sfondo y = min(y, self.bg_height - self.y()) if y + self.y() > 0\ else max(0, y) x_widget = self.x() y_widget = self.y() #top left button if self.index == 0: self.move(x_widget + x, y_widget + y) self.current_width = self.width() - x self.current_height = self.height() - y self.resize(self.sizeHint()) #top right button elif self.index == 1: self.move(self.x(), y_widget + y) self.current_width = x self.current_height = self.height() - y self.resize(self.sizeHint()) #bottom left button elif self.index == 2: self.move(x_widget + x, self.y()) self.current_width = self.width() - x self.current_height = y self.resize(self.sizeHint()) #bottom right button elif self.index == 3: self.current_height = y + 5 self.current_width = x + 5 self.resize(self.sizeHint()) #top button elif self.index == 4: self.move(x_widget, y_widget + y) self.current_height = self.height() - y self.resize(self.sizeHint()) #bottom button elif self.index == 5: self.current_height = y self.resize(self.sizeHint()) #left button elif self.index == 6: self.move(x_widget + x, y_widget) self.current_width = self.width() - x self.resize(self.sizeHint()) #right button else: self.current_width = x self.resize(self.sizeHint()) i = 0 for button in self.resize_buttons: button.move(self.change_position(i)) i += 1 self.area.x = str(self.toLogical(self.x(), 'x')) self.area.y = str(self.toLogical(self.y(), 'y')) self.area.width = str(self.toLogical(self.width(), 'x')) self.area.height = str(self.toLogical(self.height(), 'y')) self.update() def mouseReleaseEvent(self, event=None): self.in_resize = False self.update() def enterEvent(self, event=None): self.change_area_name.setVisible(True) for cb in self.resize_buttons: cb.setVisible(True) self.update() def leaveEvent(self, event=None): self.change_area_name.setVisible(False) for cb in self.resize_buttons: cb.setVisible(False) self.update() def toAbsolute(self, value, direction): """converte le coordinate in assolute prendendo in ingresso il valore e la direzione della dimensione""" if direction == 'x': w = float(g_project.data['world'].width) return float(value) * w elif direction == 'y': h = float(g_project.data['world'].height) return float(value) * h def toLogical(self, value, direction): """converte le coordinate in logico prendendo in ingresso il valore e la direzione della dimensione""" if direction == 'x': w = float(g_project.data['world'].width) return round(float(value) / w, 3) else: h = float(g_project.data['world'].height) return round(float(value) / h, 3) def paintEvent(self, event=None): QWidget.paintEvent(self, event) p = QPainter(self) p.setRenderHint(QPainter.Antialiasing) p.setPen(Qt.blue) p.drawRect(0, 0, self.width(), self.height())
Python
0
@@ -1633,35 +1633,36 @@ tton.setVisible( -Tru +Fals e)%0A i
8f0635d41c5da5d844aa5219794134fe1d608896
Fix URL in setup.py
setup.py
setup.py
#!/usr/bin/env python import os import sys import io try: import setuptools except ImportError: from distribute_setup import use_setuptools use_setuptools() from setuptools import setup, Extension from setuptools import find_packages extra_compile_args = [] if os.name == 'nt' else ["-g", "-O2", "-march=native"] extra_link_args = [] if os.name == 'nt' else ["-g"] platform_src = ["src/windows.cpp"] if os.name == 'nt' else [] mod_cv_algorithms = Extension('cv_algorithms._cv_algorithms', sources=['src/thinning.cpp', 'src/distance.cpp', 'src/grassfire.cpp', 'src/popcount.cpp', 'src/neighbours.cpp'] + platform_src, extra_compile_args=extra_compile_args, extra_link_args=extra_link_args) setup( name='cv_algorithms', license='Apache license 2.0', packages=find_packages(exclude=['tests*']), install_requires=['cffi>=0.7'], ext_modules=[mod_cv_algorithms], test_suite='nose.collector', tests_require=['nose', 'coverage', 'mock', 'rednose', 'nose-parameterized'], setup_requires=['nose>=1.0'], platforms="any", zip_safe=False, version='1.0.0', long_description=io.open("README.rst", encoding="utf-8").read(), description='Optimized OpenCV extra algorithms for Python', url="https://github.com/ulikoehler/" )
Python
0.000002
@@ -1478,12 +1478,25 @@ koehler/ +cv_algorithms %22%0A)%0A
2e08fc46892dc7ef257eb27e99356f8ba6b36ad7
add dev requirements
setup.py
setup.py
import piprepo from setuptools import find_packages, setup setup( name="piprepo", version=piprepo.__version__, url="https://github.com/colinhoglund/piprepo", description=piprepo.__description__, packages=find_packages(), entry_points={ 'console_scripts': ['piprepo=piprepo.command:main'], }, install_requires=["pip>=8"], license="BSD", )
Python
0
@@ -355,16 +355,70 @@ p%3E=8%22%5D,%0A + extras_require=%7B%0A 'dev': %5B'flake8'%5D%0A %7D,%0A lice
0747e82b1441aaec28179d94a02f9b9d24f45bff
Count up the version number
setup.py
setup.py
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ import setuptools as st from codecs import open from os import path import numpy here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f: long_description = f.read() st.setup( name='nara_wpe', # 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.0', description='Toy Example for WPE', long_description=long_description, # The project's main homepage. url='', # Author details author='Lukas Drude', author_email='drude@nt.upb.de', # 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 :: Build Tools', # 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 :: 3.6', ], # What does your project relate to? keywords='speech', # You can just specify the packages manually here if your project is # simple. Or you can use find_packages(). packages=st.find_packages(exclude=['contrib', '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=[ 'numpy', 'tqdm', 'soundfile', 'bottleneck', ], # 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={ # 'nt_feature_extraction': ['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'])], include_dirs=[numpy.get_include()], # 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': [ # 'nt_feature_extraction=nt_feature_extraction:main', # ], # }, )
Python
0.999666
@@ -676,17 +676,17 @@ on='0.0. -0 +1 ',%0A%0A
204b9e58a156e4f0faf7a240b5923a7c0f305c09
update setup.py to bootstrap numpy installation
setup.py
setup.py
from setuptools import setup, Extension import numpy # to publish use: # > python setup.py sdist upload # which depends on ~/.pypirc def run_setup(with_binary): ext_modules = [] if with_binary: ext_modules.append( Extension('shap._cext', sources=['shap/_cext.cc'], include_dirs=[numpy.get_include()]) ) setup( name='shap', version='0.15.0', description='A unified approach to explain the output of any machine learning model.', url='http://github.com/slundberg/shap', author='Scott Lundberg', author_email='slund1@cs.washington.edu', license='MIT', packages=['shap', 'shap.explainers'], install_requires=['numpy', 'scipy', 'iml>=0.6.0', 'scikit-learn', 'matplotlib', 'pandas', 'tqdm'], test_suite='nose.collector', tests_require=['nose', 'xgboost'], ext_modules = ext_modules, zip_safe=False ) try: run_setup(True) except: print("WARNING: The C extension could not be compiled, sklearn tree models not supported.") run_setup(False)
Python
0
@@ -37,20 +37,72 @@ ion%0A -import numpy +from setuptools.command.build_ext import build_ext as _build_ext %0A%0A# @@ -180,16 +180,451 @@ pypirc%0A%0A +# Extend the default build_ext class to bootstrap numpy installation%0A# that are needed to build C extensions.%0A# see https://stackoverflow.com/questions/19919905/how-to-bootstrap-numpy-installation-in-setup-py%0Aclass build_ext(_build_ext):%0A def finialize_options(self):%0A _build_ext.finalize_options(self)%0A __builtins__.__NUMPY_SETUP__ = False%0A import numpy%0A self.include_dirs.append(numpy.get_include())%0A%0A%0A def run_ @@ -1128,16 +1128,16 @@ ='MIT',%0A - @@ -1170,24 +1170,101 @@ plainers'%5D,%0A + cmdclass=%7B'build_ext': build_ext%7D,%0A setup_requires=%5B'numpy'%5D,%0A inst
85a7e2deeb60de60b04ca282c963157d692f348f
remove pyqtgraph library
setup.py
setup.py
#!/usr/bin/env python import os import sys try: from setuptools import setup, find_packages except ImportError: raise ImportError("Install setup tools") try: import PyQt4 except ImportError: raise ImportError("Install PyQt4") try: import numpy as np except ImportError: raise ImportError("Install Numpy") try: import matplotlib except ImportError: raise ImportError("Install matplotlib") try: import scipy except ImportError: raise ImportError("Install scipy") if sys.version_info[:2] > (2, 7): raise RuntimeError("Python version 2.6, 2.7 required.") def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name="EpiPy", version="0.1", author="ckaus", description="A Tool for fitting epidemic models.", license="MIT", keywords="epidemic models", url="https://github.com/ckaus/EpiPy", packages=find_packages(exclude=["tests"]), package_data={"epipy": ["resources/ui/*", "resources/data/*", "resources/pictures/*"]}, long_description=read('README.md'), install_requires=['pyqtgraph'], classifiers=[ """\ Development Status :: 3 - Alpha Environment :: Console Environment :: GUI Intended Audience :: Science/Research Intended Audience :: Developers License :: MIT Natural Language :: English Programming Language :: Python Programming Language :: Python :: 2 Programming Language :: Python :: 2.6 Programming Language :: Python :: 2.7 Topic :: Scientific/Engineering Topic :: Tool Operating System :: Unix Operating System :: MacOS """ ], entry_points={'console_scripts': ['epipy = epipy.main', ],}, )
Python
0.000001
@@ -1050,32 +1050,8 @@ a/*%22 -, %22resources/pictures/*%22 %5D%7D,%0A @@ -1098,48 +1098,8 @@ '),%0A - install_requires=%5B'pyqtgraph'%5D,%0A
16d509f2ff1af0f7588f302323c883edcd4384b4
Move schema salad minimum version back to earlier version.
setup.py
setup.py
#!/usr/bin/env python import os import sys import shutil import setuptools.command.egg_info as egg_info_cmd from setuptools import setup, find_packages SETUP_DIR = os.path.dirname(__file__) README = os.path.join(SETUP_DIR, 'README.rst') try: import gittaggers tagger = gittaggers.EggInfoFromGit except ImportError: tagger = egg_info_cmd.egg_info setup(name='cwltest', version='1.0', description='Common workflow language testing framework', long_description=open(README).read(), author='Common workflow language working group', author_email='common-workflow-language@googlegroups.com', url="https://github.com/common-workflow-language/cwltest", download_url="https://github.com/common-workflow-language/cwltest", license='Apache 2.0', packages=["cwltest"], install_requires=[ 'schema-salad >= 1.17', 'typing >= 3.5.2' ], tests_require=[], entry_points={ 'console_scripts': [ "cwltest=cwltest:main" ] }, zip_safe=True, cmdclass={'egg_info': tagger}, )
Python
0
@@ -880,9 +880,9 @@ 1.1 -7 +4 ',%0A
05f2d3b2d90cbc4a039e10533ff4ba50ccaeaa59
Upgrade dependency moto to ==1.0.1 (#829)
setup.py
setup.py
""" Lemur ===== Is a TLS management and orchestration tool. :copyright: (c) 2015 by Netflix, see AUTHORS for more :license: Apache, see LICENSE for more details. """ from __future__ import absolute_import import sys import json import os.path import datetime from distutils import log from distutils.core import Command from setuptools.command.develop import develop from setuptools.command.install import install from setuptools.command.sdist import sdist from setuptools import setup, find_packages from subprocess import check_output ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__))) # When executing the setup.py, we need to be able to import ourselves, this # means that we need to add the src/ directory to the sys.path. sys.path.insert(0, ROOT) about = {} with open(os.path.join(ROOT, "lemur", "__about__.py")) as f: exec(f.read(), about) # nosec: about file is benign install_requires = [ 'Flask==0.12', 'Flask-RESTful==0.3.5', 'Flask-SQLAlchemy==2.1', 'Flask-Script==2.0.5', 'Flask-Migrate==2.0.4', 'Flask-Bcrypt==0.7.1', 'Flask-Principal==0.4.0', 'Flask-Mail==0.9.1', 'SQLAlchemy-Utils==0.32.14', 'requests==2.11.1', 'ndg-httpsclient==0.4.2', 'psycopg2==2.7.1', 'arrow==0.10.0', 'six==1.10.0', 'marshmallow-sqlalchemy==0.13.1', 'gunicorn==19.7.1', 'marshmallow==2.13.5', 'cryptography==1.9', 'xmltodict==0.11.0', 'pyjwt==1.5.0', 'lockfile==0.12.2', 'inflection==0.3.1', 'future==0.16.0', 'boto3==1.4.4', 'acme==0.14.2', 'retrying==1.3.3', 'tabulate==0.7.7', 'pem==16.1.0', 'paramiko==2.1.2' # required for lemur_linuxdst plugin ] tests_require = [ 'pyflakes', 'moto==1.0.0', 'nose==1.3.7', 'pytest==3.1.1', 'factory-boy==2.8.1', 'fake-factory==0.7.2', 'pytest-flask==0.10.0', 'freezegun==0.3.9', 'requests-mock==1.3.0' ] docs_require = [ 'sphinx', 'sphinxcontrib-httpdomain', 'sphinx-rtd-theme' ] dev_requires = [ 'flake8>=3.2,<4.0', 'pre-commit', 'invoke', 'twine' ] class SmartInstall(install): """ Installs Lemur into the Python environment. If the package indicator is missing, this will also force a run of `build_static` which is required for JavaScript assets and other things. """ def _needs_static(self): return not os.path.exists(os.path.join(ROOT, 'lemur/static/dist')) def run(self): if self._needs_static(): self.run_command('build_static') install.run(self) class DevelopWithBuildStatic(develop): def install_for_development(self): self.run_command('build_static') return develop.install_for_development(self) class SdistWithBuildStatic(sdist): def make_release_tree(self, *a, **kw): dist_path = self.distribution.get_fullname() sdist.make_release_tree(self, *a, **kw) self.reinitialize_command('build_static', work_path=dist_path) self.run_command('build_static') with open(os.path.join(dist_path, 'lemur-package.json'), 'w') as fp: json.dump({ 'createdAt': datetime.datetime.utcnow().isoformat() + 'Z', }, fp) class BuildStatic(Command): def initialize_options(self): pass def finalize_options(self): pass def run(self): log.info("running [npm install --quiet] in {0}".format(ROOT)) try: check_output(['npm', 'install', '--quiet'], cwd=ROOT) log.info("running [gulp build]") check_output([os.path.join(ROOT, 'node_modules', '.bin', 'gulp'), 'build'], cwd=ROOT) log.info("running [gulp package]") check_output([os.path.join(ROOT, 'node_modules', '.bin', 'gulp'), 'package'], cwd=ROOT) except Exception as e: log.warn("Unable to build static content") setup( name=about["__title__"], version=about["__version__"], author=about["__author__"], author_email=about["__email__"], url=about["__uri__"], description=about["__summary__"], long_description=open(os.path.join(ROOT, 'README.rst')).read(), packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=install_requires, extras_require={ 'tests': tests_require, 'docs': docs_require, 'dev': dev_requires, }, cmdclass={ 'build_static': BuildStatic, 'sdist': SdistWithBuildStatic, 'install': SmartInstall }, entry_points={ 'console_scripts': [ 'lemur = lemur.manage:main', ], 'lemur.plugins': [ 'verisign_issuer = lemur.plugins.lemur_verisign.plugin:VerisignIssuerPlugin', 'acme_issuer = lemur.plugins.lemur_acme.plugin:ACMEIssuerPlugin', 'aws_destination = lemur.plugins.lemur_aws.plugin:AWSDestinationPlugin', 'aws_source = lemur.plugins.lemur_aws.plugin:AWSSourcePlugin', 'aws_s3 = lemur.plugins.lemur_aws.plugin:S3DestinationPlugin', 'email_notification = lemur.plugins.lemur_email.plugin:EmailNotificationPlugin', 'slack_notification = lemur.plugins.lemur_slack.plugin:SlackNotificationPlugin', 'java_truststore_export = lemur.plugins.lemur_java.plugin:JavaTruststoreExportPlugin', 'java_keystore_export = lemur.plugins.lemur_java.plugin:JavaKeystoreExportPlugin', 'openssl_export = lemur.plugins.lemur_openssl.plugin:OpenSSLExportPlugin', 'atlas_metric = lemur.plugins.lemur_atlas.plugin:AtlasMetricPlugin', 'kubernetes_destination = lemur.plugins.lemur_kubernetes.plugin:KubernetesDestinationPlugin', 'cryptography_issuer = lemur.plugins.lemur_cryptography.plugin:CryptographyIssuerPlugin', 'cfssl_issuer = lemur.plugins.lemur_cfssl.plugin:CfsslIssuerPlugin', 'digicert_issuer = lemur.plugins.lemur_digicert.plugin:DigiCertIssuerPlugin', 'digicert_cis_issuer = lemur.plugins.lemur_digicert.plugin:DigiCertCISIssuerPlugin', ], }, classifiers=[ 'Framework :: Flask', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Operating System :: OS Independent', 'Topic :: Software Development', "Programming Language :: Python :: 3.5", "Natural Language :: English", "License :: OSI Approved :: Apache Software License" ] )
Python
0
@@ -1729,17 +1729,17 @@ to==1.0. -0 +1 ',%0A '
da74aa7b9c3b227fb449e0e8016d3511efcf315d
Add PyPy to classifiers
setup.py
setup.py
import re from setuptools import setup with open('demands/__init__.py') as init_py: metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py.read())) with open('README.rst') as readme_file: readme = readme_file.read() setup( name='demands', version=metadata['version'], description=metadata['doc'], long_description=readme, author='Yola', author_email='engineers@yola.com', license='MIT (Expat)', url=metadata['url'], packages=['demands'], install_requires=[ 'requests >= 2.4.2, < 3.0.0', 'six', ], test_suite='nose.collector', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Software Development :: Libraries', ], )
Python
0
@@ -1091,16 +1091,84 @@ : 3.4',%0A + 'Programming Language :: Python :: Implementation :: PyPy',%0A
ce12010ebd6446defac54a481679c02129dc6613
update linear
tensorgraph/layers/linear.py
tensorgraph/layers/linear.py
import tensorflow as tf from template import Template class Linear(Template): def __init__(self, prev_dim=None, this_dim=None, W=None, b=None): """ DESCRIPTION: This is a fully connected layer PARAM: prev_dim (int): dimension of previous layer this_dim (int): dimension of this layer W (tensor variable): Weight of 2D tensor matrix b (tensor variable): bias of 2D tensor matrix """ self.prev_dim = prev_dim self.this_dim = this_dim self.W = W if self.W is None: self.W = tf.Variable(tf.random_normal([self.prev_dim, self.this_dim], stddev=0.1), name=self.__class__.__name__ + '_W') self.b = b if self.b is None: self.b = tf.Variable(tf.zeros([self.this_dim]), name=self.__class__.__name__ + '_b') def _train_fprop(self, state_below): return tf.matmul(state_below, self.W) + self.b @property def _variables(self): return [self.W, self.b] class LinearMasked(Template): def __init__(self, prev_dim=None, this_dim=None, W=None, b=None, mask=None): """ DESCRIPTION: This is a fully connected layer with an applied mask for partial connections PARAM: prev_dim (int): dimension of previous layer this_dim (int): dimension of this layer name (string): name of the layer W (tensor variable): Weight of 2D tensor matrix b (tensor variable): bias of 2D tensor matrix mask (numpy.ndarray or tensorflow placeholder): mask for partial connection params (list): a list of params in layer that can be updated """ self.prev_dim = prev_dim self.this_dim = this_dim self.mask = mask self.W = W if self.W is None: self.W = tf.Variable(tf.random_normal([self.prev_dim, self.this_dim], stddev=0.1), name=self.__class__.__name__ + '_W') self.b = b if self.b is None: self.b = tf.Variable(tf.zeros([self.this_dim]), name=self.__class__.__name__ + '_b') def _train_fprop(self, state_below): return tf.mul(tf.matmul(state_below, self.W) + self.b, self.mask) @property def _variables(self): return [self.W, self.b] class SparseLinear(Template): def __init__(self, prev_dim=None, this_dim=None, ndim=None, W=None, b=None, batchsize=None): """ DESCRIPTION: This is a fully connected layer with sparse inputs are two tensors one is index tensor of dimension [N, ndim] and another one is value tensor of [N] PARAM: prev_dim (int): dimension of previous layer this_dim (int): dimension of this layer name (string): name of the layer W (tensor variable): Weight of 2D tensor matrix b (tensor variable): bias of 2D tensor matrix params (list): a list of params in layer that can be updated """ self.prev_dim = prev_dim self.this_dim = this_dim self.batchsize = batchsize self.W = W if self.W is None: self.W = tf.Variable(tf.random_normal([self.prev_dim, self.this_dim], stddev=0.1), name=self.__class__.__name__ + '_W') self.b = b if self.b is None: self.b = tf.Variable(tf.zeros([self.this_dim]), name=self.__class__.__name__ + '_b') def _train_fprop(self, state_below): idx, val = state_below X = tf.SparseTensor(tf.cast(idx, 'int64'), val, shape=[self.batchsize, self.prev_dim]) X_order = tf.sparse_reorder(X) XW = tf.sparse_tensor_dense_matmul(X_order, self.W, adjoint_a=False, adjoint_b=False) return tf.add(XW, self.b) @property def _variables(self): return [self.W, self.b]
Python
0.005673
@@ -2521,19 +2521,8 @@ one, - ndim=None, W=N @@ -2712,17 +2712,21 @@ ion %5BN, -n +prev_ dim%5D and
944df739983244aaacb90314d0d0ec3046042959
Fix package setup
setup.py
setup.py
#!/usr/bin/env python """Distutils setup script for packaging and distribution.""" import pathlib import setuptools PROJECT_ROOT = pathlib.Path(__file__).parent PROJECT_NAME = 'tvmaze' PROJECT_VERSION = '0.1.0' PROJECT_URL = 'https://github.com/tvmaze/tvmaze' PROJECT_LICENSE = 'MIT License' PROJECT_DESCRIPTION = 'A Python library for accessing the TVMaze API.' PROJECT_README = PROJECT_ROOT / 'README.rst' PROJECT_SOURCE_DIRECTORY = PROJECT_ROOT / 'src' PROJECT_CLASSIFIERS = [ # complete classifier list: # http://pypi.python.org/pypi?%3Aaction=list_classifiers 'Development Status :: 1 - Planning', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', 'Programming Language :: Python :: 3 :: Only', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: Implementation :: CPython', 'Topic :: Utilities', ] PROJECT_KEYWORDS = [ 'tvmaze', 'video', 'series', 'metadata', ] setuptools.setup( name=PROJECT_NAME, version=PROJECT_VERSION, license=PROJECT_LICENSE, description=PROJECT_DESCRIPTION, long_description=PROJECT_README.read_text('utf-8'), url=PROJECT_URL, packages=setuptools.find_packages(str(PROJECT_SOURCE_DIRECTORY)), package_dir={ '': str(PROJECT_SOURCE_DIRECTORY.relative_to(PROJECT_ROOT)), }, py_modules=[ path.name for path in PROJECT_SOURCE_DIRECTORY.glob('*.py') ], python_requires='>=3.6', include_package_data=True, zip_safe=False, classifiers=PROJECT_CLASSIFIERS, keywords=PROJECT_KEYWORDS, install_requires=[ 'pendulum', 'pycountry', ], tests_require=[ 'pytest', ], )
Python
0.000001
@@ -113,16 +113,99 @@ ptools%0A%0A +PROJECT_AUTHOR = 'Labrys of Knossos'%0APROJECT_AUTHOR_EMAIL = 'labrys.git@gmail.com'%0A PROJECT_ @@ -1177,16 +1177,82 @@ T_NAME,%0A + author=PROJECT_AUTHOR,%0A author_email=PROJECT_AUTHOR_EMAIL,%0A vers
918dd5165ae95514495bd22ed3a689b0fd2c6012
Refactor setup.py's VERSION extraction.
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # IceCream - A little library for sweet and creamy print debugging. # # Ansgar Grunseid # grunseid.com # grunseid@gmail.com # # License: MIT # import os import re import sys from os.path import dirname, join as pjoin from setuptools import setup, find_packages, Command from setuptools.command.test import test as TestCommand with open(pjoin(dirname(__file__), 'icecream', '__init__.py')) as fo: VERSION = re.compile( r".*__version__ = '(.*?)'", re.S).match(fo.read()).group(1) class Publish(Command): """Publish to PyPI with twine.""" user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): os.system('python setup.py sdist') rc = os.system('twine upload dist/icecream-%s.tar.gz' % VERSION) sys.exit(rc) class RunTests(TestCommand): """ Run the unit tests. By default, `python setup.py test` fails if tests/ isn't a Python module (that is, if the tests/ directory doesn't contain an __init__.py file). But the tests/ directory shouldn't contain an __init__.py file and tests/ shouldn't be a Python module. See http://doc.pytest.org/en/latest/goodpractices.html Running the unit tests manually here enables `python setup.py test` without tests/ being a Python module. """ def run_tests(self): from unittest import TestLoader, TextTestRunner tests_dir = pjoin(dirname(__file__), 'tests') suite = TestLoader().discover(tests_dir) result = TextTestRunner().run(suite) sys.exit(0 if result.wasSuccessful() else -1) setup( name='icecream', license='MIT', version=VERSION, author='Ansgar Grunseid', author_email='grunseid@gmail.com', url='https://github.com/gruns/icecream', description=( 'Inspect variables, expressions, and program execution with a ' 'single, simple function call.'), long_description=( 'Information and documentation can be found at ' 'https://github.com/gruns/icecream.'), platforms=['any'], packages=find_packages(), include_package_data=True, classifiers=[ 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Intended Audience :: Developers', 'Topic :: Software Development :: Libraries', 'Development Status :: 4 - Beta', 'Programming Language :: Python', '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 :: PyPy', 'Programming Language :: Python :: Implementation :: CPython', ], tests_require=['flake8'], install_requires=[ 'colorama>=0.3.9', 'pygments>=2.2.0', 'untokenize>=0.1.1'], cmdclass={ 'test': RunTests, 'publish': Publish, }, )
Python
0
@@ -449,64 +449,73 @@ -VERSION = re.compile(%0A r%22.*__version__ = '(.*?)'%22 +regex = r%22.*__version__ = '(.*?)'%22%0A VERSION = re.compile(regex , re
f6e1db00281fc01b9e009aa6cabb0727ee80385c
Add oedialect to dependency list
setup.py
setup.py
"""This file is part of DING0, the DIstribution Network GeneratOr. DING0 is a tool to generate synthetic medium and low voltage power distribution grids based on open data. It is developed in the project open_eGo: https://openegoproject.wordpress.com DING0 lives at github: https://github.com/openego/ding0/ The documentation is available on RTD: http://ding0.readthedocs.io""" __copyright__ = "Reiner Lemoine Institut gGmbH" __license__ = "GNU Affero General Public License Version 3 (AGPL-3.0)" __url__ = "https://github.com/openego/ding0/blob/master/LICENSE" __author__ = "nesnoj, gplssm" from setuptools import find_packages, setup import os setup(name='ding0', version='v0.1.5', author='Reiner Lemoine Institut, openego development group', author_email='jonathan.amme@rl-institut.de', description='DIstribution Network GeneratOr', url='https://github.com/openego/ding0', license='GNU GPLv3', packages=find_packages(), install_requires=['networkx >= 1.11, <= 1.11', 'geopy >= 1.11.0, <= 1.11.0', 'pandas >= 0.20.3, <= 0.20.3', 'pyomo >= 5.0.1, <= 5.1.1', 'pyproj >= 1.9.5.1, <= 1.9.5.1', 'sqlalchemy >= 1.0.11, <= 1.2.0', 'geoalchemy2 >= 0.2.6, <= 0.4.1', 'matplotlib >= 1.5.3, <= 1.5.3', 'egoio==0.3.1', 'shapely >= 1.5.12, <= 1.6.3', 'pypsa >= 0.11.0, <= 0.11.0', 'seaborn', 'unittest2', 'scipy < 1.0' ], package_data={ 'ding0': [ os.path.join('config', '*.cfg'), os.path.join('data', '*.csv'), os.path.join('grid', 'mv_grid', 'tests', 'testcases', '*.vrp'), os.path.join('grid', 'mv_grid', 'tests', 'testcases', 'Augerat', '*.vrp'), os.path.join('grid', 'mv_grid', 'tests', 'testcases', 'Augerat-tcc', '*.vrp'), os.path.join('grid', 'mv_grid', 'tests', 'testcases', 'Takes-tcc', '*.vrp'), os.path.join('grid', 'mv_grid', 'tests', 'testcases', 'Vigo', '*.vrp'), ]}, classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU Affero General Public License v3", "Natural Language :: English", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Scientific/Engineering"], )
Python
0
@@ -1683,16 +1683,53 @@ y %3C 1.0' +,%0A 'oedialect' %0A
d361911d682b5d6d2ffd8a9122544e4389aded23
Version bump
setup.py
setup.py
import codecs import os try: # for pip >= 10 from pip._internal.req import parse_requirements except ImportError: # for pip <= 9.0.3 from pip.req import parse_requirements from setuptools import setup, find_packages VERSION = "1.19.4" AUTHOR = "Mike Lissner" EMAIL = "info@free.law" HERE = os.path.abspath(os.path.dirname(__file__)) def read(*parts): """ Build an absolute path from *parts* and and return the contents of the resulting file. Assume UTF-8 encoding. """ with codecs.open(os.path.join(HERE, *parts), "rb", "utf-8") as f: return f.read() requirements = [ str(r.req) for r in parse_requirements('requirements.txt', session=False) ] setup( name="juriscraper", description="An API to scrape American court websites for metadata.", license="BSD", url="https://github.com/freelawproject/juriscraper", version=VERSION, author=AUTHOR, author_email=EMAIL, maintainer=AUTHOR, maintainer_email=EMAIL, keywords=["scraping", "legal", "pacer"], long_description=read("README.rst"), packages=find_packages(exclude=['tests*']), classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Natural Language :: English", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules", ], install_requires=requirements, tests_require=['jsondate', 'mock', 'vcrpy'], include_package_data=True, test_suite='tests', )
Python
0.000001
@@ -242,9 +242,9 @@ .19. -4 +5 %22%0AAU
dfaf7ec8b2ac6143cbdd0231418df0c7cbf8fb0c
add Beaker dependency
setup.py
setup.py
from setuptools import setup setup( name="pump", version="0.1.1", description="A web application library.", author="Adeel Ahmad Khan", author_email="adeel@adeel.ru", packages=["pump", "pump.util", "pump.middleware"], license="MIT", classifiers=[ 'Topic :: Internet :: WWW/HTTP :: WSGI', 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License'])
Python
0
@@ -60,17 +60,17 @@ on=%220.1. -1 +2 %22,%0A des @@ -223,16 +223,47 @@ ware%22%5D,%0A + install_requires=%5B%22Beaker%22%5D,%0A licens
4d1e7573e52add8ff04d6a9e86862e07a6576d17
Increase version in setup.py
setup.py
setup.py
import os from setuptools import setup # Compile the list of packages available, because distutils doesn't have # an easy way to do this. packages, data_files = [], [] root_dir = os.path.dirname(__file__) if root_dir: os.chdir(root_dir) PACKAGE = 'pybb' for dirpath, dirnames, filenames in os.walk(PACKAGE): for i, dirname in enumerate(dirnames): if dirname in ['.', '..']: del dirnames[i] if '__init__.py' in filenames: pkg = dirpath.replace(os.path.sep, '.') if os.path.altsep: pkg = pkg.replace(os.path.altsep, '.') packages.append(pkg) elif filenames: prefix = dirpath[len(PACKAGE) + 1:] # Strip package directory + path separator for f in filenames: data_files.append(os.path.join(prefix, f)) setup( version = '0.1.2', description = 'Django forum application', author = 'Grigoriy Petukhov', author_email = 'lorien@lorien.name', url = 'http://pybb.org', name = 'pybb', packages = packages, package_data = {'pybb': data_files}, license = "BSD", keywords = "django application forum board", classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: Message Boards', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
Python
0
@@ -826,9 +826,9 @@ 0.1. -2 +3 ',%0A
c562234ca72e3f3a3cf96983b5d4f3c2874430e7
Add python constants module to setup.py
setup.py
setup.py
import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path from distutils.core import setup, Extension import numpy # import numba import gen_type_conversion from Cython.Distutils import build_ext from Cython.Distutils.extension import Extension as CythonExtension if sys.version_info[:2] < (2, 6): raise Exception('numba requires Python 2.6 or greater.') import versioneer versioneer.versionfile_source = 'numba/_version.py' versioneer.versionfile_build = 'numba/_version.py' versioneer.tag_prefix = '' versioneer.parentdir_prefix = 'numba-' cmdclass = versioneer.get_cmdclass() cmdclass['build_ext'] = build_ext setup_args = { 'long_description': open('README').read(), } def find_packages(where='.', exclude=()): out = [] stack=[(convert_path(where), '')] while stack: where, prefix = stack.pop(0) for name in os.listdir(where): fn = os.path.join(where,name) if ('.' not in name and os.path.isdir(fn) and os.path.isfile(os.path.join(fn, '__init__.py')) ): out.append(prefix+name) stack.append((fn, prefix+name+'.')) for pat in list(exclude) + ['ez_setup', 'distribute_setup']: out = [item for item in out if not fnmatchcase(item, pat)] return out def run_2to3(): import lib2to3.refactor from distutils.command.build_py import build_py_2to3 as build_py print("Installing 2to3 fixers") # need to convert sources to Py3 on installation fixes = lib2to3.refactor.get_fixers_from_package("lib2to3.fixes") bad_fixers = ('next', 'funcattrs') fixes = [fix for fix in fixes if fix.split('fix_')[-1] not in bad_fixers] build_py.fixer_names = fixes cmdclass["build_py"] = build_py # cmdclass["build"] = build_py # Distribute options # setup_args["use_2to3"] = True if sys.version_info[0] >= 3: run_2to3() def get_include(): """Use numba.get_include() instead (make numba importable without building it first) """ numba_root = os.path.dirname(os.path.abspath(__file__)) return os.path.join(numba_root, "numba", "include") numba_include_dir = get_include() gen_type_conversion.run() setup( name = "numba", version = versioneer.get_version(), author = "Continuum Analytics, Inc.", author_email = "numba-users@continuum.io", url = "http://numba.github.com", license = "BSD", classifiers = [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", # "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", # "Programming Language :: Python :: 3.2", "Topic :: Utilities", ], description = "compiling Python code using LLVM", packages = find_packages(), scripts = ['numba/pycc/pycc'], package_data = { 'numba.minivect' : ['include/*'], 'numba.asdl.common': ['*.asdl'], 'numba.asdl.py2_7': ['*.asdl'], 'numba.external.utilities': ['*.c', '*.h'], 'numba' : ['*.c', '*.h', 'include/*'], }, ext_modules = [ Extension( name = "numba.external.utilities.utilities", sources = ["numba/external/utilities/utilities.c"], include_dirs=[numba_include_dir], depends=["numba/external/utilities/type_conversion.c", "numba/external/utilities/generated_conversions.c", "numba/external/utilities/generated_conversions.h"]), CythonExtension( name = "numba.extension_types", sources = ["numba/extension_types.pyx", "numba/numbafunction.c"], depends = ["numba/numbafunction.h"], include_dirs=[numba_include_dir], cython_gdb=True), CythonExtension( name = "numba.numbawrapper", sources = ["numba/numbawrapper.pyx"], include_dirs=[numpy.get_include()], cython_gdb=True), ], cmdclass = cmdclass, **setup_args )
Python
0.000003
@@ -3649,32 +3649,234 @@ ythonExtension(%0A + name = %22numba.pyconsts%22,%0A sources = %5B%22numba/pyconsts.pyx%22%5D,%0A depends = %5B%22numba/_pyconsts.pxd%22%5D,%0A include_dirs=%5Bnumba_include_dir%5D),%0A CythonExtension(%0A name
0a834f03114698b75d7c5e2c7a01276781072ff9
Bump patch version
setup.py
setup.py
from setuptools import setup name = 'turbasen' VERSION = '2.4.3' setup( name=name, packages=[name], version=VERSION, description='Client for Nasjonal Turbase REST API', long_description='See https://github.com/Turbasen/turbasen.py/blob/master/README.md', author='Ali Kaafarani', author_email='ali.kaafarani@turistforeningen.no', url='https://github.com/Turbasen/turbasen.py', download_url='https://github.com/Turbasen/turbasen.py/tarball/v%s' % (VERSION), keywords=['turbasen', 'nasjonalturbase', 'turistforening', 'rest-api'], classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: Norwegian', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', ], install_requires=['requests>=2.9,<2.10'], extras_require={ 'dev': ['pytest>=2.8,<2.9'], } )
Python
0
@@ -56,17 +56,17 @@ = '2.4. -3 +5 '%0A%0Asetup
9e7129d5a3a2c625ab0d97ecb50c030e2a258014
Add package
setup.py
setup.py
#!/usr/bin/env python """ Copyright 2015 ARC Centre of Excellence for Climate Systems Science author: Scott Wales <scott.wales@unimelb.edu.au> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from distutils.core import setup setup(name='FTools', version='0.1.0', description='Tools for Fortran coding', url='https://github.com/ScottWales/ftools', author='Scott Wales', author_email='scott.wales@unimelb.edu.au', packages=['ftools'], install_requires=[ 'antlr4-python2-runtime', ], )
Python
0.000001
@@ -954,16 +954,32 @@ 'ftools' +,'ftools.parser' %5D,%0A
de5e68913d268399533a3d70e21497cf5c36d2c1
bump version to 1.0.2
setup.py
setup.py
import os from setuptools import setup def read(relpath): filename = os.path.join(os.path.dirname(__file__), relpath) with open(filename) as f: return f.read() setup( name='txpool', version='1.0.0', description='A persistent process pool in Python for Twisted', long_description=read('README.rst'), license='MIT', author='Ryan Johnson', author_email='escattone@gmail.com', url='https://github.com/escattone/txpool', packages=['txpool'], install_requires=['twisted>=12'], classifiers=[ 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 2 :: Only', 'Development Status :: 4 - Beta', 'Natural Language :: English', 'Framework :: Twisted', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Topic :: Software Development :: Libraries :: Python Modules', ] )
Python
0
@@ -216,17 +216,17 @@ on='1.0. -0 +2 ',%0A d
ddf643a62a1b1d7cd5d6eaa6e8dc27209d64c97d
fix setup.py
setup.py
setup.py
import os import glob import fnmatch from sacrud import version from setuptools import setup def opj(*args): path = os.path.join(*args) return os.path.normpath(path) badnames = [".pyc", ".py", "~", "no_"] def find_data_files(srcdir, *wildcards, **kw): # get a list of all files under the srcdir matching wildcards, # returned in a format to be used for install_data def walk_helper(arg, dirname, files): if '.svn' in dirname: return names = [] lst, wildcards = arg for wc in wildcards: wc_name = opj(dirname, wc) for f in files: filename = opj(dirname, f) if not any(bad in filename for bad in badnames): if fnmatch.fnmatch(filename, wc_name)\ and not os.path.isdir(filename): names.append(filename) if names: lst.append((dirname, names)) file_list = [] recursive = kw.get('recursive', True) if recursive: os.walk(srcdir, walk_helper, (file_list, wildcards)) else: walk_helper((file_list, wildcards), srcdir, [os.path.basename(f) for f in glob.glob(opj(srcdir, '*'))]) return file_list files = find_data_files('sacrud/', '*.*') setup( name='sacrud', version=version.__version__, url='http://github.com/ITCase/sacrud/', author='Svintsov Dmitry', author_email='root@uralbash.ru', packages=['sacrud', 'sacrud.common', 'sacrud.action', 'sacrud.exttype', 'sacrud.tests'], data_files=files, include_package_data=True, zip_safe=False, test_suite="nose.collector", license="MIT", package_dir={'sacrud': 'sacrud'}, package_data={ 'sacrud': ['static/style/*.css', 'static/js/*.js', 'static/js/jquery/*.js', 'static/images/*', 'templates/*.jinja2', 'templates/forms/*.jinja2', 'templates/forms/actions/*.jinja2', 'templates/types/*.jinja2', 'tests/*.py', ], 'sacrud.pyramid_ext': ['tests/*.py'] }, description='SQLAlchemy CRUD.', long_description="`http://sacrud.readthedocs.org/`", install_requires=[ "sqlalchemy", 'deform', 'colander', "transaction", 'zope.sqlalchemy', 'webhelpers', 'webtest', ], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Natural Language :: Russian', 'Operating System :: OS Independent', 'Programming Language :: Python', "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Framework :: Pyramid ", "Framework :: Flask", "Topic :: Internet", "Topic :: Database", ], )
Python
0.000001
@@ -1515,74 +1515,8 @@ ud', - 'sacrud.common', 'sacrud.action', 'sacrud.exttype',%0A 'sa @@ -2082,53 +2082,8 @@ %5D,%0A - 'sacrud.pyramid_ext': %5B'tests/*.py'%5D%0A
32e91504e6ea6ac4c09b4688eeefd4d3034824ff
add cython to setup_requires
setup.py
setup.py
""" hdmedians: High-dimensional medians. """ import numpy as np from setuptools import setup, find_packages, Extension from Cython.Build import cythonize extensions = [Extension('hdmedians.geomedian', ['hdmedians/geomedian.pyx'], include_dirs = [np.get_include()])] setup(name='hdmedians', packages=find_packages(), setup_requires=['nose>=1.0'], install_requires=['six', 'numpy'], version='0.1', description='High-dimensional medians', url='http://github.com/daleroberts/hdmedians', author='Dale Roberts', author_email='dale.o.roberts@gmail.com', license='GPL3', ext_modules = cythonize(extensions))
Python
0
@@ -400,16 +400,34 @@ se%3E=1.0' +, 'Cython %3E= 0.16' %5D,%0A @@ -449,15 +449,8 @@ es=%5B -'six', 'num @@ -716,14 +716,8 @@ sions))%0A -
8d3d339d27ef4a61f3447dae5d671b2dfc30a9b7
change readme target in setup.py
setup.py
setup.py
from setuptools import setup, find_packages from htmlmin import __version__ README = open('README.md').read() LICENSE = open('LICENSE').read() setup( name='htmlmin', version=__version__, license='BSD', description='An HTML Minifier', long_description=README, url='https://htmlmin.readthedocs.org/en/latest/', download_url='https://github.com/mankyd/htmlmin', author='Dave Mankoff', author_email='mankyd@gmail.com', packages=find_packages(), include_package_data=True, zip_safe=True, test_suite='htmlmin.tests.tests.suite', install_requires=[], tests_require=[], classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Topic :: Text Processing :: Markup :: HTML", ], entry_points={ 'console_scripts': [ 'htmlmin = htmlmin.command:main', ], }, )
Python
0
@@ -96,10 +96,11 @@ DME. -md +rst ').r
07b11f05e3cce7e76d80e115c388087bcb7a633b
Change setup.py description of quickplots
setup.py
setup.py
from setuptools import setup setup( name="quickplots", version="2.1.0", description="A simple plotting library", long_description="A Python plotting library with simplicty and intuition as its primary goals", url="https://quickplots.readthedocs.io", author="Sam Ireland", author_email="mail@samireland.com", license="MIT", classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Topic :: Scientific/Engineering :: Visualization", "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", ], keywords="charts graphs data", packages=["quickplots"], install_requires=["omnicanvas"] )
Python
0
@@ -130,23 +130,33 @@ ption=%22A - Python +n object-oriented plottin @@ -169,57 +169,57 @@ ary -with simplicty and intuition as its primary goals +for Python, with simplicity as its principal aim. %22,%0A
bb2f5ec13cd452b92a197d14ff7629d01d8b35c7
Update Django version used w/ Python 2.7 (1.10 => 1.11)
setup.py
setup.py
import sys from setuptools import find_packages, setup py_version = sys.version_info[:2] py_version_dotted = '{0.major}.{0.minor}'.format(sys.version_info) supported_py_versions = ('2.7', '3.3', '3.4', '3.5', '3.6') if py_version_dotted not in supported_py_versions: sys.stderr.write('WARNING: django-local-settings does not officially support Python ') sys.stderr.write(py_version_dotted) sys.stderr.write('\n') with open('VERSION') as version_fp: VERSION = version_fp.read().strip() with open('README.md') as readme_fp: long_description = readme_fp.read() install_requires = [ 'six', ] if py_version < (3, 0): install_requires.append('configparser') # NOTE: Keep this Django version up to date with the latest Django # release that works for the versions of Python we support. # This is used to get up and running quickly; tox is used to test # all supported Python/Django version combos. if py_version == (2, 7): django_spec = 'django>=1.10,<1.11', if py_version == (3, 3): django_spec = 'django>=1.8,<1.9', else: django_spec = 'django>=2.0,<2.1', setup( name='django-local-settings', version=VERSION, author='Wyatt Baldwin', author_email='self@wyattbaldwin.com', url='https://github.com/wylee/django-local-settings', description='A system for dealing with local settings in Django projects', long_description=long_description, packages=find_packages(), install_requires=install_requires, extras_require={ 'dev': [ 'coverage>=4', django_spec, 'flake8', 'tox>=2.6.0', ], }, classifiers=[ 'Development Status :: 4 - Beta', 'Framework :: Django', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', ] + [ 'Programming Language :: Python :: {v}'.format(v=v)for v in supported_py_versions ], entry_points=""" [console_scripts] make-local-settings = local_settings:make_local_settings """, )
Python
0
@@ -1002,15 +1002,15 @@ =1.1 -0 +1 ,%3C1.1 -1 +2 ',%0Ai
22b7d0c02d8295a4a8c3a1c9b4ae00a23137b1e6
Update tox dep to latest (3.14.0)
setup.py
setup.py
# Copyright 2019 3YOURMIND GmbH # 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 ast import re from os import path from setuptools import setup, find_packages PROJECT_DIR = path.abspath(path.dirname(__file__)) def get_version(): constants = path.join(PROJECT_DIR, "django_migration_linter", "constants.py") _version_re = re.compile(r"__version__\s+=\s+(?P<version>.*)") with open(constants, "r") as f: match = _version_re.search(f.read()) version = match.group("version") if match is not None else '"unknown"' return str(ast.literal_eval(version)) with open(path.join(PROJECT_DIR, "README.rst")) as f: long_description = f.read() setup( name="django-migration-linter", version=get_version(), description="Detect backward incompatible migrations for your django project", long_description=long_description, url="https://github.com/3YOURMIND/django-migration-linter", author="3YOURMIND GmbH", author_email="david.wobrock@gmail.com", license="Apache License 2.0", packages=find_packages(exclude=["tests/"]), install_requires=[ "django>=1.11", "appdirs==1.4.3", 'enum34==1.1.6;python_version<"3.4"', ], extras_require={ "test": [ "tox==3.9.0", "mysqlclient==1.4.2", "psycopg2-binary==2.8.2", "django_add_default_value==0.3.1", ] }, keywords="django migration lint linter database backward compatibility", classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.11", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "Framework :: Django :: 2.2", "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", ], )
Python
0
@@ -1760,17 +1760,18 @@ %22tox==3. -9 +14 .0%22,%0A
916f426c93c3d3de8f5412bdf46b832b14fc7978
Add support for custom function in setup.py
setup.py
setup.py
#!/usr/bin/env python3 from setuptools import setup from os import path here = path.abspath(path.dirname(__file__)) try: with open(path.join(here, 'README.md')) as f: long_description = f.read() except: long_description = '' setup( name='pynetatmo', version='0.0.1', description='Netatmo API wrapper written in Python', long_description=long_description, url='https://github.com/fabiocody/PyNetatmo.git', author='Fabio Codiglioni', author_email='fabiocody@icloud.com', license='MIT', classifiers=[ 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Development Status :: 3 - Alpha' ], keywords='netatmo, thermostat', py_modules=['netatmo'] )
Python
0
@@ -242,15 +242,28 @@ ''%0A%0A +try:%0A setup(%0A + @@ -284,16 +284,20 @@ o',%0A + + version= @@ -305,16 +305,20 @@ 0.0.1',%0A + desc @@ -366,16 +366,20 @@ ython',%0A + long @@ -413,16 +413,20 @@ on,%0A + + url='htt @@ -463,24 +463,28 @@ tatmo.git',%0A + author=' @@ -502,24 +502,28 @@ lioni',%0A + + author_email @@ -547,16 +547,20 @@ d.com',%0A + lice @@ -574,16 +574,20 @@ T',%0A + + classifi @@ -592,16 +592,20 @@ fiers=%5B%0A + @@ -645,32 +645,36 @@ : 3.4',%0A + 'Programming Lan @@ -706,16 +706,20 @@ + + 'Develop @@ -744,16 +744,20 @@ Alpha'%0A + %5D,%0A @@ -759,16 +759,20 @@ %5D,%0A + + keywords @@ -791,24 +791,28 @@ hermostat',%0A + py_modul @@ -826,10 +826,51 @@ tatmo'%5D%0A -)%0A + )%0Afinally:%0A # CONFIGURATION%0A pass
03499b7a1cf7491aa3b9a67ff573442a5c925a2e
Bump version number.
setup.py
setup.py
#!/usr/bin/env python # coding: utf-8 from setuptools import setup setup( name='crater', version='0.5', description='A dependency management system', author='Martin Vejnár', author_email='vejnar.martin@gmail.com', url='https://github.com/avakar/crater', license='MIT', packages=['crater'], install_requires=['cson', 'six', 'requests', 'colorama', 'toposort'], entry_points = { 'console_scripts': [ 'crater = crater.crater:main', ] } )
Python
0
@@ -107,9 +107,9 @@ ='0. -5 +6 ',%0A%0A
897c034754d4a1b4dc8e2e311109642dd27811ca
version bump;
setup.py
setup.py
import re from setuptools import setup, find_packages ''' References: https://python-packaging-user-guide.readthedocs.org/en/latest/ https://docs.python.org/3.5/distributing/index.html#distributing-index https://github.com/jgehrcke/python-cmdline-bootstrap http://www.pyinstaller.org/ Installation Packages: pip install wheel pip install twine Build Distributions: python setup.py sdist --format=gztar,zip pip wheel --no-index --no-deps --wheel-dir dist dist/jsonmodel-2.6.tar.gz Upload Distributions to PyPi: twine register dist/* twine upload dist/[module-version]* Installation: pip install [module] python setup.py develop # for local on-the-fly file updates python setup.py install # when possessing distribution files Uninstall: pip uninstall [module] python setup.py develop --uninstall # for removing symbolic link # remove command line tool in ../Python/Python35-32/Scripts/ CLI Installation: command = 'name of command' module = 'name of module' entry_points = { "console_scripts": ['%s = %s.cli:cli' % (command, module)] }, System Installation: # http://www.pyinstaller.org/ Old Methods: python setup.py sdist --format=gztar,zip bdist_wheel # Old wheel production python setup.py sdist bdist_wheel upload # for PyPi pip wheel --no-index --no-deps --wheel-dir dist dist/*.tar.gz ''' config_file = open('jsonmodel/__init__.py').read() version = re.search("^__version__\s*=\s*'(.*)'", config_file, re.M).group(1) license_terms = re.search("^__license__\s*=\s*'(.*)'", config_file, re.M).group(1) # command = re.search("^__command__\s*=\s*'(.*)'", config_file, re.M).group(1) module = re.search("^__module__\s*=\s*'(.*)'", config_file, re.M).group(1) author = re.search("^__author__\s*=\s*'(.*)'", config_file, re.M).group(1) email = re.search("^__email__\s*=\s*'(.*)'", config_file, re.M).group(1) url = re.search("^__url__\s*=\s*'(.*)'", config_file, re.M).group(1) # author_list = re.search("^__authors__\s*=\s*'(.*)'", config_file, re.M).group(1) setup( name=module, version=version, author=author, author_email=author, maintainer_email=email, url=url, include_package_data=True, # Checks MANIFEST.in for explicit rules packages=find_packages(), # exclude=['cred','keys','docs','tests','models','notes'] Needed for bdist license=license_terms, description="A Collection of Methods for Validating JSON Structured Data", long_description=open('README.rst').read(), install_requires=[], classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python', 'Programming Language :: Python :: 3.5' ] )
Python
0
@@ -471,9 +471,9 @@ l-2. -6 +7 .tar
a6f1ea90cde8282075b3dedda9162da4ad731792
update authors
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import find_packages, setup package_name = "culqi" package_path = os.path.abspath(os.path.dirname(__file__)) repositorty_url = "https://github.com/culqi/culqi" long_description_file_path = os.path.join(package_path, "README.md") long_description = "" try: with open(long_description_file_path) as f: long_description = f.read() except IOError: pass setup( name=package_name, packages=find_packages(exclude=[".*", "docs", "scripts", "tests*", "legacy",]), include_package_data=True, version=__import__("culqi").__version__, description="""Biblioteca de Culqi en Python""", long_description=long_description, long_description_content_type="text/markdown", author="Willy Aguirre - Culqi Team", author_email="willy.aguirre@culqi.com", zip_safe=False, keywords=["Api Client", "Payment Integration", "Culqi", "Python 3", "Python 2",], classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Topic :: Software Development :: Libraries :: Python Modules", ], url=repositorty_url, download_url="%(url)s/-/archive/%(version)s/%(package)s-%(version)s.tar.gz" % { "url": repositorty_url, "version": __import__("culqi").__version__, "package": package_name, }, requires=["requests",], install_requires=["requests",], )
Python
0
@@ -797,21 +797,40 @@ irre - - Culqi Team +, Joel Ibaceta, Martin Josemar%C3%ADa %22,%0A
a53e1a56460f197ae11a078f036d2a2ac9342fc3
Bump to v0.11.1
setup.py
setup.py
from setuptools import setup, find_packages PACKAGES_DATA = {'esios': ['data/*.xsd']} setup( name='esios', version='0.11.0', packages=find_packages(), url='https://github.com/gisce/esios', license='MIT', install_requires=['libsaas'], author='GISCE-TI, S.L.', author_email='devel@gisce.net', description='Interact with e.sios API', package_data=PACKAGES_DATA, )
Python
0
@@ -124,17 +124,17 @@ n='0.11. -0 +1 ',%0A p
8aba69624d0719a9912302c492e05d1988bd1c31
Add licensing info to setup.py
setup.py
setup.py
from distutils.core import setup setup( name='flickrsaver', version='0.1', description='A screensaver for Flickr enthusiasts', author='Johannes H. Jensen', author_email='joh@pseudoberries.com', url='http://github.com/joh/Flickrsaver', requires=[ 'clutter (>=1.0.3)', 'flickrapi' ], # TODO: Absolute system paths like this should be avoided, but # unfortunately gnome-screensaver seems to only allow screensavers # which reside in a list of hard-coded system directories... data_files=[('/usr/lib/xscreensaver', ['flickrsaver.py']), ('share/applications/screensavers', ['flickrsaver.desktop'])] )
Python
0
@@ -133,16 +133,80 @@ iasts',%0A + url='http://github.com/joh/Flickrsaver',%0A license='BSD',%0A auth @@ -280,48 +280,8 @@ -url='http://github.com/joh/Flickrsaver', %0A
784721e01dec512a60cdb2b68caa227e39b3a9fb
Check cython version.
setup.py
setup.py
#!/usr/bin/env python import glob import os import sys from distutils.core import setup, Extension from distutils.sysconfig import get_python_lib try: from Cython.Distutils import build_ext except: build_ext = None import numpy # deal with required data #for the time being there is no doc directory FISX_DATA_DIR = os.getenv("FISX_DATA_DIR") FISX_DOC_DIR = os.getenv("FISX_DOC_DIR") if FISX_DATA_DIR is None: FISX_DATA_DIR = os.path.join('fisx', 'fisx_data') if FISX_DOC_DIR is None: FISX_DOC_DIR = os.path.join('fisx', 'fisx_data') def getFisxVersion(): cppDir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "src") content = open(os.path.join(cppDir, "fisx_version.h"), "r").readlines() for line in content: if "FISX_VERSION_STR" in line: version = line.split("FISX_VERSION_STR")[-1].replace("\n","") version = version.replace(" ","") return version[1:-1] __version__ = getFisxVersion() print("fisx X-Ray Fluorescence Toolkit %s\n" % __version__) from distutils.command.build_py import build_py class smart_build_py(build_py): def run (self): toReturn = build_py.run(self) global FISX_DATA_DIR global FISX_DOC_DIR global INSTALL_DIR defaultDataPath = os.path.join('fisx', 'fisx_data') defaultDocPath = os.path.join('fisx', 'fisx_data') if (FISX_DATA_DIR == defaultDataPath) or\ (FISX_DOC_DIR == defaultDocPath): #default, just make sure the complete path is there install_cmd = self.get_finalized_command('install') INSTALL_DIR = getattr(install_cmd, 'install_lib') #packager should have given the complete path #in other cases if FISX_DATA_DIR == defaultDataPath: FISX_DATA_DIR = os.path.join(INSTALL_DIR, FISX_DATA_DIR) if FISX_DOC_DIR == defaultDocPath: #default, just make sure the complete path is there FISX_DOC_DIR = os.path.join(INSTALL_DIR, FISX_DOC_DIR) target = os.path.join(self.build_lib, "fisx", "DataDir.py") fid = open(target,'r') content = fid.readlines() fid.close() fid = open(target,'w') for line in content: lineToBeWritten = line if lineToBeWritten.startswith("FISX_DATA_DIR"): lineToBeWritten = "FISX_DATA_DIR = r'%s'\n" % FISX_DATA_DIR if line.startswith("FISX_DOC_DIR"): lineToBeWritten = "FISX_DOC_DIR = r'%s'\n" % FISX_DOC_DIR fid.write(lineToBeWritten) fid.close() return toReturn from distutils.command.install_data import install_data class smart_install_data(install_data): def run(self): global INSTALL_DIR global FISX_DATA_DIR global FISX_DOC_DIR #need to change self.install_dir to the library dir install_cmd = self.get_finalized_command('install') self.install_dir = getattr(install_cmd, 'install_lib') INSTALL_DIR = self.install_dir print("fisx to be installed in %s" % self.install_dir) return install_data.run(self) topLevel = os.path.dirname(os.path.abspath(__file__)) fileList = glob.glob(os.path.join(topLevel, "fisx_data", "*.dat")) fileList.append(os.path.join(topLevel, "changelog.txt")) fileList.append(os.path.join(topLevel, "LICENSE")) fileList.append(os.path.join(topLevel, "README.md")) fileList.append(os.path.join(topLevel, "README")) fileList.append(os.path.join(topLevel, "TODO")) data_files = [(FISX_DATA_DIR, fileList)] # actual build stuff FORCE = False cython_dir = os.path.join(os.getcwd(), "python", "cython") if build_ext: #make sure everything is totally clean? fileList = glob.glob(os.path.join(cython_dir, "*.cpp")) fileList += glob.glob(os.path.join(cython_dir, "*.h")) if FORCE: for fname in fileList: if os.path.exists(fname): os.remove(fname) #this does not work: #src = glob.glob(os.path.join(cython_dir, "*pyx")) multiple_pyx = os.path.join(cython_dir, "_fisx.pyx") if os.path.exists(multiple_pyx): try: os.remove(multiple_pyx) except: print("WARNING: Could not delete file. Assuming up-to-date.") if not os.path.exists(multiple_pyx): pyx = glob.glob(os.path.join(cython_dir, "*pyx")) f = open(multiple_pyx, 'wb') for fname in pyx: inFile = open(fname, 'rb') lines = inFile.readlines() inFile.close() for line in lines: f.write(line) f.close() src = [multiple_pyx] else: src = glob.glob(os.path.join(cython_dir,'*.cpp')) src += glob.glob(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'src', 'fisx_*.cpp')) include_dirs = [numpy.get_include(), os.path.join(os.path.dirname(os.path.abspath(__file__)), "src")] if sys.platform == 'win32': extra_compile_args = ['/EHsc'] extra_link_args = [] else: extra_compile_args = [] extra_link_args = [] def buildExtension(): module = Extension(name="fisx._fisx", sources=src, include_dirs=include_dirs, extra_compile_args=extra_compile_args, extra_link_args=extra_link_args, language="c++", ) return module ext_modules = [buildExtension()] cmdclass = {'install_data':smart_install_data, 'build_py':smart_build_py, 'build_ext': build_ext, } description = "Quantitative X-Ray Fluorescence Analysis Support Library" long_description = """ Tools to evaluate the expected X-ray fluorescence measured when a sample is excitated by an X-ray beam. Secondary and tertiary excitation effects taken into account. """ # tell distutils where to find the packages package_dir = {"":"python"} packages = ['fisx', 'fisx.tests'] setup( name='fisx', version=__version__, author="V. Armando Sole", author_email="sole@esrf.fr", description=description, long_description=long_description, license="MIT", url="https://github.com/vasole/fisx", package_dir=package_dir, packages=packages, ext_modules=ext_modules, data_files=data_files, cmdclass=cmdclass, )
Python
0
@@ -187,16 +187,114 @@ ild_ext%0A + from Cython.Compiler.Version import version%0A if version %3C %220.17%22:%0A build_ext = None%0A except:%0A
df7e7b7a220dcfefc4d31fc1f01fb1518023c425
Bump version
setup.py
setup.py
import os import unittest from setuptools import setup, find_packages PATH = os.path.join(os.path.dirname(__file__), 'README.md') try: import pypandoc README = pypandoc.convert(PATH, 'rst') except ImportError: README = open(PATH).read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) def test_suite(): test_loader = unittest.TestLoader() test_suite = test_loader.discover('tests', pattern='test_*.py') return test_suite setup( name='SurveyGizmo', version='1.2.0', description='A Python Wrapper for SurveyGizmo\'s restful API service.', long_description=README, author='Ryan P Kilby', author_email='rpkilby@ncsu.edu', keywords="Survey Gizmo SurveyGizmo surveygizmo", url='https://github.com/ITNG/SurveyGizmo/', packages=find_packages(), install_requires=['requests'], test_suite='setup.test_suite', license='BSD License', classifiers=( 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Software Development :: Libraries :: Python Modules', ), )
Python
0
@@ -528,9 +528,9 @@ 1.2. -0 +1 ',%0A
575f824cd0dd43d6c2adae511186cc03303a994b
version 0.2.4
setup.py
setup.py
from setuptools import setup VERSION="0.2.3" setup( name="twitter-monitor", packages=['twitter_monitor'], version=VERSION, download_url='https://github.com/michaelbrooks/twitter-monitor/archive/v%s.zip' % VERSION, url="https://github.com/michaelbrooks/twitter-monitor", author="Michael Brooks", author_email="mjbrooks@uw.edu", description=("A Twitter streaming library built on tweepy " "that enables dynamic term tracking"), long_description=open('README.md').read(), license="MIT", keywords=["twitter", "streaming", "tweepy", "filter"], classifiers=[ "Development Status :: 3 - Alpha", "Topic :: Utilities", "License :: OSI Approved :: MIT License", ], install_requires=[ "tweepy >= 2.2" ], test_suite="tests", tests_require=["mock == 1.0.1"], scripts=['scripts/stream_tweets'], )
Python
0.000003
@@ -36,17 +36,17 @@ ON=%220.2. -3 +4 %22%0A%0Asetup
d8ec6ed2e9100f3e9550fda5078e0a6c0f6d144d
bump version to 0.3 + added github url
setup.py
setup.py
from setuptools import setup, find_packages setup(name='conman', version='0.2', license='MIT', author='Gigi Sayfan', author_email='the.gigi@gmail.com', description='Manage configuration files', packages=find_packages(exclude=['tests']), long_description=open('README.md').read(), zip_safe=False, setup_requires=['nose>=1.0'], test_suite='nose.collector')
Python
0
@@ -80,9 +80,57 @@ ='0. -2 +3',%0A url='https://github.com/the-gigi/conman ',%0A
8f696555df932ef9e87edf108c7ed10904a8b256
Add *ini files in migrations to package data
setup.py
setup.py
#!/usr/bin/env python # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. try: from setuptools import setup except ImportError: try: from distribute_setup import use_setuptools use_setuptools() from setuptools import setup except ImportError: raise RuntimeError( "python setuptools is required to build gstack") VERSION = '0.1.0' import os def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read().strip() setup( name='gstack', version=VERSION, description='A GCE interface to Apache CloudStack', author='Ian Duffy, Darren Brogan, Sebastien Goasguen', author_email='ian@ianduffy.ie, brogand93@darrenbrogan.ie, runseb@gmail.com', long_description='A Google Compute Engine compliant interface to the Apache CloudStack API', url='https://github.com/NOPping/gstack', platforms=('Any'), license='LICENSE.txt', package_data={'': ['LICENSE.txt', 'data/*'], 'migrations': ['versions/*', '*.mako']}, packages=[ 'gstack', 'gstack.controllers', 'gstack.models', 'gstack.services', 'gstack.data', 'pyoauth2', 'migrations'], include_package_data=True, install_requires=[ 'requests==0.14', 'pycrypto==2.6', 'pyopenssl', 'Flask-SQLAlchemy', 'flask', 'alembic' ], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Console', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Utilities', 'Programming Language :: Python :: 2.7', ], zip_safe=False, entry_points=""" [console_scripts] gstack = gstack.__main__:main gstack-configure = gstack.configure:main """, )
Python
0
@@ -1763,16 +1763,25 @@ '*.mako' +, '*.ini' %5D%7D,%0A