Skip to content

Commit

Permalink
for v0.3.0. Move the version description to __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
matsui528 committed Oct 6, 2020
1 parent 65dc258 commit 5e0c1e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions manga109api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
__all__ = ['Parser']
__version__ = '0.3.0'
from .manga109api import Parser
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from setuptools import setup, find_packages
import re

with open('README.md') as f:
readme = f.read()
Expand All @@ -8,9 +9,15 @@
for line in f:
requirements.append(line.rstrip())

with open('manga109api/__init__.py') as f:
# Version is written in manga109api/__init__.py
# This function simply reads it
version = re.search(r'__version__ = \'(.*?)\'', f.read()).group(1)


setup(
name='manga109api',
version='0.2.1',
version=version,
description='Simple python API to read annotation data of Manga109',
long_description=readme,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 5e0c1e3

Please sign in to comment.