2017-09-27 16:12:02 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-dj-database-url
|
|
|
|
|
#
|
2022-12-29 22:40:38 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2017-09-27 16:12:02 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2018-12-04 13:23:53 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-12-13 14:52:30 +00:00
|
|
|
#
|
2017-09-27 16:12:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-dj-database-url
|
2022-12-29 22:40:38 +00:00
|
|
|
Version: 1.2.0
|
2017-09-27 16:12:02 +00:00
|
|
|
Release: 0
|
2019-03-18 20:15:24 +00:00
|
|
|
Summary: Utility to use database URLs in Django applications
|
2017-12-13 14:52:30 +00:00
|
|
|
License: BSD-3-Clause
|
2017-09-27 16:12:02 +00:00
|
|
|
Group: Development/Languages/Python
|
2022-12-29 22:40:38 +00:00
|
|
|
URL: https://github.com/jazzband/dj-database-url
|
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/d/dj-database-url/dj-database-url-%{version}.tar.gz
|
|
|
|
|
BuildRequires: %{python_module Django > 3.2}
|
|
|
|
|
BuildRequires: %{python_module devel >= 3.6}
|
|
|
|
|
BuildRequires: %{python_module packaging}
|
|
|
|
|
BuildRequires: %{python_module pip}
|
2017-09-27 16:12:02 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2022-12-29 22:40:38 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-09-27 16:12:02 +00:00
|
|
|
BuildRequires: fdupes
|
2017-12-13 14:52:30 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2022-12-29 22:40:38 +00:00
|
|
|
Requires: python-Django > 3.2
|
|
|
|
|
%if 0%{?python_version_nodots} < 38
|
|
|
|
|
Requires: python-typing_extensions >= 3.10
|
|
|
|
|
%endif
|
2017-09-27 16:12:02 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
2019-03-18 20:15:24 +00:00
|
|
|
This Django utility allows you to utilize the 12factor inspired
|
|
|
|
|
DATABASE_URL environment variable to configure Django applications.
|
2017-09-27 16:12:02 +00:00
|
|
|
|
2019-03-18 20:15:24 +00:00
|
|
|
The `dj_database_url.config` method returns a Django database connection
|
2017-09-27 16:12:02 +00:00
|
|
|
dictionary, populated with all the data specified in your URL. There is
|
|
|
|
|
also a `conn_max_age` argument to easily enable Django's connection pool.
|
|
|
|
|
|
|
|
|
|
If you'd rather not use an environment variable, you can pass a URL in directly
|
|
|
|
|
instead to ``dj_database_url.parse``.
|
|
|
|
|
|
|
|
|
|
Supported Databases
|
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
|
|
Support currently exists for PostgreSQL, PostGIS, MySQL, MySQL (GIS),
|
|
|
|
|
Oracle, Oracle (GIS), and SQLite.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n dj-database-url-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2022-12-29 22:40:38 +00:00
|
|
|
%pyproject_wheel
|
2017-09-27 16:12:02 +00:00
|
|
|
|
|
|
|
|
%install
|
2022-12-29 22:40:38 +00:00
|
|
|
%pyproject_install
|
2017-09-27 16:12:02 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
2018-12-04 17:12:18 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
2022-12-29 22:40:38 +00:00
|
|
|
%{python_sitelib}/dj_database_url.py
|
|
|
|
|
%{python_sitelib}/dj_database_url-%{version}.dist-info
|
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__
|
2017-09-27 16:12:02 +00:00
|
|
|
|
|
|
|
|
%changelog
|