Skip to content

Commit

Permalink
Release: 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hartym committed Sep 10, 2019
1 parent c8b4dec commit c7480f7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
2 changes: 1 addition & 1 deletion git_semver/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.0"
__version__ = '0.3.1'
45 changes: 25 additions & 20 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
# All changes will be overriden.
# Edit Projectfile and run “make update” (or “medikit update”) to regenerate.

from setuptools import setup, find_packages
from codecs import open
from os import path

from setuptools import find_packages, setup

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

# Py3 compatibility hacks, borrowed from IPython.
Expand All @@ -21,41 +20,47 @@ def execfile(fname, globs, locs=None):

# Get the long description from the README file
try:
with open(path.join(here, "README.rst"), encoding="utf-8") as f:
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
except:
long_description = ""
long_description = ''

# Get the classifiers from the classifiers file
tolines = lambda c: list(filter(None, map(lambda s: s.strip(), c.split("\n"))))
tolines = lambda c: list(filter(None, map(lambda s: s.strip(), c.split('\n'))))
try:
with open(path.join(here, "classifiers.txt"), encoding="utf-8") as f:
with open(path.join(here, 'classifiers.txt'), encoding='utf-8') as f:
classifiers = tolines(f.read())
except:
classifiers = []

version_ns = {}
try:
execfile(path.join(here, "git_semver/_version.py"), version_ns)
execfile(path.join(here, 'git_semver/_version.py'), version_ns)
except EnvironmentError:
version = "dev"
version = 'dev'
else:
version = version_ns.get("__version__", "dev")
version = version_ns.get('__version__', 'dev')

setup(
author="Romain Dorgueil",
author_email="romain@dorgueil.net",
description="Semantic versions management integrated to git.",
license="Apache License, Version 2.0",
name="git_semver",
author='Romain Dorgueil',
author_email='romain@dorgueil.net',
description='Semantic versions management integrated to git.',
license='Apache License, Version 2.0',
name='git_semver',
version=version,
long_description=long_description,
classifiers=classifiers,
packages=find_packages(exclude=["ez_setup", "example", "test"]),
packages=find_packages(exclude=['ez_setup', 'example', 'test']),
include_package_data=True,
install_requires=["GitPython ~= 2.1", "semantic-version ~= 2.8"],
extras_require={"dev": ["coverage ~= 4.5", "isort", "pytest ~= 4.6", "pytest-cov ~= 2.7", "sphinx ~= 1.7"]},
entry_points={"console_scripts": ["git-semver=git_semver.__main__:main"]},
url="https://github.com/hartym/git-semver",
download_url="https://github.com/hartym/git-semver/archive/{version}.tar.gz".format(version=version),
install_requires=['GitPython ~= 2.1', 'semantic-version ~= 2.8'],
extras_require={
'dev': [
'coverage ~= 4.5', 'isort', 'pytest ~= 4.6', 'pytest-cov ~= 2.7',
'sphinx ~= 1.7'
]
},
entry_points={'console_scripts': ['git-semver=git_semver.__main__:main']},
url='https://github.com/hartym/git-semver',
download_url='https://github.com/hartym/git-semver/archive/{version}.tar.gz'
.format(version=version),
)

0 comments on commit c7480f7

Please sign in to comment.