Skip to content

Commit

Permalink
Redo as a package
Browse files Browse the repository at this point in the history
  • Loading branch information
palfrey committed Apr 2, 2023
1 parent 7ee1eea commit a46f64b
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
max-line-length = 88
extend-ignore = E203
per-file-ignores=
test_dj_database_url.py: E501, E265
tests/test_dj_database_url.py: E501, E265
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ jobs:
- name: Run mypy
run: |
python -m mypy dj_database_url.py
python -m mypy dj_database_url
# - name: Run Tests
# run: |
# echo "$(python --version) / Django $(django-admin --version)"
# coverage run --source=dj_database_url --branch -m unittest discover
# coverage report
# coverage xml
- name: Run Tests
run: |
echo "$(python --version) / Django $(django-admin --version)"
coverage run --source=dj_database_url --branch -m unittest discover -v
coverage report
coverage xml
# - uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v3

- name: Check mypy types installation
run: |
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in

This file was deleted.

File renamed without changes.
File renamed without changes.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
description="Use Database URLs in your Django Application.",
long_description=readme,
long_description_content_type="text/x-rst",
py_modules=["dj_database_url"],
packages=["dj_database_url"],
install_requires=["Django>=3.2", "typing_extensions >= 3.10.0.0"],
zip_safe=False,
include_package_data=True,
package_data={
'dj_database_url': ['py.typed'],
},
platforms="any",
project_links={
"GitHub": "https://github.com/jazzband/dj-database-url/",
Expand Down
Empty file added tests/__init__.py
Empty file.

0 comments on commit a46f64b

Please sign in to comment.