Skip to content

Commit

Permalink
Use version app
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamek committed Jun 11, 2018
1 parent b3cade1 commit 5aa03a2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 79 deletions.
3 changes: 1 addition & 2 deletions blacklist/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
VERSION = (1, 0, 25)
__version__ = '.'.join(map(str, VERSION)) + '-dev'
__version__ = '1.0.25'
14 changes: 1 addition & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,6 @@

sys_conf_dir = os.getenv("SYSCONFDIR", "/etc")

version = re.compile(r'VERSION\s*=\s*\((.*?)\)')


def get_package_version() -> str:
base = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(base, "blacklist/__init__.py")) as init_f:
for line in init_f:
m = version.match(line.strip())
if not m:
continue
return ".".join(m.groups()[0].split(", "))


def get_requirements(filename: str) -> list:
return open(os.path.join(filename)).read().splitlines()
Expand Down Expand Up @@ -77,7 +65,7 @@ def package_files(directory: str) -> list:

setup(
name='blacklist',
version=get_package_version(),
version='1.0.25',
description='Blacklist',
long_description=open('README.md').read(),
author='Adam Schubert',
Expand Down
64 changes: 0 additions & 64 deletions version.py

This file was deleted.

0 comments on commit 5aa03a2

Please sign in to comment.