Skip to content

Commit

Permalink
Merge pull request #274 from newpanjing/dev
Browse files Browse the repository at this point in the history
Add shell script.
  • Loading branch information
newpanjing authored Jun 22, 2020
2 parents 39801dd + c3dec31 commit 32b9360
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
9 changes: 8 additions & 1 deletion RELEASE.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/usr/bin/env bash
echo 'release django-simpleui'
rm -rf dist/*
python3 setup.py sdist
twine upload dist/*
twine upload dist/*
echo 'django-simpleui upload success!'

echo 'release simpleui'
python3 setup2.py sdist
twine upload dist/*
echo 'simpleui upload success!'
34 changes: 34 additions & 0 deletions setup2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# -*- coding: utf-8 -*-
import sys

from setuptools import setup
import simpleui

if sys.version_info < (3, 0):

long_description = "\n".join([
open('README.rst', 'r').read(),
])
else:
long_description = "\n".join([
open('README.rst', 'r', encoding='utf-8').read(),
])

setup(
name='simpleui',
version=simpleui.get_version(),
packages=['simpleui'],
zip_safe=False,
include_package_data=True,
url='https://github.com/newpanjing/simpleui',
license='Apache License 2.0',
author='panjing',
long_description=long_description,
author_email='[email protected]',
description='django admin theme 后台模板',
install_requires=['django'],
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
)

0 comments on commit 32b9360

Please sign in to comment.