Skip to content

Commit 44e3c45

Browse files
committed
Add version file and bump to 1.0.0 due to API changes in camelcase less branch
1 parent 19f7d0d commit 44e3c45

3 files changed

Lines changed: 30 additions & 1 deletion

File tree

goose/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
limitations under the License.
2222
"""
2323
import os
24+
from goose.version import version_info, __version__
2425
from goose.configuration import Configuration
2526
from goose.crawler import CrawlCandidate
2627
from goose.crawler import Crawler

goose/version.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# -*- coding: utf-8 -*-
2+
"""\
3+
This is a python port of "Goose" orignialy licensed to Gravity.com
4+
under one or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership.
7+
8+
Python port was written by Xavier Grangier for Recrutae
9+
10+
Gravity.com licenses this file
11+
to you under the Apache License, Version 2.0 (the "License");
12+
you may not use this file except in compliance
13+
with the License. You may obtain a copy of the License at
14+
15+
http://www.apache.org/licenses/LICENSE-2.0
16+
17+
Unless required by applicable law or agreed to in writing, software
18+
distributed under the License is distributed on an "AS IS" BASIS,
19+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20+
See the License for the specific language governing permissions and
21+
limitations under the License.
22+
"""
23+
24+
version_info = (1, 0, 0)
25+
__version__ = ".".join(map(str, version_info))

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
from setuptools import setup, find_packages
2+
from imp import load_source
3+
4+
version = load_source("version", os.path.join("goose", "version.py"))
25

36
setup(name='goose',
4-
version='0.2',
7+
version=version.__version__,
58
description="Html Content / Article Extractor",
69
long_description="",
710
keywords='',

0 commit comments

Comments
 (0)