From 47deb7af11c3c7728b604a38b312577e7c7cab00 Mon Sep 17 00:00:00 2001 From: knktc Date: Sun, 9 Sep 2018 21:35:20 +0800 Subject: [PATCH 1/2] finsh url in setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a9a163d..c451d72 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ name='django_qingstor_storage', version='0.1', packages=['django_qingstor_storage'], - url='https://git./knktc/django-qingstor-storage', + url='https://github.com/knktc/django-qingstor-storage', license='Apache License 2.0', author='knktc', author_email='me@knktc.com', From 533b77723c32f6807c6944d292f1a0427666f59d Mon Sep 17 00:00:00 2001 From: knktc Date: Sun, 9 Sep 2018 22:24:12 +0800 Subject: [PATCH 2/2] modify setup.py and readme, now you can install from pypi --- CHANGELOG.md | 9 +++++++++ README.md | 16 +++++++++++----- setup.py | 17 ++++++++++++++--- 3 files changed, 34 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a17dfc..88f62cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [0.1.1] - 2018-09-09 + +### Added + +- modify setup.py and now you can install package by PyPI + + ## [0.1.0] - 2018-09-09 + ### Added + - initial version(you can use this storage backend to upload and download file with **Qingstor**) - add a demo site diff --git a/README.md b/README.md index f6a1143..9802273 100644 --- a/README.md +++ b/README.md @@ -10,16 +10,22 @@ A Django storage backend with **Qingstor**. ## Installation -Clone code, and run following commands to install: +*Using venv is highly recommended.* + +Install by PyPI: ```bash -cd django_qingstor_storage -python setup.py install + +pip install django-qingstor-storage + ``` -*Using venv is highly recommended.* +Install by source code, just clone the code, and run following commands to install: -*PYPI is on the way...* +```bash +cd django_qingstor_storage +python setup.py install +``` ## Settings diff --git a/setup.py b/setup.py index c451d72..e96466a 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,24 @@ from setuptools import setup +with open('README.md', 'r') as fh: + long_description = fh.read() + setup( name='django_qingstor_storage', - version='0.1', + version='0.1.1', packages=['django_qingstor_storage'], url='https://github.com/knktc/django-qingstor-storage', - license='Apache License 2.0', author='knktc', author_email='me@knktc.com', description='Django storage with Qingstor', - install_requires=['django>=2.0', 'qingstor-sdk>=2.2.6', ] + long_description=long_description, + long_description_content_type="text/markdown", + install_requires=['django>=2.0', 'qingstor-sdk>=2.2.6', ], + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Framework :: Django", + "Intended Audience :: Developers", + ], )