Add python package scaffold

master
Uğur Özyılmazel 2019-10-07 14:54:39 +03:00
parent 5aed43038b
commit ca26ca3620
No known key found for this signature in database
GPG Key ID: 43CAF9E2A63DF017
6 changed files with 148 additions and 0 deletions

8
.bumpversion.cfg 100644
View File

@ -0,0 +1,8 @@
[bumpversion]
current_version = 0.1.0
commit = True
[bumpversion:file:setup.py]
[bumpversion:file:djaa_list_filter/__init__.py]

21
LICENCE 100644
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2019 Demirören Teknoloji
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

42
README.md 100644
View File

@ -0,0 +1,42 @@
![Python](https://img.shields.io/badge/python-3.7.3-green.svg)
[![PyPI version](https://badge.fury.io/py/django-admin-autocomplete-list-filter.svg)](https://badge.fury.io/py/django-admin-autocomplete-list-filter)
# django-admin-autocomplete-list-filter
Ajax autocomplete list filter for Django admin. Uses built-in shipped Djangos
widgets.
## Installation and Usage
@wip
## License
This project is licensed under MIT
---
## Contributer(s)
* [Can Adıyaman](https://github.com/canadiyaman) - Creator, maintainer
* [Uğur "vigo" Özyılmazel](https://github.com/vigo) - Maintainer
---
## Contribute
All PRs are welcome!
1. `fork` (https://github.com/demiroren-teknoloji/django-admin-autocomplete-list-filter/fork)
1. Create your `branch` (`git checkout -b my-features`)
1. `commit` yours (`git commit -am 'added killer options'`)
1. `push` your `branch` (`git push origin my-features`)
1. Than create a new **Pull Request**!
---
## Change Log
**2019-10-07**
- Init repo...

39
Rakefile 100644
View File

@ -0,0 +1,39 @@
task :default => [:install]
desc "Remove/Delete build..."
task :clean do
rm_rf %w(build dist)
rm_rf Dir.glob("*.egg-info")
puts "Build files are removed..."
end
desc "Install package for local development purpose"
task :install => [:build] do
system "pip install -e ."
end
desc "Build package"
task :build => [:clean] do
system "python setup.py sdist bdist_wheel"
end
namespace :upload do
desc "Upload package to main distro (release)"
task :main => [:build] do
puts "Uploading package to MAIN distro..."
system "twine upload --repository pypi dist/*"
end
desc "Upload package to test distro"
task :test => [:build] do
puts "Uploading package to TEST distro..."
system "twine upload --repository testpypi dist/*"
end
end
AVAILABLE_REVISIONS = ["major", "minor", "patch"]
desc "Bump version"
task :bump, [:revision] do |t, args|
args.with_defaults(revision: "patch")
abort "Please provide valid revision: #{AVAILABLE_REVISIONS.join(',')}" unless AVAILABLE_REVISIONS.include?(args.revision)
system "bumpversion #{args.revision}"
end

View File

@ -0,0 +1 @@
__version__ = '0.1.0'

37
setup.py 100644
View File

@ -0,0 +1,37 @@
import os
from setuptools import find_packages, setup
CURRENT_WORKING_DIRECTORY = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(CURRENT_WORKING_DIRECTORY, 'README.md')) as fp:
README = fp.read()
setup(
name='django-admin-autocomplete-list-filter',
version='0.1.0',
description='Ajax autocomplete list filter for Django admin',
long_description=README,
long_description_content_type='text/markdown',
url='https://github.com/demiroren-teknoloji/django-admin-autocomplete-list-filter',
author='Uğur Özyılmazel',
author_email='ugur.ozyilmazel@demirorenteknoloji.com',
license='MIT',
python_requires='>=3.0',
packages=find_packages(),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 2.2.4',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
include_package_data=True,
)