-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from ambitioninc/develop
3.0.1
- Loading branch information
Showing
13 changed files
with
223 additions
and
75 deletions.
There are no files selected for viewing
This file contains 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,84 @@ | ||
# copied from django-cte | ||
name: manager_utils tests | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master,develop] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python: ['3.7', '3.8', '3.9'] | ||
# Time to switch to pytest or nose2? | ||
# nosetests is broken on 3.10 | ||
# AttributeError: module 'collections' has no attribute 'Callable' | ||
# https://github.com/nose-devs/nose/issues/1099 | ||
django: | ||
- 'Django~=2.2.0' | ||
- 'Django~=3.0.0' | ||
- 'Django~=3.1.0' | ||
- 'Django~=3.2.0' | ||
- 'Django~=4.0.0' | ||
- 'Django~=4.1.0' | ||
experimental: [false] | ||
include: | ||
- python: '3.9' | ||
django: 'https://github.com/django/django/archive/refs/heads/main.zip#egg=Django' | ||
experimental: true | ||
# NOTE this job will appear to pass even when it fails because of | ||
# `continue-on-error: true`. Github Actions apparently does not | ||
# have this feature, similar to Travis' allow-failure, yet. | ||
# https://github.com/actions/toolkit/issues/399 | ||
exclude: | ||
- python: '3.7' | ||
django: 'Django~=4.0.0' | ||
- python: '3.7' | ||
django: 'Django~=4.1.0' | ||
services: | ||
postgres: | ||
image: postgres:latest | ||
env: | ||
POSTGRES_DB: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_USER: postgres | ||
ports: | ||
- 5432:5432 | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Setup | ||
run: | | ||
python --version | ||
pip install --upgrade pip wheel | ||
pip install -r requirements/requirements.txt | ||
pip install -r requirements/requirements-testing.txt | ||
pip install "${{ matrix.django }}" | ||
pip freeze | ||
- name: Run tests | ||
env: | ||
DB_SETTINGS: >- | ||
{ | ||
"ENGINE":"django.db.backends.postgresql_psycopg2", | ||
"NAME":"manager_utils", | ||
"USER":"postgres", | ||
"PASSWORD":"postgres", | ||
"HOST":"localhost", | ||
"PORT":"5432" | ||
} | ||
run: | | ||
coverage run manage.py test manager_utils | ||
coverage report --fail-under=100 | ||
continue-on-error: ${{ matrix.experimental }} | ||
- name: Check style | ||
run: flake8 manager_utils |
This file contains 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,6 +1,8 @@ | ||
# Compiled python files | ||
*.pyc | ||
|
||
.tox/ | ||
|
||
# Vim files | ||
*.swp | ||
*.swo | ||
|
This file contains 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 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,2 +1,3 @@ | ||
include README.rst | ||
include LICENSE | ||
recursive-include requirements * |
This file contains 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 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 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 +1 @@ | ||
__version__ = '2.0.4' | ||
__version__ = '3.0.1' |
This file contains 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 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 @@ | ||
Django>=2.2 | ||
django-query-builder>=3.0.1 |
This file contains 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 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 |
---|---|---|
|
@@ -17,6 +17,14 @@ def get_version(): | |
raise RuntimeError('Unable to find version string in {0}.'.format(VERSION_FILE)) | ||
|
||
|
||
def get_lines(file_path): | ||
return open(file_path, 'r').read().split('\n') | ||
|
||
|
||
install_requires = get_lines('requirements/requirements.txt') | ||
tests_require = get_lines('requirements/requirements-testing.txt') | ||
|
||
|
||
setup( | ||
name='django-manager-utils', | ||
version=get_version(), | ||
|
@@ -25,35 +33,31 @@ def get_version(): | |
url='http://github.com/ambitioninc/django-manager-utils/', | ||
author='Wes Kendall', | ||
author_email='[email protected]', | ||
project_urls={ | ||
"Bug Tracker": "https://github.com/ambitioninc/django-manager-utils/issues", | ||
"Changes": "https://django-manager-utils.readthedocs.io/en/latest/release_notes.html", | ||
"Documentation": "https://django-manager-utils.readthedocs.io/en/latest/", | ||
"Source Code": "https://github.com/ambitioninc/django-manager-utils", | ||
}, | ||
packages=find_packages(), | ||
classifiers=[ | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: OS Independent', | ||
'Framework :: Django :: 2.2', | ||
'Framework :: Django :: 3.0', | ||
'Framework :: Django :: 3.1', | ||
'Framework :: Django :: 3.2', | ||
'Framework :: Django :: 4.0', | ||
'Framework :: Django :: 4.1', | ||
], | ||
install_requires=[ | ||
'Django>=2.2', | ||
'django-query-builder>=2.0.0', | ||
], | ||
tests_require=[ | ||
'coverage', | ||
'freezegun', | ||
'mock', | ||
'psycopg2', | ||
'django-nose>=1.3', | ||
'django-dynamic-fixture', | ||
'pytz', | ||
'django-timezone-field', | ||
'parameterized', | ||
], | ||
install_requires=install_requires, | ||
tests_require=tests_require, | ||
test_suite='run_tests.run', | ||
include_package_data=True, | ||
) |
Oops, something went wrong.