From 4bc85b3be42dec4dd82e30d36de505c17f764ce3 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sat, 26 Mar 2016 11:12:14 +0100 Subject: [PATCH] Make this a proper Python package using setuptools Added setup.py and MANIFEST.in. MOved documentation into its own sub dir --- .gitignore | 3 ++ MANIFEST.in | 3 ++ TODO.txt | 9 ------ documentation/TODO.txt | 8 ++++++ .../presentation.odp | Bin setup.py | 26 ++++++++++++++++++ 6 files changed, 40 insertions(+), 9 deletions(-) create mode 100644 MANIFEST.in delete mode 100644 TODO.txt create mode 100644 documentation/TODO.txt rename presentation.odp => documentation/presentation.odp (100%) create mode 100755 setup.py diff --git a/.gitignore b/.gitignore index 9944b2f..4b17997 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,6 @@ *.pyc *.pwj *.ud +build/ +dist/ +boxes.py.egg-info/ \ No newline at end of file diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..9a626c4 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,3 @@ +include README.txt LICENSE.txt +include examples/*.svg +include documentation/presentation.odp documentation/TODO.txt diff --git a/TODO.txt b/TODO.txt deleted file mode 100644 index 789d06c..0000000 --- a/TODO.txt +++ /dev/null @@ -1,9 +0,0 @@ - * Make outer edge continuous even if other parts are drawn intermediately. - * Fix burn compensation for building blocks (especially fingerHolesAt) - * Fix hexHoles* (leftoover, grow to space, ...) - * Try out box with fully mixed fF edges and check if all corners work properly - * finish lamp - * Make settings nicer - * offer a collection of different settings - * Make bolts configurable (e.g. box2.py) - * setup.py diff --git a/documentation/TODO.txt b/documentation/TODO.txt new file mode 100644 index 0000000..91a0b3c --- /dev/null +++ b/documentation/TODO.txt @@ -0,0 +1,8 @@ + * Make outer edge continuous even if other parts are drawn intermediately. + * Check burn compensation for building blocks + * Fix hexHoles* (leftoover, grow to space, ...) + * Finish lamp + * Make settings nicer + * Offer a collection of different settings + * Make bolts configurable (e.g. box2.py) + * Script for generating examples/*.svg diff --git a/presentation.odp b/documentation/presentation.odp similarity index 100% rename from presentation.odp rename to documentation/presentation.odp diff --git a/setup.py b/setup.py new file mode 100755 index 0000000..370c848 --- /dev/null +++ b/setup.py @@ -0,0 +1,26 @@ +#!/usr/bin/python3 + +from setuptools import setup, find_packages + +setup(name='boxes.py', + version='0.1', + description='Boxes generator for laser cutters', + author='Florian Festi', + author_email='florian@festi.info', + url='https://github.com/florianfesti/boxes', + packages=find_packages(), + install_requires=['cairo'], + scripts=['scripts/boxes', 'scripts/boxesserver'], + classifiers=[ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Environment :: Web Environment", + "Intended Audience :: Manufacturing", + "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", + "Programming Language :: Python :: 3", + "Topic :: Multimedia :: Graphics :: Editors :: Vector-Based", + "Topic :: Scientific/Engineering", + "Topic :: Scientific/Engineering :: Computer Aided Design", + ], + keywords=["boxes", "box", "generator", "svg", "laser cutter"], +)