django-utils-core 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- django_utils_core-0.1.0/MANIFEST.in +1 -0
- django_utils_core-0.1.0/PKG-INFO +5 -0
- django_utils_core-0.1.0/django-utils-core/__init__.py +1 -0
- django_utils_core-0.1.0/django-utils-core/__main__.py +7 -0
- django_utils_core-0.1.0/django-utils-core/_core.py +16 -0
- django_utils_core-0.1.0/django_utils_core.egg-info/PKG-INFO +5 -0
- django_utils_core-0.1.0/django_utils_core.egg-info/SOURCES.txt +10 -0
- django_utils_core-0.1.0/django_utils_core.egg-info/dependency_links.txt +1 -0
- django_utils_core-0.1.0/django_utils_core.egg-info/entry_points.txt +2 -0
- django_utils_core-0.1.0/django_utils_core.egg-info/top_level.txt +1 -0
- django_utils_core-0.1.0/setup.cfg +4 -0
- django_utils_core-0.1.0/setup.py +18 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include django_utils_core/_data/*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.0"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import pkgutil
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
|
|
4
|
+
def _(d='.', o=False):
|
|
5
|
+
t = Path(d)
|
|
6
|
+
t.mkdir(parents=True, exist_ok=True)
|
|
7
|
+
# внутренние имена файлов и реальные имена
|
|
8
|
+
m = ['a', 'b', 'c', 'd', 'e', 'f']
|
|
9
|
+
r = ['views.py', 'forms.py', 'base.html', 'product_list.html', 'order_list.html', 'product_form.html']
|
|
10
|
+
for x, y in zip(m, r):
|
|
11
|
+
c = pkgutil.get_data('django_utils_core', f'_data/{x}')
|
|
12
|
+
if c:
|
|
13
|
+
p = t / y
|
|
14
|
+
if p.exists() and not o:
|
|
15
|
+
continue
|
|
16
|
+
p.write_bytes(c)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
MANIFEST.in
|
|
2
|
+
setup.py
|
|
3
|
+
django-utils-core/__init__.py
|
|
4
|
+
django-utils-core/__main__.py
|
|
5
|
+
django-utils-core/_core.py
|
|
6
|
+
django_utils_core.egg-info/PKG-INFO
|
|
7
|
+
django_utils_core.egg-info/SOURCES.txt
|
|
8
|
+
django_utils_core.egg-info/dependency_links.txt
|
|
9
|
+
django_utils_core.egg-info/entry_points.txt
|
|
10
|
+
django_utils_core.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
django-utils-core
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name='django-utils-core',
|
|
5
|
+
version='0.1.0',
|
|
6
|
+
packages=find_packages(),
|
|
7
|
+
include_package_data=True,
|
|
8
|
+
package_data={
|
|
9
|
+
'django_utils_core': ['_data/*'],
|
|
10
|
+
},
|
|
11
|
+
entry_points={
|
|
12
|
+
'console_scripts': [
|
|
13
|
+
'django-utils-core = django_utils_core.__main__:main', # необязательно
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
classifiers=[],
|
|
17
|
+
python_requires='>=3.6',
|
|
18
|
+
)
|