Skip to content

Commit

Permalink
Drop support for Python < 3.7 #3 from release/1.0.0a1
Browse files Browse the repository at this point in the history
Release/1.0.0a1
  • Loading branch information
mmiermans committed Jul 1, 2022
2 parents 67642d2 + 15e210c commit 7c2d0ff
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 104 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: build
on:
push:
branches:
- master
- main
pull_request:

jobs:
Expand All @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
python-version: [3.7, 3.8, 3.9, "3.10"]
extras-required: [".", ".[redis]"]

services:
Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/snyk.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ nosetests.xml
# Vagrant
.vagrant
VERSION

# PyCharm
.idea/
4 changes: 4 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 1.0.0a1 (2022-06-01)
--------------------------
Breaking: Drop support for Python < 3.7

Version 0.10.0 (2021-12-16)
--------------------------
Add Python 3.10 support (#254)
Expand Down
3 changes: 0 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ It's also a good idea to log an issue before starting to work on a pull request
If you see an issue you would like to work on, please let us know in the issue! That will help us in terms of scheduling and
not doubling the amount of work.

If you don't know where to start contributing, you can look at
[the issues labeled `good first issue`](https://github.com/snowplow/snowplow-python-tracker/labels/good%20first%20issue).

## Pull requests

These are a few guidelines to keep in mind when opening pull requests.
Expand Down
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
FROM centos:8
FROM python:3.10-bullseye

RUN yum -y install wget
RUN yum install -y epel-release
RUN yum -y install git tar gcc make bzip2 openssl openssl-devel patch gcc-c++ libffi-devel sqlite-devel
RUN git clone git://github.com/yyuu/pyenv.git ~/.pyenv
RUN git clone https://github.com/pyenv/pyenv.git ~/.pyenv
ENV HOME /root
ENV PYENV_ROOT $HOME/.pyenv
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH

RUN pyenv install 3.5.10 && pyenv install 3.6.14 && pyenv install 3.7.11 && pyenv install 3.8.11 && pyenv install 3.9.6 && pyenv install 3.10.1
RUN pyenv install 3.7.11 && pyenv install 3.8.11 && pyenv install 3.9.6 && pyenv install 3.10.1
RUN git clone https://github.com/pyenv/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv

WORKDIR /app
Expand Down
6 changes: 2 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ Python Support
+----------------+--------------------------+
| Python version | snowplow-tracker version |
+================+==========================+
| >=3.5 | 0.10.0 |
+----------------+--------------------------+
| 2.7 | 0.9.1 |
| >=3.7 | 1.0.0 |
+----------------+--------------------------+

Maintainer Quickstart
Expand All @@ -78,7 +76,7 @@ Assuming pyenv_ is installed

host$ git clone git@github.com:snowplow/snowplow-python-tracker.git
host$ cd snowplow-python-tracker
host$ pyenv install 2.7.18 && pyenv install 3.5.10 && pyenv install 3.6.14 && pyenv install 3.7.11 && pyenv install 3.8.11 && pyenv install 3.9.6
host$ pyenv install 3.7.11 && pyenv install 3.8.11 && pyenv install 3.9.6
host$ ./run-tests.sh deploy
host$ ./run-tests.sh test

Expand Down
53 changes: 0 additions & 53 deletions run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,39 +15,6 @@ eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

function deploy {
# pyenv install 3.5.10
if [ ! -e ~/.pyenv/versions/tracker35 ]; then
pyenv virtualenv 3.5.10 tracker35
pyenv activate tracker35
pip install .
pip install -r requirements-test.txt
source deactivate
fi

if [ ! -e ~/.pyenv/versions/tracker35redis ]; then
pyenv virtualenv 3.5.10 tracker35redis
pyenv activate tracker35redis
pip install .[redis]
pip install -r requirements-test.txt
source deactivate
fi

# pyenv install 3.6.14
if [ ! -e ~/.pyenv/versions/tracker36 ]; then
pyenv virtualenv 3.6.14 tracker36
pyenv activate tracker36
pip install .
pip install -r requirements-test.txt
source deactivate
fi

if [ ! -e ~/.pyenv/versions/tracker36redis ]; then
pyenv virtualenv 3.6.14 tracker36redis
pyenv activate tracker36redis
pip install .[redis]
pip install -r requirements-test.txt
source deactivate
fi

# pyenv install 3.7.11
if [ ! -e ~/.pyenv/versions/tracker37 ]; then
Expand Down Expand Up @@ -120,22 +87,6 @@ function deploy {


function run_tests {
pyenv activate tracker35
pytest
source deactivate

pyenv activate tracker35redis
pytest
source deactivate

pyenv activate tracker36
pytest
source deactivate

pyenv activate tracker36redis
pytest
source deactivate

pyenv activate tracker37
pytest
source deactivate
Expand Down Expand Up @@ -170,10 +121,6 @@ function run_tests {
}

function refresh_deploy {
pyenv uninstall -f tracker35
pyenv uninstall -f tracker35redis
pyenv uninstall -f tracker36
pyenv uninstall -f tracker36redis
pyenv uninstall -f tracker37
pyenv uninstall -f tracker37redis
pyenv uninstall -f tracker38
Expand Down
16 changes: 8 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,26 @@
'Anuj More',
'Alexander Dean',
'Fred Blundun',
'Paul Boocock'
'Paul Boocock',
'Matt Miermans'
]
authors_str = ', '.join(authors_list)

authors_email_list = [
'support@snowplowanalytics.com',
'm.miermans@gmail.com',
]
authors_email_str = ', '.join(authors_email_list)

setup(
name='snowplow-tracker',
version='0.10.0',
name='aio-snowplow-tracker',
version='1.0.0a1',
author=authors_str,
author_email=authors_email_str,
packages=['snowplow_tracker', 'snowplow_tracker.test', 'snowplow_tracker.redis', 'snowplow_tracker.celery'],
url='http://snowplowanalytics.com',
url='https://github.com/miermans/aio-snowplow-python-tracker',
license='Apache License 2.0',
description='Snowplow event tracker for Python. Add analytics to your Python and Django apps, webapps and games',
description='Asyncio Snowplow event tracker for Python. '
'Add analytics to your Python and Django apps, webapps and games',
long_description=open('README.rst').read(),
long_description_content_type='text/x-rst',

Expand All @@ -58,8 +60,6 @@
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
Expand Down
2 changes: 1 addition & 1 deletion snowplow_tracker/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
License: Apache License Version 2.0
"""

__version_info__ = (0, 10, 0)
__version_info__ = (1, 0, '0a1')
__version__ = ".".join(str(x) for x in __version_info__)
__build_version__ = __version__ + ''

0 comments on commit 7c2d0ff

Please sign in to comment.