浏览代码

Update readme, build 1.0.0

olinox 8 年之前
父节点
当前提交
0c10bc539d
共有 4 个文件被更改,包括 64 次插入5 次删除
  1. 1 0
      MANIFEST.in
  2. 6 2
      README.md
  3. 3 3
      dice.py
  4. 54 0
      setup.py

+ 1 - 0
MANIFEST.in

@@ -0,0 +1 @@
+include README.md

+ 6 - 2
README.md

@@ -10,7 +10,7 @@ DiceRollParser has been tested with python 3.3+
 
 ### Documentation
 
-See the full documentation at [...]()
+See the **[full documentation](https://pydice.readthedocs.io/en/latest/)**
 
 #### Examples:  
 
@@ -69,4 +69,8 @@ Any opinion / contribution is welcome, please contact us.
 
 #### Author
 
-Olivier Massot, 2017, with *Cro-ki Lab*
+Olivier Massot, 2017, with *Cro-ki Lab*
+
+#### Tags
+
+	dice roll d20 game random parser dices role board

+ 3 - 3
dice.py

@@ -1,14 +1,14 @@
 '''
-    pydice is a lightweight python library for managing rolls of dice.
+    pydice is a lightweight python 3.3+ library for managing rolls of dice.
 
     License: GNU
 
-@author: olinox14, 2017
+@author: Olivier Massot <croki.contact@gmail.com>, 2017
 '''
 import random
 import re
 
-__VERSION__ = 0.1
+__VERSION__ = 1.0
 
 def compile(pattern_string):  # @ReservedAssignment
     p = Pattern(pattern_string)

+ 54 - 0
setup.py

@@ -0,0 +1,54 @@
+"""A setuptools based setup module.
+
+@author: olinox14, 2017
+"""
+
+from setuptools import setup
+from os import path
+
+here = path.abspath(path.dirname(__file__))
+
+with open(path.join(here, 'README.md'), encoding='utf-8') as f:
+    long_description = f.read()
+
+setup(
+    name='pydice',
+
+    version='1.0.0',
+
+    description='Lightweight python library for managing dice, scores, and dice-notation patterns.',
+    long_description=long_description,
+
+    url='https://github.com/cro-ki/pydice',
+
+    author='Olivier Massot',
+    author_email='croki.contact@gmail.com',
+
+    license='GNU',
+
+    py_modules=['dice', 'roll'],
+    python_requires='>=3.3',
+
+    include_package_data=True,
+
+    classifiers=[
+        'Development Status :: 5 - Production/Stable',
+
+        'Intended Audience :: Developers',
+        "Intended Audience :: Other Audience",
+        'Topic :: Games/Entertainment :: Board Games',
+        'Topic :: Games/Entertainment :: Role-Playing',
+        'Topic :: Games/Entertainment :: Multi-User Dungeons (MUD)',
+        'Topic :: Games/Entertainment :: Turn Based Strategy',
+
+        'License :: OSI Approved :: GNU General Public License (GPL)',
+
+        'Programming Language :: Python :: 3.3',
+        'Programming Language :: Python :: 3.4',
+        'Programming Language :: Python :: 3.5',
+        'Programming Language :: Python :: 3.6',
+    ],
+
+    keywords='dice roll d20 game random parser dices role board',
+
+)