-
Notifications
You must be signed in to change notification settings - Fork 2
Package upgrade #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Package upgrade #12
Changes from 9 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d9fa625
Package upgrade
konraddysput 8c6838d
Change tests to pytest
konraddysput 8a9e1bb
Fix tox.ini and try to not update python library
konraddysput 1d2437a
Use docker file to test against python2.7
konraddysput 30309e6
DO not use tox in python2 docker container
konraddysput cb09090
DO not use tox in python2 docker container
konraddysput 7bee803
Install pytest
konraddysput a7f25d7
Set correct classifier for python2
konraddysput 3c9571a
Set correct classifier for python2
konraddysput 66ee76b
Update Dockerfile
konraddysput f113ab0
Add eol for gitignore and tox.ini
konraddysput File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.7, 3.8, 3.9, 3.11] # List of Python versions to test against | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
update-environment: false | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
|
||
- name: Run Tox | ||
run: tox | ||
|
||
test_python_2: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Build | ||
run: docker build -t backtrace-python . | ||
|
||
- name: Run Docker Container | ||
run: docker run --rm backtrace-python |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,61 @@ | ||
*.egg-info | ||
test_all | ||
build/ | ||
# Byte-compiled files | ||
*.pyc | ||
*.pyo | ||
*.pyd | ||
__pycache__/ | ||
|
||
# Distribution / packaging | ||
*.egg | ||
*.egg-info/ | ||
dist/ | ||
build/ | ||
.eggs/ | ||
*.egg-info/ | ||
*.manifest | ||
*.spec | ||
|
||
# Installation directories | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# pytest | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
*.py,cover | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# virtualenv | ||
venv/ | ||
ENV/ | ||
env/ | ||
.venv/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# tox | ||
.tox/ | ||
nox/ | ||
coverage-report/ | ||
|
||
# IDEs and editors | ||
.vscode/ | ||
.idea/ | ||
*.swp | ||
*.swo | ||
|
||
# macOS | ||
.DS_Store | ||
|
||
# Windows | ||
Thumbs.db | ||
Desktop.ini |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM python:2.7-slim | ||
|
||
WORKDIR /sdk | ||
COPY . /sdk | ||
|
||
RUN pip install --upgrade pip \ | ||
&& pip install pytest -r requirements.txt | ||
|
||
CMD ["pytest"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
six | ||
simplejson==3.19.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,31 @@ | ||
#!/usr/bin/env python | ||
|
||
from setuptools import setup | ||
from setuptools import find_packages, setup | ||
|
||
import backtracepython | ||
|
||
setup( | ||
name='backtracepython', | ||
version=backtracepython.version_string, | ||
description='Backtrace error reporting tool for Python', | ||
author='Andrew Kelley', | ||
author_email='akelley@backtrace.io', | ||
packages=['backtracepython'], | ||
description='Backtrace.io error reporting tool for Python', | ||
author='Backtrace.io', | ||
author_email='team@backtrace.io', | ||
packages=find_packages(), | ||
test_suite="tests", | ||
url='https://github.com/backtrace-labs/backtrace-python', | ||
install_requires=[ | ||
'six', | ||
'simplejson', | ||
] | ||
], | ||
extras_require={ | ||
'test': ['pytest'], | ||
}, | ||
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4', | ||
classifiers=[ | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
], | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[tox] | ||
envlist = py27, py37, py38, py39, py310 | ||
skipsdist = True | ||
|
||
[testenv] | ||
deps = | ||
-rrequirements.txt | ||
pytest | ||
commands = | ||
pytest | ||
perf2711 marked this conversation as resolved.
Show resolved
Hide resolved
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.