Skip to content

Commit 69eb9b5

Browse files
committed
add files for building python package
1 parent bb0f2ae commit 69eb9b5

File tree

5 files changed

+73
-1
lines changed

5 files changed

+73
-1
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
env
22
__pycache__
33
*.sqlite3
4-
media/
4+
media/
5+
dist
6+
build
7+
*.egg-info

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Eduardo José de Oliveira
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

MANIFEST.in

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include README.md
2+
include LICENSE
3+
recursive-include image_uploader_widget *
4+
recursive-include image_uploader_widget/static *
5+
recursive-include image_uploader_widget/templates *
6+
recursive-exclude image_uploader_widget_demo *

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Simple Image Uploader Widget for Django
2+
3+
**Warning**: This was developed using the more recent version of django and i have not tested this with older django versions (because i created this for use in some recent projects). Is not my intentions to made this complete compatible with old versions of django, but if you want to try to use this with older versions of django and get some erros, please **contact-me** (or open a **issue** here) and we can talk about the errors and made this compatible to the version that you are geting errors.
4+
5+

setup.py

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/usr/bin/env python
2+
import os
3+
from setuptools import setup, find_packages
4+
5+
f = open(os.path.join(os.path.dirname(__file__), 'README.md'))
6+
readme = f.read()
7+
f.close()
8+
9+
setup(
10+
name='image_uploader_widget',
11+
version='0.0.1',
12+
description='Simple Image Uploader Widget for Django-Admin',
13+
long_description=readme,
14+
author='Eduardo Oliveira',
15+
author_email='eduardo_y05@outlook.com',
16+
url='https://github.com/EduardoJM/django-image-uploader-widget',
17+
license='MIT',
18+
packages=find_packages(
19+
exclude = ('image_uploader_widget_demo',)
20+
),
21+
include_package_data=True,
22+
zip_safe=False,
23+
classifiers=[
24+
'Development Status :: 5 - Production/Stable',
25+
'Environment :: Web Environment',
26+
'Framework :: Django',
27+
'Intended Audience :: Developers',
28+
'License :: OSI Approved :: MIT License',
29+
'Operating System :: OS Independent',
30+
'Programming Language :: Python',
31+
'Programming Language :: Python :: 3',
32+
'Programming Language :: Python :: 3.4',
33+
'Programming Language :: Python :: 3.5',
34+
'Programming Language :: Python :: 3.6',
35+
],
36+
keywords='django,admin,widget,image,uploader',
37+
)

0 commit comments

Comments
 (0)