<commit_before>""" Just for fun """

import pandas as pd
import matplotlib.pyplot as plt
from location import *

path = "C:\\Users\\t-yeresh\\data\\storks2012\\storks_2012_GPS_sparse.csv"

# Load
animal_data = pd.DataFrame.from_csv(path, header=None, parse_dates=[0, 1])
animal_data.columns = ["date", "time", "gps_lat", "gps_long"]

# select animal and claen
animal_data = animal_data.loc[animal_data.index == 17870582]
animal_data = animal_data[animal_data.gps_lat != 0]
animal_data.reset_index(inplace=True)

#sort  by timestamp
animal_data['stamp'] = animal_data.apply(lambda row: row.date + pd.Timedelta(row.time), axis=1)
animal_data.sort("stamp", inplace=True)

params = {
        'projection':'merc',
        'lat_0':animal_data.gps_lat.mean(),
        'lon_0':animal_data.gps_long.mean(),
        'resolution':'h',
        'area_thresh':0.1,
        'llcrnrlon':animal_data.gps_long.min()-10,
        'llcrnrlat':animal_data.gps_lat.min()-10,
        'urcrnrlon':animal_data.gps_long.max()+10,
        'urcrnrlat':animal_data.gps_lat.max()+10
}

plt.figure()
map = MyBasemap(**params)

map.drawcoastlines()
map.fillcontinents(color = 'coral')
map.drawmapboundary()
map.drawcountries()
map.printcountries()

# cluster
clst = trajectory_cluster(compute_steps(animal_data), "speed")["cluster"].values
cols = np.array(list("krgb"))[clst]

# plot
x, y = map(animal_data.gps_long.values, animal_data.gps_lat.values)
for i in range(len(x)-2):
    map.plot([x[i], x[i+1]], [y[i], y[i+1]], color=cols[i])

plt.show()

<commit_msg>IL plot 1<commit_after>""" Just for fun """

import pandas as pd
import matplotlib.pyplot as plt
from location import *

path = "C:\\Users\\t-yeresh\\data\\acc_location\\StorksIL2013.csv"

# Load
animal_data = pd.DataFrame.from_csv(path, header=None, parse_dates=[2])
animal_data.columns = ["bird_id", "date", "time", "gps_lat", "gps_long"]

# select animal and claen
animal_data = animal_data.loc[animal_data.bird_id == 3180]
#animal_data = animal_data[animal_data.gps_lat != 0]
#animal_data.reset_index(inplace=True)

#sort  by timestamp
animal_data['stamp'] = animal_data.apply(lambda row: row.date + pd.Timedelta(row.time), axis=1)
animal_data.sort("stamp", inplace=True)

params = {
        'projection':'merc',
        'lat_0':animal_data.gps_lat.mean(),
        'lon_0':animal_data.gps_long.mean(),
        'resolution':'h',
        'area_thresh':0.1,
        'llcrnrlon':animal_data.gps_long.min()-10,
        'llcrnrlat':animal_data.gps_lat.min()-10,
        'urcrnrlon':animal_data.gps_long.max()+10,
        'urcrnrlat':animal_data.gps_lat.max()+10
}

plt.figure()
map = MyBasemap(**params)

map.drawcoastlines()
map.fillcontinents(color = 'coral')
map.drawmapboundary()
map.drawcountries()
map.printcountries()

# cluster
clst = trajectory_cluster(compute_steps(animal_data), "speed")["cluster"].values
cols = np.array(list("brgb"))[clst]

# plot
x, y = map(animal_data.gps_long.values, animal_data.gps_lat.values)
map.plot(x,y, "xk")
for i in range(len(x)-2):
    map.plot([x[i], x[i+1]], [y[i], y[i+1]], color=cols[i])

plt.show()

<|endoftext|>


<commit_before># Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""This script is used to synthesize generated parts of this library."""

import logging
from pathlib import Path
import subprocess

import synthtool as s
from synthtool.languages import php
from synthtool import _tracked_paths

logging.basicConfig(level=logging.DEBUG)

src = Path(f"../{php.STAGING_DIR}/ServiceUsage").resolve()
dest = Path().resolve()

# Added so that we can pass copy_excludes in the owlbot_main() call
_tracked_paths.add(src)

php.owlbot_main(
    src=src,
    dest=dest,
    copy_excludes=[
        src / "**/*_*.php"
    ]
)

# remove class_alias code
s.replace(
    "src/V*/*/*.php",
    r"^// Adding a class alias for backwards compatibility with the previous class name.$"
    + "\n"
    + r"^class_alias\(.*\);$"
    + "\n",
    '')

# document and utilize apiEndpoint instead of serviceAddress
s.replace(
    "**/Gapic/*GapicClient.php",
    r"'serviceAddress' =>",
    r"'apiEndpoint' =>")
s.replace(
    "**/Gapic/*GapicClient.php",
    r"@type string \$serviceAddress\n\s+\*\s+The address",
    r"""@type string $serviceAddress
     *           **Deprecated**. This option will be removed in a future major release. Please
     *           utilize the `$apiEndpoint` option instead.
     *     @type string $apiEndpoint
     *           The address""")
s.replace(
    "**/Gapic/*GapicClient.php",
    r"\$transportConfig, and any \$serviceAddress",
    r"$transportConfig, and any `$apiEndpoint`")

### [START] protoc backwards compatibility fixes

# roll back to private properties.
s.replace(
    "src/**/V*/**/*.php",
    r"Generated from protobuf field ([^\n]{0,})\n\s{5}\*/\n\s{4}protected \$",
    r"""Generated from protobuf field \1
     */
    private $""")

# prevent proto messages from being marked final
s.replace(
    "src/**/V*/**/*.php",
    r"final class",
    r"class")

# Replace "Unwrapped" with "Value" for method names.
s.replace(
    "src/**/V*/**/*.php",
    r"public function ([s|g]\w{3,})Unwrapped",
    r"public function \1Value"
)

### [END] protoc backwards compatibility fixes

