From ebe4d3df94e220a5668e262a058cf7fa2591c162 Mon Sep 17 00:00:00 2001 From: Brian Rue Date: Thu, 23 Feb 2023 23:20:26 -0800 Subject: [PATCH] Remove unused files; update supported versions list --- .codeclimate.yml | 17 ----------------- UPGRADE_FROM_RATCHET.md | 31 ------------------------------- default.nix | 19 ------------------- setup.py | 3 +++ shell.nix | 31 ------------------------------- 5 files changed, 3 insertions(+), 98 deletions(-) delete mode 100644 .codeclimate.yml delete mode 100644 UPGRADE_FROM_RATCHET.md delete mode 100644 default.nix delete mode 100644 shell.nix diff --git a/.codeclimate.yml b/.codeclimate.yml deleted file mode 100644 index 4d91d7f8..00000000 --- a/.codeclimate.yml +++ /dev/null @@ -1,17 +0,0 @@ ---- -engines: - duplication: - enabled: true - config: - languages: - - python - fixme: - enabled: true - pep8: - enabled: true - radon: - enabled: true -ratings: - paths: - - "**.py" -exclude_paths: [] diff --git a/UPGRADE_FROM_RATCHET.md b/UPGRADE_FROM_RATCHET.md deleted file mode 100644 index 8db9af63..00000000 --- a/UPGRADE_FROM_RATCHET.md +++ /dev/null @@ -1,31 +0,0 @@ -# Upgrading from pyratchet - -Execute: - - $ pip uninstall ratchet - -Then: - - $ pip install rollbar - -## Generic Python or a non-Django/non-Pyramid framework - -Change your initialization call from `ratchet.init(...)` to `rollbar.init(...)`. - -Search your app for all references to `ratchet` and replace them with `rollbar`. - -## Pyratchet running with Django - -In your `settings.py`: -- change `'ratchet.contrib.django.middleware.RatchetNotifierMiddleware'` to `'rollbar.contrib.django.middleware.RollbarNotifierMiddleware'` -- rename your `RATCHET` configuration dict to `ROLLBAR` - -Search your app for all references to `ratchet` and replace them with `rollbar`. - -## Pyratchet running with Pyramid - -In your `ini` file: -- change the include `ratchet.contrib.pyramid` to `rollbar.contrib.pyramid` -- rename your `ratchet.*` configuration variables to `rollbar.*` - -Search your app for all references to `ratchet` and replace them with `rollbar`. \ No newline at end of file diff --git a/default.nix b/default.nix deleted file mode 100644 index 253f06dc..00000000 --- a/default.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ - pkgs ? import {}, - python ? pkgs.python36, -}: - -with pkgs; -with python.pkgs; - -buildPythonPackage rec { - name = "pyrollbar"; - src = builtins.filterSource (path: type: - type != "unknown" && - baseNameOf path != ".git" && - baseNameOf path != "result" && - !(pkgs.lib.hasSuffix ".nix" path) - ) ./.; - propagatedBuildInputs = [requests six]; -} - diff --git a/setup.py b/setup.py index 70688372..59bde98b 100644 --- a/setup.py +++ b/setup.py @@ -54,6 +54,9 @@ "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Development Status :: 5 - Production/Stable", diff --git a/shell.nix b/shell.nix deleted file mode 100644 index 04ce7fb9..00000000 --- a/shell.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ - pkgs ? import {} -}: - -with pkgs; -let -python = let - packageOverrides = self: super: { - pandas = super.pandas.overridePythonAttrs(old: { - doCheck = false; - }); - - twine = super.twine.overridePythonAttrs(old: { - doCheck = false; - }); - - tqdm = super.tqdm.overridePythonAttrs(old: { - doCheck = false; - }); - }; -in python36.override { inherit packageOverrides; }; -pyrollbar = pkgs.callPackage ./. { inherit python; }; -pyenv = python.withPackages(ps: with ps; [ pyrollbar twine mock pyramid ]); - -in - -stdenv.mkDerivation { - name = "pyrollbar-shell"; - buildInputs = [ pyenv ]; -} -