Skip to content

Commit

Permalink
Merge pull request #14 from rwielk/v0.6.1
Browse files Browse the repository at this point in the history
v0.6.1
  • Loading branch information
rwielk authored May 17, 2021
2 parents fbdf189 + abe7af0 commit ee4f54b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include changelog.rst
include COPYING
include README.rst
include requirements.txt
5 changes: 5 additions & 0 deletions changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
*********

0.6.1
-----
* Add changelog to packaged version
* Adjust long description for PyPi

0.6.0
-----
* Add support for latest pycountry (https://github.com/anexia-it/geofeed-validator/issues/4, thanks vangesseld)
Expand Down
2 changes: 1 addition & 1 deletion geofeed_validator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from geofeed_validator.utils import is_file_like_object
from geofeed_validator.validator.base import BaseValidator, Registry

__version__ = '0.6.0'
__version__ = '0.6.1'


class GeoFeedValidator(object):
Expand Down
11 changes: 11 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,31 @@
import os


def get_long_description():
"""
Get README.rst content for use as long descption
"""
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'README.rst'), encoding='utf-8') as f:
return f.read()

def get_version(package):
"""
Return package version as listed in `__version__` in `init.py`.
"""
init_py = open(os.path.join(package, '__init__.py')).read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)

long_description = get_long_description()
version = get_version('geofeed_validator')

setup(
name='geofeed_validator',
version=version,
license='AGPLv3+',
description='Validator library for self-published geo feeds',
long_description=long_description,
long_description_content_type='text/x-rst',
author='Stephan Peijnik',
author_email='[email protected]',
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
Expand Down

0 comments on commit ee4f54b

Please sign in to comment.