# fix relative cloud.google.com links
s.replace(
    "src/**/V*/**/*.php",
    r"(.{0,})\]\((/.{0,})\)",
    r"\1](https://cloud.google.com\2)"
)
<commit_msg>fix: owlbot copy excludes (#4987)<commit_after># Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""This script is used to synthesize generated parts of this library."""

import logging
from pathlib import Path
import subprocess

import synthtool as s
from synthtool.languages import php
from synthtool import _tracked_paths

logging.basicConfig(level=logging.DEBUG)

src = Path(f"../{php.STAGING_DIR}/ServiceUsage").resolve()
dest = Path().resolve()

# Added so that we can pass copy_excludes in the owlbot_main() call
_tracked_paths.add(src)

php.owlbot_main(
    src=src,
    dest=dest,
    copy_excludes=[
        src / "**/[A-Z]*_*.php"
    ]
)

# remove class_alias code
s.replace(
    "src/V*/*/*.php",
    r"^// Adding a class alias for backwards compatibility with the previous class name.$"
    + "\n"
    + r"^class_alias\(.*\);$"
    + "\n",
    '')

# document and utilize apiEndpoint instead of serviceAddress
s.replace(
    "**/Gapic/*GapicClient.php",
    r"'serviceAddress' =>",
    r"'apiEndpoint' =>")
s.replace(
    "**/Gapic/*GapicClient.php",
    r"@type string \$serviceAddress\n\s+\*\s+The address",
    r"""@type string $serviceAddress
     *           **Deprecated**. This option will be removed in a future major release. Please
     *           utilize the `$apiEndpoint` option instead.
     *     @type string $apiEndpoint
     *           The address""")
s.replace(
    "**/Gapic/*GapicClient.php",
    r"\$transportConfig, and any \$serviceAddress",
    r"$transportConfig, and any `$apiEndpoint`")

### [START] protoc backwards compatibility fixes

# roll back to private properties.
s.replace(
    "src/**/V*/**/*.php",
    r"Generated from protobuf field ([^\n]{0,})\n\s{5}\*/\n\s{4}protected \$",
    r"""Generated from protobuf field \1
     */
    private $""")

# prevent proto messages from being marked final
s.replace(
    "src/**/V*/**/*.php",
    r"final class",
    r"class")

# Replace "Unwrapped" with "Value" for method names.
s.replace(
    "src/**/V*/**/*.php",
    r"public function ([s|g]\w{3,})Unwrapped",
    r"public function \1Value"
)

### [END] protoc backwards compatibility fixes

# fix relative cloud.google.com links
s.replace(
    "src/**/V*/**/*.php",
    r"(.{0,})\]\((/.{0,})\)",
    r"\1](https://cloud.google.com\2)"
)
<|endoftext|>


<commit_before># perl.py - sublimelint package for checking perl files

import subprocess, os
import sublime

def check(codeString, filename):
	info = None
	if os.name == 'nt':
		info = subprocess.STARTUPINFO()
		info.dwFlags |= subprocess.STARTF_USESHOWWINDOW
		info.wShowWindow = subprocess.SW_HIDE

	process = subprocess.Popen(('perl', '-c'),
								stdin=subprocess.PIPE,
								stdout=subprocess.PIPE,
								stderr=subprocess.STDOUT,
								startupinfo=info)
	result = process.communicate(codeString)[0]

	return result

# start sublimelint perl plugin
import re
__all__ = ['run', 'language']
language = 'Perl'
description =\
'''* view.run_command("lint", "Perl")
        Turns background linter off and runs the default Perl linter
        (perl - c, assumed to be on $PATH) on current view.
'''

def run(code, view, filename='untitled'):
	errors = check(code, filename)

	lines = set()
	underline = [] # leave this here for compatibility with original plugin

	errorMessages = {}
	def addMessage(lineno, message):
		message = str(message)
		if lineno in errorMessages:
			errorMessages[lineno].append(message)
		else:
			errorMessages[lineno] = [message]

	def underlineRange(lineno, position, length=1):
		line = view.full_line(view.text_point(lineno, 0))
		position += line.begin()

		for i in xrange(length):
			underline.append(sublime.Region(position + i))

	def underlineRegex(lineno, regex, wordmatch=None, linematch=None):
		lines.add(lineno)
		offset = 0

		line = view.full_line(view.text_point(lineno, 0))
		lineText = view.substr(line)
		if linematch:
			match = re.match(linematch, lineText)
			if match:
				lineText = match.group('match')
				offset = match.start('match')
			else:
				return

		iters = re.finditer(regex, lineText)
		results = [(result.start('underline'), result.end('underline')) for result in iters if
											not wordmatch or result.group('underline') == wordmatch]

		for start, end in results:
			underlineRange(lineno, start+offset, end-start)

	for line in errors.splitlines():
		match = re.match(r'(?P<error>.+?) at .+? line (?P<line>\d+)(, near "(?P<near>.+?)")?', line)

		if match:
			error, line = match.group('error'), match.group('line')
			lineno = int(line) - 1

			near = match.group('near')
			if near:
				error = '%s, near "%s"' % (error, near)
				underlineRegex(lineno, '(?P<underline>%s)' % near)

			lines.add(lineno)
			addMessage(lineno, error)

	return underline, lines, errorMessages, True
<commit_msg>Don't return unused<commit_after># perl.py - sublimelint package for checking perl files

import subprocess, os
import sublime

def check(codeString, filename):
	info = None
	if os.name == 'nt':
		info = subprocess.STARTUPINFO()
		info.dwFlags |= subprocess.STARTF_USESHOWWINDOW
		info.wShowWindow = subprocess.SW_HIDE

	process = subprocess.Popen(('perl', '-c'),
								stdin=subprocess.PIPE,
								stdout=subprocess.PIPE,
								stderr=subprocess.STDOUT,
								startupinfo=info)
	result = process.communicate(codeString)[0]

	return result

# start sublimelint perl plugin
import re
__all__ = ['run', 'language']
language = 'Perl'
description =\
'''* view.run_command("lint", "Perl")
        Turns background linter off and runs the default Perl linter
        (perl - c, assumed to be on $PATH) on current view.
'''

def run(code, view, filename='untitled'):
	errors = check(code, filename)

	lines = set()
	underline = [] # leave this here for compatibility with original plugin

	errorMessages = {}
	def addMessage(lineno, message):
		message = str(message)
		if lineno in errorMessages:
			errorMessages[lineno].append(message)
		else:
			errorMessages[lineno] = [message]

	def underlineRange(lineno, position, length=1):
		line = view.full_line(view.text_point(lineno, 0))
		position += line.begin()

		for i in xrange(length):
			underline.append(sublime.Region(position + i))

	def underlineRegex(lineno, regex, wordmatch=None, linematch=None):
		lines.add(lineno)
		offset = 0

		line = view.full_line(view.text_point(lineno, 0))
		lineText = view.substr(line)
		if linematch:
			match = re.match(linematch, lineText)
			if match:
				lineText = match.group('match')
				offset = match.start('match')
			else:
				return

		iters = re.finditer(regex, lineText)
		results = [(result.start('underline'), result.end('underline')) for result in iters if
											not wordmatch or result.group('underline') == wordmatch]

		for start, end in results:
			underlineRange(lineno, start+offset, end-start)

	for line in errors.splitlines():
		match = re.match(r'(?P<error>.+?) at .+? line (?P<line>\d+)(, near "(?P<near>.+?)")?', line)

		if match:
			error, line = match.group('error'), match.group('line')
			lineno = int(line) - 1

			near = match.group('near')
			if near:
				error = '%s, near "%s"' % (error, near)
				underlineRegex(lineno, '(?P<underline>%s)' % near)

			lines.add(lineno)
			addMessage(lineno, error)

	return underline, lines, errorMessages
<|endoftext|>


<commit_before>from enum import Enum
from color import Color
from observable import Observable

ACCELERATION = 4
FRICTION = 0.25

class Direction(Enum):
    LEFT = 0
    RIGHT = 1

class Paddle(Observable):
    def __init__(self, max_x):
        super().__init__()
        self.width = max_x // 5
        self.max_x = max_x - self.width
        self.x = max_x // 2 - self.width // 2
        self.y = 0
        self.direction = None
        self.no_move = True
        self.velocity = 0
        self.move_has_changed = False

    def occupies_cell(self, x, y):
        return self.y == y and x <= self.x + self.width and x >= self.x

    def hit(self):
        self.emit('hit')

    def move(self, direction):
        if self.direction != direction:
            self.move_has_changed = True
        self.direction = direction
        self.no_move = False

    def no_movement(self):
        self.move_has_changed = self.no_move != True
        self.no_move = True

    def update(self, dt):
        if self.no_move:
            self.velocity -= FRICTION * dt
            self.velocity = self.velocity if self.velocity > 0 else 0
        elif self.move_has_changed:
            self.velocity = 0.25
        else:
            self.velocity += self.velocity * ACCELERATION * dt

        if self.direction == Direction.LEFT:
            self.x -= self.velocity
        elif self.direction == Direction.RIGHT:
            self.x += self.velocity

        self.move_has_changed = False
        self.guard_limits()

    def guard_limits(self):
        self.x = self.x if self.x > 0 else 0
        self.x = self.x if self.x <= self.max_x else self.max_x

    def draw(self, graphics):
        paddle_icon = '=' * self.width
        graphics.draw(self.x, self.y, paddle_icon, Color.YELLOW)
<commit_msg>fix problem with paddle not moving after it slows to a stop. still not great handling but getting there...<commit_after>from enum import Enum
from color import Color
from observable import Observable

ACCELERATION = 4
FRICTION = 0.25

class Direction(Enum):
    LEFT = 0
    RIGHT = 1

class Paddle(Observable):
    def __init__(self, max_x):
        super().__init__()
        self.width = max_x // 5
        self.max_x = max_x - self.width
        self.x = max_x // 2 - self.width // 2
        self.y = 0
        self.direction = None
        self.no_move = True
        self.velocity = 0
        self.move_has_changed = False

    def occupies_cell(self, x, y):
        return self.y == y and x <= self.x + self.width and x >= self.x

    def hit(self):
        self.emit('hit')

    def move(self, direction):
        self.move_has_changed = self.direction != direction
        self.direction = direction
        self.no_move = False

    def no_movement(self):
        self.move_has_changed = not self.no_move
        self.no_move = True

    def update(self, dt):
        if self.no_move:
            self.velocity -= FRICTION * dt
            self.velocity = self.velocity if self.velocity > 0 else 0
        elif self.move_has_changed or self.velocity == 0:
            self.velocity = 0.25
        else:
            self.velocity += self.velocity * ACCELERATION * dt

        if self.direction == Direction.LEFT:
            self.x -= self.velocity
        elif self.direction == Direction.RIGHT:
            self.x += self.velocity

        self.move_has_changed = False
        self.guard_limits()

    def guard_limits(self):
        self.x = self.x if self.x > 0 else 0
        self.x = self.x if self.x <= self.max_x else self.max_x

    def draw(self, graphics):
        paddle_icon = '=' * self.width
        graphics.draw(self.x, self.y, paddle_icon, Color.YELLOW)
<|endoftext|>


<commit_before>#!/usr/bin/env python

# MIT License
#
# Copyright (c) 2017 Evan Liu (hmisty)
#
# 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.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#

from distutils.core import setup

VERSION = "0.0.1"
URLBASE = "https://github.com/hmisty/bson-rpc/"
URLMAP = {
		"daily": "tarball/master",
		"1.1": "tarball/1.1",
		}

if __name__ == "__main__":
	setup(
			name='bson-rpc',
			version=VERSION,
			description='a lightweight, high performance, multilingual RPC library',
			author='Evan Liu (hmisty)',
			author_email='hmisty@gmail.com',
			url=URLBASE,
			download_url='/'.join([URLBASE, URLMAP.get(VERSION, URLMAP['daily'])]),
			packages=[
				'bson-rpc'
				],
			scripts=[],
			license= 'MIT',
			keywords = ['BSON', 'bson-rpc', 'rpc'],
			classifiers = [
				'Development Status :: 4 - Beta',
				'Environment :: Web Environment',
				'Framework :: Gevent',
				'Intended Audience :: Developers',
				'License :: OSI Approved :: MIT License',
				'Operating System :: OS Independent',
				'Programming Language :: Python :: 2.6',
				'Programming Language :: Python :: 2.7',
				'Topic :: Software Development :: Libraries :: Python Modules',
				]
			)
<commit_msg>package == dir == bson_rpc<commit_after>#!/usr/bin/env python

# MIT License
#
# Copyright (c) 2017 Evan Liu (hmisty)
#
# 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.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#

from distutils.core import setup

VERSION = "0.0.1"
URLBASE = "https://github.com/hmisty/bson-rpc/"
URLMAP = {
		"daily": "tarball/master",
		"1.1": "tarball/1.1",
		}

if __name__ == "__main__":
	setup(
			name='bson-rpc',
			version=VERSION,
			description='a lightweight, high performance, multilingual RPC library',
			author='Evan Liu (hmisty)',
			author_email='hmisty@gmail.com',
			url=URLBASE,
			download_url='/'.join([URLBASE, URLMAP.get(VERSION, URLMAP['daily'])]),
			packages=[
				'bson_rpc'
				],
			scripts=[],
			license= 'MIT',
			keywords = ['BSON', 'bson-rpc', 'rpc'],
			classifiers = [
				'Development Status :: 4 - Beta',
				'Environment :: Web Environment',
				'Framework :: Gevent',
				'Intended Audience :: Developers',
				'License :: OSI Approved :: MIT License',
				'Operating System :: OS Independent',
				'Programming Language :: Python :: 2.6',
				'Programming Language :: Python :: 2.7',
				'Topic :: Software Development :: Libraries :: Python Modules',
				]
			)
<|endoftext|>


<commit_before>from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy as np

ext_modules = [Extension("pylibcgns",
                     ["pylibcgns.pyx"],
                     language='c',
                     libraries=["cgns", "hdf5"],
                     include_dirs=[np.get_include()],
                     )]

setup(
  name = 'pylibcgns',
  cmdclass = {'build_ext': build_ext},
  version='0.0.3',

  author='Aleksandrov Sergey',
  author_email='splavgm@gmail.com',

  license='MIT',

  py_modules=["pylibcgns"],

  ext_modules = ext_modules
)
<commit_msg>fix windows includes<commit_after>from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy as np

import platform

include_dirs = [np.get_include()]
library_dirs = []
if platform.system() == "Windows":
    library_dirs += [r"C:\Program Files\cgns_15\lib"]
    include_dirs += [r"C:\Program Files\cgns_15\include"]

ext_modules = [Extension("pycgns",
                     ["pycgns.pyx"],
                     language='c',
                     libraries=["cgns", "hdf5"],
                     library_dirs=library_dirs,
                     include_dirs=include_dirs,
                     )]

setup(
  name = 'pylibcgns',
  cmdclass = {'build_ext': build_ext},
  version='0.0.4',

  author='Aleksandrov Sergey',
  author_email='splavgm@gmail.com',

  license='MIT',

  py_modules=["pylibcgns"],

  ext_modules = ext_modules
)
<|endoftext|>


<commit_before>import os
from setuptools import setup

README = """
See the README on `GitHub
<https://github.com/uw-it-aca/myuw>`_.
"""

# The VERSION file is created by travis-ci, based on the tag name
version_path = 'myuw/VERSION'
VERSION = open(os.path.join(os.path.dirname(__file__), version_path)).read()
VERSION = VERSION.replace("\n", "")

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

url = "https://github.com/uw-it-aca/myuw"
setup(
    name='MyUW',
    version=VERSION,
    packages=['myuw'],
    author="UW-IT AXDD",
    author_email="aca-it@uw.edu",
    include_package_data=True,
    install_requires=[
        'Django~=2.2.24',
        'ordereddict',
        'beautifulsoup4',
        'urllib3',
        'UW-Django-SAML2~=1.5.5',
        'django-aws-message~=1.5.3',
        'UW-RestClients-Core~=1.3.5',
        'UW-RestClients-Bookstore~=1.1',
        'UW-RestClients-Canvas~=1.1.14',
        'UW-RestClients-CoDa~=1.0',
        'UW-RestClients-Grad~=1.1',
        'UW-RestClients-GradePage~=1.2',
        'UW-RestClients-GWS~=2.3.2',
        'UW-RestClients-HFS~=1.0.4',
        'UW-RestClients-IASystem~=1.1',
        'UW-RestClients-Libraries~=1.3',
        'UW-RestClients-Mailman~=1.0',
        'UW-RestClients-MyPlan~=1.0.1',
        'UW-RestClients-PWS~=2.1.4',
        'UW-RestClients-SWS==2.3.14',
        'UW-RestClients-Sdbmyuw~=1.0',
        'UW-RestClients-Trumba~=1.3.6',
        'UW-RestClients-UPass~=1.0.1',
        'UW-RestClients-UWNetID~=1.0.7',
        'django-userservice~=3.1.3',
        'UW-RestClients-Django-Utils~=2.3.2',
        'Uw-Django-Oidc>=0.4,<1.0',
        'Django-SupportTools~=3.5.1',
        'Django-Safe-EmailBackend~=1.2',
        'django_client_logger~=2.0',
        'UW-HX-Toolkit==2.5.3',
        'django-blti~=2.2.3',
        'memcached_clients',
        'yajl',
        'bleach',
        'pyyaml',
        'ua-parser',
        'user-agents',
        'django-user-agents',
        'django-webpack-bridge==0.1.0',
        'django-compressor',
    ],
    license='Apache License, Version 2.0',
    description=('MyUW is the portal of the University of Washington'),
    long_description=README,
    url=url,
    classifiers=[
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3.6',
    ],
)
<commit_msg>up uw-memcached-clients version<commit_after>import os
from setuptools import setup

README = """
See the README on `GitHub
<https://github.com/uw-it-aca/myuw>`_.
"""

# The VERSION file is created by travis-ci, based on the tag name
version_path = 'myuw/VERSION'
VERSION = open(os.path.join(os.path.dirname(__file__), version_path)).read()
VERSION = VERSION.replace("\n", "")

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

url = "https://github.com/uw-it-aca/myuw"
setup(
    name='MyUW',
    version=VERSION,
    packages=['myuw'],
    author="UW-IT AXDD",
    author_email="aca-it@uw.edu",
    include_package_data=True,
    install_requires=[
        'Django~=2.2.24',
        'ordereddict',
        'beautifulsoup4',
        'urllib3',
        'uw-memcached-clients~=1.0.9',
        'UW-Django-SAML2~=1.5.5',
        'django-aws-message~=1.5.3',
        'UW-RestClients-Core~=1.3.5',
        'UW-RestClients-Bookstore~=1.1',
        'UW-RestClients-Canvas~=1.1.14',
        'UW-RestClients-CoDa~=1.0',
        'UW-RestClients-Grad~=1.1',
        'UW-RestClients-GradePage~=1.2',
        'UW-RestClients-GWS~=2.3.2',
        'UW-RestClients-HFS~=1.0.4',
        'UW-RestClients-IASystem~=1.1',
        'UW-RestClients-Libraries~=1.3',
        'UW-RestClients-Mailman~=1.0',
        'UW-RestClients-MyPlan~=1.0.1',
        'UW-RestClients-PWS~=2.1.4',
        'UW-RestClients-SWS==2.3.14',
        'UW-RestClients-Sdbmyuw~=1.0',
        'UW-RestClients-Trumba~=1.3.6',
        'UW-RestClients-UPass~=1.0.1',
        'UW-RestClients-UWNetID~=1.0.7',
        'django-userservice~=3.1.3',
        'UW-RestClients-Django-Utils~=2.3.2',
        'Uw-Django-Oidc>=0.4,<1.0',
        'Django-SupportTools~=3.5.1',
        'Django-Safe-EmailBackend~=1.2',
        'django_client_logger~=2.0',
        'UW-HX-Toolkit==2.5.3',
        'django-blti~=2.2.3',
        'yajl',
        'bleach',
        'pyyaml',
        'ua-parser',
        'user-agents',
        'django-user-agents',
        'django-webpack-bridge==0.1.0',
        'django-compressor',
    ],
    license='Apache License, Version 2.0',
    description=('MyUW is the portal of the University of Washington'),
    long_description=README,
    url=url,
    classifiers=[
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3.6',
    ],
)
<|endoftext|>


<commit_before>import os
import os.path
from distutils.core import setup

version = __import__('fms').VERSION

data_files = []

data_dir = (
        'docs/examples',
        'docs/en/man',
        'docs/en/html',
        )

for directory in data_dir:
    for dirpath, dirnames, filenames in os.walk(directory):
        newpath = os.path.join('Doc',
                'fms-documentation', dirpath.split(os.sep, 1)[1])
        data_files.append([newpath,
            [os.path.join(dirpath, f) for f in filenames]])

setup(name='fms',
        version = version,
        description = 'A Financial Market Simulator',
        author = 'Jean-Charles Bagneris',
        author_email = 'jcbagneris@gmail.com',
        url = 'http://github.com/jcbagneris/fms',
        license = 'BSD',
        long_description=open('README').read(),
        packages = ['fms',
                    'fms.agents',
                    'fms.engines',
                    'fms.markets',
                    'fms.utils',
                    'fms.worlds',
                    ],
        scripts = ['startfms.py'],
        install_requires = ['PyYAML'],
        data_files = data_files,
        classifiers=[
            "Development Status :: 4 - Beta",
            "Environment :: Console",
            "Intended Audience :: Science/Research",
            "License :: OSI Approved :: BSD License",
            "Operating System :: OS Independent",
            "Programming Language :: Python :: 2",
            "Topic :: Scientific/Engineering",
        ],
        )
<commit_msg>Fix dependancy keyword in setup.py<commit_after>import os
import os.path
from distutils.core import setup

version = __import__('fms').VERSION

data_files = []

data_dir = (
        'docs/examples',
        'docs/en/man',
        'docs/en/html',
        )

for directory in data_dir:
    for dirpath, dirnames, filenames in os.walk(directory):
        newpath = os.path.join('Doc',
                'fms-documentation', dirpath.split(os.sep, 1)[1])
        data_files.append([newpath,
            [os.path.join(dirpath, f) for f in filenames]])

setup(name='fms',
        version = version,
        description = 'A Financial Market Simulator',
        author = 'Jean-Charles Bagneris',
        author_email = 'jcbagneris@gmail.com',
        url = 'http://github.com/jcbagneris/fms',
        license = 'BSD',
        long_description=open('README').read(),
        packages = ['fms',
                    'fms.agents',
                    'fms.engines',
                    'fms.markets',
                    'fms.utils',
                    'fms.worlds',
                    ],
        scripts = ['startfms.py'],
        requires = ['PyYAML'],
        data_files = data_files,
        classifiers=[
            "Development Status :: 4 - Beta",
            "Environment :: Console",
            "Intended Audience :: Science/Research",
            "License :: OSI Approved :: BSD License",
            "Operating System :: OS Independent",
            "Programming Language :: Python :: 2",
            "Topic :: Scientific/Engineering",
        ],
        )
<|endoftext|>


<commit_before># Copyright 2009 - Participatory Culture Foundation
#
# This file is part of Miro Community.
#
# Miro Community is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.
#
# Miro Community is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Miro Community.  If not, see <http://www.gnu.org/licenses/>.

import datetime
import re
import sys
import os
import urllib2

from django.conf import settings
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.core.files.base import ContentFile
from django.http import (HttpResponse, HttpResponseBadRequest,
                         HttpResponseRedirect)
from django.shortcuts import get_object_or_404, render_to_response
from django.template import RequestContext
from django.views.decorators.csrf import csrf_protect

import celery
from importlib import import_module
import simplejson

from localtv.decorators import require_site_admin, referrer_redirect
from localtv import models, tasks, util
from localtv.admin import forms

from vidscraper import bulk_import

Profile = util.get_profile_model()

VIDEO_SERVICE_TITLES = (
    re.compile(r'Uploads by (.+)'),
    re.compile(r"Vimeo / (.+)'s? uploaded videos"),
    re.compile(r'Vimeo / (.+)'),
    re.compile(r"Dailymotion - (.+)'s")
    )

@require_site_admin
@csrf_protect
def add_feed(request):
    add_form = forms.AddFeedForm(request.GET)

    if not add_form.is_valid():
        return HttpResponseBadRequest(
            add_form['feed_url'].errors.as_text())

    feed_url = add_form.cleaned_data['feed_url']
    parsed_feed = add_form.cleaned_data['parsed_feed']

    title = parsed_feed.feed.title or feed_url
    for regexp in VIDEO_SERVICE_TITLES:
        match = regexp.match(title)
        if match:
            title = match.group(1)
            break

    defaults = {
        'name': title,
        'feed_url': feed_url,
        'webpage': parsed_feed.feed.get('link', ''),
        'description': parsed_feed.feed.get('summary', ''),
        'when_submitted': datetime.datetime.now(),
        'last_updated': datetime.datetime.now(),
        'status': models.FEED_STATUS_UNAPPROVED,
        'user': request.user,
        'etag': '',
        'auto_approve': bool(request.POST.get('auto_approve', False))}

    video_count = bulk_import.video_count(feed_url, parsed_feed)

    if request.method == 'POST':
        if 'cancel' in request.POST:
            return HttpResponseRedirect(reverse('localtv_admin_manage_page'))

        form = forms.SourceForm(request.POST, instance=models.Feed(**defaults))
        if form.is_valid():
            feed, created = models.Feed.objects.get_or_create(
                feed_url=defaults['feed_url'],
                site=request.sitelocation.site,
                defaults=defaults)

            if not created:
                for key, value in defaults.items():
                    setattr(feed, key, value)

            for key, value in form.cleaned_data.items():
                setattr(feed, key, value)

            thumbnail_url = util.get_thumbnail_url(parsed_feed.feed)
            if thumbnail_url:
                try:
                    thumbnail_file = ContentFile(
                        urllib2.urlopen(
                            util.quote_unicode_url(thumbnail_url)).read())
                except IOError: # couldn't get the thumbnail
                    pass
                else:
                    feed.save_thumbnail_from_file(thumbnail_file)
            if feed.video_service():
                user, created = User.objects.get_or_create(
                    username=feed.name[:30],
                    defaults={'email': ''})
                if created:
                    user.set_unusable_password()
                    Profile.objects.create(
                        user=user,
                        website=defaults['webpage'])
                    user.save()
                feed.auto_authors.add(user)
            feed.save()

            return HttpResponseRedirect(reverse('localtv_admin_feed_add_done',
                                                args=[feed.pk]))

    else:
        form = forms.SourceForm(instance=models.Feed(**defaults))
    return render_to_response('localtv/admin/add_feed.html',
                              {'form': form,
                               'video_count': video_count},
                              context_instance=RequestContext(request))

@require_site_admin
def add_feed_done(request, feed_id):
    feed = get_object_or_404(models.Feed, pk=feed_id)
    if 'task_id' in request.GET:
        task_id = request.GET['task_id']
    else:
        mod = import_module(settings.SETTINGS_MODULE)
        manage_py = os.path.join(
            os.path.dirname(mod.__file__),
            'manage.py')
        result = tasks.check_call.delay((
                getattr(settings, 'PYTHON_EXECUTABLE', sys.executable),
                manage_py,
                'bulk_import',
                feed_id))
        return HttpResponseRedirect('%s?task_id=%s' % (
                request.path, result.task_id))

    task = celery.result.AsyncResult(task_id)
    if task.ready(): # completed
        context = {'feed': feed,
                   'result': {
                'status': task.status,
                'result': task.result}}
        if task.successful():
            json = simplejson.loads(task.result)
            context.update(json)
        else:
            feed.status = models.FEED_STATUS_ACTIVE
            feed.save()
        return render_to_response('localtv/admin/feed_done.html',
                                  context,
                                  context_instance=RequestContext(request))
    else:
        videos_that_are_fully_thumbnailed = feed.video_set.exclude(
            status=models.FEED_STATUS_PENDING_THUMBNAIL)
        fully_thumbnailed_count = videos_that_are_fully_thumbnailed.count()
        return render_to_response('localtv/admin/feed_wait.html',
                                  {'feed': feed,
                                   'fully_thumbnailed_count': fully_thumbnailed_count,
                                   'task_id': task_id},
                                  context_instance=RequestContext(request))

@referrer_redirect
@require_site_admin
def feed_auto_approve(request, feed_id):
    feed = get_object_or_404(
        models.Feed,
        id=feed_id,
        site=request.sitelocation.site)

    feed.auto_approve = not request.GET.get('disable')
    feed.save()

    return HttpResponse('SUCCESS')
<commit_msg>In the case that the remote feed has no title, fall back safely<commit_after># Copyright 2009 - Participatory Culture Foundation
#
# This file is part of Miro Community.
#
# Miro Community is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.
#
# Miro Community is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Miro Community.  If not, see <http://www.gnu.org/licenses/>.

import datetime
import re
import sys
import os
import urllib2

from django.conf import settings
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.core.files.base import ContentFile
from django.http import (HttpResponse, HttpResponseBadRequest,
                         HttpResponseRedirect)
from django.shortcuts import get_object_or_404, render_to_response
from django.template import RequestContext
from django.views.decorators.csrf import csrf_protect

import celery
from importlib import import_module
import simplejson

from localtv.decorators import require_site_admin, referrer_redirect
from localtv import models, tasks, util
from localtv.admin import forms

from vidscraper import bulk_import

Profile = util.get_profile_model()

VIDEO_SERVICE_TITLES = (
    re.compile(r'Uploads by (.+)'),
    re.compile(r"Vimeo / (.+)'s? uploaded videos"),
    re.compile(r'Vimeo / (.+)'),
    re.compile(r"Dailymotion - (.+)'s")
    )

@require_site_admin
@csrf_protect
def add_feed(request):
    add_form = forms.AddFeedForm(request.GET)

    if not add_form.is_valid():
        return HttpResponseBadRequest(
            add_form['feed_url'].errors.as_text())

    feed_url = add_form.cleaned_data['feed_url']
    parsed_feed = add_form.cleaned_data['parsed_feed']

    title = getattr(parsed_feed.feed, 'title', '') or feed_url
    for regexp in VIDEO_SERVICE_TITLES:
        match = regexp.match(title)
        if match:
            title = match.group(1)
            break

    defaults = {
        'name': title,
        'feed_url': feed_url,
        'webpage': parsed_feed.feed.get('link', ''),
        'description': parsed_feed.feed.get('summary', ''),
        'when_submitted': datetime.datetime.now(),
        'last_updated': datetime.datetime.now(),
        'status': models.FEED_STATUS_UNAPPROVED,
        'user': request.user,
        'etag': '',
        'auto_approve': bool(request.POST.get('auto_approve', False))}

    video_count = bulk_import.video_count(feed_url, parsed_feed)

    if request.method == 'POST':
        if 'cancel' in request.POST:
            return HttpResponseRedirect(reverse('localtv_admin_manage_page'))

        form = forms.SourceForm(request.POST, instance=models.Feed(**defaults))
        if form.is_valid():
            feed, created = models.Feed.objects.get_or_create(
                feed_url=defaults['feed_url'],
                site=request.sitelocation.site,
                defaults=defaults)

            if not created:
                for key, value in defaults.items():
                    setattr(feed, key, value)

            for key, value in form.cleaned_data.items():
                setattr(feed, key, value)

            thumbnail_url = util.get_thumbnail_url(parsed_feed.feed)
            if thumbnail_url:
                try:
                    thumbnail_file = ContentFile(
                        urllib2.urlopen(
                            util.quote_unicode_url(thumbnail_url)).read())
                except IOError: # couldn't get the thumbnail
                    pass
                else:
                    feed.save_thumbnail_from_file(thumbnail_file)
            if feed.video_service():
                user, created = User.objects.get_or_create(
                    username=feed.name[:30],
                    defaults={'email': ''})
                if created:
                    user.set_unusable_password()
                    Profile.objects.create(
                        user=user,
                        website=defaults['webpage'])
                    user.save()
                feed.auto_authors.add(user)
            feed.save()

            return HttpResponseRedirect(reverse('localtv_admin_feed_add_done',
                                                args=[feed.pk]))

    else:
        form = forms.SourceForm(instance=models.Feed(**defaults))
    return render_to_response('localtv/admin/add_feed.html',
                              {'form': form,
                               'video_count': video_count},
                              context_instance=RequestContext(request))

@require_site_admin
def add_feed_done(request, feed_id):
    feed = get_object_or_404(models.Feed, pk=feed_id)
    if 'task_id' in request.GET:
        task_id = request.GET['task_id']
    else:
        mod = import_module(settings.SETTINGS_MODULE)
        manage_py = os.path.join(
            os.path.dirname(mod.__file__),
            'manage.py')
        result = tasks.check_call.delay((
                getattr(settings, 'PYTHON_EXECUTABLE', sys.executable),
                manage_py,
                'bulk_import',
                feed_id))
        return HttpResponseRedirect('%s?task_id=%s' % (
                request.path, result.task_id))

    task = celery.result.AsyncResult(task_id)
    if task.ready(): # completed
        context = {'feed': feed,
                   'result': {
                'status': task.status,
                'result': task.result}}
        if task.successful():
            json = simplejson.loads(task.result)
            context.update(json)
        else:
            feed.status = models.FEED_STATUS_ACTIVE
            feed.save()
        return render_to_response('localtv/admin/feed_done.html',
                                  context,
                                  context_instance=RequestContext(request))
    else:
        videos_that_are_fully_thumbnailed = feed.video_set.exclude(
            status=models.FEED_STATUS_PENDING_THUMBNAIL)
        fully_thumbnailed_count = videos_that_are_fully_thumbnailed.count()
        return render_to_response('localtv/admin/feed_wait.html',
                                  {'feed': feed,
                                   'fully_thumbnailed_count': fully_thumbnailed_count,
                                   'task_id': task_id},
                                  context_instance=RequestContext(request))

@referrer_redirect
@require_site_admin
def feed_auto_approve(request, feed_id):
    feed = get_object_or_404(
        models.Feed,
        id=feed_id,
        site=request.sitelocation.site)

    feed.auto_approve = not request.GET.get('disable')
    feed.save()

    return HttpResponse('SUCCESS')
<|endoftext|>


<commit_before>from distutils.core import setup

setup(name='pyresttest',
    version='1.0b',
    description='Python RESTful API Testing & Microbenchmarking Tool',
    long_description='Python RESTful API Testing & Microbenchmarking Tool',
    maintainer='Sam Van Oort',
    maintainer_email='acetonespam@gmail.com',
    url='https://github.com/svanoort/pyresttest',
    keywords=['rest', 'web', 'http', 'testing'],
    classifiers = [
        'Development Status :: 3 - Alpha',
        'Environment :: Console',
        'License :: OSI Approved :: Apache Software License',
        'Natural Language :: English',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Topic :: Software Development :: Testing',
        'Topic :: Software Development :: Quality Assurance',
        'Topic :: Utilities'
    ],
    py_modules=['pyresttest.resttest','pyresttest.generators','pyresttest.binding',
        'pyresttest.parsing', 'pyresttest.validators', 'pyresttest.contenthandling',
        'pyresttest.benchmarks','pyresttest.tests'],
    license='Apache License, Version 2.0',
    requires=['yaml','pycurl'],
    scripts=['pyresttest/resttest.py'], #Make this executable from command line when installed
    provides=['pyresttest']
)
<commit_msg>Revert "Set version to b for beta"<commit_after>from distutils.core import setup

setup(name='pyresttest',
    version='1.0',
    description='Python RESTful API Testing & Microbenchmarking Tool',
    long_description='Python RESTful API Testing & Microbenchmarking Tool',
    maintainer='Sam Van Oort',
    maintainer_email='acetonespam@gmail.com',
    url='https://github.com/svanoort/pyresttest',
    keywords=['rest', 'web', 'http', 'testing'],
    classifiers = [
        'Development Status :: 3 - Alpha',
        'Environment :: Console',
        'License :: OSI Approved :: Apache Software License',
        'Natural Language :: English',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Topic :: Software Development :: Testing',
        'Topic :: Software Development :: Quality Assurance',
        'Topic :: Utilities'
    ],
    py_modules=['pyresttest.resttest','pyresttest.generators','pyresttest.binding',
        'pyresttest.parsing', 'pyresttest.validators', 'pyresttest.contenthandling',
        'pyresttest.benchmarks','pyresttest.tests'],
    license='Apache License, Version 2.0',
    requires=['yaml','pycurl'],
    scripts=['pyresttest/resttest.py'], #Make this executable from command line when installed
    provides=['pyresttest']
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from os import path, makedirs
import subprocess
import glob
from setuptools import setup, find_packages
from distutils.dep_util import newer
from distutils.command.build import build
from distutils.log import warn, info, error

here = path.abspath(path.dirname(__file__))

class BuildData(build):
    def run (self):
        super().run()

        for ts in glob.glob(path.join("i18n", '*.ts')):
            lang = path.basename(ts[:-3])
            qm = path.join(
                "vscode_launcher_tray",
                "translations",
                "{}.qm".format(lang))

            directory = path.dirname(qm)
            if not path.exists(directory):
                info('creating %s' % directory)
                makedirs(directory)

            if newer(ts, qm):
                info('compiling {ts} -> {qm}'.format(ts=ts, qm=qm))
                try:
                    rc = subprocess.call(['lrelease', '-qm', qm, ts])
                    if rc != 0:
                        raise Warning("msgfmt returned {}".format(rc))
                except Exception as e:
                    error("Error: %s" % str(e))
                    sys.exit(1)

setup(name='vscode-launcher-tray',
      version='0.3.0',
      description='A system tray tool to launch Visual Studio code quickly.',
      author='Yan-ren Tsai',
      author_email='elleryq@gmail.com',
      url='https://github.com/elleryq/vscode-launcher-tray',
      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 :: Utilities',

          # 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',
          'Programming Language :: Python :: 3.4',
      ],
      # What does your project relate to?
      keywords='tools',

      # You can just specify the packages manually here if your project is
      # simple. Or you can use find_packages().
      packages=find_packages(exclude=['contrib', 'docs', 'tests']),
      # install_requires=['PyQt5'],
      # 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'],
      },
      # include_package_data=True,  # If use MANIFEST.in
      package_data={
          '': ['*.txt', '*.rst', '*.md'],
          # And include any *.msg files found in the 'hello' package, too:
          # 'hello': ['*.msg'],
          'vscode_launcher_tray': ['pixmaps/*.png', 'data/*.desktop', 'translations/*.qm'],
      },

      data_files=[
        ('share/applications', ['vscode_launcher_tray/data/vscode-launcher-tray.desktop']),
        ('share/pixmaps', ['vscode_launcher_tray/pixmaps/vscode-launcher-tray.png']),
      ],

      # 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': [
              'vscode-launcher-tray=vscode_launcher_tray:main',
          ],
      },
      cmdclass={
        'build': BuildData,
      }
    )
