Skip to content

Commit

Permalink
Version 0.9.1
Browse files Browse the repository at this point in the history
Intended first PyPI version.
Added manifest file, setup.cfg and modified setup.py.
Added Markdown to RST converter to use before PyPI releases.
Preparation for adding the package to PyPI.
  • Loading branch information
hbldh committed Jan 13, 2016
1 parent 9ba11e2 commit 10bb66e
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
README.rst

# Created by .ignore support plugin (hsz.mobi)
### Linux template
*~
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include LICENSE.txt
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,4 @@ or as a one-liner:
030467050920010006067300148301006027400850600090200400005624001203000504040030702

Any character other than `[1-9]` may be used as a placeholder for unknowns.

26 changes: 26 additions & 0 deletions convert_md_to_rst.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
:mod:`register`
==================
Created by hbldh <[email protected]>
Created on 2016-01-13
"""

from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import

import pandoc

pandoc.core.PANDOC_PATH = "/usr/bin/pandoc"
doc = pandoc.Document()
doc.markdown = open('README.md') .read()
with open('README.rst', 'w') as f:
f.write(doc.rst)



2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bdist_wheel]
universal=1
11 changes: 8 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@
from setuptools import setup, find_packages

# Get the long description from the README file
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md')) as f:
long_description = f.read()
try:
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.rst')) as f:
long_description = f.read()
except:
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md')) as f:
long_description = f.read()

setup(
name='dlxsudoku',
version='0.9.0',
version='0.9.1',
author='Henrik Blidh',
author_email='[email protected]',
description='Sudoku Solver in pure Python with no dependencies',
Expand All @@ -46,6 +50,7 @@
'Programming Language :: Python :: 3.5',
'Intended Audience :: Developers',
],
keywords=["sudoku", "sudoku solver", "dancing links"],
packages=find_packages(exclude=('tests', )),
install_requires=[],
package_data={},
Expand Down

0 comments on commit 10bb66e

Please sign in to comment.