Skip to content

Commit

Permalink
Created setup.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffswt committed Feb 12, 2017
1 parent 567b9bc commit 537217b
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 2 deletions.
33 changes: 31 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

# pydatagen

> Create random data easier with pydatagen.
Now you can use Python to generate random data for OI problems, in a really
Pythonified way!

Expand All @@ -16,9 +18,9 @@ If you want to print something, simply write:
printf("%d %d\n", n, m);
```

The simple applications are really of no differences with C++ / OI+C.
The simple applications are really of no differences with C++.

**We are currently working on the port of `scanf`.**
**We are currently working on the porting of `scanf`.**

## Random Generator

Expand All @@ -44,6 +46,33 @@ for i in range(0, 10000000):
Detailed usage of these functions can be referred in the Python interactive
help console by typing `help('pydatagen.rand')`, had you installed this package.

## Installation

Clone the repository into an empty folder, and execute the following command:

```sh
pip install setuptools # If you have already installed this before, ignore it
python setup.py install # Install pydatagen
```

You can also build your Wheel package by executing the following command:

```sh
pip install setuptools # If you have already installed this before, ignore it
pip install wheel # Install bdist_wheel provider
python setup.py build bdist_wheel # Build .whl package
```

Alternatively you could download our official release from the releases panel,
and install the compiled 'wheel' to your computer. After you have downloaded
the release, you may install it in the command line:

```sh
pip install ./pydatagen-version-py3-none-any.whl # Referring to the downloaded file
```

Installation is as fast as creating random data!

## Pros and Cons

The pros of using pydatagen:
Expand Down
34 changes: 34 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

from setuptools import setup

def readme():
with open('README.md') as f:
return f.read()

setup(
name = 'pydatagen',
version = '0.1.33',
description = 'Random data generator library in Python',
long_description = 'Create random data easier with pydatagen.',
classifiers = [
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Intended Audience :: Education',
'Programming Language :: C',
'Programming Language :: C++',
'Programming Language :: Pascal',
'Programming Language :: Python',
],
keywords = 'data generator oi',
url = 'https://github.com/jeffswt/pydatagen',
author = 'jeffswt',
author_email = '',
license = 'LGPLv3',
packages = [
'pydatagen',
],
install_requires = [
],
entry_points = {
},
)

0 comments on commit 537217b

Please sign in to comment.