<commit_msg>v0.3.1<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from os import path, makedirs
import subprocess
import glob
from setuptools import setup, find_packages
from distutils.dep_util import newer
from distutils.command.build import build
from distutils.log import warn, info, error

here = path.abspath(path.dirname(__file__))

class BuildData(build):
    def run (self):
        super().run()

        for ts in glob.glob(path.join("i18n", '*.ts')):
            lang = path.basename(ts[:-3])
            qm = path.join(
                "vscode_launcher_tray",
                "translations",
                "{}.qm".format(lang))

            directory = path.dirname(qm)
            if not path.exists(directory):
                info('creating %s' % directory)
                makedirs(directory)

            if newer(ts, qm):
                info('compiling {ts} -> {qm}'.format(ts=ts, qm=qm))
                try:
                    rc = subprocess.call(['lrelease', '-qm', qm, ts])
                    if rc != 0:
                        raise Warning("msgfmt returned {}".format(rc))
                except Exception as e:
                    error("Error: %s" % str(e))
                    sys.exit(1)

setup(name='vscode-launcher-tray',
      version='0.3.1',
      description='A system tray tool to launch Visual Studio code quickly.',
      author='Yan-ren Tsai',
      author_email='elleryq@gmail.com',
      url='https://github.com/elleryq/vscode-launcher-tray',
      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 :: Utilities',

          # 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',
          'Programming Language :: Python :: 3.4',
      ],
      # What does your project relate to?
      keywords='tools',

      # You can just specify the packages manually here if your project is
      # simple. Or you can use find_packages().
      packages=find_packages(exclude=['contrib', 'docs', 'tests']),
      # install_requires=['PyQt5'],
      # 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'],
      },
      # include_package_data=True,  # If use MANIFEST.in
      package_data={
          '': ['*.txt', '*.rst', '*.md'],
          # And include any *.msg files found in the 'hello' package, too:
          # 'hello': ['*.msg'],
          'vscode_launcher_tray': ['pixmaps/*.png', 'data/*.desktop', 'translations/*.qm'],
      },

      data_files=[
        ('share/applications', ['vscode_launcher_tray/data/vscode-launcher-tray.desktop']),
        ('share/pixmaps', ['vscode_launcher_tray/pixmaps/vscode-launcher-tray.png']),
      ],

      # 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': [
              'vscode-launcher-tray=vscode_launcher_tray:main',
          ],
      },
      cmdclass={
        'build': BuildData,
      }
    )
