Skip to content

Commit

Permalink
fixed version not updating
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed Nov 12, 2021
1 parent da45428 commit 7d77c66
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.2
1.2.3
12 changes: 2 additions & 10 deletions arrapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os, pkg_resources
import pkg_resources

from .exceptions import ArrException, ConnectionFailure, Excluded, Exists, Invalid, NotFound, Unauthorized
from .objs.simple import MetadataProfile, RemotePathMapping, RootFolder, UnmappedFolder, Season
Expand All @@ -11,15 +11,7 @@
try:
__version__ = pkg_resources.get_distribution("arrapi").version
except pkg_resources.DistributionNotFound:
if os.path.exists("../VERSION"):
with open("../VERSION") as handle:
for line in handle.readlines():
line = line.strip()
if len(line) > 0:
__version__ = line
break
else:
__version__ = ""
__version__ = ""
__author__ = "Nathan Taggart"
__credits__ = "meisnate12"
__package_name__ = "arrapi"
Expand Down
13 changes: 11 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
import arrapi
import arrapi, os

from setuptools import setup, find_packages

with open("README.rst", "r") as f:
long_descr = f.read()

__version__ = None
if os.path.exists("VERSION"):
with open("VERSION") as handle:
for line in handle.readlines():
line = line.strip()
if len(line) > 0:
__version__ = line
break

setup(
name=arrapi.__package_name__,
version=arrapi.__version__,
version=__version__,
description=arrapi.__description__,
long_description=long_descr,
url=arrapi.__url__,
Expand Down

0 comments on commit 7d77c66

Please sign in to comment.