diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..a2d42f5 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,40 @@ +name: test +on: [push] +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [2.7, 3.5, 3.6, 3.7, 3.8] + django-version: [1.11, 2.0, 2.1, 2.2, 3.0] + exclude: + # Python 2.7 is only compatible with Django 1.11 + - python-version: 2.7 + django-version: 2.0 + - python-version: 2.7 + django-version: 2.1 + - python-version: 2.7 + django-version: 2.2 + - python-version: 2.7 + django-version: 3.0 + # Python 3.5 is compatible with Django 1.11 to 2.2 but not 3.0 + - python-version: 3.5 + django-version: 3.0 + fail-fast: false + steps: + - uses: actions/checkout@v1 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + pip install -U pip + pip install "Django~=${{ matrix.django-version }}.0" . + + - name: Run Tests + run: | + echo "$(python --version) / Django $(django-admin --version)" + python -m unittest discover diff --git a/.gitignore b/.gitignore index ca5c13b..7b49b47 100644 --- a/.gitignore +++ b/.gitignore @@ -53,3 +53,4 @@ docs/_build/ # Virtualenv env/ +.vscode/ diff --git a/Makefile b/Makefile deleted file mode 100644 index 0249649..0000000 --- a/Makefile +++ /dev/null @@ -1,2 +0,0 @@ -test: - python test_dj_database_url.py \ No newline at end of file diff --git a/README.rst b/README.rst index 03a80f0..a9cf2aa 100644 --- a/README.rst +++ b/README.rst @@ -1,8 +1,8 @@ DJ-Database-URL ~~~~~~~~~~~~~~~ -.. image:: https://secure.travis-ci.org/jacobian/dj-database-url.svg?branch=master - :target: http://travis-ci.org/jacobian/dj-database-url +.. image:: https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fjacobian%2Fdj-database-url%2Fbadge&style=for-the-badge + :target: https://actions-badge.atrox.dev/jacobian/dj-database-url/goto This simple Django utility allows you to utilize the `12factor `_ inspired diff --git a/setup.py b/setup.py index 49bd049..17f2d3a 100644 --- a/setup.py +++ b/setup.py @@ -5,37 +5,40 @@ with open('README.rst') as readme_rst: readme = readme_rst.read() setup( - name='dj-database-url', - version='0.5.0', - url='https://github.com/kennethreitz/dj-database-url', - license='BSD', - author='Kenneth Reitz', - author_email='me@kennethreitz.com', - description='Use Database URLs in your Django Application.', + name="dj-database-url", + version="0.5.0", + url="https://github.com/jacobian/dj-database-url", + license="BSD", + author="Kenneth Reitz", + author_email="me@kennethreitz.com", + description="Use Database URLs in your Django Application.", long_description=readme, - py_modules=['dj_database_url'], + py_modules=["dj_database_url"], + install_requires=["Django>1.11"], zip_safe=False, include_package_data=True, - platforms='any', + platforms="any", classifiers=[ - 'Environment :: Web Environment', - 'Framework :: Django', - 'Framework :: Django :: 1.11', - 'Framework :: Django :: 2.0', - 'Framework :: Django :: 2.1', - 'Framework :: Django :: 2.2', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: BSD License', - 'Operating System :: OS Independent', - 'Programming Language :: Python', - 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', - 'Topic :: Software Development :: Libraries :: Python Modules', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - ] + "Environment :: Web Environment", + "Framework :: Django", + "Framework :: Django :: 1.11", + "Framework :: Django :: 2.0", + "Framework :: Django :: 2.1", + "Framework :: Django :: 2.2", + "Framework :: Django :: 3.0", + "Intended Audience :: Developers", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Topic :: Internet :: WWW/HTTP :: Dynamic Content", + "Topic :: Software Development :: Libraries :: Python Modules", + "Programming Language :: Python", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + ], )