<|endoftext|>


<commit_before>import nosehipchat.version
from setuptools import setup

setup(
    name="nose-hipchat",
    version=nosehipchat.version.__version__,
    author='Steve Leibman',
    description="Nose plugin to post test results to HipChat",
    license="MIT License",
    url="https://github.com/sleibman/nose-hipchat",
    packages=["nosehipchat"],
    install_requires=['nose'],
    classifiers=[
        "Topic :: Software Development :: Testing",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python"
    ],
    entry_points={
        'nose.plugins.0.10': [
            'nose-hipchat = nosehipchat.nosehipchat:NoseHipChat'
        ]
    }
)<commit_msg>add author_email<commit_after>import nosehipchat.version
from setuptools import setup

setup(
    name="nose-hipchat",
    version=nosehipchat.version.__version__,
    author='Steve Leibman',
    author_email='sleibman@alum.mit.edu',
    description="Nose plugin to post test results to HipChat",
    license="MIT License",
    url="https://github.com/sleibman/nose-hipchat",
    packages=["nosehipchat"],
    install_requires=['nose'],
    classifiers=[
        "Topic :: Software Development :: Testing",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python"
    ],
    entry_points={
        'nose.plugins.0.10': [
            'nose-hipchat = nosehipchat.nosehipchat:NoseHipChat'
        ]
    }
)
<|endoftext|>


