Skip to content

Commit ee4f54b

Browse files
authored
Merge pull request #14 from rwielk/v0.6.1
v0.6.1
2 parents fbdf189 + abe7af0 commit ee4f54b

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include changelog.rst
12
include COPYING
23
include README.rst
34
include requirements.txt

changelog.rst

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
*********
33

4+
0.6.1
5+
-----
6+
* Add changelog to packaged version
7+
* Adjust long description for PyPi
8+
49
0.6.0
510
-----
611
* Add support for latest pycountry (https://github.com/anexia-it/geofeed-validator/issues/4, thanks vangesseld)

geofeed_validator/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from geofeed_validator.utils import is_file_like_object
3131
from geofeed_validator.validator.base import BaseValidator, Registry
3232

33-
__version__ = '0.6.0'
33+
__version__ = '0.6.1'
3434

3535

3636
class GeoFeedValidator(object):

setup.py

+11
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,31 @@
3131
import os
3232

3333

34+
def get_long_description():
35+
"""
36+
Get README.rst content for use as long descption
37+
"""
38+
this_directory = os.path.abspath(os.path.dirname(__file__))
39+
with open(os.path.join(this_directory, 'README.rst'), encoding='utf-8') as f:
40+
return f.read()
41+
3442
def get_version(package):
3543
"""
3644
Return package version as listed in `__version__` in `init.py`.
3745
"""
3846
init_py = open(os.path.join(package, '__init__.py')).read()
3947
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
4048

49+
long_description = get_long_description()
4150
version = get_version('geofeed_validator')
4251

4352
setup(
4453
name='geofeed_validator',
4554
version=version,
4655
license='AGPLv3+',
4756
description='Validator library for self-published geo feeds',
57+
long_description=long_description,
58+
long_description_content_type='text/x-rst',
4859
author='Stephan Peijnik',
4960
author_email='[email protected]',
5061
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),

0 commit comments

Comments
 (0)