Skip to main content

A simple tools auto add app extra requires.

Project description

django-app-requires

A simple tools auto add app extra requires.

Install

pip install django-app-requires

Usage

your_app/__init__.py

app_requires = [
    "your",
    "required",
    "apps",
]

pro/settings


INSTALLED_APPS = [
    ...
    'your_app',
    'django_app_requires',
    ...
]

from django_app_requires import add_requires
INSTALLED_APPS = add_requires(INSTALLED_APPS)

# so the final INSTALLED_APPS = [
#     "your",
#     "required",
#     "apps",
#     "your_app",
#     "django_app_requires",
# ]

  1. If your django application requires extra application, then add app_requires = ["your", "required", "apps"] in the app/__init__.py file.
  2. In project using your application, add following code to the pro/settings.py after INSTALLED_APPS.
    from django_app_requires import add_requires
    INSTALLED_APPS = add_requires(INSTALLED_APPS)
    

Releases

Version Released Time Content Notice
v0.1.0 2020/09/23 1. First release.
v0.1.1 2020/09/25 2. Add fastutils & magic-import in requirements.txt.
3. Fix problems of recursive required.
v0.2.0 2020/10/25 4. Add collect_requirements function. Removed
v0.2.1 2020/10/26 5. Don't scan all app, exclude third-part apps.
6. Suggest to use collect_requirements command before doing project package.
v0.2.2 2020/10/26 7. Output sorting.
v0.2.3 2021/04/12 8. Remove collect_requirements command.
9. Test with Django 3.2.
v0.2.4 2021/03/01 10. We are not care about Django's version and fastutils' version, so let the end user to choose the version.
v0.2.5 2021/03/01 11. Fix bdist_wheel problem that including useless files.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-app-requires-0.2.5.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

django_app_requires-0.2.5-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file django-app-requires-0.2.5.tar.gz.

File metadata

  • Download URL: django-app-requires-0.2.5.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for django-app-requires-0.2.5.tar.gz
Algorithm Hash digest
SHA256 f6983784ebcbd1fe5eace50dd74b9bcd198b29f59d8db1e8846d6de2942b3f11
MD5 d7888b42d96239e403c95eec6282694d
BLAKE2b-256 09f4f176324a9757537266a5d96e17b67ae9bc1e0399ccdffebeeae102824c63

See more details on using hashes here.

File details

Details for the file django_app_requires-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: django_app_requires-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for django_app_requires-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1e1393853f3af7ad5fed01d2a569bdf03caadbff8e96a1602a34f78762387386
MD5 832bfd13d21531f7ad7f7a33d67b0a45
BLAKE2b-256 170adb6cb7c4556ce94debcd976886d4c4da9fa4d0fc6553714d6ad5faadbdd2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page