<commit_before>#!/usr/bin/python2
'''
The setup script for salt
'''

from distutils.core import setup

setup(name='salt',
      version='0.7.0',
      description='Portable, distrubuted, remote execution system',
      author='Thomas S Hatch',
      author_email='thatch45@gmail.com',
      url='https://github.com/thatch45/salt',
      packages=['salt',
                'salt.modules',
                'salt.cli'],
      scripts=['scripts/salt-master',
               'scripts/salt-minion',
               'scripts/saltkey',
               'scripts/salt'],
      data_files=[('/etc/salt',
                    ['conf/master',
                     'conf/minion',
                    ]),
                ('share/man/man1',
                    ['man/salt-master.1',
                     'man/saltkey.1',
                     'man/salt.1',
                     'man/salt-minion.1',
                    ]),
                ('share/man/man7',
                    ['man/salt.7',
                    ]),
                 ],

     )
<commit_msg>Add cython modules to setup.py<commit_after>#!/usr/bin/python2
'''
The setup script for salt
'''
import os
from distutils.core import setup
from distutils.extension import Extension
from distutils.sysconfig import get_python_lib

mod_path = os.path.join(get_python_lib(), 'salt/modules/')

setup(name='salt',
      version='0.7.0',
      description='Portable, distrubuted, remote execution system',
      author='Thomas S Hatch',
      author_email='thatch45@gmail.com',
      url='https://github.com/thatch45/salt',
      packages=['salt',
                'salt.modules',
                'salt.cli'],
      scripts=['scripts/salt-master',
               'scripts/salt-minion',
               'scripts/saltkey',
               'scripts/salt'],
      data_files=[('/etc/salt',
                    ['conf/master',
                     'conf/minion',
                    ]),
                ('share/man/man1',
                    ['man/salt-master.1',
                     'man/saltkey.1',
                     'man/salt.1',
                     'man/salt-minion.1',
                    ]),
                ('share/man/man7',
                    ['man/salt.7',
                    ]),
                (mod_path,
                    ['salt/modules/cytest.pyx',
                    ])
                 ],
     )
<|endoftext|>


<commit_before>import setuptools
version = '1.8.5'

setuptools.setup(
    name='electrumX',
    version=version,
    scripts=['electrumx_server', 'electrumx_rpc'],
    python_requires='>=3.6',
    # via environment variables, in which case I've tested with 15.0.4
    # "x11_hash" package (1.4) is required to sync DASH network.
    # "tribus_hash" package is required to sync Denarius network.
    # "blake256" package is required to sync Decred network.
    # "xevan_hash" package is required to sync Xuez network.
    # "groestlcoin_hash" package is required to sync Groestlcoin network.
    install_requires=['aiorpcX>=0.7.1,<0.8', 'attrs',
                      'plyvel', 'pylru', 'aiohttp >= 2'],
    packages=setuptools.find_packages(include=('electrumx*',)),
    description='ElectrumX Server',
    author='Neil Booth',
    author_email='kyuupichan@gmail.com',
    license='MIT Licence',
    url='https://github.com/kyuupichan/electrumx',
    long_description='Server implementation for the Electrum protocol',
    download_url=('https://github.com/kyuupichan/electrumX/archive/'
                  f'{version}.tar.gz'),
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Framework :: AsyncIO',
        'License :: OSI Approved :: MIT License',
        'Operating System :: Unix',
        "Programming Language :: Python :: 3.6",
        "Topic :: Database",
        'Topic :: Internet',
    ],
)
<commit_msg>update aiorpcX (#586)<commit_after>import setuptools
version = '1.8.5'

setuptools.setup(
    name='electrumX',
    version=version,
    scripts=['electrumx_server', 'electrumx_rpc'],
    python_requires='>=3.6',
    # via environment variables, in which case I've tested with 15.0.4
    # "x11_hash" package (1.4) is required to sync DASH network.
    # "tribus_hash" package is required to sync Denarius network.
    # "blake256" package is required to sync Decred network.
    # "xevan_hash" package is required to sync Xuez network.
    # "groestlcoin_hash" package is required to sync Groestlcoin network.
    install_requires=['aiorpcX>=0.7.3,<0.8', 'attrs',
                      'plyvel', 'pylru', 'aiohttp >= 2'],
    packages=setuptools.find_packages(include=('electrumx*',)),
    description='ElectrumX Server',
    author='Neil Booth',
    author_email='kyuupichan@gmail.com',
    license='MIT Licence',
    url='https://github.com/kyuupichan/electrumx',
    long_description='Server implementation for the Electrum protocol',
    download_url=('https://github.com/kyuupichan/electrumX/archive/'
                  f'{version}.tar.gz'),
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Framework :: AsyncIO',
        'License :: OSI Approved :: MIT License',
        'Operating System :: Unix',
        "Programming Language :: Python :: 3.6",
        "Topic :: Database",
        'Topic :: Internet',
    ],
)
<|endoftext|>


