Skip to content

Commit c533f99

Browse files
add LICENSE, add setup.py, add deploy step in .travis.yml
1 parent dd7c235 commit c533f99

File tree

4 files changed

+63
-0
lines changed

4 files changed

+63
-0
lines changed

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,9 @@ install:
2626

2727
script:
2828
- pipenv run python runtests.py
29+
30+
deploy:
31+
provider: pypi
32+
distributions: "sdist bdist_wheel"
33+
on:
34+
tags: true

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Florimond Manca
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.

rest_framework_api_key/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '0.1.0'

setup.py

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
"""Package setup."""
2+
3+
import setuptools
4+
5+
with open('README.md', 'r') as readme:
6+
long_description = readme.read()
7+
8+
9+
setuptools.setup(
10+
name='djangorestframework-api-key',
11+
version=__import__('rest_framework_api_key').__version__,
12+
author='Florimond Manca',
13+
author_email='[email protected]',
14+
description='Web API permissions for the Django REST Framework',
15+
long_description=long_description,
16+
url='https://github.com/florimondmanca/djangorestframework-api-key',
17+
packages=setuptools.find_packages(),
18+
license='MIT',
19+
classifiers=[
20+
'Topic :: Software Development :: Libraries :: Python Modules',
21+
'Development Status :: 4 - Beta',
22+
'License :: OSI Approved :: MIT License',
23+
'Operating System :: OS Independent',
24+
'Intended Audience :: Developers',
25+
'Environment :: Web Environment',
26+
'Programming Language :: Python :: 3 :: Only',
27+
'Programming Language :: Python :: 3.4',
28+
'Programming Language :: Python :: 3.5',
29+
'Programming Language :: Python :: 3.6',
30+
'Programming Language :: Python :: 3.7',
31+
'Framework :: Django',
32+
'Framework :: Django :: 1.11',
33+
'Framework :: Django :: 2.0',
34+
],
35+
)

0 commit comments

Comments
 (0)