Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .coveragerc

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test

on:
pull_request:
branches:
- master

jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.11
- 3.12
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/eggs
key: ${{ runner.os }}-eggs-${{ matrix.python-version }}-${{ hashFiles('*cfg') }}
restore-keys: |
${{ runner.os }}-eggs-${{ matrix.python-version }}-
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install tox
- run: tox
env:
TOXENV: ${{ matrix.python-version }}
71 changes: 0 additions & 71 deletions .github/workflows/tests-and-linters.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,5 @@ src/dependency_injector/providers/*.so

# Workspace for samples
.workspace/
.venv
.DS_Store
5 changes: 3 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cython==0.29.32
cython==0.29.37
pytest
pytest-asyncio
tox
Expand All @@ -11,10 +11,11 @@ mypy
pyyaml
httpx
fastapi
pydantic
pydantic<2
numpy
scipy
boto3
mypy_boto3_s3
typing_extensions

-r requirements-ext.txt
5 changes: 3 additions & 2 deletions requirements-ext.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
flask
aiohttp
flask<2.2.0
werkzeug<=2.2.2
aiohttp==3.9.0b1
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

16 changes: 1 addition & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@

import os
import re
import sys

from setuptools import setup, Extension


def _open(filename):
if sys.version_info[0] == 2:
return open(filename)
return open(filename, encoding="utf-8")


Expand All @@ -21,9 +18,6 @@ def _open(filename):
with _open("README.rst") as readme_file:
description = readme_file.read()

# Getting requirements:
with _open("requirements.txt") as requirements_file:
requirements = requirements_file.readlines()

# Getting version:
with _open("src/dependency_injector/__init__.py") as init_file:
Expand Down Expand Up @@ -70,7 +64,6 @@ def _open(filename):
define_macros=list(defined_macros.items()),
extra_compile_args=["-O2"]),
],
install_requires=requirements,
extras_require={
"yaml": [
"pyyaml",
Expand Down Expand Up @@ -104,16 +97,9 @@ def _open(filename):
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"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",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Framework :: AsyncIO",
Expand Down
Loading