Skip to content

Commit 3108186

Browse files
committed
start packaging
1 parent b510f54 commit 3108186

File tree

4 files changed

+27
-41
lines changed

4 files changed

+27
-41
lines changed

CHANGES.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1+
03 May 2021:
2+
3+
- Package version 0.2.3 (PhD defense) - Prepare for PyPI release
4+
- Prepare for a new version 0.3.x (post-PhD)
5+
16
15 Sep 2015:
2-
+ Restructure project folder.
7+
8+
- Restructure project folder.

MANIFEST.in

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include README.md
2+
include LICENSE
3+
include requirements*.txt

coolisf/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
__version_major__ = "0.2.3" # follow PEP-0440
1717
__version__ = "{}beta".format(__version_major__)
1818
__version_long__ = "{} - Beta".format(__version_major__)
19-
__status__ = "Prototype"
19+
__status__ = "4 - Beta"

setup.py

+16-39
Original file line numberDiff line numberDiff line change
@@ -9,40 +9,11 @@
99
@license: MIT
1010
'''
1111

12-
# Copyright (c) 2015, Le Tuan Anh <[email protected]>
13-
#
14-
# Permission is hereby granted, free of charge, to any person obtaining a copy
15-
# of this software and associated documentation files (the "Software"), to deal
16-
# in the Software without restriction, including without limitation the rights
17-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18-
# copies of the Software, and to permit persons to whom the Software is
19-
# furnished to do so, subject to the following conditions:
20-
#
21-
# The above copyright notice and this permission notice shall be included in
22-
# all copies or substantial portions of the Software.
23-
#
24-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30-
# THE SOFTWARE.
31-
3212
########################################################################
3313

3414
import io
3515
import os
36-
from setuptools import setup, find_packages
37-
from setuptools.command.test import test as TestCommand
38-
39-
from coolisf import __author__, __email__
40-
from coolisf import __version__, __license__
41-
from coolisf import __url__, __description__
42-
# from coolisf import __credits__, __maintainer__
43-
# from coolisf import __copyright__, __status__
44-
45-
########################################################################
16+
from setuptools import setup
4617

4718

4819
here = os.path.abspath(os.path.dirname(__file__))
@@ -58,18 +29,20 @@ def read(*filenames, **kwargs):
5829
return sep.join(buf)
5930

6031

61-
long_description = read('README.md', 'CHANGES.md')
32+
long_description = read('README.md')
33+
pkg_info = {}
34+
exec(read('coolisf/__version__.py'), pkg_info)
6235

6336
setup(
6437
name='coolisf',
65-
version=__version__,
66-
url=__url__,
67-
license=__license__,
68-
author=__author__,
38+
version=pkg_info["__version__"],
39+
url=pkg_info["__url__"],
40+
license=pkg_info["__license__"],
41+
author=pkg_info["__author__"],
6942
tests_require=[],
7043
install_requires=[],
71-
author_email=__email__,
72-
description=__description__,
44+
author_email=pkg_info["__email__"],
45+
description=pkg_info["__description__"],
7346
long_description=long_description,
7447
packages=['coolisf',
7548
'coolisf/dao',
@@ -80,11 +53,15 @@ def read(*filenames, **kwargs):
8053
platforms='any',
8154
test_suite='test',
8255
classifiers=['Programming Language :: Python',
83-
'Development Status :: 0.1 - Alpha',
56+
'Development Status :: ' + pkg_info["__status__"],
8457
'Natural Language :: English',
58+
'Natural Language :: Japanese',
59+
'Natural Language :: Indonesian',
60+
'Natural Language :: Chinese (Simplified)',
61+
'Natural Language :: Chinese (Traditional)',
8562
'Environment :: Console Application',
8663
'Intended Audience :: Developers',
87-
'License :: OSI Approved :: MIT License',
64+
'License :: OSI Approved :: ' + pkg_info["__license__"],
8865
'Operating System :: OS Independent',
8966
'Topic :: Software Development :: Libraries :: Python Modules']
9067
)

0 commit comments

Comments
 (0)