Skip to content

Commit

Permalink
Updated setup and doc elements
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua.logan committed Feb 19, 2018
1 parent 84ea009 commit 5af50f7
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 8 deletions.
1 change: 1 addition & 0 deletions VERSION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.1.1.post1
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# The short X.Y version.
version = '1.1'
# The full version, including alpha/beta/rc tags.
release = '1.1.0'
release = '1.1.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
5 changes: 4 additions & 1 deletion odslib3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
from . import odsMimetype
from . import odsManifest

VERSION = '1.1.1'
HERE = path.abspath(path.dirname(__file__))

with open(path.join(HERE, '..', 'VERSION.txt'), encoding='utf-8') as f:
VERSION = f.read()

def get_version():
"Returns a PEP 386-compliant version number from VERSION."
Expand Down
9 changes: 6 additions & 3 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
./setup.py sdist --formats=bztar upload
echo "Generating docs"
./setup.py build_sphinx
echo "Uploading docs to pypi"
./setup.py upload_docs --upload-dir build/sphinx/html/
echo "Creating sdist"
./setup.py sdist --formats=bztar
echo "Creating wheel package"
./setup.py bdist_wheel
echo "Uploading via twine"
twine upload dist/*
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
16 changes: 13 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
#!/usr/bin/env python

from setuptools import setup, find_packages
version = '1.1.1'

HERE = path.abspath(path.dirname(__file__))

with open(path.join(HERE, 'README.rst'), encoding='utf-8') as f:
LONG_DESCRIPTION=f.read()
with open(path.join(HERE, 'VERSION.txt'), encoding='utf-8') as f:
VERSION = f.read()

if __name__ == '__main__':
setup(name='odslib3',
version=version,
version=VERSION,
description='An easy to use module that creates ODS documents. Fork of odslib (https://github.com/TauPan/odslib) as looking unmaintained. Original author: Joseph Colton. Adapted for Python3.x support by Joshua Logan',
long_description=LONG_DESCRIPTION
author='Joshua Logan',
author_email='joshua.logan@eveco.re',
url='https://github.com/Exelscior/odslib3',
packages=find_packages(),
license='GPL',
keywords='ods libreoffice'
python_requires='>=2.7',
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)

0 comments on commit 5af50f7

Please sign in to comment.