Skip to content

Commit 0a9790d

Browse files
committed
versioning
1 parent 4cdfa82 commit 0a9790d

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ python setup.py install --user
1414
```
1515
ignore the compile warnings for now
1616

17+
---
18+
1719
## Usage
1820

1921
No promises, but should be able to use like
@@ -41,6 +43,8 @@ Can also pass additional arguments to GrowPoly
4143
* write_it = False/True -> writes the animated gif to the local directory
4244
* fps_par = float -> the number of steps per second in the written gif
4345

46+
---
47+
4448
## Misc
4549

4650
Homepage!

polyominomodel/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
from polyomino_animator import GrowPoly
2+
3+
from version import __version__

polyominomodel/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '0.3.0'

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from distutils.core import setup
22
from distutils.extension import Extension
3+
import os
34
#import os
45
#import sysconfig
56

@@ -8,17 +9,19 @@
89
extra_compile_arguments = ["-std=c++11", "-O3","-Wall", "-Wextra","-xc++"]
910
extra_link_arguments = ["-Wl,--no-undefined","-lstdc++","-shared-libgcc"]
1011

12+
here = os.path.abspath(os.path.dirname(__file__))
13+
exec(open(os.path.join(here, 'polyominomodel/version.py')).read())
14+
1115
setup(
1216
name = 'PolyominoModel',
13-
version = '0.2.0',
17+
version = __version__,
1418
author = 'AS Leonard',
1519
packages = ['polyominomodel'],
1620
author_email = 'asl47@cam.ac.uk',
1721
description = 'Various polyomino fun parts',
1822
long_description = open('README.md').read(),
1923
license = 'LICENSE.txt',
2024
platforms = ["Linux"],
21-
install_requires = ["matplotlib"],
2225
url = "https://github.com/IcyHawaiian/SLAM",
2326
ext_modules = [Extension("polyominomodel.CLAM",sources=['src/tile_methods.cpp','src/tile_analysis.cpp','src/polyomino_wrapper.cpp'],include_dirs = ['src/includes'],extra_compile_args=extra_compile_arguments,extra_link_args=extra_link_arguments,language='c++11')],
2427
headers = ['src/includes/tile_analysis.hpp','src/includes/tile_methods.hpp','src/includes/xorshift.hpp']

0 commit comments

Comments
 (0)