Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit be54b69

Browse files
prodicustasdikrahman
authored andcommitted
v1.0.0: version bump
Some major backward incompatible changes have been made to the API. Please refer the new `docs/usage.rst` for checking in what changes in the API
1 parent e169a2f commit be54b69

File tree

7 files changed

+73
-40
lines changed

7 files changed

+73
-40
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ Built with ♥ by `Tasdik Rahman <http://tasdikrahman.me/>`__ under the `MIT Lic
253253
You can find a copy of the License at http://prodicus.mit-license.org/
254254

255255
.. |PyPI version| image:: https://img.shields.io/pypi/v/Vocabulary.svg
256-
:target: https://pypi.python.org/pypi/Vocabulary/0.0.6
256+
:target: https://pypi.python.org/pypi/Vocabulary/1.0.0
257257
.. |License| image:: https://img.shields.io/pypi/l/vocabulary.svg
258258
:target: https://github.com/prodicus/vocabulary/blob/master/LICENSE
259259
.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/Vocabulary.svg

docs/conf.py

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@
1717
import os
1818
import shlex
1919

20+
sys.path.insert(0, os.path.abspath('..'))
21+
22+
from vocabulary.version import VERSION, RELEASE
23+
24+
# The version info for the project you're documenting, acts as replacement for
25+
# |version| and |release|, also used in various other places throughout the
26+
# built documents.
27+
#
28+
# The short X.Y version.''
29+
version = VERSION
30+
# The full version, including alpha/beta/rc tags.
31+
release = RELEASE
32+
2033
# If extensions (or modules to document with autodoc) are in another directory,
2134
# add these directories to sys.path here. If the directory is relative to the
2235
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -57,14 +70,7 @@
5770
copyright = '2015, Tasdik Rahman'
5871
author = 'Tasdik Rahman'
5972

60-
# The version info for the project you're documenting, acts as replacement for
61-
# |version| and |release|, also used in various other places throughout the
62-
# built documents.
63-
#
64-
# The short X.Y version.
65-
version = '0.0.6'
66-
# The full version, including alpha/beta/rc tags.
67-
release = '5'
73+
6874

6975
# The language for content autogenerated by Sphinx. Refer to documentation
7076
# for a list of supported languages.

docs/contributing.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ To do
5454
Tests
5555
=====
5656

57-
``Vocabulary`` uses ``unittesting`` for testing purposes.
5857

5958
Running the test cases
6059

@@ -87,7 +86,16 @@ Discuss
8786
Join us on our `Gitter channel <https://gitter.im/prodicus/vocabulary>`__
8887
if you want to chat or if you have any questions.
8988

90-
Contributers
89+
Building the docs
90+
=================
91+
92+
Install the `Sphinx` by doing a `$ pip install requirements-dev.txt`
93+
94+
.. code-block:: bash
95+
96+
$ make html
97+
98+
Contributors
9199
============
92100

93101
- Thanks to `Anton Relin <https://github.com/relisher>`__ for adding the `translate()` module

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Sphinx==1.5.5

setup.py

Lines changed: 39 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,24 @@
22
# -*- coding: utf-8 -*-
33

44
import sys
5+
56
try:
6-
import os
7-
from setuptools import setup, find_packages
7+
from os import path
8+
from setuptools import setup, find_packages
89
except ImportError:
9-
from distutils.core import setup
10+
from distutils.core import setup
11+
12+
from vocabulary.version import VERSION
13+
__version__ = VERSION
14+
15+
here = path.abspath(path.dirname(__file__))
16+
17+
# get the dependencies and installs
18+
with open(path.join(here, 'requirements.txt'), encoding='utf-8') as f:
19+
all_reqs = f.read().split('\n')
20+
21+
install_requires = [x.strip() for x in all_reqs if 'git+' not in x]
22+
dependency_links = [x.strip().replace('git+', '') for x in all_reqs if 'git+' not in x]
1023

1124
try:
1225
if sys.version_info[:2] <= (2, 7):
@@ -18,29 +31,27 @@
1831
readme.close()
1932

2033
setup(
21-
name = 'Vocabulary',
22-
version = '0.0.6',
23-
author = 'Tasdik Rahman',
24-
author_email = 'tasdik95@gmail.com',
25-
description = "Module to get meaning, synonym, antonym, part_of_speech, usage_example, pronunciation and hyphenation for a given word",
26-
long_description=long_description,
27-
url = 'https://github.com/prodicus/vocabulary',
28-
license = 'MIT',
29-
install_requires = [
30-
"requests==2.13.0",
31-
],
32-
### adding package data to it
33-
packages=find_packages(exclude=['contrib', 'docs']),
34-
###
35-
download_url = 'https://github.com/prodicus/vocabulary/tarball/0.0.6',
36-
classifiers = [
37-
'Intended Audience :: Developers',
38-
'License :: OSI Approved :: MIT License',
39-
'Natural Language :: English',
40-
'Programming Language :: Python',
41-
'Programming Language :: Python :: 2.7',
42-
'Programming Language :: Python :: 3',
43-
'Programming Language :: Python :: 3.4',
44-
],
45-
keywords = ['Dictionary', 'Vocabulary', 'simple dictionary','pydict', 'dictionary module']
34+
name='Vocabulary',
35+
author='Tasdik Rahman',
36+
version=VERSION,
37+
author_email='tasdik95@gmail.com',
38+
description="Module to get meaning, synonym, antonym, part_of_speech, usage_example, pronunciation and hyphenation for a given word",
39+
long_description=long_description,
40+
url='https://github.com/prodicus/vocabulary',
41+
license='MIT',
42+
install_requires=install_requires,
43+
dependency_links=dependency_links,
44+
# adding package data to it
45+
packages=find_packages(exclude=['contrib', 'docs']),
46+
download_url='https://github.com/prodicus/vocabulary/tarball/' + __version__,
47+
classifiers=[
48+
'Intended Audience :: Developers',
49+
'License :: OSI Approved :: MIT License',
50+
'Natural Language :: English',
51+
'Programming Language :: Python',
52+
'Programming Language :: Python :: 2.7',
53+
'Programming Language :: Python :: 3',
54+
'Programming Language :: Python :: 3.4',
55+
],
56+
keywords=['Dictionary', 'Vocabulary', 'simple dictionary', 'pydict', 'dictionary module']
4657
)

vocabulary/version.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# -*- coding: utf-8 -*-
2+
3+
VERSION = '1.0.0'
4+
RELEASE = '6'

vocabulary/vocabulary.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@
2828

2929
from .responselib import Response
3030

31-
__version__ = '0.0.6'
31+
from .version import VERSION, RELEASE
32+
33+
__version__ = VERSION
34+
__release__ = RELEASE
3235
__author__ = "Tasdik Rahman"
3336

3437

0 commit comments

Comments
 (0)