Skip to main content

Scientific Python package for Monte-Carlo simulation of percolation on graphs

Documentation Status License

Requirements and Python 2/3 compatibility

This package runs under Python 2 and Python 3, and has been tested with Python 2.7.6 and Python 3.4.0.

License

See LICENSE.txt.

Developing

Development environment

Use tox to prepare virtual environments for development.

To set up a Python 2.7 environment in .devenv27, run:

$ tox -e devenv27

To set up a Python 3.4 environment in .devenv34, run:

$ tox -e devenv34

Packaging

This package uses setuptools.

Run

$ python setup.py sdist

or

$ python setup.py bdist

or

$ python setup.py bdist_wheel

to build a source, binary or wheel distribution.

Complete Git Integration

Your project is already an initialised Git repository and setup.py uses the information of tags to infer the version of your project with the help of versioneer.

To use this feature you need to tag with the format vMAJOR.MINOR[.REVISION], e.g. v0.0.1 or v0.1. The prefix v is needed!

Run

$ python setup.py version

to retrieve the current PEP440-compliant version. This version will be used when building a package and is also accessible through percolate.__version__. The version will be unknown until you have added a first tag.

Sphinx Documentation

Build the documentation with

$ python setup.py docs

and run doctests with

$ python setup.py doctest

Alternatively, let tox configure the virtual environment and run sphinx:

$ tox -e docs

Add further options separated from tox options by a double dash --:

$ tox -e docs -- --help

Start editing the file docs/index.rst to extend the documentation.

Read the Docs hosts the project at https://readthedocs.org/projects/pypercolate.

Add requirements for building the documentation to the doc-requirements.txt file.

Continuous documentation building

For continuously building the documentation during development, run:

$ python setup.py autodocs

Unittest & Coverage

Run

$ python setup.py test

to run all unittests defined in the subfolder tests with the help of tox and py.test.

The py.test plugin pytest-cov is used to automatically generate a coverage report.

Continuous testing

For continuous testing in a Python 2.7 environment, run:

$ python setup.py test --tox-args='-c toxdev.ini -e py27'

For continuous testing in a Python 3.4 environment, run:

$ python setup.py test --tox-args='-c toxdev.ini -e py34'

Requirements Management

Add requirements to the requirements.txt file which will be automatically used by setup.py.

Bibliography

A CiteULike group manages the bibliography.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

percolate-0.1.1.tar.gz (32.8 kB view details)

Uploaded Source

File details

Details for the file percolate-0.1.1.tar.gz.

File metadata

  • Download URL: percolate-0.1.1.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for percolate-0.1.1.tar.gz
Algorithm Hash digest
SHA256 acaa7ba2284417641e17eceb3a6c31a810c9525795d951c44369e78bf1c3dd13
MD5 aeffe013b76dc0c7ab8c9bb14f2ac515
BLAKE2b-256 4fda5dd4feae328b7d3b55b3653a9dc928f37c94cfb3deb66b3a95c5bf8e3f49

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.6

3 files

0.4.4

3 files

0.4.3

3 files

0.4.2

3 files

0.4.1

3 files

0.4.0

3 files

0.3.5

3 files

0.3.4

3 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.2.5

1 file

0.2.3

1 file

This release

0.1.1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page