<commit_before># Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
# You may obtain a copy of the License at: [package root]/LICENSE.txt
# 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

import setuptools

requirements = [
    "tqdm==4.60.0",
    "pyyaml==5.4.1",
    "tabulate==0.8.9",
    "colorama==0.4.4",
    "termcolor==1.1.0",
    "wcwidth==0.2.5",
    "ida-settings==2.1.0",
    "viv-utils[flirt]==0.6.2",
    "halo==0.0.31",
    "networkx==2.5.1",
    "ruamel.yaml==0.17.4",
    "vivisect==1.0.3",
    "smda==1.5.14",
]

# this sets __version__
# via: http://stackoverflow.com/a/7071358/87207
# and: http://stackoverflow.com/a/2073599/87207
with open(os.path.join("capa", "version.py"), "r") as f:
    exec(f.read())

# via: https://packaging.python.org/guides/making-a-pypi-friendly-readme/
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, "README.md"), "r") as f:
    long_description = f.read()

setuptools.setup(
    name="flare-capa",
    version=__version__,
    description="The FLARE team's open-source tool to identify capabilities in executable files.",
    long_description=long_description,
    long_description_content_type="text/markdown",
    author="Willi Ballenthin, Moritz Raabe",
    author_email="william.ballenthin@mandiant.com, moritz.raabe@mandiant.com",
    url="https://www.github.com/fireeye/capa",
    project_urls={
        "Documentation": "https://github.com/fireeye/capa/tree/master/doc",
        "Rules": "https://github.com/fireeye/capa-rules",
        "Rules Documentation": "https://github.com/fireeye/capa-rules/tree/master/doc",
    },
    packages=setuptools.find_packages(exclude=["tests"]),
    package_dir={"capa": "capa"},
    entry_points={
        "console_scripts": [
            "capa=capa.main:main",
        ]
    },
    include_package_data=True,
    install_requires=requirements,
    extras_require={
        "dev": [
            "pytest==6.2.4",
            "pytest-sugar==0.9.4",
            "pytest-instafail==0.4.2",
            "pytest-cov==2.12.0",
            "pycodestyle==2.7.0",
            "black==21.5b1",
            "isort==5.8.0",
        ]
    },
    zip_safe=False,
    keywords="capa malware analysis capability detection FLARE",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "Intended Audience :: Information Technology",
        "License :: OSI Approved :: Apache Software License",
        "Natural Language :: English",
        "Programming Language :: Python :: 3",
        "Topic :: Security",
    ],
    python_requires=">=3.6",
)
<commit_msg>build(deps): bump viv-utils[flirt] from 0.6.2 to 0.6.4<commit_after># Copyright (C) 2020 FireEye, Inc. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
# You may obtain a copy of the License at: [package root]/LICENSE.txt
# 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

import setuptools

requirements = [
    "tqdm==4.60.0",
    "pyyaml==5.4.1",
    "tabulate==0.8.9",
    "colorama==0.4.4",
    "termcolor==1.1.0",
    "wcwidth==0.2.5",
    "ida-settings==2.1.0",
    "viv-utils[flirt]==0.6.4",
    "halo==0.0.31",
    "networkx==2.5.1",
    "ruamel.yaml==0.17.4",
    "vivisect==1.0.3",
    "smda==1.5.14",
]

# this sets __version__
# via: http://stackoverflow.com/a/7071358/87207
# and: http://stackoverflow.com/a/2073599/87207
with open(os.path.join("capa", "version.py"), "r") as f:
    exec(f.read())

# via: https://packaging.python.org/guides/making-a-pypi-friendly-readme/
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, "README.md"), "r") as f:
    long_description = f.read()

setuptools.setup(
    name="flare-capa",
    version=__version__,
    description="The FLARE team's open-source tool to identify capabilities in executable files.",
    long_description=long_description,
    long_description_content_type="text/markdown",
    author="Willi Ballenthin, Moritz Raabe",
    author_email="william.ballenthin@mandiant.com, moritz.raabe@mandiant.com",
    url="https://www.github.com/fireeye/capa",
    project_urls={
        "Documentation": "https://github.com/fireeye/capa/tree/master/doc",
        "Rules": "https://github.com/fireeye/capa-rules",
        "Rules Documentation": "https://github.com/fireeye/capa-rules/tree/master/doc",
    },
    packages=setuptools.find_packages(exclude=["tests"]),
    package_dir={"capa": "capa"},
    entry_points={
        "console_scripts": [
            "capa=capa.main:main",
        ]
    },
    include_package_data=True,
    install_requires=requirements,
    extras_require={
        "dev": [
            "pytest==6.2.4",
            "pytest-sugar==0.9.4",
            "pytest-instafail==0.4.2",
            "pytest-cov==2.12.0",
            "pycodestyle==2.7.0",
            "black==21.5b1",
            "isort==5.8.0",
        ]
    },
    zip_safe=False,
    keywords="capa malware analysis capability detection FLARE",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "Intended Audience :: Information Technology",
        "License :: OSI Approved :: Apache Software License",
        "Natural Language :: English",
        "Programming Language :: Python :: 3",
        "Topic :: Security",
    ],
    python_requires=">=3.6",
)
<|endoftext|>


<commit_before># -*- encoding: utf8 -*-
from setuptools import setup, find_packages

setup(
    name='frigg-worker',
    version='0.3.2',
    description='A worker application that listens to the frigg broker '
                'an pick up builds and build them.',
    author='The frigg team',
    author_email='hi@frigg.io',
    license='MIT',
    url='https://github.com/frigg/frigg-worker',
    packages=find_packages(exclude=['tests', 'tests.*']),
    include_package_data=True,
    install_requires=[
        'fabric',
        'redis',
        'pyyaml',
        'requests',
        'raven'
    ],
    entry_points={
        'console_scripts': ['frigg-worker = frigg.worker.cli:main']
    },
    classifiers=[
        'Development Status :: 4 - Beta',
        'Programming Language :: Python',
    ]
)
<commit_msg>0.3.3<commit_after># -*- encoding: utf8 -*-
from setuptools import setup, find_packages

setup(
    name='frigg-worker',
    version='0.3.3',
    description='A worker application that listens to the frigg broker '
                'an pick up builds and build them.',
    author='The frigg team',
    author_email='hi@frigg.io',
    license='MIT',
    url='https://github.com/frigg/frigg-worker',
    packages=find_packages(exclude=['tests', 'tests.*']),
    include_package_data=True,
    install_requires=[
        'fabric',
        'redis',
        'pyyaml',
        'requests',
        'raven'
    ],
    entry_points={
        'console_scripts': ['frigg-worker = frigg.worker.cli:main']
    },
    classifiers=[
        'Development Status :: 4 - Beta',
        'Programming Language :: Python',
    ]
)
<|endoftext|>


<commit_before>"""

"""
import os
from distutils.core import Command as BaseCommand
from unittest import TestLoader, TextTestRunner
from setuptools import setup

class TestCommand(BaseCommand):
    """Runs the package tests."""
    description = 'Runs all package tests.'

    user_options = [
        ('junit=', None,
         'outputs results to an xml file.'),
        ('pattern=', None,
         'The test pattern. Defaults to test*.py')
    ]

    def initialize_options(self):
        self.junit = None
        self.pattern = 'test*.py'

    def finalize_options(self):
        pass

    def run(self):
        # Import xmlrunner here so it's not a setup requirement
        import xmlrunner
        test_suite = TestLoader().discover('.', pattern=self.pattern)
        if self.junit:
            with open(self.junit, 'wb') as output:
                runner = xmlrunner.XMLTestRunner(output)
                runner.run(test_suite)
        else:
            runner = TextTestRunner(verbosity=2)
            runner.run(test_suite)

here = os.path.abspath(os.path.dirname(__file__))

# Get the long description from the README file
with open(os.path.join(here, 'README.rst')) as f:
    long_description = f.read()

setup(name='envipyarc',
      version='1.0.5',
      description='ENVI Python Tools for ArcGIS',
      long_description=long_description,
      url='https://github.com/envi-idl/envipyarc',
      author='Exelis Visual Information Solutions, Inc.',
      packages=['envipyarc',
                'envipyarc.templates'],
      install_requires=['envipyengine>=1.0.5', 'envipyarclib'],
      cmdclass=dict(test=TestCommand),
      license='MIT',
      keywords='envi idl',
      scripts=['scripts/createenvitoolbox.py'],
      package_data={'envipyarc': [
          'esri/toolboxes/*.pyt',
          'esri/toolboxes/*.xml',
          'esri/projecttemplates/*.aptx'
          'esir/projecttemplates/*.md'
          ]
      }
)
<commit_msg>Fix typos in the package data<commit_after>"""

"""
import os
from distutils.core import Command as BaseCommand
from unittest import TestLoader, TextTestRunner
from setuptools import setup

class TestCommand(BaseCommand):
    """Runs the package tests."""
    description = 'Runs all package tests.'

    user_options = [
        ('junit=', None,
         'outputs results to an xml file.'),
        ('pattern=', None,
         'The test pattern. Defaults to test*.py')
    ]

    def initialize_options(self):
        self.junit = None
        self.pattern = 'test*.py'

    def finalize_options(self):
        pass

    def run(self):
        # Import xmlrunner here so it's not a setup requirement
        import xmlrunner
        test_suite = TestLoader().discover('.', pattern=self.pattern)
        if self.junit:
            with open(self.junit, 'wb') as output:
                runner = xmlrunner.XMLTestRunner(output)
                runner.run(test_suite)
        else:
            runner = TextTestRunner(verbosity=2)
            runner.run(test_suite)

here = os.path.abspath(os.path.dirname(__file__))

# Get the long description from the README file
with open(os.path.join(here, 'README.rst')) as f:
    long_description = f.read()

setup(name='envipyarc',
      version='1.0.5',
      description='ENVI Python Tools for ArcGIS',
      long_description=long_description,
      url='https://github.com/envi-idl/envipyarc',
      author='Exelis Visual Information Solutions, Inc.',
      packages=['envipyarc',
                'envipyarc.templates'],
      install_requires=['envipyengine>=1.0.5', 'envipyarclib'],
      cmdclass=dict(test=TestCommand),
      license='MIT',
      keywords='envi idl',
      scripts=['scripts/createenvitoolbox.py'],
      package_data={'envipyarc': [
          'esri/toolboxes/*.pyt',
          'esri/toolboxes/*.xml',
          'esri/projecttemplates/*.aptx',
          'esri/projecttemplates/*.md'
          ]
      }
)
<|endoftext|>


