Skip to content

Commit

Permalink
Update package supports (#21)
Browse files Browse the repository at this point in the history
* Update package supports
* Preparation for release 1.2.0
  • Loading branch information
dmvass authored Mar 31, 2021
1 parent 869195d commit 5fa5f22
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 62 deletions.
32 changes: 8 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,21 @@
sudo: false

language: python

dist: xenial

python:
- '3.6'
- '3.7'
- '3.8'

- "3.7"
- "3.8"
- "3.9"
matrix:
include:
- name: "PEP8"
python: 3.7
env: TOXENV=pep8

install: pip install tox-travis codecov

script: tox

install:
- pip install tox-travis codecov
script:
- tox
after_success:
- codecov

- codecov
branches:
only:
- master

deploy:
provider: pypi
user: kandziu
distributions: sdist bdist_wheel
password:
secure: XbJqC7gLEaa9bvgdymFWZ16VH28w7Cs4FiBJVFfertjCNV+MlaP6ivbnJA80tZbFJplLQN23Gpn1T2/AV+4PiquejdY3gPMkJpMEqdVZZdGUqIgE05vB05tcCRy7+jkZT+vbBR7H5iDQcydJ1RtpDY1vYw1jKvV62Po5d72d1e7jGjTKhq0kl1scb+oqE1xSjo7dYmgTsmHKXjEJsSLtcxRHhJBq89Az3IWNc4UFj0A+BVD7GbD+RBNInoEO38VPkTJujhWjHCepgoKEaA9QML2JmwThI6jkQXC3LVxUYkXWvj4DKrG+e51byNi7xm2tCdxhvJ5yPJJv6ajDtMdLIIed2HvrRFh28sd/F23I3fIrH9/XcADn+bitUQLmW849wIcmPVzimB5CiRj7LN6FEBDs6NkcuZUeSwJf9GuyDUNgwz7NmLFUtdV/wv6HStQhQzt9B1nQmpfWNdwGIXbOJjMIZMrqTq6O6A/dPqV69wdzPIT82UXye98HSNRuX54F9v4r/opegXekCq3MqJmRjUEhQq0lZ2xubMunAnAdIVulABSfb00SgCTfcElYGCQJO5c99bgGejOi9Gb1/iQMpzrD7cNdjd6tBq2Q8smgVLRSGwPWb4BF44kJ1Ky+2vcMsAWnSz0veBG3vE1QTV1uEQZPEa25AbQXq/Dp7mbsieE=
on:
tags: true
python: '3.7'
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [1.2.0] - 2021-03-31
- Added support of python 3.9
- Added support of SQLAlchemy 1.4
- Removed support of python 3.6
- Removed support of SQLAlchemy 1.1, 1.2

## [1.1.2] - 2020-10-21
- Fixed queries for UNIX platforms [issue-18]

Expand Down
18 changes: 0 additions & 18 deletions Makefile

This file was deleted.

4 changes: 2 additions & 2 deletions easy_profile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
from .reporters import StreamReporter

__all__ = ["EasyProfileMiddleware", "SessionProfiler", "StreamReporter"]
__author__ = "Dmitri Vasilishin"
__version__ = "1.1.0"
__author__ = "Dmitry Vasilishin"
__version__ = "1.2.0"
8 changes: 0 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
[bumpversion]
current_version = 1.1.0
commit = True
tag = True
message = "version {new_version}"

[bumpversion:file:easy_profile/__init__.py]

[flake8]
max-complexity = 10
exclude = .eggs,.tox,.venv*,build,dist
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ def read(fname):
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
keywords=["sqlalchemy", "easy", "profile", "profiler", "profiling"],
install_requires=["sqlalchemy>=1.1,<1.5", "sqlparse>=0.3.0"],
install_requires=["sqlalchemy<=1.4", "sqlparse>=0.3.0"],
tests_require=["coverage"],
extras_require={"dev": ["tox", "bumpversion"]}
extras_require={"dev": ["tox"]}
)
3 changes: 1 addition & 2 deletions tests/test_profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ def test_initialization_default(self):
self.assertIsNone(profiler.queries)

def test_initialization_custom(self):
engine = create_engine("sqlite://")
engine.url.database = "test"
engine = create_engine("sqlite:///test")
profiler = SessionProfiler(engine)
self.assertIs(profiler.engine, engine)
self.assertEqual(profiler.db_name, "test")
Expand Down
8 changes: 3 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
[tox]
envlist =
sa11-py{36,37,38}
sa12-py{36,37,38}
sa13-py{36,37,38}
sa13-py{37,38,39}
sa14-py{37,38,39}
pep8

[testenv]
passenv = CI TRAVIS TRAVIS_*
deps =
codecov
sa11: SQLAlchemy>=1.1,<1.2
sa12: SQLAlchemy>=1.2,<1.3
sa13: SQLAlchemy>=1.3,<1.4
sa14: SQLAlchemy>=1.4,<1.5

commands = coverage run setup.py test

Expand Down

0 comments on commit 5fa5f22

Please sign in to comment.