- Update HISTORY.rst
- Update version number in
my_project/__init__.py
- Update version number in
setup.py
- Install the package again for local development, but with the new version number:
python setup.py develop
- Run the tests:
python setup.py test
my_project/__init__.py
setup.py
python setup.py develop
python setup.py test
vsf['year'] = [d.year for d in vsf.index] | |
vsf[['contribution_room','year']].boxplot(rot=90,by='year') |
nosetests --with-coverage --cover-package=smuggle -s | |
py.test --cov=smuggle --cov-report=term --cov-report=html |
sudo apt-get update | |
sudo apt-get install virtualbox-guest-dkms | |
sudo apt-get install git | |
sudo apt-get install python-pip | |
sudo pip install spyder | |
sudo pip install matplotlib | |
sudo apt-get install python-qt4 python-sphinx python-numpy python-pandas |
class ProxyODict(object): | |
def __init__(self, parent, collection_name, childclass, ordername, keyname, valuename): | |
self.parent = parent | |
self.collection_name = collection_name | |
self.childclass = childclass | |
self.ordername = ordername | |
self.keyname = keyname | |
self.valuename = valuename | |
@property |
[distutils] | |
index-servers = | |
pypi | |
pypitest | |
[pypi] | |
repository: https://pypi.python.org/pypi | |
username: jmclarty | |
password: |
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun Sep 06 07:29:38 2015 | |
@author: Jeffrey | |
""" | |
""" | |
Python code clone detector, | |
using Abstract Syntax Trees. |
from functools import partial | |
import os | |
rel_path = partial(os.path.join, os.path.dirname(__file__)) | |
f = rel_path("../config/foo.ini") | |
print_stderr = partial(print, file=sys.stderr) |