<commit_before>#!/usr/bin/env python

import os

import skosprovider_oe

try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

packages = [
    'skosprovider_oe',
]

requires = [
    'skosprovider>=0.3.0a1',
    'requests>=1.0.0'
]

setup(
    name='skosprovider_oe',
    version='0.3.0a1',
    description='A SKOS provider for OE vocabularies.',
    long_description=open('README.rst').read() + '\n\n' +
                     open('HISTORY.rst').read(),
    author='Koen Van Daele',
    author_email='koen_van_daele@telenet.be',
    url='http://github.com/koenedaele/skosprovider_oe',
    packages=packages,
    package_data={'': ['LICENSE']},
    package_dir={'skosprovider_oe': 'skosprovider_oe'},
    include_package_data=True,
    install_requires = requires,
    license='MIT',
    zip_safe=False,
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3'
    ],
)
<commit_msg>Depend on skosprovider 0.3.0.<commit_after>#!/usr/bin/env python

import os

import skosprovider_oe

try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

packages = [
    'skosprovider_oe',
]

requires = [
    'skosprovider>=0.3.0',
    'requests>=1.0.0'
]

setup(
    name='skosprovider_oe',
    version='0.3.0a1',
    description='A SKOS provider for OE vocabularies.',
    long_description=open('README.rst').read() + '\n\n' +
                     open('HISTORY.rst').read(),
    author='Koen Van Daele',
    author_email='koen_van_daele@telenet.be',
    url='http://github.com/koenedaele/skosprovider_oe',
    packages=packages,
    package_data={'': ['LICENSE']},
    package_dir={'skosprovider_oe': 'skosprovider_oe'},
    include_package_data=True,
    install_requires = requires,
    license='MIT',
    zip_safe=False,
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3'
    ],
)
<|endoftext|>


<commit_before># -*- coding: utf-8 -*-
"""
MVC Web Application Framework with Tornado, Python 2 and 3

To install the package run:

    pip install dp-tornado

Run
-----

    $ pip install virtualenv
    $ virtualenv ./venv
    $ . ./venv/bin/activate
    $ pip install dp-tornado
    $ dp4p init --path app

"""

import sys
import os

from setuptools import setup

try:
    from setuptools.command.install import install

except ImportError:
    from distutils.command.install import install

with open('dp_tornado/version.py', 'r') as fp_v:
    for c in fp_v.read().split('\n'):
        exec(c)

dp_project_name = 'dp-tornado'
dp_version = __version__
dp_github_url = 'http://github.com/why2pac/dp-tornado'
dp_license = 'MIT'

dp_author = 'Parker'
dp_author_email = 'oss@dp.farm'

dp_maintainer = dp_author
dp_maintainer_email = dp_author_email

dp_description = 'MVC Web Application Framework with Tornado.'

install_requires = [
        'BeautifulSoup4==4.6.0',
        'boto3==1.4.7',
        'croniter==0.3.19',
        'CyMySQL==0.9.2',
        'httpagentparser==1.8.0',
        'lxml==4.1.1',
        'Pillow==4.3.0',
        'pycrypto==2.6.1',
        'pytz==2017.3',
        'redis==2.10.6',
        'requests==2.18.4',
        'SQLAlchemy==1.1.15',
        'tornado==4.5.2',
        'validate_email==1.3',
        'validators==0.12.0',
        'wand==0.4.4',
        # , 'selenium'
    ]

if sys.version_info[0] <= 2:
    install_requires.append('futures==3.0.5')

# Will not install pillow when it starts from readthedocs.
# if os.environ.get('READTHEDOCS') != 'True':
#     pass

setup(
    name=dp_project_name,
    version=dp_version,
    url=dp_github_url,
    license=dp_license,
    author=dp_author,
    author_email=dp_author_email,
    maintainer=dp_maintainer,
    maintainer_email=dp_maintainer_email,
    description=dp_description,
    long_description=__doc__,
    packages=['dp_tornado'],
    include_package_data=True,
    install_requires=install_requires,
    keywords=['MVC', 'Web Application Framework'],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.4'
    ],
    entry_points={
        'console_scripts': [
            'dp4p = dp_tornado.cli:main'
        ]
    }
)
<commit_msg>update requirements.<commit_after># -*- coding: utf-8 -*-
"""
MVC Web Application Framework with Tornado, Python 2 and 3

To install the package run:

    pip install dp-tornado

Run
-----

    $ pip install virtualenv
    $ virtualenv ./venv
    $ . ./venv/bin/activate
    $ pip install dp-tornado
    $ dp4p init --path app

"""

import sys
import os

from setuptools import setup

try:
    from setuptools.command.install import install

except ImportError:
    from distutils.command.install import install

with open('dp_tornado/version.py', 'r') as fp_v:
    for c in fp_v.read().split('\n'):
        exec(c)

dp_project_name = 'dp-tornado'
dp_version = __version__
dp_github_url = 'http://github.com/why2pac/dp-tornado'
dp_license = 'MIT'

dp_author = 'Parker'
dp_author_email = 'oss@dp.farm'

dp_maintainer = dp_author
dp_maintainer_email = dp_author_email

dp_description = 'MVC Web Application Framework with Tornado.'

install_requires = [
        'BeautifulSoup4==4.6.0',
        'boto3==1.4.7',
        'croniter==0.3.20',
        'CyMySQL==0.9.2',
        'httpagentparser==1.8.0',
        'lxml==4.1.1',
        'Pillow==4.3.0',
        'pycrypto==2.6.1',
        'pytz==2017.3',
        'redis==2.10.6',
        'requests==2.18.4',
        'SQLAlchemy==1.1.15',
        'tornado==4.5.2',
        'validate_email==1.3',
        'validators==0.12.0',
        'wand==0.4.4',
        # , 'selenium'
    ]

if sys.version_info[0] <= 2:
    install_requires.append('futures==3.0.5')

# Will not install pillow when it starts from readthedocs.
# if os.environ.get('READTHEDOCS') != 'True':
#     pass

setup(
    name=dp_project_name,
    version=dp_version,
    url=dp_github_url,
    license=dp_license,
    author=dp_author,
    author_email=dp_author_email,
    maintainer=dp_maintainer,
    maintainer_email=dp_maintainer_email,
    description=dp_description,
    long_description=__doc__,
    packages=['dp_tornado'],
    include_package_data=True,
    install_requires=install_requires,
    keywords=['MVC', 'Web Application Framework'],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.4'
    ],
    entry_points={
        'console_scripts': [
            'dp4p = dp_tornado.cli:main'
        ]
    }
)
<|endoftext|>


<commit_before>try:
    from setuptools import setup, Extension
    # Required for compatibility with pip (issue #177)
    from setuptools.command.install import install
except ImportError:
    from distutils.core import setup, Extension
    from distutils.command.install import install

try:
    from wheel.bdist_wheel import bdist_wheel
except ImportError:
    bdist_wheel = None

from distutils.command.build import build
from distutils.command.build_ext import build_ext
from distutils.command.clean import clean
from distutils import log
from distutils.dir_util import remove_tree
from distutils.spawn import spawn
import os
import sys

_version_module = None
try:
    from packaging import version as _version_module
except ImportError:
    try:
        from setuptools._vendor.packaging import version as _version_module
    except ImportError:
        pass

min_python_version = "3.7"
max_python_version = "3.11"  # exclusive

def _guard_py_ver():
    if _version_module is None:
        return

    parse = _version_module.parse

    min_py = parse(min_python_version)
    max_py = parse(max_python_version)
    cur_py = parse('.'.join(map(str, sys.version_info[:3])))

    if not min_py <= cur_py < max_py:
        msg = ('Cannot install on Python version {}; only versions >={},<{} '
               'are supported.')
        raise RuntimeError(msg.format(cur_py, min_py, max_py))

_guard_py_ver()

if os.environ.get('READTHEDOCS', None) == 'True':
    sys.exit("setup.py disabled on readthedocs: called with %s"
             % (sys.argv,))

import versioneer

versioneer.VCS = 'git'
versioneer.versionfile_source = 'llvmlite/_version.py'
versioneer.versionfile_build = 'llvmlite/_version.py'
versioneer.tag_prefix = 'v' # tags are like v1.2.0
versioneer.parentdir_prefix = 'llvmlite-' # dirname like 'myproject-1.2.0'

here_dir = os.path.dirname(os.path.abspath(__file__))

cmdclass = versioneer.get_cmdclass()
build = cmdclass.get('build', build)
build_ext = cmdclass.get('build_ext', build_ext)

def build_library_files(dry_run):
    cmd = [sys.executable, os.path.join(here_dir, 'ffi', 'build.py')]
    # Turn on -fPIC for building on Linux, BSD, and OS X
    plt = sys.platform
    if 'linux' in plt or 'bsd' in plt or 'darwin' in plt:
        os.environ['CXXFLAGS'] = os.environ.get('CXXFLAGS', '') + ' -fPIC'
    spawn(cmd, dry_run=dry_run)

class LlvmliteBuild(build):

    def finalize_options(self):
        build.finalize_options(self)
        # The build isn't platform-independent
        if self.build_lib == self.build_purelib:
            self.build_lib = self.build_platlib

    def get_sub_commands(self):
        # Force "build_ext" invocation.
        commands = build.get_sub_commands(self)
        for c in commands:
            if c == 'build_ext':
                return commands
        return ['build_ext'] + commands

class LlvmliteBuildExt(build_ext):

    def run(self):
        build_ext.run(self)
        build_library_files(self.dry_run)
        # HACK: this makes sure the library file (which is large) is only
        # included in binary builds, not source builds.
        from llvmlite.utils import get_library_files
        self.distribution.package_data = {
            "llvmlite.binding": get_library_files(),
        }

class LlvmliteInstall(install):
    # Ensure install see the libllvmlite shared library
    # This seems to only be necessary on OSX.
    def run(self):
        from llvmlite.utils import get_library_files
        self.distribution.package_data = {
            "llvmlite.binding": get_library_files(),
        }
        install.run(self)

    def finalize_options(self):
        install.finalize_options(self)
        # Force use of "platlib" dir for auditwheel to recognize this
        # is a non-pure build
        self.install_libbase = self.install_platlib
        self.install_lib = self.install_platlib

