Skip to content

Commit e298b0f

Browse files
committed
1.0.0-beta1 release
1 parent dcb6d7c commit e298b0f

5 files changed

Lines changed: 78 additions & 25 deletions

File tree

CHANGELOG.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
1.0.0-beta
2+
==========
3+
Initial release

README-dev.rst

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
Releasing
2+
=========
3+
* Run the tests and ensure they all pass
4+
* Update CHANGELOG.rst
5+
* Update the version in ``cassandra/__init__.py``
6+
* Commit the changelog and version changes
7+
* Tag the release. For example: ``git tag -a 1.0.0 -m 'version 1.0.0'``
8+
* Push the commit and tag: ``git push --tags origin master``
9+
* Upload the package to pypi:
10+
11+
python setup.py register
12+
python setup.py sdist upload
13+
14+
* Update the docs (see below)
15+
* Add a '+' to the version in ``cassandra/__init__.py`` so that it looks
16+
like ``x.y.z+``
17+
* Commit and push
18+
19+
Running the Tests
20+
=================
21+
In order for the extensions to be built and used in the test, run:
22+
23+
python setup.py nosetests
24+
25+
Building the Docs
26+
=================
27+
Sphinx is required to build the docs. You probably want to install through apt,
28+
if possible:
29+
30+
$ sudo apt-get install python-sphinx
31+
32+
pip may also work:
33+
34+
$ sudo pip install -U Sphinx
35+
36+
To build the docs, run:
37+
38+
python setup.py doc
39+
40+
To upload the docs, checkout the ``gh-pages`` branch (it's usually easier to
41+
clone a second copy of this repo and leave it on that branch) and copy the entire
42+
contents all of ``docs/_build/X.Y.Z/*`` into the root of the ``gh-pages`` branch
43+
and then push that branch to github.
44+
45+
For example:
46+
47+
$ python setup.py doc
48+
$ cp -R docs/_build/1.0.0-beta1/* ~/python-driver-docs/
49+
$ cd ~/python-driver-docs
50+
$ git push origin gh-pages

README.rst

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,17 @@ Features to be Added
2626

2727
Installation
2828
------------
29-
A package hasn't been put on pypi yet, so for now, run:
29+
If you would like to use the optional C extensions, please follow
30+
the instructions in the section below before installing the driver.
3031

31-
.. code-block:: bash
32+
Installation through pip is recommended:
3233

33-
$ sudo pip install futures scales # install dependencies
34-
$ sudo python setup.py install
34+
$ sudo pip install cassandra-driver
35+
36+
If you want to install manually, you can instead do:
37+
38+
$ sudo pip install futures scales # install dependencies
39+
$ sudo python setup.py install
3540

3641
C Extensions
3742
^^^^^^^^^^^^
@@ -47,15 +52,11 @@ To compile the extenions, ensure that GCC and the Python headers are available.
4752

4853
On Ubuntu and Debian, this can be accomplished by running:
4954

50-
.. code-block:: bash
51-
52-
$ sudo apt-get install build-essential python-dev
55+
$ sudo apt-get install build-essential python-dev
5356

5457
On RedHat and RedHat-based systems like CentOS and Fedora:
5558

56-
.. code-block:: bash
57-
58-
$ sudo yum install gcc python-devel
59+
$ sudo yum install gcc python-devel
5960

6061
On OS X, homebrew installations of Python should provide the necessary headers.
6162

@@ -68,29 +69,23 @@ a C extension.
6869
If you're on Linux, you should be able to install libev
6970
through a package manager. For example, on Debian/Ubuntu:
7071

71-
.. code-block:: bash
72-
73-
$ sudo apt-get install libev4 libev-dev
72+
$ sudo apt-get install libev4 libev-dev
7473

7574
If you're on Mac OS X, you should be able to install libev
7675
through `Homebrew <http://brew.sh/>`_. For example, on Mac OS X:
7776

78-
.. code-block:: bash
79-
80-
$ brew install libev
77+
$ brew install libev
8178

8279
If successful, you should be able to build and install the extension
8380
(just using ``setup.py build`` or ``setup.py install``) and then use
8481
the libev event loop by doing the following
8582

86-
.. code-block:: python
87-
88-
>>> from cassandra.io.libevreactor import LibevConnection
89-
>>> from cassandra.cluster import Cluster
83+
>>> from cassandra.io.libevreactor import LibevConnection
84+
>>> from cassandra.cluster import Cluster
9085

91-
>>> cluster = Cluster()
92-
>>> cluster.connection_class = LibevConnection
93-
>>> session = cluster.connect()
86+
>>> cluster = Cluster()
87+
>>> cluster.connection_class = LibevConnection
88+
>>> session = cluster.connect()
9489

9590
License
9691
-------

cassandra/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version_info__ = (0, 1, 4)
1+
__version_info__ = (1, 0, '0-beta1')
22
__version__ = '.'.join(map(str, __version_info__))
33

44

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020

2121
from cassandra import __version__
2222

23+
long_description = ""
24+
with open("README.rst") as f:
25+
long_description = f.read()
2326

2427
class doc(Command):
2528

@@ -166,9 +169,11 @@ def build_extension(self, ext):
166169
features = {}
167170

168171
setup(
169-
name='cassandra',
172+
name='cassandra-driver',
170173
version=__version__,
171174
description='Python driver for Cassandra',
175+
long_description=long_description,
176+
url='http://github.com/datastax/python-driver',
172177
author='Tyler Hobbs',
173178
author_email='[email protected]',
174179
packages=["cassandra", "cassandra.io"],

0 commit comments

Comments
 (0)