Skip to content

Commit

Permalink
Move version out of setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fcurella committed Feb 4, 2019
1 parent 1f19b0b commit ca2b48a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
files = setup.py django_social_share/__init__.py
files = VERSION django_social_share/__init__.py
commit = True
tag = True
current_version = 1.3.0
Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.3.0
13 changes: 8 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import io
import os
from setuptools import setup, find_packages

VERSION = '1.3.0'

here = os.path.abspath(os.path.dirname(__file__))

def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
with io.open(os.path.join(here, 'README.rst'), encoding='utf-8') as fp:
README = fp.read()

with open(os.path.join(here, 'VERSION')) as version_file:
version = version_file.read().strip()

requirements = []
test_requirements = [
Expand All @@ -15,9 +18,9 @@ def read(fname):

setup(
name="django-social-share",
version=VERSION,
version=version,
description="Templatetags for 'tweet this' and 'share on facebook'",
long_description=read('README.rst'),
long_description=README,
url='https://github.com/fcurella/django-social-share',
license='MIT',
author='Flavio Curella',
Expand Down

0 comments on commit ca2b48a

Please sign in to comment.