class LlvmliteClean(clean):
    """Custom clean command to tidy up the project root."""
    def run(self):
        clean.run(self)
        path = os.path.join(here_dir, 'llvmlite.egg-info')
        if os.path.isdir(path):
            remove_tree(path, dry_run=self.dry_run)
        if not self.dry_run:
            self._rm_walk()

    def _rm_walk(self):
        for path, dirs, files in os.walk(here_dir):
            if any(p.startswith('.') for p in path.split(os.path.sep)):
                # Skip hidden directories like the git folder right away
                continue
            if path.endswith('__pycache__'):
                remove_tree(path, dry_run=self.dry_run)
            else:
                for fname in files:
                    if fname.endswith('.pyc') or fname.endswith('.so'):
                        fpath = os.path.join(path, fname)
                        os.remove(fpath)
                        log.info("removing '%s'", fpath)

if bdist_wheel:
    class LLvmliteBDistWheel(bdist_wheel):
        def run(self):
            # Ensure the binding file exist when running wheel build
            from llvmlite.utils import get_library_files
            build_library_files(self.dry_run)
            self.distribution.package_data.update({
                "llvmlite.binding": get_library_files(),
            })
            # Run wheel build command
            bdist_wheel.run(self)

        def finalize_options(self):
            bdist_wheel.finalize_options(self)
            # The build isn't platform-independent
            self.root_is_pure = False

cmdclass.update({'build': LlvmliteBuild,
                 'build_ext': LlvmliteBuildExt,
                 'install': LlvmliteInstall,
                 'clean': LlvmliteClean,
                 })

if bdist_wheel:
    cmdclass.update({'bdist_wheel': LLvmliteBDistWheel})

# A stub C-extension to make bdist_wheel build an arch dependent build
ext_stub = Extension(name="llvmlite.binding._stub",
                     sources=["llvmlite/binding/_stub.c"])

packages = ['llvmlite',
            'llvmlite.binding',
            'llvmlite.ir',
            'llvmlite.llvmpy',
            'llvmlite.tests',
            ]

with open('README.rst') as f:
    long_description = f.read()

setup(name='llvmlite',
      description="lightweight wrapper around basic LLVM functionality",
      version=versioneer.get_version(),
      classifiers=[
          "Development Status :: 4 - Beta",
          "Intended Audience :: Developers",
          "Operating System :: OS Independent",
          "Programming Language :: Python",
          "Programming Language :: Python :: 3",
          "Programming Language :: Python :: 3.7",
          "Programming Language :: Python :: 3.8",
          "Programming Language :: Python :: 3.9",
          "Topic :: Software Development :: Code Generators",
          "Topic :: Software Development :: Compilers",
      ],
      # Include the separately-compiled shared library
      author="Continuum Analytics, Inc.",
      author_email="numba-users@continuum.io",
      url="http://llvmlite.pydata.org",
      download_url="https://github.com/numba/llvmlite",
      packages=packages,
      license="BSD",
      cmdclass=cmdclass,
      long_description=long_description,
      python_requires=">={},<{}".format(min_python_version,
                                        max_python_version),
      )
<commit_msg>update trove classifiers<commit_after>try:
    from setuptools import setup, Extension
    # Required for compatibility with pip (issue #177)
    from setuptools.command.install import install
except ImportError:
    from distutils.core import setup, Extension
    from distutils.command.install import install

try:
    from wheel.bdist_wheel import bdist_wheel
except ImportError:
    bdist_wheel = None

from distutils.command.build import build
from distutils.command.build_ext import build_ext
from distutils.command.clean import clean
from distutils import log
from distutils.dir_util import remove_tree
from distutils.spawn import spawn
import os
import sys

_version_module = None
try:
    from packaging import version as _version_module
except ImportError:
    try:
        from setuptools._vendor.packaging import version as _version_module
    except ImportError:
        pass

min_python_version = "3.7"
max_python_version = "3.11"  # exclusive

def _guard_py_ver():
    if _version_module is None:
        return

    parse = _version_module.parse

    min_py = parse(min_python_version)
    max_py = parse(max_python_version)
    cur_py = parse('.'.join(map(str, sys.version_info[:3])))

    if not min_py <= cur_py < max_py:
        msg = ('Cannot install on Python version {}; only versions >={},<{} '
               'are supported.')
        raise RuntimeError(msg.format(cur_py, min_py, max_py))

_guard_py_ver()

if os.environ.get('READTHEDOCS', None) == 'True':
    sys.exit("setup.py disabled on readthedocs: called with %s"
             % (sys.argv,))

import versioneer

versioneer.VCS = 'git'
versioneer.versionfile_source = 'llvmlite/_version.py'
versioneer.versionfile_build = 'llvmlite/_version.py'
versioneer.tag_prefix = 'v' # tags are like v1.2.0
versioneer.parentdir_prefix = 'llvmlite-' # dirname like 'myproject-1.2.0'

here_dir = os.path.dirname(os.path.abspath(__file__))

cmdclass = versioneer.get_cmdclass()
build = cmdclass.get('build', build)
build_ext = cmdclass.get('build_ext', build_ext)

def build_library_files(dry_run):
    cmd = [sys.executable, os.path.join(here_dir, 'ffi', 'build.py')]
    # Turn on -fPIC for building on Linux, BSD, and OS X
    plt = sys.platform
    if 'linux' in plt or 'bsd' in plt or 'darwin' in plt:
        os.environ['CXXFLAGS'] = os.environ.get('CXXFLAGS', '') + ' -fPIC'
    spawn(cmd, dry_run=dry_run)

class LlvmliteBuild(build):

    def finalize_options(self):
        build.finalize_options(self)
        # The build isn't platform-independent
        if self.build_lib == self.build_purelib:
            self.build_lib = self.build_platlib

    def get_sub_commands(self):
        # Force "build_ext" invocation.
        commands = build.get_sub_commands(self)
        for c in commands:
            if c == 'build_ext':
                return commands
        return ['build_ext'] + commands

class LlvmliteBuildExt(build_ext):

    def run(self):
        build_ext.run(self)
        build_library_files(self.dry_run)
        # HACK: this makes sure the library file (which is large) is only
        # included in binary builds, not source builds.
        from llvmlite.utils import get_library_files
        self.distribution.package_data = {
            "llvmlite.binding": get_library_files(),
        }

class LlvmliteInstall(install):
    # Ensure install see the libllvmlite shared library
    # This seems to only be necessary on OSX.
    def run(self):
        from llvmlite.utils import get_library_files
        self.distribution.package_data = {
            "llvmlite.binding": get_library_files(),
        }
        install.run(self)

    def finalize_options(self):
        install.finalize_options(self)
        # Force use of "platlib" dir for auditwheel to recognize this
        # is a non-pure build
        self.install_libbase = self.install_platlib
        self.install_lib = self.install_platlib

class LlvmliteClean(clean):
    """Custom clean command to tidy up the project root."""
    def run(self):
        clean.run(self)
        path = os.path.join(here_dir, 'llvmlite.egg-info')
        if os.path.isdir(path):
            remove_tree(path, dry_run=self.dry_run)
        if not self.dry_run:
            self._rm_walk()

    def _rm_walk(self):
        for path, dirs, files in os.walk(here_dir):
            if any(p.startswith('.') for p in path.split(os.path.sep)):
                # Skip hidden directories like the git folder right away
                continue
            if path.endswith('__pycache__'):
                remove_tree(path, dry_run=self.dry_run)
            else:
                for fname in files:
                    if fname.endswith('.pyc') or fname.endswith('.so'):
                        fpath = os.path.join(path, fname)
                        os.remove(fpath)
                        log.info("removing '%s'", fpath)

if bdist_wheel:
    class LLvmliteBDistWheel(bdist_wheel):
        def run(self):
            # Ensure the binding file exist when running wheel build
            from llvmlite.utils import get_library_files
            build_library_files(self.dry_run)
            self.distribution.package_data.update({
                "llvmlite.binding": get_library_files(),
            })
            # Run wheel build command
            bdist_wheel.run(self)

        def finalize_options(self):
            bdist_wheel.finalize_options(self)
            # The build isn't platform-independent
            self.root_is_pure = False

cmdclass.update({'build': LlvmliteBuild,
                 'build_ext': LlvmliteBuildExt,
                 'install': LlvmliteInstall,
                 'clean': LlvmliteClean,
                 })

if bdist_wheel:
    cmdclass.update({'bdist_wheel': LLvmliteBDistWheel})

# A stub C-extension to make bdist_wheel build an arch dependent build
ext_stub = Extension(name="llvmlite.binding._stub",
                     sources=["llvmlite/binding/_stub.c"])

packages = ['llvmlite',
            'llvmlite.binding',
            'llvmlite.ir',
            'llvmlite.llvmpy',
            'llvmlite.tests',
            ]

with open('README.rst') as f:
    long_description = f.read()

setup(name='llvmlite',
      description="lightweight wrapper around basic LLVM functionality",
      version=versioneer.get_version(),
      classifiers=[
          "Development Status :: 4 - Beta",
          "Intended Audience :: Developers",
          "Operating System :: OS Independent",
          "Programming Language :: Python",
          "Programming Language :: Python :: 3",
          "Programming Language :: Python :: 3.7",
          "Programming Language :: Python :: 3.8",
          "Programming Language :: Python :: 3.9",
          "Programming Language :: Python :: 3.10",
          "Topic :: Software Development :: Code Generators",
          "Topic :: Software Development :: Compilers",
      ],
      # Include the separately-compiled shared library
      author="Continuum Analytics, Inc.",
      author_email="numba-users@continuum.io",
      url="http://llvmlite.pydata.org",
      download_url="https://github.com/numba/llvmlite",
      packages=packages,
      license="BSD",
      cmdclass=cmdclass,
      long_description=long_description,
      python_requires=">={},<{}".format(min_python_version,
                                        max_python_version),
      )
<|endoftext|>


<commit_before>from distutils.core import setup
import wepay

long_description = open('README.rst').read()

version_str = '%s.%s.%s' % (
    wepay.VERSION[0],
    wepay.VERSION[1],
    wepay.VERSION[2]
)

setup(
    name='wepay',
    version=version_str,
    packages=['wepay'],
    description='A Python SDK for our WePay API.',
    long_description=long_description,
    author='Bryce Culhane',
    author_email='bryce.culhane@gmail.com',
    license='BSD License',
    url='https://github.com/wepay/Python-SDK',
    platforms=["any"],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
    ],
)
<commit_msg>Use MIT License<commit_after>from distutils.core import setup
import wepay

long_description = open('README.rst').read()

version_str = '%s.%s.%s' % (
    wepay.VERSION[0],
    wepay.VERSION[1],
    wepay.VERSION[2]
)

setup(
    name='wepay',
    version=version_str,
    packages=['wepay'],
    description='A Python SDK for our WePay API.',
    long_description=long_description,
    author='Bryce Culhane',
    author_email='bryce.culhane@gmail.com',
    license='MIT License',
    url='https://github.com/wepay/Python-SDK',
    platforms=["any"],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
    ],
)
<|endoftext|>